i965: perf: add debug messages for loaded configs
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Tue, 6 Feb 2018 17:00:58 +0000 (17:00 +0000)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Thu, 8 Feb 2018 10:51:01 +0000 (10:51 +0000)
This helps figuring out potential problems when metrics don't show up
on frameretrace for example.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
src/mesa/drivers/dri/i965/brw_performance_query.c

index f2aa2b8469dd361ba2f59ea8c815cd40d18f0762..5b8f30db2f8cd825fd99d33de175802c0b0bd15e 100644 (file)
@@ -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);
    }
 }