perf evsel: Add support for enabling counters
authorAndi Kleen <ak@linux.intel.com>
Sat, 3 Aug 2013 00:41:10 +0000 (17:41 -0700)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 7 Aug 2013 20:35:28 +0000 (17:35 -0300)
commite2407bef968d64a28465561832686636d3380bf9
tree416249ed0b2fc49d7e9e906b3357ee0872f1b74e
parent5c6974f49832a55edc9ca744323778947c104ca0
perf evsel: Add support for enabling counters

Add support for enabling already set up counters by using an
ioctl. I share some code with the filter setup.

Signed-off-by: Andi Kleen <ak@linux.intel.com>
Reviewed-by: Jiri Olsa <jolsa@redhat.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/r/1375490473-1503-3-git-send-email-andi@firstfloor.org
[ Fixed up 'err' variable indentation ]
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/evsel.c
tools/perf/util/evsel.h