aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/lib/include
diff options
context:
space:
mode:
authorJiri Olsa <[email protected]>2019-07-21 13:24:56 +0200
committerArnaldo Carvalho de Melo <[email protected]>2019-07-29 18:34:46 -0300
commitfcc97c3e7a9d6fd3fda7674f52fb005f4e8453e7 (patch)
tree2589fa21052a15614638bcd38e444fd62269dde6 /tools/perf/lib/include
parent80dc2b3e257cbd62e1cd5b18a6581f231c828c81 (diff)
libperf: Adopt perf_evlist__enable()/disable() functions from perf
Adopt the following functions from tools/perf: perf_evlist__enable() perf_evlist__disable() Signed-off-by: Jiri Olsa <[email protected]> Cc: Alexander Shishkin <[email protected]> Cc: Alexey Budankov <[email protected]> Cc: Andi Kleen <[email protected]> Cc: Michael Petlan <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Peter Zijlstra <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/lib/include')
-rw-r--r--tools/perf/lib/include/perf/evlist.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/perf/lib/include/perf/evlist.h b/tools/perf/lib/include/perf/evlist.h
index 6d3dda743541..38365f8f3fba 100644
--- a/tools/perf/lib/include/perf/evlist.h
+++ b/tools/perf/lib/include/perf/evlist.h
@@ -20,6 +20,8 @@ LIBPERF_API struct perf_evsel* perf_evlist__next(struct perf_evlist *evlist,
struct perf_evsel *evsel);
LIBPERF_API int perf_evlist__open(struct perf_evlist *evlist);
LIBPERF_API void perf_evlist__close(struct perf_evlist *evlist);
+LIBPERF_API void perf_evlist__enable(struct perf_evlist *evlist);
+LIBPERF_API void perf_evlist__disable(struct perf_evlist *evlist);
#define perf_evlist__for_each_evsel(evlist, pos) \
for ((pos) = perf_evlist__next((evlist), NULL); \