]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
perf list: Share print state with JSON output
authorNamhyung Kim <namhyung@kernel.org>
Thu, 20 Nov 2025 00:47:25 +0000 (16:47 -0800)
committerNamhyung Kim <namhyung@kernel.org>
Thu, 20 Nov 2025 19:11:48 +0000 (11:11 -0800)
commit58e0a81e76bf274afe7d24d80d7855a7642bb52a
tree144a98cc2d6e34d39485a99a95d21c6786539aef
parent8cf9cca7f687044702228c51b8e3bb853a0e1b54
perf list: Share print state with JSON output

The JSON print state has only one different field (need_sep).  Let's
add the default print state to the json state and use it.  Then we can
use the 'ps' variable to update the state properly.

This is a preparation for the next commit.

Reviewed-by: Ian Rogers <irogers@google.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/builtin-list.c