We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 68ce4a0 commit 24cf846Copy full SHA for 24cf846
arch/x86/events/intel/uncore.h
@@ -120,6 +120,7 @@ struct intel_uncore_box {
120
};
121
122
#define UNCORE_BOX_FLAG_INITIATED 0
123
+#define UNCORE_BOX_FLAG_CTL_OFFS8 1 /* event config registers are 8-byte apart */
124
125
struct uncore_event_desc {
126
struct kobj_attribute attr;
@@ -172,6 +173,9 @@ static inline unsigned uncore_pci_fixed_ctr(struct intel_uncore_box *box)
172
173
static inline
174
unsigned uncore_pci_event_ctl(struct intel_uncore_box *box, int idx)
175
{
176
+ if (test_bit(UNCORE_BOX_FLAG_CTL_OFFS8, &box->flags))
177
+ return idx * 8 + box->pmu->type->event_ctl;
178
+
179
return idx * 4 + box->pmu->type->event_ctl;
180
}
181
0 commit comments