projects / phoronix-test-suite.git / commitdiff
Build Results
 
Summary

Description: Phoronix Test Suite open-source benchmarking development
Last Change: Tue 5/21/13 15:49

Recent Commits
Time
Signed-Off By
Description
Commit Diff
Tue 5/21/13 15:49
Michael Larabel  
Phoronix Test Suite... 
Fri 5/17/13 22:52
Michael Larabel  
phodevi: Report CPU... 
Wed 5/15/13 21:50
Michael Larabel  
Phoronix Test Suite... 
Wed 5/15/13 21:39
Michael Larabel  
pts-core: DragonFlyBSD... 
Wed 5/15/13 15:47
Michael Larabel  
pts-core: Updates from... 
Wed 5/15/13 15:43
Michael Larabel  
 
 
> --git a/CHANGE-LOG b/CHANGE-LOG
index 64b5869
..2fe4b91 100644
--- a/CHANGE-LOG
+++ b/CHANGE-LOG
@@ -5,+5,10 @@ Phoronix Test Suite (Git)
 - 
pts-coreBetter recognize some open-source vsclosed-source graphics card/driver combination comparisons
 
pts-coreFix potential crash in list-test-usage command
 
pts-coreSupport for detecting FSGSBASE and RDRAND on Intel Ivy Bridge
+- pts-coreWhen detecting a CPU comparisonreport the detailed CPU system table information
 
pts-coreFix PRESET_OPTIONS failing when specifying an option value rather than its index
 
pts_GraphFix rounding issue on pts tables that are very wide
+- pts_GraphAdd SideViewTable

 Phoronix Test Suite 4.0 Milestone 1
 12 April 2012
diff 
--git a/pts-core/objects/client/pts_client.php b/pts-core/objects/client/pts_client.php
index 78b12b7
..64934b3 100644
--- a/pts-core/objects/client/pts_client.php
+++ b/pts-core/objects/client/pts_client.php
@@ -947,+947,@@ class pts_client
             $chart
->renderChart($save_to_dir '/result-graphs/overview.BILDE_EXTENSION');

             
$intent = -1;
-            if(
$result_file->get_system_count() == || ($intent pts_result_file_analyzer::analyze_result_file_intent($result_file$intenttrue)))
+            if((
$intent pts_result_file_analyzer::analyze_result_file_intent($result_file$intenttrue)) || $result_file->get_system_count() == 1)
             {
                 
$chart = new pts_ResultFileCompactSystemsTable($result_file$intent);
             }
@@ -
957,+957,16 @@ class pts_client
             
}
             
$chart->renderChart($save_to_dir '/result-graphs/systems.BILDE_EXTENSION');
             unset(
$chart);
+
+            if(
$intent && in_array('Processor'$intent[0]) && is_dir($save_to_dir '/system-logs/'))
+            {
+                
$chart = new pts_DetailedSystemComponentTable($result_file$save_to_dir '/system-logs/''Processor'$intent);
+
+                if(
$chart)
+                {
+                    
$chart->renderChart($save_to_dir '/result-graphs/system_component_details.BILDE_EXTENSION');
+                }
+            }
         }

         foreach(
$result_file->get_result_objects() as $key => $result_object)
diff --git a/pts-core/objects/phodevi/components/phodevi_cpu.php b/pts-core/objects/phodevi/components/phodevi_cpu.php
index 00d1f3e
..4325c18 100644
--- a/pts-core/objects/phodevi/components/phodevi_cpu.php
+++ b/pts-core/objects/phodevi/components/phodevi_cpu.php
@@ -390,+390,@@ class phodevi_cpu extends phodevi_device_interface
     
