perf evsel: Introduce disable() method
authorJiri Olsa <jolsa@kernel.org>
Thu, 3 Dec 2015 09:06:41 +0000 (10:06 +0100)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 7 Dec 2015 21:12:57 +0000 (18:12 -0300)
commite98a4cbb01e0ba1110eba5166a425b3eab9b2244
treeccf4ab4b3b4f8b198634391471d6fcbc4e15674e
parent5cd95fc3f8d84a8bb256838fa3b6b59e9095eaa2
perf evsel: Introduce disable() method

Adding perf_evsel__disable function to have complement for
perf_evsel__enable function. Both will be used in following patch to
factor perf_evlist__(enable|disable).

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-3-git-send-email-jolsa@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/evsel.c
tools/perf/util/evsel.h