projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
78b961f
)
perf hists: Return correct number of characters printed in callchain
author
Frederic Weisbecker
<
[email protected]
>
Wed, 18 Jul 2012 17:10:55 +0000
(19:10 +0200)
committer
Arnaldo Carvalho de Melo
<
[email protected]
>
Wed, 25 Jul 2012 14:31:37 +0000
(11:31 -0300)
Include the omitted number of characters printed for the first entry.
Not that it really matters because nobody seem to care about the number
of printed characters for now. But just in case.
Signed-off-by: Frederic Weisbecker <
[email protected]
>
Cc: David Ahern <
[email protected]
>
Cc: Jiri Olsa <
[email protected]
>
Cc: Namhyung Kim <
[email protected]
>
Cc: Peter Zijlstra <
[email protected]
>
Link:
http://lkml.kernel.org/r/
[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <
[email protected]
>
tools/perf/util/hist.c
patch
|
blob
|
history
diff --git
a/tools/perf/util/hist.c
b/tools/perf/util/hist.c
index 514e2a4b367d6d53838d9ac726a063b0ba3bf5e8..90dc35ae444adee31fffbb2049382adefc7de7c8 100644
(file)
--- a/
tools/perf/util/hist.c
+++ b/
tools/perf/util/hist.c
@@
-708,7
+708,7
@@
static size_t callchain__fprintf_graph(FILE *fp, struct rb_root *root,
bool printed = false;
struct rb_node *node;
int i = 0;
- int ret;
+ int ret
= 0
;
/*
* If have one single callchain root, don't bother printing
@@
-747,8
+747,9
@@
static size_t callchain__fprintf_graph(FILE *fp, struct rb_root *root,
root = &cnode->rb_root;
}
- ret
urn
__callchain__fprintf_graph(fp, root, total_samples,
+ ret
+=
__callchain__fprintf_graph(fp, root, total_samples,
1, 1, left_margin);
+ return ret;
}
static size_t __callchain__fprintf_flat(FILE *fp,