diff options
-rw-r--r-- | arch/x86/kernel/cpu/perf_event_intel_uncore.c | 51 |
1 files changed, 16 insertions, 35 deletions
diff --git a/arch/x86/kernel/cpu/perf_event_intel_uncore.c b/arch/x86/kernel/cpu/perf_event_intel_uncore.c index d34f68bf990b..28a8413ca199 100644 --- a/arch/x86/kernel/cpu/perf_event_intel_uncore.c +++ b/arch/x86/kernel/cpu/perf_event_intel_uncore.c | |||
@@ -179,22 +179,17 @@ static struct attribute *snbep_uncore_pcu_formats_attr[] = { | |||
179 | }; | 179 | }; |
180 | 180 | ||
181 | static struct uncore_event_desc snbep_uncore_imc_events[] = { | 181 | static struct uncore_event_desc snbep_uncore_imc_events[] = { |
182 | INTEL_UNCORE_EVENT_DESC(CLOCKTICKS, "config=0xffff"), | 182 | INTEL_UNCORE_EVENT_DESC(clockticks, "event=0xff,umask=0xff"), |
183 | /* read */ | 183 | INTEL_UNCORE_EVENT_DESC(cas_count_read, "event=0x04,umask=0x03"), |
184 | INTEL_UNCORE_EVENT_DESC(CAS_COUNT_RD, "event=0x4,umask=0x3"), | 184 | INTEL_UNCORE_EVENT_DESC(cas_count_write, "event=0x04,umask=0x0c"), |
185 | /* write */ | ||
186 | INTEL_UNCORE_EVENT_DESC(CAS_COUNT_WR, "event=0x4,umask=0xc"), | ||
187 | { /* end: all zeroes */ }, | 185 | { /* end: all zeroes */ }, |
188 | }; | 186 | }; |
189 | 187 | ||
190 | static struct uncore_event_desc snbep_uncore_qpi_events[] = { | 188 | static struct uncore_event_desc snbep_uncore_qpi_events[] = { |
191 | INTEL_UNCORE_EVENT_DESC(CLOCKTICKS, "event=0x14"), | 189 | INTEL_UNCORE_EVENT_DESC(clockticks, "event=0x14"), |
192 | /* outgoing data+nondata flits */ | 190 | INTEL_UNCORE_EVENT_DESC(txl_flits_active, "event=0x00,umask=0x06"), |
193 | INTEL_UNCORE_EVENT_DESC(TxL_FLITS_ACTIVE, "event=0x0,umask=0x6"), | 191 | INTEL_UNCORE_EVENT_DESC(drs_data, "event=0x02,umask=0x08"), |
194 | /* DRS data received */ | 192 | INTEL_UNCORE_EVENT_DESC(ncb_data, "event=0x03,umask=0x04"), |
195 | INTEL_UNCORE_EVENT_DESC(DRS_DATA, "event=0x2,umask=0x8"), | ||
196 | /* NCB data received */ | ||
197 | INTEL_UNCORE_EVENT_DESC(NCB_DATA, "event=0x3,umask=0x4"), | ||
198 | { /* end: all zeroes */ }, | 193 | { /* end: all zeroes */ }, |
199 | }; | 194 | }; |
200 | 195 | ||
@@ -621,29 +616,15 @@ static struct attribute_group nhm_uncore_format_group = { | |||
621 | }; | 616 | }; |
622 | 617 | ||
623 | static struct uncore_event_desc nhm_uncore_events[] = { | 618 | static struct uncore_event_desc nhm_uncore_events[] = { |
624 | INTEL_UNCORE_EVENT_DESC(CLOCKTICKS, "config=0xffff"), | 619 | INTEL_UNCORE_EVENT_DESC(clockticks, "event=0xff,umask=0xff"), |
625 | /* full cache line writes to DRAM */ | 620 | INTEL_UNCORE_EVENT_DESC(qmc_writes_full_any, "event=0x2f,umask=0x0f"), |
626 | INTEL_UNCORE_EVENT_DESC(QMC_WRITES_FULL_ANY, "event=0x2f,umask=0xf"), | 621 | INTEL_UNCORE_EVENT_DESC(qmc_normal_reads_any, "event=0x2c,umask=0x0f"), |
627 | /* Quickpath Memory Controller normal priority read requests */ | 622 | INTEL_UNCORE_EVENT_DESC(qhl_request_ioh_reads, "event=0x20,umask=0x01"), |
628 | INTEL_UNCORE_EVENT_DESC(QMC_NORMAL_READS_ANY, "event=0x2c,umask=0xf"), | 623 | INTEL_UNCORE_EVENT_DESC(qhl_request_ioh_writes, "event=0x20,umask=0x02"), |
629 | /* Quickpath Home Logic read requests from the IOH */ | 624 | INTEL_UNCORE_EVENT_DESC(qhl_request_remote_reads, "event=0x20,umask=0x04"), |
630 | INTEL_UNCORE_EVENT_DESC(QHL_REQUEST_IOH_READS, | 625 | INTEL_UNCORE_EVENT_DESC(qhl_request_remote_writes, "event=0x20,umask=0x08"), |
631 | "event=0x20,umask=0x1"), | 626 | INTEL_UNCORE_EVENT_DESC(qhl_request_local_reads, "event=0x20,umask=0x10"), |
632 | /* Quickpath Home Logic write requests from the IOH */ | 627 | INTEL_UNCORE_EVENT_DESC(qhl_request_local_writes, "event=0x20,umask=0x20"), |
633 | INTEL_UNCORE_EVENT_DESC(QHL_REQUEST_IOH_WRITES, | ||
634 | "event=0x20,umask=0x2"), | ||
635 | /* Quickpath Home Logic read requests from a remote socket */ | ||
636 | INTEL_UNCORE_EVENT_DESC(QHL_REQUEST_REMOTE_READS, | ||
637 | "event=0x20,umask=0x4"), | ||
638 | /* Quickpath Home Logic write requests from a remote socket */ | ||
639 | INTEL_UNCORE_EVENT_DESC(QHL_REQUEST_REMOTE_WRITES, | ||
640 | "event=0x20,umask=0x8"), | ||
641 | /* Quickpath Home Logic read requests from the local socket */ | ||
642 | INTEL_UNCORE_EVENT_DESC(QHL_REQUEST_LOCAL_READS, | ||
643 | "event=0x20,umask=0x10"), | ||
644 | /* Quickpath Home Logic write requests from the local socket */ | ||
645 | INTEL_UNCORE_EVENT_DESC(QHL_REQUEST_LOCAL_WRITES, | ||
646 | "event=0x20,umask=0x20"), | ||
647 | { /* end: all zeroes */ }, | 628 | { /* end: all zeroes */ }, |
648 | }; | 629 | }; |
649 | 630 | ||