diff options
| -rw-r--r-- | tools/perf/util/evsel.c | 6 | ||||
| -rw-r--r-- | tools/perf/util/evsel.h | 5 |
2 files changed, 3 insertions, 8 deletions
diff --git a/tools/perf/util/evsel.c b/tools/perf/util/evsel.c index 8f0e9dd0377..876f639d69e 100644 --- a/tools/perf/util/evsel.c +++ b/tools/perf/util/evsel.c | |||
| @@ -78,7 +78,7 @@ static const char *perf_evsel__hw_names[PERF_COUNT_HW_MAX] = { | |||
| 78 | "ref-cycles", | 78 | "ref-cycles", |
| 79 | }; | 79 | }; |
| 80 | 80 | ||
| 81 | const char *__perf_evsel__hw_name(u64 config) | 81 | static const char *__perf_evsel__hw_name(u64 config) |
| 82 | { | 82 | { |
| 83 | if (config < PERF_COUNT_HW_MAX && perf_evsel__hw_names[config]) | 83 | if (config < PERF_COUNT_HW_MAX && perf_evsel__hw_names[config]) |
| 84 | return perf_evsel__hw_names[config]; | 84 | return perf_evsel__hw_names[config]; |
| @@ -140,7 +140,7 @@ static const char *perf_evsel__sw_names[PERF_COUNT_SW_MAX] = { | |||
| 140 | "emulation-faults", | 140 | "emulation-faults", |
| 141 | }; | 141 | }; |
| 142 | 142 | ||
| 143 | const char *__perf_evsel__sw_name(u64 config) | 143 | static const char *__perf_evsel__sw_name(u64 config) |
| 144 | { | 144 | { |
| 145 | if (config < PERF_COUNT_SW_MAX && perf_evsel__sw_names[config]) | 145 | if (config < PERF_COUNT_SW_MAX && perf_evsel__sw_names[config]) |
| 146 | return perf_evsel__sw_names[config]; | 146 | return perf_evsel__sw_names[config]; |
| @@ -219,7 +219,7 @@ int __perf_evsel__hw_cache_type_op_res_name(u8 type, u8 op, u8 result, | |||
| 219 | perf_evsel__hw_cache_op[op][1]); | 219 | perf_evsel__hw_cache_op[op][1]); |
| 220 | } | 220 | } |
| 221 | 221 | ||
| 222 | int __perf_evsel__hw_cache_name(u64 config, char *bf, size_t size) | 222 | static int __perf_evsel__hw_cache_name(u64 config, char *bf, size_t size) |
| 223 | { | 223 | { |
| 224 | u8 op, result, type = (config >> 0) & 0xff; | 224 | u8 op, result, type = (config >> 0) & 0xff; |
| 225 | const char *err = "unknown-ext-hardware-cache-type"; | 225 | const char *err = "unknown-ext-hardware-cache-type"; |
diff --git a/tools/perf/util/evsel.h b/tools/perf/util/evsel.h index c936feb4e0a..67cc5033d19 100644 --- a/tools/perf/util/evsel.h +++ b/tools/perf/util/evsel.h | |||
| @@ -95,11 +95,6 @@ const char *perf_evsel__hw_cache_result[PERF_COUNT_HW_CACHE_RESULT_MAX] | |||
| 95 | [PERF_EVSEL__MAX_ALIASES]; | 95 | [PERF_EVSEL__MAX_ALIASES]; |
| 96 | int __perf_evsel__hw_cache_type_op_res_name(u8 type, u8 op, u8 result, | 96 | int __perf_evsel__hw_cache_type_op_res_name(u8 type, u8 op, u8 result, |
| 97 | char *bf, size_t size); | 97 | char *bf, size_t size); |
| 98 | int __perf_evsel__hw_cache_name(u64 config, char *bf, size_t size); | ||
| 99 | |||
| 100 | const char *__perf_evsel__hw_name(u64 config); | ||
| 101 | const char *__perf_evsel__sw_name(u64 config); | ||
| 102 | |||
| 103 | const char *perf_evsel__name(struct perf_evsel *evsel); | 98 | const char *perf_evsel__name(struct perf_evsel *evsel); |
| 104 | 99 | ||
| 105 | int perf_evsel__alloc_fd(struct perf_evsel *evsel, int ncpus, int nthreads); | 100 | int perf_evsel__alloc_fd(struct perf_evsel *evsel, int ncpus, int nthreads); |
