intel/perf: store query symbol name
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Mon, 24 Aug 2020 13:42:42 +0000 (16:42 +0300)
committerMarge Bot <eric+marge@anholt.net>
Mon, 24 Aug 2020 18:52:23 +0000 (18:52 +0000)
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Kenneth Graunke's avatarKenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6438>

src/intel/perf/gen_perf.h
src/intel/perf/gen_perf.py

index 49ea2eb9e81f50229680448870438ac5a78827f0..073236c431752baf6e0f065947ca12cc1171c3f8 100644 (file)
@@ -207,6 +207,7 @@ struct gen_perf_query_info {
       GEN_PERF_QUERY_TYPE_PIPELINE,
    } kind;
    const char *name;
+   const char *symbol_name;
    const char *guid;
    struct gen_perf_query_counter *counters;
    int n_counters;
index e714e1e802dd97ed94b2e6b0a064afe09b37b78a..a64cb86a5f6421be323d4607d00fca39d26e3d2b 100644 (file)
@@ -679,6 +679,7 @@ def main():
             c("\n")
             c("query->kind = GEN_PERF_QUERY_TYPE_OA;\n")
             c("query->name = \"" + set.name + "\";\n")
+            c("query->symbol_name = \"" + set.symbol_name + "\";\n")
             c("query->guid = \"" + set.hw_config_guid + "\";\n")
 
             c("query->counters = rzalloc_array(query, struct gen_perf_query_counter, %u);" % len(counters))