Skip to content

Commit e349fa6

Browse files
ZhengjunXingacmel
authored andcommitted
perf vendor events: Update events and metrics for broadwellx
Update to v19, the metrics are based on TMA 4.4 full, update events and add new metrics “UNCORE_FREQ” for broadwellx. Use script at: https://github.com/intel/event-converter-for-linux-perf/blob/master/download_and_gen.py to download and generate the latest events and metrics. Manually copy the broadwellx files into perf. Signed-off-by: Xing Zhengjun <[email protected]> Tested-by: Ian Rogers <[email protected]> Cc: Alexander Shishkin <[email protected]> Cc: Andi Kleen <[email protected]> Cc: Ian Rogers <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Kan Liang <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Peter Zijlstra <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
1 parent bf79e18 commit e349fa6

File tree

2 files changed

+10
-159
lines changed

2 files changed

+10
-159
lines changed

tools/perf/pmu-events/arch/x86/broadwellx/bdx-metrics.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -444,6 +444,12 @@
444444
"MetricGroup": "SoC",
445445
"MetricName": "Socket_CLKS"
446446
},
447+
{
448+
"BriefDescription": "Uncore frequency per die [GHZ]",
449+
"MetricExpr": "cbox_0@event\\=0x0@ / #num_dies / duration_time / 1000000000",
450+
"MetricGroup": "SoC",
451+
"MetricName": "UNCORE_FREQ"
452+
},
447453
{
448454
"BriefDescription": "Instructions per Far Branch ( Far Branches apply upon transition from application to operating system, handling interrupts, exceptions) [lower number means higher occurrence rate]",
449455
"MetricExpr": "INST_RETIRED.ANY / BR_INST_RETIRED.FAR_BRANCH:u",

tools/perf/pmu-events/arch/x86/broadwellx/uncore-cache.json

Lines changed: 4 additions & 159 deletions
Original file line numberDiff line numberDiff line change
@@ -846,20 +846,19 @@
846846
"Unit": "CBO"
847847
},
848848
{
849-
"BriefDescription": "PCIe writes (partial cache line). Derived from unc_c_tor_inserts.opcode",
849+
"BriefDescription": "TOR Inserts; Opcode Match",
850850
"Counter": "0,1,2,3",
851851
"EventCode": "0x35",
852-
"EventName": "LLC_REFERENCES.PCIE_NS_PARTIAL_WRITE",
853-
"Filter": "filter_opc=0x180,filter_tid=0x3e",
852+
"EventName": "UNC_C_TOR_INSERTS.OPCODE",
854853
"PerPkg": "1",
855854
"UMask": "0x1",
856855
"Unit": "CBO"
857856
},
858857
{
859-
"BriefDescription": "PCIe writes (partial cache line)",
858+
"BriefDescription": "PCIe writes (partial cache line). Derived from unc_c_tor_inserts.opcode",
860859
"Counter": "0,1,2,3",
861860
"EventCode": "0x35",
862-
"EventName": "UNC_C_TOR_INSERTS.OPCODE",
861+
"EventName": "LLC_REFERENCES.PCIE_NS_PARTIAL_WRITE",
863862
"Filter": "filter_opc=0x180,filter_tid=0x3e",
864863
"PerPkg": "1",
865864
"UMask": "0x1",
@@ -876,17 +875,6 @@
876875
"UMask": "0x1",
877876
"Unit": "CBO"
878877
},
879-
{
880-
"BriefDescription": "L2 demand and L2 prefetch code references to LLC",
881-
"Counter": "0,1,2,3",
882-
"EventCode": "0x35",
883-
"EventName": "UNC_C_TOR_INSERTS.OPCODE",
884-
"Filter": "filter_opc=0x181",
885-
"PerPkg": "1",
886-
"ScaleUnit": "64Bytes",
887-
"UMask": "0x1",
888-
"Unit": "CBO"
889-
},
890878
{
891879
"BriefDescription": "Streaming stores (full cache line). Derived from unc_c_tor_inserts.opcode",
892880
"Counter": "0,1,2,3",
@@ -898,17 +886,6 @@
898886
"UMask": "0x1",
899887
"Unit": "CBO"
900888
},
901-
{
902-
"BriefDescription": "Streaming stores (full cache line)",
903-
"Counter": "0,1,2,3",
904-
"EventCode": "0x35",
905-
"EventName": "UNC_C_TOR_INSERTS.OPCODE",
906-
"Filter": "filter_opc=0x18c",
907-
"PerPkg": "1",
908-
"ScaleUnit": "64Bytes",
909-
"UMask": "0x1",
910-
"Unit": "CBO"
911-
},
912889
{
913890
"BriefDescription": "Streaming stores (partial cache line). Derived from unc_c_tor_inserts.opcode",
914891
"Counter": "0,1,2,3",
@@ -920,17 +897,6 @@
920897
"UMask": "0x1",
921898
"Unit": "CBO"
922899
},
923-
{
924-
"BriefDescription": "Streaming stores (partial cache line)",
925-
"Counter": "0,1,2,3",
926-
"EventCode": "0x35",
927-
"EventName": "UNC_C_TOR_INSERTS.OPCODE",
928-
"Filter": "filter_opc=0x18d",
929-
"PerPkg": "1",
930-
"ScaleUnit": "64Bytes",
931-
"UMask": "0x1",
932-
"Unit": "CBO"
933-
},
934900
{
935901
"BriefDescription": "PCIe read current. Derived from unc_c_tor_inserts.opcode",
936902
"Counter": "0,1,2,3",
@@ -942,17 +908,6 @@
942908
"UMask": "0x1",
943909
"Unit": "CBO"
944910
},
945-
{
946-
"BriefDescription": "PCIe read current",
947-
"Counter": "0,1,2,3",
948-
"EventCode": "0x35",
949-
"EventName": "UNC_C_TOR_INSERTS.OPCODE",
950-
"Filter": "filter_opc=0x19e",
951-
"PerPkg": "1",
952-
"ScaleUnit": "64Bytes",
953-
"UMask": "0x1",
954-
"Unit": "CBO"
955-
},
956911
{
957912
"BriefDescription": "PCIe write references (full cache line). Derived from unc_c_tor_inserts.opcode",
958913
"Counter": "0,1,2,3",
@@ -964,17 +919,6 @@
964919
"UMask": "0x1",
965920
"Unit": "CBO"
966921
},
967-
{
968-
"BriefDescription": "PCIe write references (full cache line)",
969-
"Counter": "0,1,2,3",
970-
"EventCode": "0x35",
971-
"EventName": "UNC_C_TOR_INSERTS.OPCODE",
972-
"Filter": "filter_opc=0x1c8,filter_tid=0x3e",
973-
"PerPkg": "1",
974-
"ScaleUnit": "64Bytes",
975-
"UMask": "0x1",
976-
"Unit": "CBO"
977-
},
978922
{
979923
"BriefDescription": "TOR Inserts; Evictions",
980924
"Counter": "0,1,2,3",
@@ -1035,17 +979,6 @@
1035979
"UMask": "0x3",
1036980
"Unit": "CBO"
1037981
},
1038-
{
1039-
"BriefDescription": "LLC misses - Uncacheable reads (from cpu) ",
1040-
"Counter": "0,1,2,3",
1041-
"EventCode": "0x35",
1042-
"EventName": "UNC_C_TOR_INSERTS.MISS_OPCODE",
1043-
"Filter": "filter_opc=0x187",
1044-
"PerPkg": "1",
1045-
"ScaleUnit": "64Bytes",
1046-
"UMask": "0x3",
1047-
"Unit": "CBO"
1048-
},
1049982
{
1050983
"BriefDescription": "MMIO reads. Derived from unc_c_tor_inserts.miss_opcode",
1051984
"Counter": "0,1,2,3",
@@ -1057,17 +990,6 @@
1057990
"UMask": "0x3",
1058991
"Unit": "CBO"
1059992
},
1060-
{
1061-
"BriefDescription": "MMIO reads",
1062-
"Counter": "0,1,2,3",
1063-
"EventCode": "0x35",
1064-
"EventName": "UNC_C_TOR_INSERTS.MISS_OPCODE",
1065-
"Filter": "filter_opc=0x187,filter_nc=1",
1066-
"PerPkg": "1",
1067-
"ScaleUnit": "64Bytes",
1068-
"UMask": "0x3",
1069-
"Unit": "CBO"
1070-
},
1071993
{
1072994
"BriefDescription": "MMIO writes. Derived from unc_c_tor_inserts.miss_opcode",
1073995
"Counter": "0,1,2,3",
@@ -1079,17 +1001,6 @@
10791001
"UMask": "0x3",
10801002
"Unit": "CBO"
10811003
},
1082-
{
1083-
"BriefDescription": "MMIO writes",
1084-
"Counter": "0,1,2,3",
1085-
"EventCode": "0x35",
1086-
"EventName": "UNC_C_TOR_INSERTS.MISS_OPCODE",
1087-
"Filter": "filter_opc=0x18f,filter_nc=1",
1088-
"PerPkg": "1",
1089-
"ScaleUnit": "64Bytes",
1090-
"UMask": "0x3",
1091-
"Unit": "CBO"
1092-
},
10931004
{
10941005
"BriefDescription": "LLC prefetch misses for RFO. Derived from unc_c_tor_inserts.miss_opcode",
10951006
"Counter": "0,1,2,3",
@@ -1101,17 +1012,6 @@
11011012
"UMask": "0x3",
11021013
"Unit": "CBO"
11031014
},
1104-
{
1105-
"BriefDescription": "LLC prefetch misses for RFO",
1106-
"Counter": "0,1,2,3",
1107-
"EventCode": "0x35",
1108-
"EventName": "UNC_C_TOR_INSERTS.MISS_OPCODE",
1109-
"Filter": "filter_opc=0x190",
1110-
"PerPkg": "1",
1111-
"ScaleUnit": "64Bytes",
1112-
"UMask": "0x3",
1113-
"Unit": "CBO"
1114-
},
11151015
{
11161016
"BriefDescription": "LLC prefetch misses for code reads. Derived from unc_c_tor_inserts.miss_opcode",
11171017
"Counter": "0,1,2,3",
@@ -1123,17 +1023,6 @@
11231023
"UMask": "0x3",
11241024
"Unit": "CBO"
11251025
},
1126-
{
1127-
"BriefDescription": "LLC prefetch misses for code reads",
1128-
"Counter": "0,1,2,3",
1129-
"EventCode": "0x35",
1130-
"EventName": "UNC_C_TOR_INSERTS.MISS_OPCODE",
1131-
"Filter": "filter_opc=0x191",
1132-
"PerPkg": "1",
1133-
"ScaleUnit": "64Bytes",
1134-
"UMask": "0x3",
1135-
"Unit": "CBO"
1136-
},
11371026
{
11381027
"BriefDescription": "LLC prefetch misses for data reads. Derived from unc_c_tor_inserts.miss_opcode",
11391028
"Counter": "0,1,2,3",
@@ -1145,17 +1034,6 @@
11451034
"UMask": "0x3",
11461035
"Unit": "CBO"
11471036
},
1148-
{
1149-
"BriefDescription": "LLC prefetch misses for data reads",
1150-
"Counter": "0,1,2,3",
1151-
"EventCode": "0x35",
1152-
"EventName": "UNC_C_TOR_INSERTS.MISS_OPCODE",
1153-
"Filter": "filter_opc=0x192",
1154-
"PerPkg": "1",
1155-
"ScaleUnit": "64Bytes",
1156-
"UMask": "0x3",
1157-
"Unit": "CBO"
1158-
},
11591037
{
11601038
"BriefDescription": "LLC misses for PCIe read current. Derived from unc_c_tor_inserts.miss_opcode",
11611039
"Counter": "0,1,2,3",
@@ -1167,17 +1045,6 @@
11671045
"UMask": "0x3",
11681046
"Unit": "CBO"
11691047
},
1170-
{
1171-
"BriefDescription": "LLC misses for PCIe read current",
1172-
"Counter": "0,1,2,3",
1173-
"EventCode": "0x35",
1174-
"EventName": "UNC_C_TOR_INSERTS.MISS_OPCODE",
1175-
"Filter": "filter_opc=0x19e",
1176-
"PerPkg": "1",
1177-
"ScaleUnit": "64Bytes",
1178-
"UMask": "0x3",
1179-
"Unit": "CBO"
1180-
},
11811048
{
11821049
"BriefDescription": "ItoM write misses (as part of fast string memcpy stores) + PCIe full line writes. Derived from unc_c_tor_inserts.miss_opcode",
11831050
"Counter": "0,1,2,3",
@@ -1189,17 +1056,6 @@
11891056
"UMask": "0x3",
11901057
"Unit": "CBO"
11911058
},
1192-
{
1193-
"BriefDescription": "ItoM write misses (as part of fast string memcpy stores) + PCIe full line writes",
1194-
"Counter": "0,1,2,3",
1195-
"EventCode": "0x35",
1196-
"EventName": "UNC_C_TOR_INSERTS.MISS_OPCODE",
1197-
"Filter": "filter_opc=0x1c8",
1198-
"PerPkg": "1",
1199-
"ScaleUnit": "64Bytes",
1200-
"UMask": "0x3",
1201-
"Unit": "CBO"
1202-
},
12031059
{
12041060
"BriefDescription": "PCIe write misses (full cache line). Derived from unc_c_tor_inserts.miss_opcode",
12051061
"Counter": "0,1,2,3",
@@ -1211,17 +1067,6 @@
12111067
"UMask": "0x3",
12121068
"Unit": "CBO"
12131069
},
1214-
{
1215-
"BriefDescription": "PCIe write misses (full cache line)",
1216-
"Counter": "0,1,2,3",
1217-
"EventCode": "0x35",
1218-
"EventName": "UNC_C_TOR_INSERTS.MISS_OPCODE",
1219-
"Filter": "filter_opc=0x1c8,filter_tid=0x3e",
1220-
"PerPkg": "1",
1221-
"ScaleUnit": "64Bytes",
1222-
"UMask": "0x3",
1223-
"Unit": "CBO"
1224-
},
12251070
{
12261071
"BriefDescription": "TOR Inserts; NID and Opcode Matched",
12271072
"Counter": "0,1,2,3",

0 commit comments

Comments
 (0)