From: Mohit Gambhir <mohit.gambhir@oracle.com>
To: andrew.cooper3@citrix.com, xen-devel@lists.xen.org
Cc: boris.ostrovsky@oracle.com, mgambhir@outlook.com,
Mohit Gambhir <mohit.gambhir@oracle.com>
Subject: [PATCH v2 1/2] xtf/vpmu: Add Intel PMU MSR addresses
Date: Fri, 28 Apr 2017 14:26:00 -0400 [thread overview]
Message-ID: <20170428182601.5649-2-mohit.gambhir@oracle.com> (raw)
In-Reply-To: <20170428182601.5649-1-mohit.gambhir@oracle.com>
This patch adds Intel PMU MSR addresses as macros for VPMU testing
Signed-off-by: Mohit Gambhir <mohit.gambhir@oracle.com>
---
arch/x86/include/arch/msr-index.h | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/arch/x86/include/arch/msr-index.h b/arch/x86/include/arch/msr-index.h
index 72373c6..911d7f9 100644
--- a/arch/x86/include/arch/msr-index.h
+++ b/arch/x86/include/arch/msr-index.h
@@ -3,6 +3,8 @@
#include <xtf/numbers.h>
+#define MSR_PMC(n) (0x000000c1 + (n))
+
#define MSR_INTEL_PLATFORM_INFO 0x000000ce
#define _MSR_PLATFORM_INFO_CPUID_FAULTING 31
#define MSR_PLATFORM_INFO_CPUID_FAULTING (1ULL << _MSR_PLATFORM_INFO_CPUID_FAULTING)
@@ -11,10 +13,20 @@
#define _MSR_MISC_FEATURES_CPUID_FAULTING 0
#define MSR_MISC_FEATURES_CPUID_FAULTING (1ULL << _MSR_MISC_FEATURES_CPUID_FAULTING)
+#define MSR_PERFEVTSEL(n) (0x00000186 + (n))
+
#define MSR_DEBUGCTL 0x000001d9
#define _MSR_DEBUGCTL_LBR 0 /* Last Branch Record. */
#define MSR_DEBUGCTL_LBR (_AC(1, L) << _MSR_DEBUGCTL_LBR)
+#define MSR_FIXED_CTR(n) (0x00000309 + (n))
+#define MSR_PERF_CAPABILITIES 0x00000345
+#define MSR_FIXED_CTR_CTRL 0x0000038d
+#define MSR_PERF_GLOBAL_STATUS 0x0000038e
+#define MSR_PERF_GLOBAL_CTRL 0x0000038f
+#define MSR_PERF_GLOBAL_OVF_CTRL 0x00000390
+#define MSR_A_PMC(n) (0x000004c1 + (n))
+
#define MSR_EFER 0xc0000080 /* Extended Feature register. */
#define _EFER_SCE 0 /* SYSCALL Enable. */
#define EFER_SCE (_AC(1, L) << _EFER_SCE)
--
2.9.3
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel
next prev parent reply other threads:[~2017-04-28 18:26 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-28 18:25 [PATCH v2 0/2] xtf/vpmu VPMU tests Mohit Gambhir
2017-04-28 18:26 ` Mohit Gambhir [this message]
2017-04-28 18:26 ` [PATCH v2 2/2] xtf/vpmu: MSR read/write tests for VPMU Mohit Gambhir
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170428182601.5649-2-mohit.gambhir@oracle.com \
--to=mohit.gambhir@oracle.com \
--cc=andrew.cooper3@citrix.com \
--cc=boris.ostrovsky@oracle.com \
--cc=mgambhir@outlook.com \
--cc=xen-devel@lists.xen.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).