[PATCH] lib/core: Let ftrace know when the test started
Umesh Nerlige Ramappa
umesh.nerlige.ramappa at intel.com
Tue Dec 17 18:39:10 UTC 2024
It's useful to know the start and end of the test in ftrace to be able
to debug some issues. Not sure where to add igt_trace for end, so
posting this patch to get some comments.
Signed-off-by: Umesh Nerlige Ramappa <umesh.nerlige.ramappa at intel.com>
---
lib/igt_core.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/lib/igt_core.c b/lib/igt_core.c
index 407f7b551..6916d6ea4 100644
--- a/lib/igt_core.c
+++ b/lib/igt_core.c
@@ -574,6 +574,9 @@ static void _subtest_starting_message(enum _subtest_type subtest_type,
igt_info("Starting %s: %s\n",
subtest_type == _SUBTEST_TYPE_NORMAL ? "subtest" : "dynamic subtest",
name);
+ igt_trace("Starting %s: %s\n",
+ subtest_type == _SUBTEST_TYPE_NORMAL ? "subtest" : "dynamic subtest",
+ name);
fflush(stdout);
if (stderr_needs_sentinel)
fprintf(stderr, "Starting %s: %s\n",
--
2.38.1
More information about the igt-dev
mailing list