linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] perf annotate: process tracing data in pipe mode
@ 2017-05-18  0:19 David Carrillo-Cisneros
  2017-05-25 22:11 ` David Carrillo-Cisneros
  0 siblings, 1 reply; 2+ messages in thread
From: David Carrillo-Cisneros @ 2017-05-18  0:19 UTC (permalink / raw)
  To: linux-kernel
  Cc: Peter Zijlstra, Ingo Molnar, Arnaldo Carvalho de Melo,
	Alexander Shishkin, Stephane Eranian, Paul Turner,
	David Carrillo-Cisneros

perf annotate was missing the handler for tracing data records.

Prior to this patch we obtained "unhandled" records when piping
trace events to perf annotate (using -D option to show the
dump_printf messages in process_event_synth_tracing_data_stub):

  $ perf record -o - -e block:bio_free sleep 2 | perf annotate -D --stdio
  ...
  0x78 [0xc]: PERF_RECORD_TRACING_DATA: unhandled!
  ...

Signed-off-by: David Carrillo-Cisneros <davidcc@google.com>
---
 tools/perf/builtin-annotate.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tools/perf/builtin-annotate.c b/tools/perf/builtin-annotate.c
index 7a5dc7e5c577..ce44edc30c71 100644
--- a/tools/perf/builtin-annotate.c
+++ b/tools/perf/builtin-annotate.c
@@ -397,6 +397,7 @@ int cmd_annotate(int argc, const char **argv)
 			.namespaces = perf_event__process_namespaces,
 			.attr	= perf_event__process_attr,
 			.build_id = perf_event__process_build_id,
+			.tracing_data   = perf_event__process_tracing_data,
 			.ordered_events = true,
 			.ordering_requires_timestamps = true,
 		},
-- 
2.13.0.303.g4ebf302169-goog

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] perf annotate: process tracing data in pipe mode
  2017-05-18  0:19 [PATCH] perf annotate: process tracing data in pipe mode David Carrillo-Cisneros
@ 2017-05-25 22:11 ` David Carrillo-Cisneros
  0 siblings, 0 replies; 2+ messages in thread
From: David Carrillo-Cisneros @ 2017-05-25 22:11 UTC (permalink / raw)
  To: linux-kernel
  Cc: Peter Zijlstra, Ingo Molnar, Arnaldo Carvalho de Melo,
	Alexander Shishkin, Stephane Eranian, Paul Turner,
	David Carrillo-Cisneros, Jiri Olsa

+Jiri

On Wed, May 17, 2017 at 5:19 PM, David Carrillo-Cisneros
<davidcc@google.com> wrote:
> perf annotate was missing the handler for tracing data records.
>
> Prior to this patch we obtained "unhandled" records when piping
> trace events to perf annotate (using -D option to show the
> dump_printf messages in process_event_synth_tracing_data_stub):
>
>   $ perf record -o - -e block:bio_free sleep 2 | perf annotate -D --stdio
>   ...
>   0x78 [0xc]: PERF_RECORD_TRACING_DATA: unhandled!
>   ...
>
> Signed-off-by: David Carrillo-Cisneros <davidcc@google.com>
> ---
>  tools/perf/builtin-annotate.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/tools/perf/builtin-annotate.c b/tools/perf/builtin-annotate.c
> index 7a5dc7e5c577..ce44edc30c71 100644
> --- a/tools/perf/builtin-annotate.c
> +++ b/tools/perf/builtin-annotate.c
> @@ -397,6 +397,7 @@ int cmd_annotate(int argc, const char **argv)
>                         .namespaces = perf_event__process_namespaces,
>                         .attr   = perf_event__process_attr,
>                         .build_id = perf_event__process_build_id,
> +                       .tracing_data   = perf_event__process_tracing_data,
>                         .ordered_events = true,
>                         .ordering_requires_timestamps = true,
>                 },
> --
> 2.13.0.303.g4ebf302169-goog
>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-05-25 22:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-18  0:19 [PATCH] perf annotate: process tracing data in pipe mode David Carrillo-Cisneros
2017-05-25 22:11 ` David Carrillo-Cisneros

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).