summaryrefslogtreecommitdiffstats
path: root/tools/perf/lib/include/perf/evlist.h
diff options
context:
space:
mode:
authorJiri Olsa <jolsa@kernel.org>2019-07-21 13:24:32 +0200
committerArnaldo Carvalho de Melo <acme@redhat.com>2019-07-29 18:34:45 -0300
commit634912d61ccc6bfeebb87716c276fbea20f63bdc (patch)
treec910e67f79eed9dabb9e1f70e5904a6d5037d910 /tools/perf/lib/include/perf/evlist.h
parent93bce7e5bfcd570e9250c974b5c2c91d6b8332ef (diff)
downloadlinux-stable-634912d61ccc6bfeebb87716c276fbea20f63bdc.tar.gz
linux-stable-634912d61ccc6bfeebb87716c276fbea20f63bdc.tar.bz2
linux-stable-634912d61ccc6bfeebb87716c276fbea20f63bdc.zip
libperf: Add perf_evlist__new() function
Add perf_evlist__new() function to create and init a perf_evlist struct dynamicaly. Signed-off-by: Jiri Olsa <jolsa@kernel.org> Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com> Cc: Alexey Budankov <alexey.budankov@linux.intel.com> Cc: Andi Kleen <ak@linux.intel.com> Cc: Michael Petlan <mpetlan@redhat.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Link: http://lkml.kernel.org/r/20190721112506.12306-46-jolsa@kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/lib/include/perf/evlist.h')
-rw-r--r--tools/perf/lib/include/perf/evlist.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/perf/lib/include/perf/evlist.h b/tools/perf/lib/include/perf/evlist.h
index e0c87995c6ff..7255a60869a1 100644
--- a/tools/perf/lib/include/perf/evlist.h
+++ b/tools/perf/lib/include/perf/evlist.h
@@ -12,5 +12,6 @@ LIBPERF_API void perf_evlist__add(struct perf_evlist *evlist,
struct perf_evsel *evsel);
LIBPERF_API void perf_evlist__remove(struct perf_evlist *evlist,
struct perf_evsel *evsel);
+LIBPERF_API struct perf_evlist *perf_evlist__new(void);
#endif /* __LIBPERF_EVLIST_H */