[igt-dev] [PATCH i-g-t] lib: Add kmsg for igt_abort

Kamil Konieczny kamil.konieczny at linux.intel.com
Mon Jun 12 16:53:02 UTC 2023


From: Chris Wilson <chris.p.wilson at linux.intel.com>

Include a dmesg telltale for when the test run aborts.

Signed-off-by: Chris Wilson <chris.p.wilson at linux.intel.com>
Signed-off-by: Kamil Konieczny <kamil.konieczny at linux.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 cd9c2002d..4aaaeddbc 100644
--- a/lib/igt_core.c
+++ b/lib/igt_core.c
@@ -2202,6 +2202,9 @@ void __igt_abort(const char *domain, const char *file, const int line,
 
 	igt_is_aborting = true;
 
+	igt_kmsg(KMSG_ERR "%s[%d]: Abort in function %s, file %s:%i, %s\n",
+		 command_str, getpid(), func, file, line, expression);
+
 	igt_log(domain, IGT_LOG_CRITICAL,
 		"Test abort in function %s, file %s:%i:\n", func, file,
 		line);
-- 
2.39.2



More information about the igt-dev mailing list