]> git.baikalelectronics.ru Git - kernel.git/commit
perf, amd: Use GO/HO bits in perf-ctr
authorJoerg Roedel <joerg.roedel@amd.com>
Wed, 5 Oct 2011 12:01:17 +0000 (14:01 +0200)
committerIngo Molnar <mingo@elte.hu>
Thu, 6 Oct 2011 11:00:31 +0000 (13:00 +0200)
commite8b315ef8cfe061e1a3e9e7ded26b9ce6af73bd9
tree3645fd8d9f8b7a40b79d779db4e9ac29b7af0123
parentb28653a136fd7d9516a13ae019f998e9d1deeac2
perf, amd: Use GO/HO bits in perf-ctr

The AMD perf-counters support counting in guest or host-mode
only. Make use of that feature when user-space specified
guest/host-mode only 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-3-git-send-email-gleb@redhat.com
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/include/asm/perf_event.h
arch/x86/kernel/cpu/perf_event_amd.c