summaryrefslogtreecommitdiff
path: root/profiles.d
diff options
context:
space:
mode:
authorJari Tahvanainen <jari.tahvanainen@intel.com>2016-06-16 13:53:37 +0300
committerMartin Peres <martin.peres@linux.intel.com>2016-06-30 17:30:46 +0300
commit187250bcc62631c0d1c8834afbc823d2f534700a (patch)
treeb0dc91b879ee839ad9d0d33bef4400bea3558193 /profiles.d
parent6d4828d94d949435f966eab2d4a08e0c2f6be761 (diff)
profile: create a kernel-igt profile that will not start X
Diffstat (limited to 'profiles.d')
-rw-r--r--profiles.d/kernel-igt/conf.d/compile.conf24
-rw-r--r--profiles.d/kernel-igt/conf.d/ezbench.conf9
l---------profiles.d/kernel-igt/profile1
3 files changed, 34 insertions, 0 deletions
diff --git a/profiles.d/kernel-igt/conf.d/compile.conf b/profiles.d/kernel-igt/conf.d/compile.conf
new file mode 100644
index 0000000..b8df203
--- /dev/null
+++ b/profiles.d/kernel-igt/conf.d/compile.conf
@@ -0,0 +1,24 @@
+source "$ezBenchDir/profiles.d/utils/common.sh"
+
+function compile_pre_hook() {
+ # Accessible variables
+ # $commit [RO]: SHA1 id of the current commit
+ # $commitName [RO]: Name of the commit
+
+ cpu_reclocking_disable_stop
+ gui_start || exit 60
+ x_show_debug_info_start
+}
+
+function compile_post_hook() {
+ # Accessible variables
+ # $commit [RO]: SHA1 id of the current commit
+ # $commitName [RO]: Name of the commit
+
+ x_show_debug_info_stop
+ gui_stop
+ cpu_reclocking_disable_start
+
+ # reset the turbo state
+ [[ $compile_error == 0 ]] && sleep 5
+}
diff --git a/profiles.d/kernel-igt/conf.d/ezbench.conf b/profiles.d/kernel-igt/conf.d/ezbench.conf
new file mode 100644
index 0000000..f5fb939
--- /dev/null
+++ b/profiles.d/kernel-igt/conf.d/ezbench.conf
@@ -0,0 +1,9 @@
+source "$ezBenchDir/profiles.d/utils/common.sh"
+
+function ezbench_env_deploy_hook() {
+ cpu_reclocking_disable_start || exit 60
+}
+
+function ezbench_post_hook() {
+ cpu_reclocking_disable_stop
+}
diff --git a/profiles.d/kernel-igt/profile b/profiles.d/kernel-igt/profile
new file mode 120000
index 0000000..6131f2f
--- /dev/null
+++ b/profiles.d/kernel-igt/profile
@@ -0,0 +1 @@
+../kernel/profile \ No newline at end of file