Files
linux/tools/perf/util
Arnaldo Carvalho de Melo fcf65bf149 perf evsel: Cache associated event_format
We already lookup the associated event_format when reading the perf.data
header, so that we can cache the tracepoint name in evsel->name, so do
it a little further and save the event_format itself, so that we can
avoid relookups in tools that need to access it.

Change the tools to take the most obvious advantage, when they were
using pevent_find_event directly. More work is needed for further
removing the need of a pointer to pevent, such as when asking for event
field values ("common_pid" and the other common fields and per
event_format fields).

This is something that was planned but only got actually done when
Andrey Wagin needed to do this lookup at perf_tool->sample() time, when
we don't have access to pevent (session->pevent) to use with
pevent_find_event().

Cc: Andrey Wagin <avagin@gmail.com>
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>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Link: http://lkml.kernel.org/n/tip-txkvew2ckko0b594ae8fbnyk@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2012-08-07 23:43:37 -03:00
..
2011-02-16 13:30:48 +01:00
2012-02-13 23:17:40 -02:00
2012-06-19 13:06:18 -03:00
2012-08-03 10:42:25 -03:00
2012-08-03 10:42:25 -03:00
2010-08-21 11:22:47 -03:00
2012-06-29 13:31:27 -03:00
2012-06-18 12:13:26 +02:00
2010-05-14 20:05:21 -03:00
2012-08-03 10:37:21 -03:00
2012-08-03 10:37:21 -03:00
2012-06-19 13:06:18 -03:00
2012-06-19 13:06:18 -03:00
2012-06-19 13:06:19 -03:00
2012-07-25 11:33:17 -03:00
2012-08-01 18:42:54 -03:00
2012-05-17 12:32:54 -03:00
2012-05-02 15:20:30 -03:00
2012-08-07 23:32:05 -03:00
2012-08-07 23:32:05 -03:00