summaryrefslogtreecommitdiff
path: root/tools/perf/util/event.h
diff options
context:
space:
mode:
authorDave Martin <dave.martin@linaro.org>2010-08-03 12:48:35 +0100
committerArnaldo Carvalho de Melo <acme@redhat.com>2010-08-04 12:41:23 -0300
commitb5a6325464b700c4bdac8799c495970516eed41c (patch)
tree430502df6156e57c042968978f2921731d5ce479 /tools/perf/util/event.h
parent12a81c8df13c60904febcafcf6b90ca1acb67122 (diff)
downloadlwn-b5a6325464b700c4bdac8799c495970516eed41c.tar.gz
lwn-b5a6325464b700c4bdac8799c495970516eed41c.zip
perf events: Fix mmap offset determination
Fix buggy-looking code which unnecessarily adjusts the file offset fields read from /proc/*/maps. This may have gone unnoticed since the offset is usually 0 (and the logic in util/symbol.c may work incorrectly for other offset values). Commiter note: This fixes a bug introduced in 4af8b35, there is no need to shift pgoff twice, the show_map_vma routine in fs/proc/task_mmu.c already converts it from the number of pages to the size in bytes, and that is what appears in /proc/PID/map. Cc: Nicolas Pitre <nicolas.pitre@linaro.org> Cc: Will Deacon <Will.Deacon@arm.com> LKML-Reference: <1280836116-6654-2-git-send-email-dave.martin@linaro.org> Signed-off-by: Dave Martin <dave.martin@linaro.org> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/event.h')
0 files changed, 0 insertions, 0 deletions