Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH i-g-t v2] lib/igt_core: Add ftrace logs at test boundaries
@ 2025-02-21 22:38 Umesh Nerlige Ramappa
  2025-02-21 23:52 ` ✓ i915.CI.BAT: success for lib/igt_core: Add ftrace logs at test boundaries (rev2) Patchwork
                   ` (6 more replies)
  0 siblings, 7 replies; 10+ messages in thread
From: Umesh Nerlige Ramappa @ 2025-02-21 22:38 UTC (permalink / raw)
  To: igt-dev, kamil.konieczny, ashutosh.dixit, lucas.demarchi,
	adrinael

When looking at kernel ftrace output, it would really help to see the
test start/exit boundaries.

v2: Fix copy paste error

Signed-off-by: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
---
 lib/igt_core.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/lib/igt_core.c b/lib/igt_core.c
index b95db1b25..9702a9417 100644
--- a/lib/igt_core.c
+++ b/lib/igt_core.c
@@ -1324,6 +1324,7 @@ out:
 	if (!igt_only_list_subtests()) {
 		bind_fbcon(false);
 		igt_kmsg(KMSG_INFO "%s: executing\n", command_str);
+		igt_trace("%s: executing\n", command_str);
 		print_version();
 		igt_srandom();
 
@@ -1528,6 +1529,7 @@ bool __igt_run_subtest(const char *subtest_name, const char *file, const int lin
 
 	igt_kmsg(KMSG_INFO "%s: starting subtest %s\n",
 		 command_str, subtest_name);
+	igt_trace("%s: starting subtest %s\n", command_str, subtest_name);
 	_subtest_starting_message(_SUBTEST_TYPE_NORMAL, subtest_name);
 
 	_igt_log_buffer_reset();
@@ -1681,6 +1683,8 @@ __noreturn static void exit_subtest(const char *result)
 				igt_time_elapsed(thentime, &now));
 	igt_kmsg(KMSG_INFO "%s: finished subtest %s, %s\n",
 		 command_str, *subtest_name, result);
+	igt_trace("%s: finished subtest %s, %s\n",
+		  command_str, *subtest_name, result);
 
 	igt_terminate_spins();
 
-- 
2.34.1


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

end of thread, other threads:[~2025-02-24 13:44 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-21 22:38 [PATCH i-g-t v2] lib/igt_core: Add ftrace logs at test boundaries Umesh Nerlige Ramappa
2025-02-21 23:52 ` ✓ i915.CI.BAT: success for lib/igt_core: Add ftrace logs at test boundaries (rev2) Patchwork
2025-02-21 23:58 ` ✓ Xe.CI.BAT: " Patchwork
2025-02-22  0:18 ` [PATCH i-g-t v2] lib/igt_core: Add ftrace logs at test boundaries Dixit, Ashutosh
2025-02-22  1:50 ` ✗ i915.CI.Full: failure for lib/igt_core: Add ftrace logs at test boundaries (rev2) Patchwork
2025-02-24 12:08   ` Kamil Konieczny
2025-02-22 13:38 ` ✗ Xe.CI.Full: " Patchwork
2025-02-24 12:09   ` Kamil Konieczny
2025-02-24 10:41 ` [PATCH i-g-t v2] lib/igt_core: Add ftrace logs at test boundaries Krzysztof Karas
2025-02-24 12:01 ` Kamil Konieczny

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