diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2012-06-13 14:52:42 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2012-06-19 12:06:22 -0400 |
commit | dd4f52232c60bcb41205a67d2df2ac0ecdfe3683 (patch) | |
tree | 2b725dd77e7ba45228251aa1f89d52b95413a913 /tools/perf/util/evsel.c | |
parent | a9c34a9f9c677fcbe06bd3eda8d6caa3487b4a65 (diff) |
perf evsel: Make some methods private
Now that __event_name is gone, no need to export __perf_evsel__[hs]w_name().
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Namhyung Kim <namhyung@gmail.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/n/tip-rpjnarbt83nu9uowrfatmy12@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/evsel.c')
-rw-r--r-- | tools/perf/util/evsel.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/perf/util/evsel.c b/tools/perf/util/evsel.c index 8f0e9dd03775..876f639d69ed 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"; |