aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/perf_event.c
diff options
context:
space:
mode:
authorPeter Zijlstra <a.p.zijlstra@chello.nl>2010-02-26 04:33:41 -0500
committerIngo Molnar <mingo@elte.hu>2010-02-26 04:56:52 -0500
commit3a0304e90aa5a2c0c308a05d28f7d109a48d8539 (patch)
tree7bb1b0344fad89429c2d87d1f0a02f0a8e4b180b /kernel/perf_event.c
parent628ada0cb03666dd463f7c25947eaccdf440c309 (diff)
perf_events: Report the MMAP pgoff value in bytes
DaveM reported that currently perf interprets the pgoff value reported by the MMAP events as a byte range, but the kernel reports it as a page offset. Since its broken (and unusable) anyway, change the kernel behaviour (ABI) to report bytes indeed, avoiding the need for userspace to deal with PAGE_SIZE things. Reported-by: David Miller <davem@davemloft.net> Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> LKML-Reference: <new-submission> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/perf_event.c')
-rw-r--r--kernel/perf_event.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/perf_event.c b/kernel/perf_event.c
index 087025fe3ba1..5a69abb05ac3 100644
--- a/kernel/perf_event.c
+++ b/kernel/perf_event.c
@@ -3749,7 +3749,7 @@ void __perf_event_mmap(struct vm_area_struct *vma)
3749 /* .tid */ 3749 /* .tid */
3750 .start = vma->vm_start, 3750 .start = vma->vm_start,
3751 .len = vma->vm_end - vma->vm_start, 3751 .len = vma->vm_end - vma->vm_start,
3752 .pgoff = vma->vm_pgoff, 3752 .pgoff = (u64)vma->vm_pgoff << PAGE_SHIFT,
3753 }, 3753 },
3754 }; 3754 };
3755 3755