perf: Extend the mmap control page with time (TSC) fields
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Mon, 21 Nov 2011 10:43:53 +0000 (11:43 +0100)
committerIngo Molnar <mingo@elte.hu>
Wed, 21 Dec 2011 10:01:13 +0000 (11:01 +0100)
commite3f3541c19c89a4daae39300defba68943301949
treef3d6fe5c39dfee8045e7955e5637ae9ff9c0d4d5
parent0c9d42ed4cee2aa1dfc3a260b741baae8615744f
perf: Extend the mmap control page with time (TSC) fields

Extend the mmap control page with fields so that userspace can compute
time deltas relative to the provided time fields.

Currently only implemented for x86 with constant and nonstop TSC.

Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Stephane Eranian <eranian@google.com>
Cc: Arun Sharma <asharma@fb.com>
Link: http://lkml.kernel.org/n/tip-3u1jucza77j3wuvs0x2bic0f@git.kernel.org
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/cpu/perf_event.c
include/linux/perf_event.h
kernel/events/core.c