perf hist: Add weight fields to hist entry stats
authorNamhyung Kim <namhyung@kernel.org>
Thu, 11 Apr 2024 18:17:17 +0000 (11:17 -0700)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 17 Apr 2024 15:21:39 +0000 (12:21 -0300)
commit6fcf1e65253c52a7584817cbd3393c63d5660467
treea25c21317cdd823c7b7e334cba13b50531c284ba
parent0993d724674a9d905ebdc9b9cd0b64e30523c5d6
perf hist: Add weight fields to hist entry stats

Like period and sample numbers, it'd be better to track weight values
and display them in the output rather than having them as sort keys.

This patch just adds a few more fields to save the weights in a hist
entry.  It'll be displayed as new output fields in the later patch.

Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Athira Rajeev <atrajeev@linux.vnet.ibm.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>
Cc: Stephane Eranian <eranian@google.com>
Link: https://lore.kernel.org/r/20240411181718.2367948-2-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/hist.c
tools/perf/util/hist.h