summaryrefslogtreecommitdiffstats
path: root/pts-core/functions/pts-functions_system_graphics.php
diff options
context:
space:
mode:
authorMichael Larabel <michael@phx-laptop.(none)>2008-07-17 18:56:25 -0400
committerMichael Larabel <michael@phx-laptop.(none)>2008-08-03 11:49:20 -0400
commitf627128a0e1177eeab623d4e23571d58937baceb (patch)
treeb3938088522acf0733e0a246de9b187ed20c42ac /pts-core/functions/pts-functions_system_graphics.php
parent3fed3c07426ba68d2be077f5d76b2bfdf6919262 (diff)
downloadphoronix-test-suite-upstream-f627128a0e1177eeab623d4e23571d58937baceb.tar.gz
phoronix-test-suite-upstream-f627128a0e1177eeab623d4e23571d58937baceb.tar.xz
phoronix-test-suite-upstream-f627128a0e1177eeab623d4e23571d58937baceb.zip
pts-core: Add FreeBSD graphics parsing support
Diffstat (limited to 'pts-core/functions/pts-functions_system_graphics.php')
-rw-r--r--pts-core/functions/pts-functions_system_graphics.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/pts-core/functions/pts-functions_system_graphics.php b/pts-core/functions/pts-functions_system_graphics.php
index f48b8a8..650de25 100644
--- a/pts-core/functions/pts-functions_system_graphics.php
+++ b/pts-core/functions/pts-functions_system_graphics.php
@@ -314,6 +314,14 @@ function graphics_processor_string()
$info = $log_parse;
}
+ if(IS_BSD && $info == "Unknown")
+ {
+ $info = read_sysctl("dev.drm.0.%desc");
+
+ if($info == "Unknown")
+ $info = read_sysctl("dev.agp.0.%desc");
+ }
+
$info = pts_clean_information_string($info);
return $info;