aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf
diff options
context:
space:
mode:
authorJiri Olsa <jolsa@kernel.org>2016-07-10 07:07:53 -0400
committerArnaldo Carvalho de Melo <acme@redhat.com>2016-07-12 15:13:58 -0400
commit7cb5c5acaba9fa0b90ca11275f19131d3eca35c2 (patch)
tree040bc6da8d09a50bcb9196a2077438de95ec40cd /tools/perf
parentcae15db74999edb96dd9f5bbd4d55849391dd92b (diff)
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')
-rw-r--r--tools/perf/util/evlist.c4
-rw-r--r--tools/perf/util/evlist.h3
2 files changed, 5 insertions, 2 deletions
diff --git a/tools/perf/util/evlist.c b/tools/perf/util/evlist.c
index f2d478df8c3e..862e69c2690d 100644
--- a/tools/perf/util/evlist.c
+++ b/tools/perf/util/evlist.c
@@ -651,8 +651,8 @@ static int perf_evlist__event2id(struct perf_evlist *evlist,
651 return 0; 651 return 0;
652} 652}
653 653
654static struct perf_evsel *perf_evlist__event2evsel(struct perf_evlist *evlist, 654struct perf_evsel *perf_evlist__event2evsel(struct perf_evlist *evlist,
655 union perf_event *event) 655 union perf_event *event)
656{ 656{
657 struct perf_evsel *first = perf_evlist__first(evlist); 657 struct perf_evsel *first = perf_evlist__first(evlist);
658 struct hlist_head *head; 658 struct hlist_head *head;
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);
323 323
324struct perf_evsel * 324struct perf_evsel *
325perf_evlist__find_evsel_by_str(struct perf_evlist *evlist, const char *str); 325perf_evlist__find_evsel_by_str(struct perf_evlist *evlist, const char *str);
326
327struct perf_evsel *perf_evlist__event2evsel(struct perf_evlist *evlist,
328 union perf_event *event);
326#endif /* __PERF_EVLIST_H */ 329#endif /* __PERF_EVLIST_H */