]> git.baikalelectronics.ru Git - kernel.git/commit
perf, core: Introduce attrs to count in either host or guest mode
authorJoerg Roedel <joerg.roedel@amd.com>
Wed, 5 Oct 2011 12:01:16 +0000 (14:01 +0200)
committerIngo Molnar <mingo@elte.hu>
Thu, 6 Oct 2011 11:00:28 +0000 (13:00 +0200)
commitb28653a136fd7d9516a13ae019f998e9d1deeac2
tree1c1f9f5aa459573bd0a084912f8629d08457e4e5
parentea7b5bd0a15d8b906e88b1b8c3d4d5399ddd9487
perf, core: Introduce attrs to count in either host or guest mode

The two new attributes exclude_guest and exclude_host can
bes used by user-space to tell the kernel to setup
performance counter to either only count while the CPU is in
guest or in host mode.

An additional check is also introduced to make sure
user-space does not try to exclude guest and host mode from
counting.

Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Signed-off-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1317816084-18026-2-git-send-email-gleb@redhat.com
Signed-off-by: Ingo Molnar <mingo@elte.hu>
include/linux/perf_event.h