perf hist: Factor out __hpp__fmt_print()
authorNamhyung Kim <namhyung@kernel.org>
Fri, 7 Jun 2024 20:29:15 +0000 (13:29 -0700)
committerNamhyung Kim <namhyung@kernel.org>
Sun, 16 Jun 2024 04:04:04 +0000 (21:04 -0700)
commitcc2621cecd0f9e248eb12e2b512804e1a1d38cbf
tree1926125d65f4f8211b495b0cd59d955882f2a79b
parent231295a186b60e779152ee88a2647a392307431a
perf hist: Factor out __hpp__fmt_print()

Split the logic to print the histogram values according to the format
string.  This was used in 3 different places so it's better to move out
the logic into a function.

Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Link: https://lore.kernel.org/r/20240607202918.2357459-2-namhyung@kernel.org
tools/perf/ui/hist.c