perf trace: Use evsel->handler.func
authorArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 28 Sep 2012 20:58:36 +0000 (17:58 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 2 Oct 2012 21:36:25 +0000 (18:36 -0300)
commitba3d7deeef7fafdab7814e298fa2db0fc63bb5d0
tree5dd5c2d31387fda6dacf69f4ef29aefa4a07d572
parentd6e66832a710c0e6d1376e8d39ee108636a177e7
perf trace: Use evsel->handler.func

I.e. we don't need to resolve the evsel via the id and then check if it
is this or that event, just stash the right handler at evsel creation
time, then use evsel->handler.func() straight away.

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-bpz3axzr4f2cjppf4egm28wf@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-trace.c