public static function read_cpuinfo_line($key$from_start true)
     {
         
$line false;
+        
$key .= "\t";

         if(isset(
phodevi::$vfs->cpuinfo) && ($from_start && ($key_pos strpos(phodevi::$vfs->cpuinfoPHP_EOL $key)) !== false) || ($key_pos strrpos(phodevi::$vfs->cpuinfoPHP_EOL $key)) !== false)
         {
@@ -
426,+427,@@ class phodevi_cpu extends phodevi_device_interface
     
public static function instruction_set_extensions()
     {
         
$constants self::get_cpu_feature_constants();
+        
self::set_cpu_feature_flags();
         
$cpu_flags self::get_cpu_flags();
         
$extension_string null;

@@ -
466,+468,19 @@ class phodevi_cpu extends phodevi_device_interface

         
return $virtualitzation_technology;
     }
+    public static function 
lscpu_l2_cache()
+    {
+        
$l2_cache false;
+
+        if(isset(
phodevi::$vfs->lscpu) && ($t strpos(phodevi::$vfs->lscpu'L2 cache:')))
+        {
+            
$lscpu substr(phodevi::$vfs->lscpu$t strlen('L2 cache:') + 1);
+            
$lscpu substr($lscpu0strpos($lscpuPHP_EOL));
+            
$l2_cache trim($lscpu);
+        }
+
+        return 
$l2_cache;
+    }
     public static function 
cpuinfo_core_count()
     {
         
$core_count self::read_cpuinfo_line('cpu cores');
diff --git a/pts-core/objects/phodevi/phodevi_vfs.php b/pts-core/objects/phodevi/phodevi_vfs.php
index 0a0e3b1
..248080f 100644
--- a/pts-core/objects/phodevi/phodevi_vfs.php
+++ b/pts-core/objects/phodevi/phodevi_vfs.php
@@ -51,+51,16 @@ class phodevi_vfs

     
public function __construct()
     {
+        
$this->clear_cache();
+    }
+    public function 
clear_cache()
+    {
         
$this->cache = array();
     }
+    public function 
cache_index()
+    {
+        return 
array_keys($this->cache);
+    }
     public function 
__get($name)
     {
         
// This assumes that isset() has been called on $name prior to actually trying to get it...
@@ -101,+109,10 @@ class phodevi_vfs
     
{
         return isset(
$this->cache[$name]) || (PTS_IS_CLIENT && $this->cache_isset_names($name));
     }
+    public function 
set_cache_item($name$cache)
+    {
+        
$this->cache[$name] = $cache;
+    }
     protected function 
cache_isset_names($name)
     {
         
// Cache the isset call names with their values when checking files/commands since Phodevi will likely hit each one potentially multiple times and little overhead to caching them
diff --git a/pts-core/objects/pts_Graph/pts_DetailedSystemComponentTable.php b/pts-core/objects/pts_Graph/pts_DetailedSystemComponentTable.php
index f22b857
..0981144 100644
--- a/pts-core/objects/pts_Graph/pts_DetailedSystemComponentTable.php
+++ b/pts-core/objects/pts_Graph/pts_DetailedSystemComponentTable.php
@@ -3,+3,@@
 
/*
     Phoronix Test Suite
     URLs: http://www.phoronix.com, http://www.phoronix-test-suite.com/
-    Copyright (C) 2009 - 2012, Phoronix Media
-    Copyright (C) 2009 - 2012, Michael Larabel
-    pts_ResultFileTable.php: The result file table object
+    Copyright (C) 2012, Phoronix Media
+    Copyright (C) 2012, Michael Larabel
+    pts_DetailedSystemComponentTable.php: The detailed system component table

     This program is free software; you can redistribute it and/or modify
     it under the terms of the GNU General Public License as published by
@@ -107,31 +107,6 @@ class pts_DetailedSystemComponentTable extends pts_SideViewTable
         {
             $this->addTestNote(implode(' ', $intersect), null, 'Common CPU Flags');
         }
-        return;
-
-        $columns = $result_file->get_system_identifiers();
-        $rows = array();
-        $table_data = array();
-
-        pts_result_file_analyzer::system_components_to_table($table_data, $columns, $rows, $result_file->get_system_hardware());
-        pts_result_file_analyzer::system_components_to_table($table_data, $columns, $rows, $result_file->get_system_software());
-
-        pts_result_file_analyzer::compact_result_table_data($table_data, $columns, true); // TODO: see if this true value works fine but if rendering starts messing up, disable it
-
-        if(defined('OPENBENCHMARKING_IDS'))
-        {
-            foreach($columns as &$column)
-            {
-                $column = new pts_graph_ir_value($column);
-                $column->set_attribute('href', 'http://openbenchmarking.org/system/' . OPENBENCHMARKING_IDS . '/' . $column);
-            }
-        }
-
-        parent::__construct($rows, $columns, $table_data, $result_file);
-        $this->i['identifier_size'] *= 0.8;
-        $this->column_heading_vertical = false;
-        $this->graph_title = $result_file->get_title();
-        pts_render::report_system_notes_to_table($result_file, $this);
     }
     protected function generate_processor_data(&$result_file, $system_identifier)
     {
diff --git a/pts-core/objects/pts_Graph/pts_SideViewTable.php b/pts-core/objects/pts_Graph/pts_SideViewTable.php
index b167e14..e59986c 100644
--- a/pts-core/objects/pts_Graph/pts_SideViewTable.php
+++ b/pts-core/objects/pts_Graph/pts_SideViewTable.php
@@ -3,9 +3,9 @@
 /*
     Phoronix Test Suite
     URLs: http://www.phoronix.com, http://www.phoronix-test-suite.com/
-    Copyright (C) 2009 - 2012, Phoronix Media
-    Copyright (C) 2009 - 2012, Michael Larabel
-    pts_Table.php: A charting table object for pts_Graph
+    Copyright (C) 2012, Phoronix Media
+    Copyright (C) 2012, Michael Larabel
+    pts_SideViewTable.php: A charting table object for pts_Graph in a side-view manner

     This program is free software; you can redistribute it and/or modify
     it under the terms of the GNU General Public License as&nb
 
Phoronix.com
Linux Driver Forums
Copyright © 2013 by Phoronix Media