[PATCH] perf data: Add JSON export

2021-04-06 Thread Nicholas Fraser
This adds a feature to export perf data to JSON. It uses a minimal inline JSON encoding, no external dependencies. Currently it only outputs some headers and sample metadata but it's easily extensible. Use it like this: perf data convert --to-json out.json Signed-off-by: Nicholas Fraser ---

Re: [PATCH] perf data: Add JSON export

2021-04-06 Thread Nicholas Fraser
Hi Jiri, Thanks again for the review. I've fixed the issues you mentioned. Some notes below: On 2021-04-01 8:15 a.m., Jiri Olsa wrote: > I recall you did not add support for walltime clock, > don't you need it to sync with other events? Not necessarily. As long as the perf recording and the GPU

Re: [PATCH] perf data: Add JSON export

2021-04-01 Thread Jiri Olsa
On Wed, Mar 31, 2021 at 06:42:48AM -0400, Nicholas Fraser wrote: > From ddcfd620e7cad4100d0076090c4b39dba8aeead3 Mon Sep 17 00:00:00 2001 > From: Nicholas Fraser > Date: Wed, 31 Mar 2021 06:10:00 -0400 > Subject: [PATCH] perf data: Add JSON export no need to add headers again in her

[PATCH] perf data: Add JSON export

2021-03-31 Thread Nicholas Fraser
>From ddcfd620e7cad4100d0076090c4b39dba8aeead3 Mon Sep 17 00:00:00 2001 From: Nicholas Fraser Date: Wed, 31 Mar 2021 06:10:00 -0400 Subject: [PATCH] perf data: Add JSON export This adds a feature to export perf data to JSON. It uses a minimal inline JSON encoding, no external dependenc