[PATCH v7 10/10] drm/xe/guc: Add a helper function for dumping GuC log to dmesg

Julia Filipchuk julia.filipchuk at intel.com
Wed Sep 11 20:36:19 UTC 2024


> @@ -214,6 +214,24 @@ void xe_guc_log_snapshot_print(struct xe_guc_log_snapshot *snapshot, struct drm_
>  	}
>  }
>  
> +/**
> + * xe_guc_log_print_dmesg - dump a copy of the GuC log to dmesg
> + * @log: GuC log structure
> + */
> +void xe_guc_log_print_dmesg(struct xe_guc_log *log)
> +{
> +	struct xe_gt *gt = log_to_gt(log);
> +	static int g_count;
> +	struct drm_printer ip = xe_gt_info_printer(gt);
> +	struct drm_printer lp = drm_line_printer(&ip, "Capture", ++g_count);
Increment of non-assigned value "g_count". It is static so zero
allocated but suggest to assign to 0 for clarity.

Reviewed-by: Julia Filipchuk <julia.filipchuk at intel.com>



More information about the Intel-xe mailing list