diff options
Diffstat (limited to 'extras/recipes-kernel/linux/linux-omap/linus/0054-perf-Fix-callchain-hit-bad-cast-on-ascii-display.patch')
-rw-r--r-- | extras/recipes-kernel/linux/linux-omap/linus/0054-perf-Fix-callchain-hit-bad-cast-on-ascii-display.patch | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/extras/recipes-kernel/linux/linux-omap/linus/0054-perf-Fix-callchain-hit-bad-cast-on-ascii-display.patch b/extras/recipes-kernel/linux/linux-omap/linus/0054-perf-Fix-callchain-hit-bad-cast-on-ascii-display.patch new file mode 100644 index 00000000..09ed27c3 --- /dev/null +++ b/extras/recipes-kernel/linux/linux-omap/linus/0054-perf-Fix-callchain-hit-bad-cast-on-ascii-display.patch | |||
@@ -0,0 +1,39 @@ | |||
1 | From ef44b2900e7bfd255e56ae9bd2ec03d2c13b780c Mon Sep 17 00:00:00 2001 | ||
2 | From: Frederic Weisbecker <fweisbec@gmail.com> | ||
3 | Date: Mon, 3 Jan 2011 16:13:11 +0100 | ||
4 | Subject: [PATCH 54/65] perf: Fix callchain hit bad cast on ascii display | ||
5 | |||
6 | ipchain__fprintf_graph() casts the number of hits in a branch as an | ||
7 | int, which means we lose its highests bits. | ||
8 | |||
9 | This results in meaningless number of callchain hits in perf.data | ||
10 | that have a high number of hits recorded, typically those that have | ||
11 | callchain branches hits appearing more than INT_MAX. This happens | ||
12 | easily as those are pondered by the event period. | ||
13 | |||
14 | Reported-by: Nick Piggin <npiggin@kernel.dk> | ||
15 | Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com> | ||
16 | Cc: Ingo Molnar <mingo@elte.hu> | ||
17 | Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> | ||
18 | Cc: Arnaldo Carvalho de Melo <acme@redhat.com> | ||
19 | Cc: Paul Mackerras <paulus@samba.org> | ||
20 | --- | ||
21 | tools/perf/util/hist.c | 2 +- | ||
22 | 1 files changed, 1 insertions(+), 1 deletions(-) | ||
23 | |||
24 | diff --git a/tools/perf/util/hist.c b/tools/perf/util/hist.c | ||
25 | index 2022e87..76bcc35 100644 | ||
26 | --- a/tools/perf/util/hist.c | ||
27 | +++ b/tools/perf/util/hist.c | ||
28 | @@ -356,7 +356,7 @@ static size_t ipchain__fprintf_graph_line(FILE *fp, int depth, int depth_mask, | ||
29 | |||
30 | static size_t ipchain__fprintf_graph(FILE *fp, struct callchain_list *chain, | ||
31 | int depth, int depth_mask, int period, | ||
32 | - u64 total_samples, int hits, | ||
33 | + u64 total_samples, u64 hits, | ||
34 | int left_margin) | ||
35 | { | ||
36 | int i; | ||
37 | -- | ||
38 | 1.6.6.1 | ||
39 | |||