diff options
author | Jiri Olsa <jolsa@kernel.org> | 2016-07-10 13:07:53 +0200 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2016-07-12 16:13:58 -0300 |
commit | 7cb5c5acaba9fa0b90ca11275f19131d3eca35c2 (patch) | |
tree | 040bc6da8d09a50bcb9196a2077438de95ec40cd /tools/perf/util/evlist.h | |
parent | cae15db74999edb96dd9f5bbd4d55849391dd92b (diff) | |
download | linux-7cb5c5acaba9fa0b90ca11275f19131d3eca35c2.tar.gz linux-7cb5c5acaba9fa0b90ca11275f19131d3eca35c2.tar.bz2 linux-7cb5c5acaba9fa0b90ca11275f19131d3eca35c2.zip |
perf evlist: Make event2evsel public
It will be used outside of evlist.c object in folowing patches.
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Cc: David Ahern <dsahern@gmail.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1468148882-10362-2-git-send-email-jolsa@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/evlist.h')
-rw-r--r-- | tools/perf/util/evlist.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/perf/util/evlist.h b/tools/perf/util/evlist.h index 872912b392c9..afd087761a47 100644 --- a/tools/perf/util/evlist.h +++ b/tools/perf/util/evlist.h @@ -323,4 +323,7 @@ void perf_event_attr__set_max_precise_ip(struct perf_event_attr *attr); struct perf_evsel * perf_evlist__find_evsel_by_str(struct perf_evlist *evlist, const char *str); + +struct perf_evsel *perf_evlist__event2evsel(struct perf_evlist *evlist, + union perf_event *event); #endif /* __PERF_EVLIST_H */ |