Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Ian Munsie and committed by
Arnaldo Carvalho de Melo
9d1faba5 37982ba0

+2 -2
+1 -1
tools/perf/util/event.c
··· 392 392 * a zero sized synthesized MMAP event for the kernel. 393 393 */ 394 394 if (maps[MAP__FUNCTION]->end == 0) 395 - maps[MAP__FUNCTION]->end = ~0UL; 395 + maps[MAP__FUNCTION]->end = ~0ULL; 396 396 } 397 397 398 398 static int event__process_kernel_mmap(event_t *self,
+1 -1
tools/perf/util/symbol.c
··· 121 121 * We still haven't the actual symbols, so guess the 122 122 * last map final address. 123 123 */ 124 - curr->end = ~0UL; 124 + curr->end = ~0ULL; 125 125 } 126 126 127 127 static void map_groups__fixup_end(struct map_groups *self)