From: Arnaldo Carvalho de Melo Date: Wed, 8 Aug 2012 02:36:16 +0000 (-0300) Subject: perf header: Set the tracepoint names on PERF_RECORD_HEADER_TRACING_DATA X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8b6ee4c5d48d93527dcf6e36c51cbb7703d7fffb;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git perf header: Set the tracepoint names on PERF_RECORD_HEADER_TRACING_DATA We only have access to pevent after processing that event, so set the tracepoint names there. Right now this isn't a problem as we're deferring resolving the tracepoint names to when we process samples, but in the next patches we will be doing it in advance, to avoid relookups, so do it earlier, as soon as we process the tracing data event. Cc: David Ahern Cc: Frederic Weisbecker Cc: Jiri Olsa Cc: Mike Galbraith Cc: Namhyung Kim Cc: Paul Mackerras Cc: Peter Zijlstra Cc: Stephane Eranian Link: http://lkml.kernel.org/n/tip-tzb7srmsl7a6o3icw592iv2o@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- diff --git a/tools/perf/util/header.c b/tools/perf/util/header.c index 74ea3c2f8138..e2b4864bd11e 100644 --- a/tools/perf/util/header.c +++ b/tools/perf/util/header.c @@ -2452,6 +2452,8 @@ int perf_event__process_tracing_data(union perf_event *event, if (size_read + padding != size) die("tracing data size mismatch"); + perf_evlist__set_tracepoint_names(session->evlist, session->pevent); + return size_read + padding; }