]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
perf_events: Report the MMAP pgoff value in bytes
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Fri, 26 Feb 2010 09:33:41 +0000 (10:33 +0100)
committerIngo Molnar <mingo@elte.hu>
Fri, 26 Feb 2010 09:56:52 +0000 (10:56 +0100)
commit3a0304e90aa5a2c0c308a05d28f7d109a48d8539
tree7bb1b0344fad89429c2d87d1f0a02f0a8e4b180b
parent628ada0cb03666dd463f7c25947eaccdf440c309
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>
kernel/perf_event.c