diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2012-09-26 19:24:19 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2012-09-26 19:24:19 -0400 |
commit | 201b7334dc4e977479eb22b106ee8ec506e5e55c (patch) | |
tree | 866ef632c031fcc0eaa0f45b93440c7008ed7e0c /tools/perf | |
parent | 5d2074ea4fdb28b2199958f42edf914d27c926f6 (diff) |
perf evsel: Export the event_format constructor
It'll be needed in the next patches, where it'll be not associated
directly to an evsel.
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-v9x3q9rv4caxtox7wtjpchq5@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf')
-rw-r--r-- | tools/perf/util/evsel.c | 2 | ||||
-rw-r--r-- | tools/perf/util/evsel.h | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/tools/perf/util/evsel.c b/tools/perf/util/evsel.c index e992b67e0f3a..ffdd94e9c9c3 100644 --- a/tools/perf/util/evsel.c +++ b/tools/perf/util/evsel.c | |||
@@ -70,7 +70,7 @@ struct perf_evsel *perf_evsel__new(struct perf_event_attr *attr, int idx) | |||
70 | return evsel; | 70 | return evsel; |
71 | } | 71 | } |
72 | 72 | ||
73 | static struct event_format *event_format__new(const char *sys, const char *name) | 73 | struct event_format *event_format__new(const char *sys, const char *name) |
74 | { | 74 | { |
75 | int fd, n; | 75 | int fd, n; |
76 | char *filename; | 76 | char *filename; |
diff --git a/tools/perf/util/evsel.h b/tools/perf/util/evsel.h index 2c4905020105..3ead0d59c03d 100644 --- a/tools/perf/util/evsel.h +++ b/tools/perf/util/evsel.h | |||
@@ -83,6 +83,9 @@ struct perf_record_opts; | |||
83 | 83 | ||
84 | struct perf_evsel *perf_evsel__new(struct perf_event_attr *attr, int idx); | 84 | struct perf_evsel *perf_evsel__new(struct perf_event_attr *attr, int idx); |
85 | struct perf_evsel *perf_evsel__newtp(const char *sys, const char *name, int idx); | 85 | struct perf_evsel *perf_evsel__newtp(const char *sys, const char *name, int idx); |
86 | |||
87 | struct event_format *event_format__new(const char *sys, const char *name); | ||
88 | |||
86 | void perf_evsel__init(struct perf_evsel *evsel, | 89 | void perf_evsel__init(struct perf_evsel *evsel, |
87 | struct perf_event_attr *attr, int idx); | 90 | struct perf_event_attr *attr, int idx); |
88 | void perf_evsel__exit(struct perf_evsel *evsel); | 91 | void perf_evsel__exit(struct perf_evsel *evsel); |