intel/perf: constify accumlator parameter

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Mark Janes <mark.a.janes@intel.com>
This commit is contained in:
Lionel Landwerlin 2018-10-05 17:29:17 +01:00
parent 93dbe52ab0
commit baf59e40cd
2 changed files with 3 additions and 3 deletions

View file

@ -110,10 +110,10 @@ struct gen_perf_query_counter {
union {
uint64_t (*oa_counter_read_uint64)(struct gen_perf *perf,
const struct gen_perf_query_info *query,
uint64_t *accumulator);
const uint64_t *accumulator);
float (*oa_counter_read_float)(struct gen_perf *perf,
const struct gen_perf_query_info *query,
uint64_t *accumulator);
const uint64_t *accumulator);
struct gen_pipeline_stat pipeline_stat;
};
};

View file

@ -281,7 +281,7 @@ def output_counter_read(gen, set, counter):
c(counter.read_sym + "(MAYBE_UNUSED struct gen_perf *perf,\n")
c_indent(len(counter.read_sym) + 1)
c("const struct gen_perf_query_info *query,\n")
c("uint64_t *accumulator)\n")
c("const uint64_t *accumulator)\n")
c_outdent(len(counter.read_sym) + 1)
c("{")