]> www.infradead.org Git - users/jedix/linux-maple.git/commit
perf hist: Fix width calculation in hpp__fmt()
authorDmitry Vyukov <dvyukov@google.com>
Wed, 8 Jan 2025 06:59:34 +0000 (07:59 +0100)
committerNamhyung Kim <namhyung@kernel.org>
Fri, 17 Jan 2025 17:51:18 +0000 (09:51 -0800)
commit036e2faa997c39a5f15dbeb50528911778d8b29d
tree8a04220cf7c68a24b8a476189e07bde01ac829ed
parent8b4799e4f0f40a4ec737bf870aa38d06288bf0fb
perf hist: Fix width calculation in hpp__fmt()

hpp__width_fn() round up width to length of the field name,
hpp__fmt() should do it too. Otherwise, the numbers may
end up unaligned if the field name is long.

Signed-off-by: Dmitry Vyukov <dvyukov@google.com>
Reviewed-by: James Clark <james.clark@linaro.org>
Link: https://lore.kernel.org/r/20250108065949.235718-1-dvyukov@google.com
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/ui/hist.c