Skip to content

Commit d6211ad

Browse files
author
Saulo Aldighieri Moraes
committed
Fix std::vector with const std::pair
Signed-off-by: Saulo Aldighieri Moraes <saulo @ gmx com>
1 parent 7afb175 commit d6211ad

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

mali_counter.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030

3131
#include <map>
3232
#include <vector>
33+
#include <algorithm>
3334

3435
/** Instrument implementation for mali hw counters. */
3536
class MaliCounter : public Instrument
@@ -61,11 +62,11 @@ class MaliCounter : public Instrument
6162
const uint32_t *get_counters(mali_userspace::MaliCounterBlockName block, int index = -1) const;
6263
int find_counter_index_by_name(mali_userspace::MaliCounterBlockName block, const char *name);
6364

64-
const std::vector<const std::pair<const char *, const char *>> _jm_counter_names{
65+
const std::vector<std::pair<const char *, const char *>> _jm_counter_names{
6566
{"GPU_ACTIVE", "cycles"},
6667
{"JS0_JOBS", "jobs"},
6768
{"JS1_JOBS", "jobs"}};
68-
const std::vector<const std::pair<const char *, const char *>> _mmu_counter_names{
69+
const std::vector<std::pair<const char *, const char *>> _mmu_counter_names{
6970
{"L2_READ_LOOKUP", "cache lookups"},
7071
{"L2_EXT_READ", "transactions"},
7172
{"L2_EXT_AR_STALL", "stall cycles"},

0 commit comments

Comments
 (0)