[PATCH 0/5] perf support for amd guest/host-only bits v2

From: Joerg Roedel
Date: Fri Jun 17 2011 - 09:37:43 EST


this is the second version of the patch-set to support the AMD
guest-/host only bits in the performance counter MSRs. Due to lack of
time I havn't looked into emulating support for this feature on Intel or
other architectures, but the other comments should be worked in. The
changes to v1 include:

* Rebased patches to v3.0-rc3
* Allow exclude_guest and exclude_host set at the same time
* Reworked event-parse logic for the new exclude-bits
* Only count guest-events per default from perf-kvm

Thats it, unless I forgot something. Any feedback appreciated :-)




arch/x86/include/asm/perf_event.h | 3 +++
arch/x86/kernel/cpu/perf_event_amd.c | 13 +++++++++++++
include/linux/perf_event.h | 5 ++++-
tools/perf/builtin-kvm.c | 5 +++--
tools/perf/util/event.c | 8 ++++++++
tools/perf/util/event.h | 2 ++
tools/perf/util/evlist.c | 5 ++++-
tools/perf/util/parse-events.c | 15 +++++++++++++--
8 files changed, 50 insertions(+), 6 deletions(-)


Joerg Roedel (5):
perf, core: Introduce attrs to count in either host or guest mode
perf, amd: Use GO/HO bits in perf-ctr
perf, tools: Add support for guest/host-only profiling
perf, tools: Fix copy&paste error in perf-kvm option description
perf, tools: Do guest-only counting in perf-kvm by default

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/