perf evlist: Add toggle_enable() method
authorArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 17 Jun 2015 19:40:26 +0000 (16:40 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 17 Jun 2015 19:40:26 +0000 (16:40 -0300)
commit2b56bcfb6f4bb0aa0813b6ee1dde8f5b23fce5d4
tree34a4113da24f1ec4593936d06653f25b9ba5646a
parent7951722da2963cc1f1a7831a37aa2311ac927056
perf evlist: Add toggle_enable() method

For an upcoming feature in 'perf top' we will have a hotkey to
enable/disable events, so remember if the events in the list are
enabled or disabled and allows toggling this state using a new
method.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Borislav Petkov <bp@suse.de>
Cc: David Ahern <dsahern@gmail.com>
Cc: Don Zickus <dzickus@redhat.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/n/tip-64c4jvdl5feg2zhimxvokqka@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/evlist.c
tools/perf/util/evlist.h