forked from andikleen/pmu-tools
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathjkt_aux.py
69 lines (63 loc) · 2.43 KB
/
jkt_aux.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# sandy Bridge EP specific tables to convert to perf format
class Aux:
limited_counters = { "r3qpi": 3, "ubox": 2 }
filters = ("filter_nid", "mask", "match", "filter_opc", "filter_state")
DEFAULT_COUNTERS = 4
MAX_RANK = 8
acronyms = {
"TOR": "Table of Requests, pending transactions",
"FLIT": "80-bit QPI packet",
"RPQ": "Read Queue",
"WPQ": "Write Queue",
"CBO": "Last Level Cache Slice",
"PCU": "Power Control Unit",
"iMC": "Memory Controller",
"HA": "Home Agent",
"QPI_LL": "QPI Link Layer",
}
qual_alias = {
"nid": "filter_nid",
"opc": "filter_opc",
"Q_Py_PCI_PMON_PKT_MATCH0[12:00]": "match0",
"Q_Py_PCI_PMON_PKT_MATCH1[19:16]": "match_rds",
"Q_Py_PCI_PMON_PKT_MASK0[12:0]": "mask0",
"Q_Py_PCI_PMON_PKT_MASK0[17:0]": "mask0",
"Q_Py_PCI_PMON_PKT_MASK1[19:16]": "mask_rds",
"Q_Py_PCI_PMON_PKT_MATCH0": "match0",
"edge_det": "edge",
"Cn_MSR_PMON_BOX_FILTER.opc": "filter_opc",
"Cn_MSR_PMON_BOX_FILTER0.opc": "filter_opc",
"Cn_MSR_PMON_BOX_FILTER1.opc": "filter_opc",
"Cn_MSR_PMON_BOX_FILTER.state": "filter_state",
"Cn_MSR_PMON_BOX_FILTER0.state": "filter_state",
"Cn_MSR_PMON_BOX_FILTER0.tid": "filter_tid",
"Cn_MSR_PMON_BOX_FILTER0.nc": "filter_nc",
"Q_Py_PCI_PMON_PKT_MATCH0.dnid": "match_dnid",
"PCUFilter[7:0]": "filter_band0",
"PCUFilter[15:8]": "filter_band1",
"PCUFilter[23:16]": "filter_band2",
"PCUFilter[31:24]": "filter_band3",
"CBoFilter[31:23]": "filter_opc",
"CBoFilter[17:10]": "filter_nid",
"QPIMatch0[17:0]": "match0",
"QPIMask0[17:0]": "mask0",
"QPIMatch0[12:0]": "match0",
"QPIMask0[12:0]": "mask0",
"QPIMask1[19:16]": "mask_rds",
"QPIMatch1[19:16]": "match_rds",
"CBoFilter[22:18]": "filter_state",
}
qual_display_alias = {
"QPIMask0[12:0]": "mask_mc, match_opc, match_vnw",
"QPIMatch0[12:0]": "match_mc, match_opc, match_vnw",
"QPIMatch0[17:0]": "match_mc, match_opc, match_vnw, match_dnid",
}
alias_events = {
"MC_Chy_PCI_PMON_CTR_FIXED": "uncore_imc_INDEX/clockticks/"
}
clockticks = (
"uncore_(cbox|ha|pcu)_?\d*/event=0x0/",
".*/clockticks/",
"uncore_(r2pcie|r3qpi)_?\d*/event=0x1/",
"uncore_qpi(_\d+)?/event=0x14/"
)