aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/evsel.h
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2012-06-12 11:34:58 -0400
committerArnaldo Carvalho de Melo <acme@redhat.com>2012-06-19 12:06:20 -0400
commit7289f83cceb437ca56c77eb45b8b1cda15e2e476 (patch)
tree5f4e98492f34a80b5332db8336e7749091d183c1 /tools/perf/util/evsel.h
parenta446083604fe2bafe0f46b1e95b22f7b06e3a63f (diff)
perf tools: Move all users of event_name to perf_evsel__name
So that we don't use global variables that could make us misreport event names when having a multi window top, for instance. 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-mccancovi1u0wdkg8ncth509@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/evsel.h')
-rw-r--r--tools/perf/util/evsel.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/util/evsel.h b/tools/perf/util/evsel.h
index 9ae64d9622bc..c936feb4e0a6 100644
--- a/tools/perf/util/evsel.h
+++ b/tools/perf/util/evsel.h
@@ -100,7 +100,7 @@ int __perf_evsel__hw_cache_name(u64 config, char *bf, size_t size);
100const char *__perf_evsel__hw_name(u64 config); 100const char *__perf_evsel__hw_name(u64 config);
101const char *__perf_evsel__sw_name(u64 config); 101const char *__perf_evsel__sw_name(u64 config);
102 102
103int perf_evsel__name(struct perf_evsel *evsel, char *bf, size_t size); 103const char *perf_evsel__name(struct perf_evsel *evsel);
104 104
105int perf_evsel__alloc_fd(struct perf_evsel *evsel, int ncpus, int nthreads); 105int perf_evsel__alloc_fd(struct perf_evsel *evsel, int ncpus, int nthreads);
106int perf_evsel__alloc_id(struct perf_evsel *evsel, int ncpus, int nthreads); 106int perf_evsel__alloc_id(struct perf_evsel *evsel, int ncpus, int nthreads);