perf evlist: Factor perf_evlist__(enable|disable) functions
authorJiri Olsa <jolsa@kernel.org>
Thu, 3 Dec 2015 09:06:42 +0000 (10:06 +0100)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 7 Dec 2015 21:12:58 +0000 (18:12 -0300)
commit3e27c92081131738fa4d7dd71673aa6e8c24866d
tree559c5bf5d76d3d71bc5316a7e6e7c9fc74d87109
parente98a4cbb01e0ba1110eba5166a425b3eab9b2244
perf evlist: Factor perf_evlist__(enable|disable) functions

Use perf_evsel__(enable|disable) functions in perf_evlist__(enable|disable)
functions in order to centralize ioctl enable/disable calls. This way we
eliminate 2 places calling directly ioctl.

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1449133606-14429-4-git-send-email-jolsa@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/evlist.c