summaryrefslogtreecommitdiffstats
path: root/tools/perf/util/pmu.c
diff options
context:
space:
mode:
authorNamhyung Kim2018-02-19 11:05:45 +0100
committerArnaldo Carvalho de Melo2018-04-23 15:52:55 +0200
commitee05d21791db6db954bbb7b79bb18d88b5f6b7ff (patch)
treedf80db128b4870e48d21ab4e99100f448f88e8d8 /tools/perf/util/pmu.c
parentMerge tag 'perf-urgent-for-mingo-4.17-20180420' of git://git.kernel.org/pub/s... (diff)
downloadkernel-qcow2-linux-ee05d21791db6db954bbb7b79bb18d88b5f6b7ff.tar.gz
kernel-qcow2-linux-ee05d21791db6db954bbb7b79bb18d88b5f6b7ff.tar.xz
kernel-qcow2-linux-ee05d21791db6db954bbb7b79bb18d88b5f6b7ff.zip
perf machine: Set main kernel end address properly
map_groups__fixup_end() was called to set the end addresses of kernel and module maps. But now since machine__create_modules() sets the end address of modules properly, the only remaining piece is the kernel map. We can set it with adjacent module's address directly instead of calling map_groups__fixup_end(). If there's no module after the kernel map, the end address will be ~0ULL. Since it also changes the start address of the kernel map, it needs to re-insert the map to the kmaps in order to keep a correct ordering. Kim reported that it caused problems on ARM64. Reported-by: Kim Phillips <kim.phillips@arm.com> Tested-by: Kim Phillips <kim.phillips@arm.com> Signed-off-by: Namhyung Kim <namhyung@kernel.org> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: kernel-team@lge.com Link: http://lkml.kernel.org/r/20180419235915.GA19067@sejong Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/pmu.c')
0 files changed, 0 insertions, 0 deletions