Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] lib/core: Let ftrace know when the test started
@ 2024-12-17 18:39 Umesh Nerlige Ramappa
  2024-12-17 23:19 ` Dixit, Ashutosh
  0 siblings, 1 reply; 7+ messages in thread
From: Umesh Nerlige Ramappa @ 2024-12-17 18:39 UTC (permalink / raw)
  To: Ashutosh Dixit, igt-dev, kamil.konieczny

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@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


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2024-12-21  0:56 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-17 18:39 [PATCH] lib/core: Let ftrace know when the test started Umesh Nerlige Ramappa
2024-12-17 23:19 ` Dixit, Ashutosh
2024-12-18 19:13   ` Kamil Konieczny
2024-12-18 19:30     ` Dixit, Ashutosh
2024-12-18 19:31       ` Dixit, Ashutosh
2024-12-20 18:31         ` Kamil Konieczny
2024-12-21  0:56           ` Umesh Nerlige Ramappa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox