|
@@ -173,6 +173,11 @@ static inline int amd_pmu_addr_offset(int index, bool eventsel)
|
|
|
return offset;
|
|
|
}
|
|
|
|
|
|
+static inline int amd_pmu_rdpmc_index(int index)
|
|
|
+{
|
|
|
+ return index;
|
|
|
+}
|
|
|
+
|
|
|
static int amd_pmu_hw_config(struct perf_event *event)
|
|
|
{
|
|
|
int ret;
|
|
@@ -620,6 +625,7 @@ static __initconst const struct x86_pmu amd_pmu = {
|
|
|
.eventsel = MSR_K7_EVNTSEL0,
|
|
|
.perfctr = MSR_K7_PERFCTR0,
|
|
|
.addr_offset = amd_pmu_addr_offset,
|
|
|
+ .rdpmc_index = amd_pmu_rdpmc_index,
|
|
|
.event_map = amd_pmu_event_map,
|
|
|
.max_events = ARRAY_SIZE(amd_perfmon_event_map),
|
|
|
.num_counters = AMD64_NUM_COUNTERS,
|