diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2012-09-24 15:52:12 +0200 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2012-09-24 15:52:12 +0200 |
commit | 746f16ec6ae370d58ecf4370c9955bd6f35d44a3 (patch) | |
tree | d733d4de2283f5f5dc621a784f8b107e8845f5f4 /tools/perf/builtin-timechart.c | |
parent | perf kmem: Use perf_evsel__intval and perf_session__set_tracepoints_handlers (diff) | |
download | linux-746f16ec6ae370d58ecf4370c9955bd6f35d44a3.tar.xz linux-746f16ec6ae370d58ecf4370c9955bd6f35d44a3.zip |
perf lock: Use perf_evsel__intval and perf_session__set_tracepoints_handlers
Following the model of 'perf sched':
. raw_field_value searches first on the common fields, that are unused
in this tool
. Leave using perf_evsel__intval to the actual handlers, some may not
need to incur some of the cost because they may not need all the
fields values.
. Using perf_session__set_tracepoints_handlers will save all those
strcmp to find the right handler at sample processing time, do it just
once and get the handler from evsel->handler.func.
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-v9x3q9rv4caxtox7wtjpchq5@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/builtin-timechart.c')
0 files changed, 0 insertions, 0 deletions