perf evlist: Introduce 'disable' method
authorArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 25 Jul 2011 14:06:19 +0000 (11:06 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 25 Jul 2011 14:06:19 +0000 (11:06 -0300)
commit4152ab377b55e9d3e5700de00ef799519ead698d
treef0b01d51b9efe519ecbc9827bf1116de2a2317c3
parent4f9bae351d299149a84f76cd34bf0150614e8c8e
perf evlist: Introduce 'disable' method

To remove the last case of access to the FD() macro outside the library.

Inspired by a patch by Borislav that moved the FD() macro to util.h, for
namespace concerns I rather preferred to constrain it to ev{sel,list}.c.

Cc: Borislav Petkov <bp@amd64.org>
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/n/tip-qn893qsstcg366tkucu649qj@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-record.c
tools/perf/util/evlist.c
tools/perf/util/evlist.h