]> www.infradead.org Git - users/jedix/linux-maple.git/commit
perf hist: Set levels in output_field_add()
authorNamhyung Kim <namhyung@kernel.org>
Mon, 31 Mar 2025 07:37:21 +0000 (00:37 -0700)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 25 Apr 2025 15:31:54 +0000 (12:31 -0300)
commit390627dda7ee4e399d83972f04a2ec915b2bb159
tree2a4d3db192ed798b281b3cf2ec139afebbb1ecd3
parentb09124e2e167e1ec4e29fe4c12f8956c43822ffd
perf hist: Set levels in output_field_add()

It turns out that the output fields didn't consider the hierarchy mode
and put all the fields in the same level.  To support hierarchy, each
non-output field should be in a separate level.

Pass a pointer to level to output_field_add() and make it increase the
level when it sees non-output fields.

Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Ian Rogers <irogers@google.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Kan Liang <kan.liang@linux.intel.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: https://lore.kernel.org/r/20250331073722.4695-4-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-c2c.c
tools/perf/util/sort.c
tools/perf/util/sort.h