aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/symbol.c
diff options
context:
space:
mode:
authorIan Munsie <imunsie@au1.ibm.com>2010-11-24 23:12:53 -0500
committerArnaldo Carvalho de Melo <acme@redhat.com>2010-11-26 22:32:53 -0500
commit9d1faba5fe410558099f13cfada2eab03186769d (patch)
treed54ec147bcf9bdb2f487731ab6a8eb32ecde937f /tools/perf/util/symbol.c
parent37982ba0a0630066a6a0844a66aedaf91c66db84 (diff)
perf symbols: Correct final kernel map guesses
If a 32bit userspace perf is running on a 64bit kernel, the end of the final map in the kernel would incorrectly be set to 2^32-1 rather than 2^64-1. Cc: Ingo Molnar <mingo@elte.hu> Cc: Paul Mackerras <paulus@samba.org> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> LKML-Reference: <1290658375-10342-1-git-send-email-imunsie@au1.ibm.com> Signed-off-by: Ian Munsie <imunsie@au1.ibm.com> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/symbol.c')
-rw-r--r--tools/perf/util/symbol.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/util/symbol.c b/tools/perf/util/symbol.c
index 0500895a45af..a348906b587d 100644
--- a/tools/perf/util/symbol.c
+++ b/tools/perf/util/symbol.c
@@ -121,7 +121,7 @@ static void __map_groups__fixup_end(struct map_groups *self, enum map_type type)
121 * We still haven't the actual symbols, so guess the 121 * We still haven't the actual symbols, so guess the
122 * last map final address. 122 * last map final address.
123 */ 123 */
124 curr->end = ~0UL; 124 curr->end = ~0ULL;
125} 125}
126 126
127static void map_groups__fixup_end(struct map_groups *self) 127static void map_groups__fixup_end(struct map_groups *self)