summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLionel Landwerlin <[email protected]>2018-10-05 17:29:17 +0100
committerLionel Landwerlin <[email protected]>2019-04-17 14:10:42 +0100
commitbaf59e40cd1c3d19b299e5ac6bdf3af9e241c6b2 (patch)
tree469b8dce98cebb01988802bc70d94653214d04de /src
parent93dbe52ab04a0061f893aaa4e9fdbb385b8b2fb0 (diff)
intel/perf: constify accumlator parameter
Signed-off-by: Lionel Landwerlin <[email protected]> Reviewed-by: Mark Janes <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/intel/perf/gen_perf.h4
-rw-r--r--src/intel/perf/gen_perf.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/intel/perf/gen_perf.h b/src/intel/perf/gen_perf.h
index 6e7a6d36c15..64db89ed6aa 100644
--- a/src/intel/perf/gen_perf.h
+++ b/src/intel/perf/gen_perf.h
@@ -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;
};
};
diff --git a/src/intel/perf/gen_perf.py b/src/intel/perf/gen_perf.py
index f7d0b86b2cf..8874845613a 100644
--- a/src/intel/perf/gen_perf.py
+++ b/src/intel/perf/gen_perf.py
@@ -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("{")