From: Arnaldo Carvalho de Melo Date: Wed, 26 Sep 2012 23:24:19 +0000 (-0300) Subject: perf evsel: Export the event_format constructor X-Git-Tag: upstream/snapshot3+hdmi~6017^2~42^2~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=201b7334dc4e977479eb22b106ee8ec506e5e55c;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git 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 Cc: Frederic Weisbecker Cc: Jiri Olsa Cc: Mike Galbraith Cc: Namhyung Kim Cc: Paul Mackerras Cc: Peter Zijlstra Cc: Stephane Eranian Link: http://lkml.kernel.org/n/tip-v9x3q9rv4caxtox7wtjpchq5@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- diff --git a/tools/perf/util/evsel.c b/tools/perf/util/evsel.c index e992b67..ffdd94e 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) return evsel; } -static struct event_format *event_format__new(const char *sys, const char *name) +struct event_format *event_format__new(const char *sys, const char *name) { int fd, n; char *filename; diff --git a/tools/perf/util/evsel.h b/tools/perf/util/evsel.h index 2c49050..3ead0d5 100644 --- a/tools/perf/util/evsel.h +++ b/tools/perf/util/evsel.h @@ -83,6 +83,9 @@ struct perf_record_opts; struct perf_evsel *perf_evsel__new(struct perf_event_attr *attr, int idx); struct perf_evsel *perf_evsel__newtp(const char *sys, const char *name, int idx); + +struct event_format *event_format__new(const char *sys, const char *name); + void perf_evsel__init(struct perf_evsel *evsel, struct perf_event_attr *attr, int idx); void perf_evsel__exit(struct perf_evsel *evsel);