[igt-dev] [PATCH i-g-t 2/2] i915/pm_rpm: Enable ftrace logging

Chris Wilson chris at chris-wilson.co.uk
Sat Mar 16 09:25:05 UTC 2019


Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
---
 tests/i915/i915_pm_rpm.c | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/tests/i915/i915_pm_rpm.c b/tests/i915/i915_pm_rpm.c
index 759c76eaf..b5e5f63ca 100644
--- a/tests/i915/i915_pm_rpm.c
+++ b/tests/i915/i915_pm_rpm.c
@@ -46,6 +46,7 @@
 #include <drm.h>
 
 #include "igt.h"
+#include "igt_ftrace.h"
 #include "igt_kmod.h"
 #include "igt_sysfs.h"
 #include "igt_debugfs.h"
@@ -1975,8 +1976,10 @@ int main(int argc, char *argv[])
 	/* Skip instead of failing in case the machine is not prepared to reach
 	 * PC8+. We don't want bug reports from cases where the machine is just
 	 * not properly configured. */
-	igt_fixture
+	igt_fixture {
+		igt_ftrace_enable();
 		igt_require(setup_environment());
+	}
 
 	if (stay)
 		igt_subtest("stay")
@@ -2118,5 +2121,9 @@ int main(int argc, char *argv[])
 		igt_i915_driver_unload();
 	}
 
+	igt_fixture {
+		igt_ftrace_disable();
+	}
+
 	igt_exit();
 }
-- 
2.20.1



More information about the igt-dev mailing list