aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/annotate.c
diff options
context:
space:
mode:
authorStephane Eranian <[email protected]>2014-10-06 08:35:32 +0000
committerArnaldo Carvalho de Melo <[email protected]>2014-10-14 20:50:55 +0000
commit77faf4d060e3ee1fd2ff6cd39f2b2eb887100422 (patch)
tree83cd85024f39ff4b4f3c473f509a2e92c494fd5f /tools/perf/util/annotate.c
parentperf machine: Add missing dsos->root rbtree root initialization (diff)
downloadkernel-77faf4d060e3ee1fd2ff6cd39f2b2eb887100422.tar.gz
kernel-77faf4d060e3ee1fd2ff6cd39f2b2eb887100422.zip
perf tools: fix off-by-one error in maps
This patch fixes off-by-one errors in the management of maps. A map is defined by start address and length as implemented by map__new(): map__init(map, type, start, start + len, pgoff, dso); map->start = addr; map->end = end; Consequently, the actual address range is [start; end[ map->end is the first byte outside the range. This patch fixes two bugs where upper bound checking was off-by-one. In V2, we fix map_groups__fixup_overlappings() some more where map->start was off-by-one as reported by Jiri. Signed-off-by: Stephane Eranian <[email protected]> Acked-by: Namhyung Kim <[email protected]> Cc: David Ahern <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Peter Zijlstra <[email protected]> Link: http://lkml.kernel.org/r/20141006083532.GA4850@quad Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/util/annotate.c')
0 files changed, 0 insertions, 0 deletions