[Mesa-dev] [PATCH 3/3] radeonsi: print the command line to VM fault reports

Nicolai Hähnle nhaehnle at gmail.com
Tue Aug 2 13:51:50 UTC 2016


Patch 2 & 3:

Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>

On 30.07.2016 17:22, Marek Olšák wrote:
> From: Marek Olšák <marek.olsak at amd.com>
>
> ---
>  src/gallium/drivers/radeonsi/si_debug.c | 3 +++
>  1 file changed, 3 insertions(+)
>
> diff --git a/src/gallium/drivers/radeonsi/si_debug.c b/src/gallium/drivers/radeonsi/si_debug.c
> index e030f48..00a3b13 100644
> --- a/src/gallium/drivers/radeonsi/si_debug.c
> +++ b/src/gallium/drivers/radeonsi/si_debug.c
> @@ -805,6 +805,7 @@ void si_check_vm_faults(struct r600_common_context *ctx,
>  	struct pipe_screen *screen = sctx->b.b.screen;
>  	FILE *f;
>  	uint32_t addr;
> +	char cmd_line[4096];
>
>  	if (!si_vm_fault_occured(sctx, &addr))
>  		return;
> @@ -814,6 +815,8 @@ void si_check_vm_faults(struct r600_common_context *ctx,
>  		return;
>
>  	fprintf(f, "VM fault report.\n\n");
> +	if (os_get_process_cmd_line(cmd_line, sizeof(cmd_line)))
> +		fprintf(f, "Command: %s\n", cmd_line);
>  	fprintf(f, "Driver vendor: %s\n", screen->get_vendor(screen));
>  	fprintf(f, "Device vendor: %s\n", screen->get_device_vendor(screen));
>  	fprintf(f, "Device name: %s\n\n", screen->get_name(screen));
>


More information about the mesa-dev mailing list