Skip to content

Commit 201b733

Browse files
committed
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>
1 parent 5d2074e commit 201b733

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

‎tools/perf/util/evsel.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ struct perf_evsel *perf_evsel__new(struct perf_event_attr *attr, int idx)
7070
return evsel;
7171
}
7272

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)
7474
{
7575
int fd, n;
7676
char *filename;

‎tools/perf/util/evsel.h‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,9 @@ struct perf_record_opts;
8383

8484
struct perf_evsel *perf_evsel__new(struct perf_event_attr *attr, int idx);
8585
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+
8689
void perf_evsel__init(struct perf_evsel *evsel,
8790
struct perf_event_attr *attr, int idx);
8891
void perf_evsel__exit(struct perf_evsel *evsel);

0 commit comments

Comments
 (0)