Skip to contentSkip to conversation

perf annotate: Widen "Event count" column when using --show-total-period

PATCH In review Taeung Song 2 participants 2 messages Jul 27, 2017 perf events

lore
Share & tools
lore
#0 lore raw

PATCH v4 1/9 perf annotate: Widen "Event count" column when using --show-total-period

Cc Jiri Olsa <[email protected]>
Cc Namhyung Kim <[email protected]>
---
 tools/perf/util/annotate.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/perf/util/annotate.c +1 -1
index c2b4b00..5963764 100644
@@ -1142,7 +1142,7 @@ static int disasm_line__print(struct disasm_line *dl, struct symbol *sym, u64 st
 			color = get_percent_color(percent);
 
 			if (symbol_conf.show_total_period)
-				color_fprintf(stdout, color, " %7" PRIu64,
+				color_fprintf(stdout, color, " %11" PRIu64,
 					      sample.period);
 			else
 				color_fprintf(stdout, color, " %7.2f", percent);
Signature · 1 line
2.7.4
#1 lore raw

Em Fri, Jul 28, 2017 at 01:15:49AM +0900, Taeung Song escreveu:

Quoted 12 lines
Cc Jiri Olsa <[email protected]>
Cc Namhyung Kim <[email protected]>
---
 tools/perf/util/annotate.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/perf/util/annotate.c +0 -0
index c2b4b00..5963764 100644

tools/perf/util/annotate.c static int disasm_line__print(struct disasm_line *dl, struct symbol *sym, u64 st · line 1145

Quoted 5 lines
tools/perf/util/annotate.c +1 -1
@@ -1142,7 +1142,7 @@ static int disasm_line__print(struct disasm_line *dl, struct symbol *sym, u64 st
 			color = get_percent_color(percent);
 
 			if (symbol_conf.show_total_period)
-				color_fprintf(stdout, color, " %7" PRIu64,
+				color_fprintf(stdout, color, " %11" PRIu64,

This one is already at:

https://git.kernel.org/pub/scm/linux/kernel/git/acme/linux.git/commit/?h=perf/core&id=ce9ee4a2de20062a97ad50ecc11ebda7e7618fd1

- Arnaldo