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;
};
};
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("{")