From: Lionel Landwerlin Date: Wed, 14 Nov 2018 13:26:37 +0000 (+0000) Subject: intel/perf: add counter category to generated code X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fe8e8e509992884963e1a17286dd159971a54cf1;p=mesa.git intel/perf: add counter category to generated code Signed-off-by: Lionel Landwerlin Reviewed-by: Jason Ekstrand Part-of: --- diff --git a/src/intel/perf/gen_perf.h b/src/intel/perf/gen_perf.h index 6e02702ea00..3c6b9010bd7 100644 --- a/src/intel/perf/gen_perf.h +++ b/src/intel/perf/gen_perf.h @@ -164,6 +164,7 @@ struct gen_perf_query_counter { const char *name; const char *desc; const char *symbol_name; + const char *category; enum gen_perf_counter_type type; enum gen_perf_counter_data_type data_type; enum gen_perf_counter_units units; diff --git a/src/intel/perf/gen_perf.py b/src/intel/perf/gen_perf.py index a64d6ac3d5f..dfe8e4dd25f 100644 --- a/src/intel/perf/gen_perf.py +++ b/src/intel/perf/gen_perf.py @@ -383,6 +383,7 @@ def output_counter_report(set, counter, current_offset): c("counter->name = \"" + counter.get('name') + "\";\n") c("counter->desc = \"" + counter.get('description') + "\";\n") c("counter->symbol_name = \"" + counter.get('symbol_name') + "\";\n") + c("counter->category = \"" + counter.get('mdapi_group') + "\";\n") c("counter->type = GEN_PERF_COUNTER_TYPE_" + semantic_type_uc + ";\n") c("counter->data_type = GEN_PERF_COUNTER_DATA_TYPE_" + data_type_uc + ";\n") c("counter->units = GEN_PERF_COUNTER_UNITS_" + output_units(counter.get('units')) + ";\n")