]> git.ipfire.org Git - thirdparty/linux.git/commit
perf json: Pipe mode --to-json support
authorIan Rogers <irogers@google.com>
Wed, 11 Feb 2026 01:52:39 +0000 (17:52 -0800)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 12 Feb 2026 20:45:22 +0000 (17:45 -0300)
commit6db2f7c67b2804bc13fa385ff4e462fc3b366f8f
tree82936cfa37eb8f8200fb9f9c16e926153ce116e7
parent8772598b7801a2bb235bd35a858017e0fb939c38
perf json: Pipe mode --to-json support

In pipe mode the environment may not be fully initialized so be robust
to fields being NULL. Add default handling of feature and attr events.

Signed-off-by: Ian Rogers <irogers@google.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Derek Foreman <derek.foreman@collabora.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: James Clark <james.clark@linaro.org>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/data-convert-json.c