]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
perf machine: Carve up event processing specific from perf_tool
authorArnaldo Carvalho de Melo <acme@redhat.com>
Sat, 6 Oct 2012 19:26:02 +0000 (16:26 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Sat, 6 Oct 2012 19:34:13 +0000 (16:34 -0300)
commitb0a7d1a0cd2e228dc06d099db2e1bb02f1b7d591
treee943d42d36229261829b7c51978ecd1ee649a59a
parent0439539f72ea222fbfe511b47318b9c1815a7108
perf machine: Carve up event processing specific from perf_tool

The perf_tool vtable expects methods that receive perf_tool and
perf_sample entries, but for tools not interested in doing any special
processing on non PERF_RECORD_SAMPLE events, like 'perf top', and for
those not using perf_session, like 'perf trace', they were using
perf_event__process passing tool and sample paramenters that were just
not used.

Provide 'machine' methods for this purpose and make the perf_event
ones use them.

Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Namhyung Kim <namhyung@gmail.com>
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-ot9cc6mt025o8kbngzckcrx9@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-top.c
tools/perf/util/event.c
tools/perf/util/machine.c
tools/perf/util/machine.h