Commit c617e3a6 authored by Lionel Landwerlin's avatar Lionel Landwerlin
Browse files

intel/perf: add counter category to generated code


Signed-off-by: Lionel Landwerlin's avatarLionel Landwerlin <lionel.g.landwerlin@intel.com>
parent ae5868a9
Pipeline #31355 passed with stages
in 24 minutes and 11 seconds
...@@ -136,6 +136,7 @@ struct gen_perf_query_counter { ...@@ -136,6 +136,7 @@ struct gen_perf_query_counter {
const char *name; const char *name;
const char *desc; const char *desc;
const char *symbol_name; const char *symbol_name;
const char *category;
enum gen_perf_counter_type type; enum gen_perf_counter_type type;
enum gen_perf_counter_data_type data_type; enum gen_perf_counter_data_type data_type;
enum gen_perf_counter_units units; enum gen_perf_counter_units units;
......
...@@ -380,6 +380,7 @@ def output_counter_report(set, counter, current_offset): ...@@ -380,6 +380,7 @@ def output_counter_report(set, counter, current_offset):
c("counter->name = \"" + counter.get('name') + "\";\n") c("counter->name = \"" + counter.get('name') + "\";\n")
c("counter->desc = \"" + counter.get('description') + "\";\n") c("counter->desc = \"" + counter.get('description') + "\";\n")
c("counter->symbol_name = \"" + counter.get('symbol_name') + "\";\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->type = GEN_PERF_COUNTER_TYPE_" + semantic_type_uc + ";\n")
c("counter->data_type = GEN_PERF_COUNTER_DATA_TYPE_" + data_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") c("counter->units = GEN_PERF_COUNTER_UNITS_" + output_units(counter.get('units')) + ";\n")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment