Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Kamil Konieczny <kamil.konieczny@linux.intel.com>
To: igt-dev@lists.freedesktop.org
Cc: Chris Wilson <chris.p.wilson@linux.intel.com>
Subject: [igt-dev] [PATCH i-g-t] lib: Add kmsg for igt_abort
Date: Mon, 12 Jun 2023 18:53:02 +0200	[thread overview]
Message-ID: <20230612165302.28718-1-kamil.konieczny@linux.intel.com> (raw)

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

Include a dmesg telltale for when the test run aborts.

Signed-off-by: Chris Wilson <chris.p.wilson@linux.intel.com>
Signed-off-by: Kamil Konieczny <kamil.konieczny@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

             reply	other threads:[~2023-06-12 16:53 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-12 16:53 Kamil Konieczny [this message]
2023-06-12 18:03 ` [igt-dev] ✓ Fi.CI.BAT: success for lib: Add kmsg for igt_abort Patchwork
2023-06-13  2:21 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
2023-06-14 11:24 ` [igt-dev] [PATCH i-g-t] " Zbigniew Kempczyński

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230612165302.28718-1-kamil.konieczny@linux.intel.com \
    --to=kamil.konieczny@linux.intel.com \
    --cc=chris.p.wilson@linux.intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox