perf evsel: Make some methods private
Commit-ID: dd4f52232c60bcb41205a67d2df2ac0ecdfe3683 Gitweb: http://git.kernel.org/tip/dd4f52232c60bcb41205a67d2df2ac0ecdfe3683 Author: Arnaldo Carvalho de Melo <[email protected]> AuthorDate: Wed, 13 Jun 2012 15:52:42 -0300 Committer: Arnaldo Carvalho de Melo <[email protected]> CommitDate: Tue, 19 Jun 2012 13:06:22 -0300
perf evsel: Make some methods private
Now that __event_name is gone, no need to export __perf_evsel__[hs]w_name().
Cc David Ahern <[email protected]>
Cc Frederic Weisbecker <[email protected]>
Cc Jiri Olsa <[email protected]>
Cc Mike Galbraith <[email protected]>
Cc Namhyung Kim <[email protected]>
Cc Paul Mackerras <[email protected]>
Cc Peter Zijlstra <[email protected]>
Cc Stephane Eranian <[email protected]>
Signed-off-by Arnaldo Carvalho de Melo <[email protected]>
--- tools/perf/util/evsel.c | 6 +++--- tools/perf/util/evsel.h | 5 ----- 2 files changed, 3 insertions(+), 8 deletions(-)
tools/perf/util/evsel.c +3 -3
@@ -78,7 +78,7 @@ static const char *perf_evsel__hw_names[PERF_COUNT_HW_MAX] = { "ref-cycles", }; -const char *__perf_evsel__hw_name (u64 config) +static const char *__perf_evsel__hw_name (u64 config) {if (config <PERF_COUNT_HW_MAX && perf_evsel__hw_names[config])return perf_evsel__hw_names[config];
@@ -140,7 +140,7 @@ static const char *perf_evsel__sw_names[PERF_COUNT_SW_MAX] = { "emulation-faults", }; -const char *__perf_evsel__sw_name (u64 config) +static const char *__perf_evsel__sw_name (u64 config) {if (config <PERF_COUNT_SW_MAX && perf_evsel__sw_names[config])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, perf_evsel__hw_cache_op[op][1]); } -int __perf_evsel__hw_cache_name (u64 config,char *bf,size_t size) +static int __perf_evsel__hw_cache_name (u64 config,char *bf,size_t size) {u8 op, result, type = (config >>0 ) &0xff ;const char *err ="unknown-ext-hardware-cache-type" ;
tools/perf/util/evsel.h +0 -5
@@ -95,11 +95,6 @@ const char *perf_evsel__hw_cache_result[PERF_COUNT_HW_CACHE_RESULT_MAX] [PERF_EVSEL__MAX_ALIASES ];int __perf_evsel__hw_cache_type_op_res_name (u8 type,u8 op,u8 result,char *bf,size_t size); -int __perf_evsel__hw_cache_name (u64 config,char *bf,size_t size); - -const char *__perf_evsel__hw_name (u64 config); -const char *__perf_evsel__sw_name (u64 config); -const char *perf_evsel__name (struct perf_evsel *evsel);int perf_evsel__alloc_fd (struct perf_evsel *evsel,int ncpus,int nthreads);