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

Zbigniew Kempczyński zbigniew.kempczynski at intel.com
Wed Jun 14 11:24:40 UTC 2023


On Mon, Jun 12, 2023 at 06:53:02PM +0200, Kamil Konieczny wrote:
> 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>

LGTM:

Reviewed-by: Zbigniew Kempczyński <zbigniew.kempczynski at intel.com>

--
Zbigniew

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