Summary
Description: Phoronix Test Suite open-source benchmarking development
Last Change: Fri 5/17/13 22:52
Recent Commits
>
--git a/CHANGE-LOG b/CHANGE-LOG
index 4210f8b..f2dc070 100644
--- a/CHANGE-LOG
+++ b/CHANGE-LOG
@@ -4,6 +4,7 @@ Phoronix Test Suite (Git)
- pts-core: Better recognize some open-source vs. closed-source graphics card/driver combination comparisons
- pts-core: Fix potential crash in list-test-usage command
+- pts-core: Support for detecting FSGSBASE and RDRAND on Intel Ivy Bridge
- pts_Graph: Fix rounding issue on pts tables that are very wide
Phoronix Test Suite 4.0 Milestone 1
diff --git a/pts-core/objects/phodevi/components/phodevi_cpu.php b/pts-core/objects/phodevi/components/phodevi_cpu.php
index f543588..00d1f3e 100644
--- a/pts-core/objects/phodevi/components/phodevi_cpu.php
+++ b/pts-core/objects/phodevi/components/phodevi_cpu.php
@@ -377,6 +377,8 @@ class phodevi_cpu extends phodevi_device_interface
'xop' => (1 << 12), // AMD XOP Instruction Set
'fma3' => (1 << 13), // FMA3 Instruction Set
'fma4' => (1 << 14), // FMA4 Instruction Set
+ 'rdrand' => (1 << 15), // Intel Bull Mountain RDRAND - Ivy Bridge
+ 'fsgsbase' => ( 1 << 16) // FSGSBASE - Ivy Bridge AVX
);
}
public static function get_cpu_feature_constant($constant)
@@ -437,7 +439,7 @@ class phodevi_cpu extends phodevi_device_interface
}
// Check for other instruction sets
- foreach(array('avx', 'xop', 'fma3', 'fma4') as $instruction_set)
+ foreach(array('avx', 'xop', 'fma3', 'fma4', 'rdrand', 'fsgsbase') as $instruction_set)
{
if(($cpu_flags & self::get_cpu_feature_constant($instruction_set)))
{
<
Copyright © 2013 by Phoronix Media