[Mesa-dev] [PATCH] i965: perf: add debug messages for loaded configs

Tapani Pälli tapani.palli at intel.com
Wed Feb 7 07:07:10 UTC 2018


Reviewed-by: Tapani Pälli <tapani.palli at intel.com>

On 06.02.2018 19:06, Lionel Landwerlin wrote:
> This helps figuring out potential problems when metrics don't show up
> on frameretrace for example.
> 
> Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
> ---
>   src/mesa/drivers/dri/i965/brw_performance_query.c | 2 ++
>   1 file changed, 2 insertions(+)
> 
> diff --git a/src/mesa/drivers/dri/i965/brw_performance_query.c b/src/mesa/drivers/dri/i965/brw_performance_query.c
> index f2aa2b8469d..5b8f30db2f8 100644
> --- a/src/mesa/drivers/dri/i965/brw_performance_query.c
> +++ b/src/mesa/drivers/dri/i965/brw_performance_query.c
> @@ -1871,6 +1871,7 @@ init_oa_configs(struct brw_context *brw, const char *sysfs_dev_dir)
>   
>         /* Don't recreate already loaded configs. */
>         if (read_file_uint64(config_path, &config_id)) {
> +         DBG("metric set: %s (already loaded)\n", query->guid);
>            register_oa_config(brw, query, config_id);
>            continue;
>         }
> @@ -1896,6 +1897,7 @@ init_oa_configs(struct brw_context *brw, const char *sysfs_dev_dir)
>         }
>   
>         register_oa_config(brw, query, config_id);
> +      DBG("metric set: %s (added)\n", query->guid);
>      }
>   }
>   
> 


More information about the mesa-dev mailing list