Skip to content

Commit 2bfa152

Browse files
namhyungacmel
authored andcommitted
perf hists browser: Fix children overhead dump
When perf report runs on TUI, 'P' key dumps current screen to a file but it incorrectly displayed children overhead (as same of self overhead). This was because it fetched the value from self stats. Signed-off-by: Namhyung Kim <[email protected]> Cc: Andi Kleen <[email protected]> Cc: David Ahern <[email protected]> Cc: Frederic Weisbecker <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Paul Mackerras <[email protected]> Cc: Peter Zijlstra <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
1 parent 36e15dd commit 2bfa152

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/perf/ui/hist.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ static int hpp__color_##_type(struct perf_hpp_fmt *fmt, \
304304
static int hpp__entry_##_type(struct perf_hpp_fmt *fmt, \
305305
struct perf_hpp *hpp, struct hist_entry *he) \
306306
{ \
307-
return hpp__fmt_acc(fmt, hpp, he, he_get_##_field, " %*.2f%%", \
307+
return hpp__fmt_acc(fmt, hpp, he, he_get_acc_##_field, " %*.2f%%", \
308308
hpp_entry_scnprintf, true); \
309309
}
310310

0 commit comments

Comments
 (0)