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 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815
|
/*
* Contributed by Stephane Eranian
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
* of the Software, and to permit persons to whom the Software is furnished to do so,
* subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
* INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
* PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE
* OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*
* This file is part of libpfm, a performance monitoring support library for
* applications on Linux.
*
* PMU: amd64_fam19h_zen4 (AMD64 Fam19h Zen4)
*/
static const amd64_umask_t amd64_fam19h_zen4_retired_sse_avx_flops[]={
{ .uname = "ADD_SUB_FLOPS",
.udesc = "Addition/subtraction FLOPS",
.ucode = 0x1,
},
{ .uname = "MULT_FLOPS",
.udesc = "Multiplication FLOPS",
.ucode = 0x2,
},
{ .uname = "DIV_FLOPS",
.udesc = "Division/Square-root FLOPS",
.ucode = 0x4,
},
{ .uname = "MAC_FLOPS",
.udesc = "Multiply-Accumulate flops. Each MAC operation is counted as 2 FLOPS. This event does not include bfloat MAC operations",
.ucode = 0x8,
},
{ .uname = "BFLOAT_MAC_FLOPS",
.udesc = "Bfloat Multiply-Accumulate flops. Each MAC operation is counted as 2 FLOPS",
.ucode = 0x10,
},
{ .uname = "ANY",
.udesc = "Double precision add/subtract flops",
.ucode = 0x1f,
.uflags = AMD64_FL_DFL | AMD64_FL_NCOMBO,
},
};
static const amd64_umask_t amd64_fam19h_zen4_retired_serializing_ops[]={
{ .uname = "X87_CTRL_RET",
.udesc = "x87 control word mispredict traps due to mispredction in RC or PC, or changes in Exception Mask bits",
.ucode = 0x1,
},
{ .uname = "X87_BOT_RET",
.udesc = "x87 bottom-executing ops retired",
.ucode = 0x2,
},
{ .uname = "SSE_CTRL_RET",
.udesc = "SSE/AVX control word mispredict traps",
.ucode = 0x4,
},
{ .uname = "SSE_BOT_RET",
.udesc = "SSE/AVX bottom-executing ops retired",
.ucode = 0x8,
},
};
static const amd64_umask_t amd64_fam19h_zen4_retired_fp_ops_by_width[]={
{ .uname = "X87_UOPS_RETIRED",
.udesc = "X87 uops retired",
.ucode = 0x1,
},
{ .uname = "MMX_UOPS_RETIRED",
.udesc = "MMX uops retired",
.ucode = 0x2,
},
{ .uname = "SCALAR_UOPS_RETIRED",
.udesc = "Scalar uops retired",
.ucode = 0x4,
},
{ .uname = "PACK128_UOPS_RETIRED",
.udesc = "Packed 128-bit uops retired",
.ucode = 0x8,
},
{ .uname = "PACK256_UOPS_RETIRED",
.udesc = "Packed 256-bit uops retired",
.ucode = 0x10,
},
{ .uname = "PACK512_UOPS_RETIRED",
.udesc = "Packed 512-bit uops retired",
.ucode = 0x20,
},
};
static const amd64_umask_t amd64_fam19h_zen4_retired_fp_ops_by_type[]={
{ .uname = "SCALAR_ADD",
.udesc = "Number of scalar ADD ops retired",
.ucode = 0x01,
.uflags = AMD64_FL_NCOMBO,
},
{ .uname = "SCALAR_SUB",
.udesc = "Number of scalar SUB ops retired",
.ucode = 0x02,
.uflags = AMD64_FL_NCOMBO,
},
{ .uname = "SCALAR_MUL",
.udesc = "Number of scalar MUL ops retired",
.ucode = 0x03,
.uflags = AMD64_FL_NCOMBO,
},
{ .uname = "SCALAR_MAC",
.udesc = "Number of scalar MAC ops retired",
.ucode = 0x04,
.uflags = AMD64_FL_NCOMBO,
},
{ .uname = "SCALAR_DIV",
.udesc = "Number of scalar DIV ops retired",
.ucode = 0x05,
.uflags = AMD64_FL_NCOMBO,
},
{ .uname = "SCALAR_SQRT",
.udesc = "Number of scalar SQRT ops retired",
.ucode = 0x06,
.uflags = AMD64_FL_NCOMBO,
},
{ .uname = "SCALAR_CMP",
.udesc = "Number of scalar CMP ops retired",
.ucode = 0x07,
.uflags = AMD64_FL_NCOMBO,
},
{ .uname = "SCALAR_CVT",
.udesc = "Number of scalar CVT ops retired",
.ucode = 0x08,
.uflags = AMD64_FL_NCOMBO,
},
{ .uname = "SCALAR_BLEND",
.udesc = "Number of scalar BLEND ops retired",
.ucode = 0x09,
.uflags = AMD64_FL_NCOMBO,
},
{ .uname = "SCALAR_OTHER",
.udesc = "Number of other scalar ops retired",
.ucode = 0x0e,
.uflags = AMD64_FL_NCOMBO,
},
{ .uname = "SCALAR_ALL",
.udesc = "Number of anyscalar ops retired",
.ucode = 0x0f,
.uflags = AMD64_FL_NCOMBO,
},
{ .uname = "VECTOR_ADD",
.udesc = "Number of vector ADD ops retired",
.ucode = 0x10,
.uflags = AMD64_FL_NCOMBO,
},
{ .uname = "VECTOR_SUB",
.udesc = "Number of vector SUB ops retired",
.ucode = 0x20,
.uflags = AMD64_FL_NCOMBO,
},
{ .uname = "VECTOR_MUL",
.udesc = "Number of vector MUL ops retired",
.ucode = 0x30,
.uflags = AMD64_FL_NCOMBO,
},
{ .uname = "VECTOR_MAC",
.udesc = "Number of vector MAC ops retired",
.ucode = 0x40,
.uflags = AMD64_FL_NCOMBO,
},
{ .uname = "VECTOR_DIV",
.udesc = "Number of DIV ops retired",
.ucode = 0x50,
.uflags = AMD64_FL_NCOMBO,
},
{ .uname = "VECTOR_SQRT",
.udesc = "Number of vector SQRT ops retired",
.ucode = 0x60,
.uflags = AMD64_FL_NCOMBO,
},
{ .uname = "VECTOR_CMP",
.udesc = "Number of vector CMP ops retired",
.ucode = 0x70,
.uflags = AMD64_FL_NCOMBO,
},
{ .uname = "VECTOR_CVT",
.udesc = "Number of vector CVT ops retired",
.ucode = 0x80,
.uflags = AMD64_FL_NCOMBO,
},
{ .uname = "VECTOR_BLEND",
.udesc = "Number of vector BLEND ops retired",
.ucode = 0x90,
.uflags = AMD64_FL_NCOMBO,
},
{ .uname = "VECTOR_SHUFFLE",
.udesc = "Number of vector SHUFFLE ops retired",
.ucode = 0xb0,
.uflags = AMD64_FL_NCOMBO,
},
{ .uname = "VECTOR_LOGICAL",
.udesc = "Number of vector LOGICAL ops retired",
.ucode = 0xd0,
.uflags = AMD64_FL_NCOMBO,
},
{ .uname = "VECTOR_OTHER",
.udesc = "Number of other vector ops retired",
.ucode = 0xe0,
.uflags = AMD64_FL_NCOMBO,
},
{ .uname = "VECTOR_ALL",
.udesc = "Number of scalar ADD and vector ALL ops retired",
.ucode = 0xf0,
.uflags = AMD64_FL_NCOMBO,
},
};
static const amd64_umask_t amd64_fam19h_zen4_retired_int_ops[]={
{ .uname = "MMX_ADD",
.udesc = "Number of MMX ADD ops retired",
.ucode = 0x1,
.uflags = AMD64_FL_NCOMBO,
},
{ .uname = "MMX_SUB",
.udesc = "Number of MMX SUB ops retired",
.ucode = 0x2,
.uflags = AMD64_FL_NCOMBO,
},
{ .uname = "MMX_MUL",
.udesc = "Number of MMX MUL ops retired",
.ucode = 0x3,
.uflags = AMD64_FL_NCOMBO,
},
{ .uname = "MMX_MAC",
.udesc = "Number of MMX MAC ops retired",
.ucode = 0x4,
.uflags = AMD64_FL_NCOMBO,
},
{ .uname = "MMX_CMP",
.udesc = "Number of MMX CMP ops retired",
.ucode = 0x7,
.uflags = AMD64_FL_NCOMBO,
},
{ .uname = "MMX_SHIFT",
.udesc = "Number of MMX SHIFT ops retired",
.ucode = 0x9,
.uflags = AMD64_FL_NCOMBO,
},
{ .uname = "MMX_MOV",
.udesc = "Number of MMX MOV ops retired",
.ucode = 0xa,
.uflags = AMD64_FL_NCOMBO,
},
{ .uname = "MMX_SHUFFLE",
.udesc = "Number of MMX SHUFFLE ops retired",
.ucode = 0xb,
.uflags = AMD64_FL_NCOMBO,
},
{ .uname = "MMX_PACK",
.udesc = "Number of MMX PACK ops retired",
.ucode = 0xc,
.uflags = AMD64_FL_NCOMBO,
},
{ .uname = "MMX_LOGICAL",
.udesc = "Number of MMX LOGICAL ops retired",
.ucode = 0xd,
.uflags = AMD64_FL_NCOMBO,
},
{ .uname = "MMX_OTHER",
.udesc = "Number of other MMX ops retired",
.ucode = 0xe,
.uflags = AMD64_FL_NCOMBO,
},
{ .uname = "MMX_ALL",
.udesc = "Any MMX ops retired",
.ucode = 0xf,
.uflags = AMD64_FL_NCOMBO,
},
{ .uname = "SSE_AVX_ADD",
.udesc = "Number of SSE/AVX ADD ops retired",
.ucode = 0x10,
.uflags = AMD64_FL_NCOMBO,
},
{ .uname = "SSE_AVX_SUB",
.udesc = "Number of SSE/AVX SUB ops retired",
.ucode = 0x20,
.uflags = AMD64_FL_NCOMBO,
},
{ .uname = "SSE_AVX_MUL",
.udesc = "Number of SSE/AVX MUL ops retired",
.ucode = 0x30,
.uflags = AMD64_FL_NCOMBO,
},
{ .uname = "SSE_AVX_MAC",
.udesc = "Number of SSE/AVX MAC ops retired",
.ucode = 0x40,
.uflags = AMD64_FL_NCOMBO,
},
{ .uname = "SSE_AVX_AES",
.udesc = "Number of SSE/AVX AES ops retired",
.ucode = 0x50,
.uflags = AMD64_FL_NCOMBO,
},
{ .uname = "SSE_AVX_SHA",
.udesc = "Number of SSE/AVX SHA ops retired",
.ucode = 0x60,
.uflags = AMD64_FL_NCOMBO,
},
{ .uname = "SSE_AVX_CMP",
.udesc = "Number of SSE/AVX CMP ops retired",
.ucode = 0x70,
.uflags = AMD64_FL_NCOMBO,
},
{ .uname = "SSE_AVX_CLM",
.udesc = "Number of SSE/AVX CLM ops retired",
.ucode = 0x80,
.uflags = AMD64_FL_NCOMBO,
},
{ .uname = "SSE_AVX_SHIFT",
.udesc = "Number of SSE/AVX SHIFT ops retired",
.ucode = 0x90,
.uflags = AMD64_FL_NCOMBO,
},
{ .uname = "SSE_AVX_MOV",
.udesc = "Number of SSE/AVX MOV ops retired",
.ucode = 0xa0,
.uflags = AMD64_FL_NCOMBO,
},
{ .uname = "SSE_AVX_SHUFFLE",
.udesc = "Number of SSE/AVX SHUFFLE ops retired",
.ucode = 0xb0,
.uflags = AMD64_FL_NCOMBO,
},
{ .uname = "SSE_AVX_PACK",
.udesc = "Number of SSE/AVX PACK ops retired",
.ucode = 0xc0,
.uflags = AMD64_FL_NCOMBO,
},
{ .uname = "SSE_AVX_LOGICAL",
.udesc = "Number of SSE/AVX LOGICAL ops retired",
.ucode = 0xd0,
.uflags = AMD64_FL_NCOMBO,
},
{ .uname = "SSE_AVX_OTHER",
.udesc = "Number of other SSE/AVX ops retired",
.ucode = 0xe0,
.uflags = AMD64_FL_NCOMBO,
},
{ .uname = "SSE_AVX_ALL",
.udesc = "Any SSE/AVX ops retired",
.ucode = 0xf0,
.uflags = AMD64_FL_NCOMBO,
},
};
static const amd64_umask_t amd64_fam19h_zen4_fp_dispatch_faults[]={
{ .uname = "X87_FILL_FAULT",
.udesc = "x87 fill faults",
.ucode = 0x1,
},
{ .uname = "XMM_FILL_FAULT",
.udesc = "XMM fill faults",
.ucode = 0x2,
},
{ .uname = "YMM_FILL_FAULT",
.udesc = "YMM fill faults",
.ucode = 0x4,
},
{ .uname = "YMM_SPILL_FAULT",
.udesc = "YMM spill faults",
.ucode = 0x8,
},
{ .uname = "ANY",
.udesc = "Any FP dispatch faults",
.ucode = 0xf,
.uflags = AMD64_FL_DFL | AMD64_FL_NCOMBO,
},
};
static const amd64_umask_t amd64_fam19h_zen4_bad_status_2[]={
{ .uname = "STLI_OTHER",
.udesc = "Store-to-load conflicts. A load was unable to complete due to a non-forwardable conflict with an older store",
.ucode = 0x2,
.uflags = AMD64_FL_DFL,
},
};
static const amd64_umask_t amd64_fam19h_zen4_retired_lock_instructions[]={
{ .uname = "BUS_LOCK",
.udesc = "Number of bus locks",
.ucode = 0x1,
.uflags = AMD64_FL_DFL,
},
};
static const amd64_umask_t amd64_fam19h_zen4_ls_dispatch[]={
{ .uname = "LD_ST_DISPATCH",
.udesc = "Dispatched op that performs a load from and store to the same memory address",
.ucode = 0x4,
},
{ .uname = "STORE_DISPATCH",
.udesc = "Store ops dispatched",
.ucode = 0x2,
},
{ .uname = "LD_DISPATCH",
.udesc = "Load ops dispatched",
.ucode = 0x1,
},
};
static const amd64_umask_t amd64_fam19h_zen4_store_commit_cancels_2[]={
{ .uname = "WCB_FULL",
.udesc = "Non cacheable store and the non-cacheable commit buffer is full",
.ucode = 0x1,
.uflags = AMD64_FL_DFL,
},
};
static const amd64_umask_t amd64_fam19h_zen4_mab_allocation_by_type[]={
{ .uname = "LS",
.udesc = "Load store allocations",
.ucode = 0x3f,
.uflags = AMD64_FL_NCOMBO,
},
{ .uname = "HW_PF",
.udesc = "Hardware prefetcher allocations",
.ucode = 0x40,
.uflags = AMD64_FL_NCOMBO,
},
{ .uname = "ALL",
.udesc = "All allocations",
.ucode = 0x7f,
.uflags = AMD64_FL_NCOMBO | AMD64_FL_DFL,
},
};
static const amd64_umask_t amd64_fam19h_zen4_demand_data_fills_from_system[]={
{ .uname = "LCL_L2",
.udesc = "Fill from local L2 to the core",
.ucode = 0x1,
},
{ .uname = "LOCAL_CCX",
.udesc = "Fill from L3 or different L2 in same CCX",
.ucode = 0x2,
},
{ .uname = "NEAR_CACHE_NEAR_FAR",
.udesc = "Fill from cache of different CCX in same node",
.ucode = 0x4,
},
{ .uname = "DRAM_IO_NEAR",
.udesc = "Fill from DRAM or IO connected to same node",
.ucode = 0x8,
},
{ .uname = "FAR_CACHE_NEAR_FAR",
.udesc = "Fill from CCX cache in different node",
.ucode = 0x10,
},
{ .uname = "DRAM_IO_FAR",
.udesc = "Fill from DRAM or IO connected from a different node (same socket or remote)",
.ucode = 0x40,
},
{ .uname = "ALT_MEM_NEAR_FAR",
.udesc = "Fill from Extension Memory",
.ucode = 0x80,
},
};
static const amd64_umask_t amd64_fam19h_zen4_l1_dtlb_miss[]={
{ .uname = "TLB_RELOAD_1G_L2_MISS",
.udesc = "Data TLB reload to a 1GB page that missed in the L2 TLB",
.ucode = 0x80,
},
{ .uname = "TLB_RELOAD_2M_L2_MISS",
.udesc = "Data TLB reload to a 2MB page that missed in the L2 TLB",
.ucode = 0x40,
},
{ .uname = "TLB_RELOAD_COALESCED_PAGE_MISS",
.udesc = "Data TLB reload to a coalesced page that also missed in the L2 TLB",
.ucode = 0x20,
},
{ .uname = "TLB_RELOAD_4K_L2_MISS",
.udesc = "Data TLB reload to a 4KB page that missed in the L2 TLB",
.ucode = 0x10,
},
{ .uname = "TLB_RELOAD_1G_L2_HIT",
.udesc = "Data TLB reload to a 1GB page that hit in the L2 TLB",
.ucode = 0x8,
},
{ .uname = "TLB_RELOAD_2M_L2_HIT",
.udesc = "Data TLB reload to a 2MB page that hit in the L2 TLB",
.ucode = 0x4,
},
{ .uname = "TLB_RELOAD_COALESCED_PAGE_HIT",
.udesc = "Data TLB reload to a coalesced page that hit in the L2 TLB",
.ucode = 0x2,
},
{ .uname = "TLB_RELOAD_4K_L2_HIT",
.udesc = "Data TLB reload to a 4KB page that hit in the L2 TLB",
.ucode = 0x1,
},
};
static const amd64_umask_t amd64_fam19h_zen4_misaligned_loads[]={
{ .uname = "MA4K",
.udesc = "The number of 4KB misaligned (page crossing) loads",
.ucode = 0x2,
},
{ .uname = "MA64",
.udesc = "The number of 64B misaligned (cacheline crossing) loads",
.ucode = 0x1,
},
};
static const amd64_umask_t amd64_fam19h_zen4_prefetch_instructions_dispatched[]={
{ .uname = "PREFETCH_T0_T1_T2",
.udesc = "Number of prefetcht0, perfetcht1, prefetcht2 instructions dispatched",
.ucode = 0x1,
},
{ .uname = "PREFETCHW",
.udesc = "Number of prefetchtw instructions dispatched",
.ucode = 0x2,
},
{ .uname = "PREFETCHNTA",
.udesc = "Number of prefetchtnta instructions dispatched",
.ucode = 0x4,
},
{ .uname = "ANY",
.udesc = "Any prefetch",
.ucode = 0x7,
.uflags = AMD64_FL_DFL | AMD64_FL_NCOMBO,
},
};
static const amd64_umask_t amd64_fam19h_zen4_ineffective_software_prefetch[]={
{ .uname = "MAB_MCH_CNT",
.udesc = "Software prefetch instructions saw a match on an already allocated miss request buffer",
.ucode = 0x2,
},
{ .uname = "DATA_PIPE_SW_PF_DC_HIT",
.udesc = "Software Prefetch instruction saw a DC hit",
.ucode = 0x1,
},
};
static const amd64_umask_t amd64_fam19h_zen4_tlb_flushes[]={
{ .uname = "ALL",
.udesc = "Any TLB flush",
.ucode = 0xff,
.uflags = AMD64_FL_DFL,
},
};
static const amd64_umask_t amd64_fam19h_zen4_l1_itlb_miss_l2_itlb_miss[]={
{ .uname = "COALESCED4K",
.udesc = "Number of instruction fetches to a >4K coalesced page",
.ucode = 0x8,
},
{ .uname = "IF1G",
.udesc = "Number of instruction fetches to a 1GB page",
.ucode = 0x4,
},
{ .uname = "IF2M",
.udesc = "Number of instruction fetches to a 2MB page",
.ucode = 0x2,
},
{ .uname = "IF4K",
.udesc = "Number of instruction fetches to a 4KB page",
.ucode = 0x1,
},
};
static const amd64_umask_t amd64_fam19h_zen4_itlb_fetch_hit[]={
{ .uname = "IF1G",
.udesc = "L1 instruction fetch TLB hit a 1GB page size",
.ucode = 0x4,
},
{ .uname = "IF2M",
.udesc = "L1 instruction fetch TLB hit a 2MB page size",
.ucode = 0x2,
},
{ .uname = "IF4K",
.udesc = "L1 instruction fetch TLB hit a 4KB or 16KB page size",
.ucode = 0x1,
},
};
static const amd64_umask_t amd64_fam19h_zen4_ic_tag_hit_miss[]={
{ .uname = "IC_HIT",
.udesc = "Instruction cache hit",
.ucode = 0x7,
.uflags = AMD64_FL_NCOMBO,
},
{ .uname = "IC_MISS",
.udesc = "Instruction cache miss",
.ucode = 0x18,
.uflags = AMD64_FL_NCOMBO,
},
{ .uname = "ALL_IC_ACCESS",
.udesc = "All instruction cache accesses",
.ucode = 0x1f,
.uflags = AMD64_FL_NCOMBO | AMD64_FL_DFL,
},
};
static const amd64_umask_t amd64_fam19h_zen4_op_cache_hit_miss[]={
{ .uname = "OC_HIT",
.udesc = "Op cache hit",
.ucode = 0x3,
.uflags = AMD64_FL_NCOMBO,
},
{ .uname = "OC_MISS",
.udesc = "Op cache miss",
.ucode = 0x4,
.uflags = AMD64_FL_NCOMBO,
},
{ .uname = "ALL_OC_ACCESS",
.udesc = "All op cache accesses",
.ucode = 0x7,
.uflags = AMD64_FL_NCOMBO | AMD64_FL_DFL,
},
};
static const amd64_umask_t amd64_fam19h_zen4_ops_source_dispatched_from_decoder[]={
{ .uname = "DECODER",
.udesc = "Number of ops fetched from Instruction Cache and dispatched",
.ucode = 0x1,
},
{ .uname = "OPCACHE",
.udesc = "Number of ops fetched from Op Cache and dispatched",
.ucode = 0x2,
},
{ .uname = "LOOP_BUFFER",
.udesc = "Number of ops fetched from Loop buffer",
.ucode = 0x4,
},
};
static const amd64_umask_t amd64_fam19h_zen4_ops_type_dispatched_from_decoder[]={
{ .uname = "FP_DISPATCH",
.udesc = "Any FP dispatch",
.ucode = 0x04,
.uflags = AMD64_FL_NCOMBO,
},
{ .uname = "INTEGER_DISPATCH",
.udesc = "Any Integer dispatch",
.ucode = 0x08,
.uflags = AMD64_FL_NCOMBO,
},
};
static const amd64_umask_t amd64_fam19h_zen4_dispatch_resource_stall_cycles_1[]={
{ .uname = "INT_PHY_REG_FILE_RSRC_STALL",
.udesc = "Number of cycles stalled due to integer physical register file resource stalls. Applies to all ops that have integer destination register",
.ucode = 0x1,
},
{ .uname = "LOAD_QUEUE_RSRC_STALL",
.udesc = "Number of cycles stalled due to load queue resource stalls",
.ucode = 0x2,
},
{ .uname = "STORE_QUEUE_RSRC_STALL",
.udesc = "Number of cycles stalled due to store queue resource stalls",
.ucode = 0x4,
},
{ .uname = "TAKEN_BRANCH_BUFFER_RSRC_STALL",
.udesc = "Number of cycles stalled due to taken branch buffer resource stalls",
.ucode = 0x10,
},
{ .uname = "FP_REG_FILE_RSRC_STALL",
.udesc = "Number of cycles stalled due to floating-point register file resource stalls. Applies to all FP ops that have a destination register",
.ucode = 0x20,
},
{ .uname = "FP_SCHEDULER_RSRC_STALL",
.udesc = "Number of cycles stalled due to floating-point scheduler resource stalls",
.ucode = 0x40,
},
{ .uname = "FP_FLUSH_RECOVERY_STALL",
.udesc = "Number of cycles stalled due to floating-point flush recovery",
.ucode = 0x80,
},
};
static const amd64_umask_t amd64_fam19h_zen4_dispatch_resource_stall_cycles_2[]={
{ .uname = "INT_SCHEDULER_0_TOKEN_STALL",
.udesc = "Number of cycles stalled due to no tokens available for Integer Scheduler Queue 0",
.ucode = 0x1,
},
{ .uname = "INT_SCHEDULER_1_TOKEN_STALL",
.udesc = "Number of cycles stalled due to no tokens available for Integer Scheduler Queue 1",
.ucode = 0x2,
},
{ .uname = "INT_SCHEDULER_2_TOKEN_STALL",
.udesc = "Number of cycles stalled due to no tokens available for Integer Scheduler Queue 2",
.ucode = 0x4,
},
{ .uname = "INT_SCHEDULER_3_TOKEN_STALL",
.udesc = "Number of cycles stalled due to no tokens available for Integer Scheduler Queue 3",
.ucode = 0x8,
},
{ .uname = "RETIRE_TOKEN_STALL",
.udesc = "Number of cycles stalled due to insufficient tokens available for Retire Queue",
.ucode = 0x20,
},
};
static const amd64_umask_t amd64_fam19h_zen4_retired_mmx_fp_instructions[]={
{ .uname = "SSE_INSTR",
.udesc = "Number of SSE instructions (SSE, SSE2, SSE3, SSSE3, SSE4A, SSE41, SSE42, AVX)",
.ucode = 0x4,
},
{ .uname = "MMX_INSTR",
.udesc = "Number of MMX instructions",
.ucode = 0x2,
},
{ .uname = "X87_INSTR",
.udesc = "Number of x87 instructions",
.ucode = 0x1,
},
};
static const amd64_umask_t amd64_fam19h_zen4_tagged_ibs_ops[]={
{ .uname = "IBS_COUNT_ROLLOVER",
.udesc = "Number of times a op could not be tagged by IBS because of a previous tagged op that has not retired",
.ucode = 0x4,
},
{ .uname = "IBS_TAGGED_OPS_RET",
.udesc = "Number of ops tagged by IBS that retired",
.ucode = 0x2,
},
{ .uname = "IBS_TAGGED_OPS",
.udesc = "Number of ops tagged by IBS",
.ucode = 0x1,
},
};
static const amd64_umask_t amd64_fam19h_zen4_requests_to_l2_group1[]={
{ .uname = "RD_BLK_L",
.udesc = "Number of data cache reads (including software and hardware prefetches)",
.ucode = 0x80,
},
{ .uname = "RD_BLK_X",
.udesc = "Number of data cache stores",
.ucode = 0x40,
},
{ .uname = "LS_RD_BLK_C_S",
.udesc = "Number of data cache shared reads",
.ucode = 0x20,
},
{ .uname = "CACHEABLE_IC_READ",
.udesc = "Number of instruction cache reads",
.ucode = 0x10,
},
{ .uname = "CHANGE_TO_X",
.udesc = "Number of data requests change to writable, check L2 for current state",
.ucode = 0x8,
},
{ .uname = "PREFETCH_L2_CMD",
.udesc = "TBD",
.ucode = 0x4,
},
{ .uname = "L2_HW_PF",
.udesc = "Number of prefetches accepted by L2 pipeline, hit or miss",
.ucode = 0x2,
},
{ .uname = "MISC",
.udesc = "Count various non-cacheable requests: non-cached data read, non-cached instruction reads, self-modifying code checks",
.ucode = 0x1,
},
};
static const amd64_umask_t amd64_fam19h_zen4_core_to_l2_cacheable_request_access_status[]={
{ .uname = "LS_RD_BLK_C_S",
.udesc = "Number of data cache shared read hitting in the L2",
.ucode = 0x80,
},
{ .uname = "LS_RD_BLK_L_HIT_X",
.udesc = "Number of data cache reads hitting in the L2",
.ucode = 0x40,
},
{ .uname = "LS_RD_BLK_L_HIT_S",
.udesc = "Number of data cache reads hitting a non-modifiable line in the L2",
.ucode = 0x20,
},
{ .uname = "LS_RD_BLK_X",
.udesc = "Number of data cache store or state change requests hitting in the L2",
.ucode = 0x10,
},
{ .uname = "LS_RD_BLK_C",
.udesc = "Number of data cache requests missing in the L2 (all types)",
.ucode = 0x8,
},
{ .uname = "IC_FILL_HIT_X",
.udesc = "Number of instruction cache fill requests hitting a modifiable line in the L2",
.ucode = 0x4,
},
{ .uname = "IC_FILL_HIT_S",
.udesc = "Number of instruction cache fill requests hitting a non-modifiable line in the L2",
.ucode = 0x2,
},
{ .uname = "IC_FILL_MISS",
.udesc = "Number of instruction cache fill requests missing the L2",
.ucode = 0x1,
},
};
static const amd64_umask_t amd64_fam19h_zen4_l2_prefetch_hit_l2[]={
{ .uname = "L2_STREAM",
.udesc = "Number of requests from the L2Stream prefetcher",
.ucode = 0x1,
},
{ .uname = "L2_NEXT_LINE",
.udesc = "Number of requests from the L2 Next Line prefetcher",
.ucode = 0x2,
},
{ .uname = "L2_UP_DOWN",
.udesc = "Number of requests from the L2 Up Down prefetcher",
.ucode = 0x4,
},
{ .uname = "L2_BURST",
.udesc = "Number of requests from the L2 Burst prefetcher",
.ucode = 0x8,
},
{ .uname = "L2_STRIDE",
.udesc = "Number of requests from the L2 Stride prefetcher",
.ucode = 0x10,
},
{ .uname = "L1_STREAM",
.udesc = "Number of requests from the L2 Stream prefetcher",
.ucode = 0x20,
},
{ .uname = "L1_STRIDE",
.udesc = "Number of requests from the L1 Stride prefetcher",
.ucode = 0x40,
},
{ .uname = "L1_REGION",
.udesc = "Number of requests from the L1 Region prefetcher",
.ucode = 0x80,
},
};
static const amd64_umask_t amd64_fam19h_zen4_retired_x87_fp_ops[]={
{ .uname = "ADD_SUB_OPS",
.udesc = "Number of add/subtract ops",
.ucode = 0x01,
},
{ .uname = "MUL_OPS",
.udesc = "Number of multiply ops",
.ucode = 0x2,
},
{ .uname = "DIV_SQRT_OPS",
.udesc = "Number of divide and square root ops",
.ucode = 0x4,
},
};
static const amd64_umask_t amd64_fam19h_zen4_packed_int_ops_retired[]={
{ .uname = "INT128_ADD",
.udesc = "Number of integer 128-bit ADD ops retired",
.ucode = 0x01,
.uflags = AMD64_FL_NCOMBO,
},
{ .uname = "INT128_SUB",
.udesc = "Number of integer 128-bit SUB ops retired",
.ucode = 0x02,
.uflags = AMD64_FL_NCOMBO,
},
{ .uname = "INT128_MUL",
.udesc = "Number of integer 128-bit MUL ops retired",
.ucode = 0x03,
.uflags = AMD64_FL_NCOMBO,
},
{ .uname = "INT128_MAC",
.udesc = "Number of integer 256-bit MAC ops retired",
.ucode = 0x04,
.uflags = AMD64_FL_NCOMBO,
},
{ .uname = "INT128_AES",
.udesc = "Number of integer 128-bit AES ops retired",
.ucode = 0x05,
.uflags = AMD64_FL_NCOMBO,
},
{ .uname = "INT128_SHA",
.udesc = "Number of integer 128-bit SHA ops retired",
.ucode = 0x06,
.uflags = AMD64_FL_NCOMBO,
},
{ .uname = "INT128_CMP",
.udesc = "Number of integer 128-bit CMP ops retired",
.ucode = 0x07,
.uflags = AMD64_FL_NCOMBO,
},
{ .uname = "INT128_CLM",
.udesc = "Number of integer 128-bit CLM ops retired",
.ucode = 0x08,
.uflags = AMD64_FL_NCOMBO,
},
{ .uname = "INT128_SHIFT",
.udesc = "Number of integer 128-bit SHIFT ops retired",
.ucode = 0x09,
.uflags = AMD64_FL_NCOMBO,
},
{ .uname = "INT128_MOV",
.udesc = "Number of integer 128-bit MOV ops retired",
.ucode = 0x0a,
.uflags = AMD64_FL_NCOMBO,
},
{ .uname = "INT128_SHUFFLE",
.udesc = "Number of integer 128-bit SHUFFLE ops retired",
.ucode = 0x0b,
.uflags = AMD64_FL_NCOMBO,
},
{ .uname = "INT128_PACK",
.udesc = "Number of integer 128-bit PACK ops retired",
.ucode = 0x0c,
.uflags = AMD64_FL_NCOMBO,
},
{ .uname = "INT128_LOGICAL",
.udesc = "Number of integer 128-bit LOGICAL ops retired",
.ucode = 0x0d,
.uflags = AMD64_FL_NCOMBO,
},
{ .uname = "INT128_OTHER",
.udesc = "Number of other integer 128-bit ops retired",
.ucode = 0x0e,
.uflags = AMD64_FL_NCOMBO,
},
{ .uname = "INT128_ALL",
.udesc = "Any integer 128-bit ops retired",
.ucode = 0x0f,
.uflags = AMD64_FL_NCOMBO,
},
{ .uname = "INT256_ADD",
.udesc = "Number of integer 256-bit ADD ops retired",
.ucode = 0x10,
.uflags = AMD64_FL_NCOMBO,
},
{ .uname = "INT256_SUB",
.udesc = "Number of integer 256-bit SHIFT ops retired",
.ucode = 0x20,
.uflags = AMD64_FL_NCOMBO,
},
{ .uname = "INT256_MUL",
.udesc = "Number of integer 256-bit MUL ops retired",
.ucode = 0x30,
.uflags = AMD64_FL_NCOMBO,
},
{ .uname = "INT256_MAC",
.udesc = "Number of integer 256-bit MAC ops retired",
.ucode = 0x40,
.uflags = AMD64_FL_NCOMBO,
},
{ .uname = "INT256_CMP",
.udesc = "Number of integer 256-bit CMP ops retired",
.ucode = 0x70,
.uflags = AMD64_FL_NCOMBO,
},
{ .uname = "INT256_SHIFT",
.udesc = "Number of integer 256-bit SHIFT ops retired",
.ucode = 0x90,
.uflags = AMD64_FL_NCOMBO,
},
{ .uname = "INT256_MOV",
.udesc = "Number of integer 256-bit MOV ops retired",
.ucode = 0xa0,
.uflags = AMD64_FL_NCOMBO,
},
{ .uname = "INT256_SHUFFLE",
.udesc = "Number of integer 256-bit SHUFFLE ops retired",
.ucode = 0xb0,
.uflags = AMD64_FL_NCOMBO,
},
{ .uname = "INT256_PACK",
.udesc = "Number of integer 256-bit NONE ops retired",
.ucode = 0xc0,
.uflags = AMD64_FL_NCOMBO,
},
{ .uname = "INT256_LOGICAL",
.udesc = "Number of integer 256-bit LOGICAL ops retired",
.ucode = 0xd0,
.uflags = AMD64_FL_NCOMBO,
},
{ .uname = "INT256_OTHER",
.udesc = "Number of other integer 256-bit ops retired",
.ucode = 0xe0,
.uflags = AMD64_FL_NCOMBO,
},
{ .uname = "INT256_ALL",
.udesc = "Any integer 256-bit ops retired",
.ucode = 0xf0,
.uflags = AMD64_FL_NCOMBO,
},
};
static const amd64_umask_t amd64_fam19h_zen4_packed_fp_ops_retired[]={
{ .uname = "FP128_ADD",
.udesc = "Number of floating-point 128-bit ADD ops retired",
.ucode = 0x01,
.uflags = AMD64_FL_NCOMBO,
},
{ .uname = "FP128_SUB",
.udesc = "Number of floating-point 128-bit SUB ops retired",
.ucode = 0x02,
.uflags = AMD64_FL_NCOMBO,
},
{ .uname = "FP128_MUL",
.udesc = "Number of floating-point 128-bit MUL ops retired",
.ucode = 0x03,
.uflags = AMD64_FL_NCOMBO,
},
{ .uname = "FP128_MAC",
.udesc = "Number of floating-point 128-bit MAC ops retired",
.ucode = 0x04,
.uflags = AMD64_FL_NCOMBO,
},
{ .uname = "FP128_DIV",
.udesc = "Number of floating-point 128-bit DIV ops retired",
.ucode = 0x05,
.uflags = AMD64_FL_NCOMBO,
},
{ .uname = "FP128_SQRT",
.udesc = "Number of floating-point 128-bit SQRT ops retired",
.ucode = 0x06,
.uflags = AMD64_FL_NCOMBO,
},
{ .uname = "FP128_CMP",
.udesc = "Number of floating-point 128-bit CMP ops retired",
.ucode = 0x07,
.uflags = AMD64_FL_NCOMBO,
},
{ .uname = "FP128_CVT",
.udesc = "Number of floating-point 128-bit CVT ops retired",
.ucode = 0x08,
.uflags = AMD64_FL_NCOMBO,
},
{ .uname = "FP128_BLEND",
.udesc = "Number of floating-point 128-bit 256-bit BLEND ops retired",
.ucode = 0x09,
.uflags = AMD64_FL_NCOMBO,
},
{ .uname = "FP128_SHUFFLE",
.udesc = "Number of floating-point 128-bit SHUFFLE ops retired",
.ucode = 0x0b,
.uflags = AMD64_FL_NCOMBO,
},
{ .uname = "FP128_LOGICAL",
.udesc = "Number of floating-point 128-bit LOGICAL ops retired",
.ucode = 0x0d,
.uflags = AMD64_FL_NCOMBO,
},
{ .uname = "FP128_OTHER",
.udesc = "Number of other floating-point 128-bit ops retired",
.ucode = 0x0e,
.uflags = AMD64_FL_NCOMBO,
},
{ .uname = "FP128_ALL",
.udesc = "Number of any floating-point 128-bit ops retired",
.ucode = 0x0f,
.uflags = AMD64_FL_NCOMBO,
},
{ .uname = "FP256_ADD",
.udesc = "Number of floating-point 256-bit ADD ops retired",
.ucode = 0x10,
.uflags = AMD64_FL_NCOMBO,
},
{ .uname = "FP256_SUB",
.udesc = "Number of floating-point 256-bit SUB ops retired",
.ucode = 0x20,
.uflags = AMD64_FL_NCOMBO,
},
{ .uname = "FP256_MUL",
.udesc = "Number of floating-point 256-bit MUL ops retired",
.ucode = 0x30,
.uflags = AMD64_FL_NCOMBO,
},
{ .uname = "FP256_MAC",
.udesc = "Number of floating-point 256-bit MAC ops retired",
.ucode = 0x40,
.uflags = AMD64_FL_NCOMBO,
},
{ .uname = "FP256_DIV",
.udesc = "Number of floating-point 256-bit DIV ops retired",
.ucode = 0x50,
.uflags = AMD64_FL_NCOMBO,
},
{ .uname = "FP256_SQRT",
.udesc = "Number of floating-point 256-bit SQRT ops retired",
.ucode = 0x60,
.uflags = AMD64_FL_NCOMBO,
},
{ .uname = "FP256_CMP",
.udesc = "Number of floating-point 256-bit CMP ops retired",
.ucode = 0x70,
.uflags = AMD64_FL_NCOMBO,
},
{ .uname = "FP256_CVT",
.udesc = "Number of floating-point 256-bit CVT ops retired",
.ucode = 0x80,
.uflags = AMD64_FL_NCOMBO,
},
{ .uname = "FP256_BLEND",
.udesc = "Number of floating-point 256-bit BLEND ops retired",
.ucode = 0x90,
.uflags = AMD64_FL_NCOMBO,
},
{ .uname = "FP256_SHUFFLE",
.udesc = "Number of floating-point 256-bit SHUFFLE ops retired",
.ucode = 0xb0,
.uflags = AMD64_FL_NCOMBO,
},
{ .uname = "FP256_LOGICAL",
.udesc = "Number of floating-point 256-bit LOGICAL ops retired",
.ucode = 0xd0,
.uflags = AMD64_FL_NCOMBO,
},
{ .uname = "FP256_OTHER",
.udesc = "Number of other floating-point 256-bit ops retired",
.ucode = 0xe0,
.uflags = AMD64_FL_NCOMBO,
},
{ .uname = "FP256_ALL",
.udesc = "Any floating-point 256-bit ops retired",
.ucode = 0xf0,
.uflags = AMD64_FL_NCOMBO,
},
};
static const amd64_umask_t amd64_fam19h_zen4_p0_freq_cycles_not_in_halt[]={
{ .uname = "P0_FREQ_CYCLES",
.udesc = "Counts at P0 frequency (same as MPERF) when CPU is not in halted state",
.ucode = 0x1,
.uflags = AMD64_FL_DFL,
}
};
static const amd64_umask_t amd64_fam19h_zen4_dispatch_stalls_1[]={
{ .uname = "FE_NO_OPS",
.udesc = "Counts dispatch slots left empty because the front-end did not supply ops",
.ucode = 0x01,
.uflags = AMD64_FL_NCOMBO,
},
{ .uname = "BE_STALLS",
.udesc = "Counts uops unable to dispatch due to back-end stalls",
.ucode = 0x1e,
.uflags = AMD64_FL_NCOMBO,
},
{ .uname = "SMT_CONTENTION",
.udesc = "Counts dispatch slots left empty because of back-end stalls",
.ucode = 0x60,
.uflags = AMD64_FL_NCOMBO,
}
};
static const amd64_umask_t amd64_fam19h_zen4_dispatch_stalls_2[]={
{ .uname = "FE_NO_OPS",
.udesc = "Counts cycles dispatch is stall due to the lack of dispatch resources",
.ucode = 0x30,
.uflags = AMD64_FL_DFL,
},
};
static const amd64_umask_t amd64_fam19h_zen4_cycles_no_retire[]={
{ .uname = "EMPTY",
.udesc = "Number of cycles when there were no valid ops in the retire queue. This may be caused by front-end bottlenecks or pipeline redirects",
.ucode = 0x1,
.uflags = AMD64_FL_NCOMBO,
},
{ .uname = "NOT_COMPLETE_LOAD_AND_ALU",
.udesc = "Number of cycles when the oldest retire slot did not have its completion bits set. Only load and ALU completion considered",
.ucode = 0x2,
.uflags = AMD64_FL_NCOMBO,
},
{ .uname = "NOT_COMPLETE_MISSING_LOAD",
.udesc = "Number of cycles when the oldest retire slot did not have its completion bits set. Only missing Load completion considered",
.ucode = 0xa2,
.uflags = AMD64_FL_NCOMBO,
},
{ .uname = "OTHER",
.udesc = "Number of cycles where ops could have retired but were stopped from retirement for other reasons: retire breaks, traps, faults, etc",
.ucode = 0x8,
.uflags = AMD64_FL_NCOMBO,
},
{ .uname = "THREAD_NOT_SELECTED",
.udesc = "Number of cycles where ops could have retired but did not because thread arbitration did not select the thread for retire",
.ucode = 0x10,
.uflags = AMD64_FL_NCOMBO,
},
};
static const amd64_entry_t amd64_fam19h_zen4_pe[]={
{ .name = "RETIRED_X87_FP_OPS",
.desc = "Number of X87 floating-point ops retired",
.modmsk = AMD64_FAM19H_ATTRS,
.code = 0x2,
.flags = 0,
.ngrp = 1,
.numasks = LIBPFM_ARRAY_SIZE(amd64_fam19h_zen4_retired_x87_fp_ops),
.umasks = amd64_fam19h_zen4_retired_x87_fp_ops,
},
{ .name = "RETIRED_SSE_AVX_FLOPS",
.desc = "This is a retire-based event. The number of retired SSE/AVX FLOPS. The number of events logged per cycle can vary from 0 to 64. This event can count above 15 and therefore requires the MergeEvent",
.modmsk = AMD64_FAM19H_ATTRS,
.code = 0x3,
.flags = 0,
.ngrp = 1,
.numasks = LIBPFM_ARRAY_SIZE(amd64_fam19h_zen4_retired_sse_avx_flops),
.umasks = amd64_fam19h_zen4_retired_sse_avx_flops,
},
{ .name = "RETIRED_SERIALIZING_OPS",
.desc = "The number of serializing ops retired",
.modmsk = AMD64_FAM19H_ATTRS,
.code = 0x5,
.flags = 0,
.ngrp = 1,
.numasks = LIBPFM_ARRAY_SIZE(amd64_fam19h_zen4_retired_serializing_ops),
.umasks = amd64_fam19h_zen4_retired_serializing_ops,
},
{ .name = "RETIRED_FP_OPS_BY_WIDTH",
.desc = "The number of retired floating-point ops by width",
.modmsk = AMD64_FAM19H_ATTRS,
.code = 0x8,
.flags = 0,
.ngrp = 1,
.numasks = LIBPFM_ARRAY_SIZE(amd64_fam19h_zen4_retired_fp_ops_by_width),
.umasks = amd64_fam19h_zen4_retired_fp_ops_by_width,
},
{ .name = "RETIRED_FP_OPS_BY_TYPE",
.desc = "The number of retired floating-point ops by type",
.modmsk = AMD64_FAM19H_ATTRS,
.code = 0xa,
.flags = 0,
.ngrp = 1,
.numasks = LIBPFM_ARRAY_SIZE(amd64_fam19h_zen4_retired_fp_ops_by_type),
.umasks = amd64_fam19h_zen4_retired_fp_ops_by_type,
},
{ .name = "RETIRED_INT_OPS",
.desc = "The number of retired integer ops (SSE/AVX)",
.modmsk = AMD64_FAM19H_ATTRS,
.code = 0xb,
.flags = 0,
.ngrp = 1,
.numasks = LIBPFM_ARRAY_SIZE(amd64_fam19h_zen4_retired_int_ops),
.umasks = amd64_fam19h_zen4_retired_int_ops,
},
{ .name = "PACKED_FP_OPS_RETIRED",
.desc = "The number of packed floating-point operations",
.modmsk = AMD64_FAM19H_ATTRS,
.code = 0xc,
.flags = 0,
.ngrp = 1,
.numasks = LIBPFM_ARRAY_SIZE(amd64_fam19h_zen4_packed_fp_ops_retired),
.umasks = amd64_fam19h_zen4_packed_fp_ops_retired,
},
{ .name = "PACKED_INT_OPS_RETIRED",
.desc = "The number of packed integer operations",
.modmsk = AMD64_FAM19H_ATTRS,
.code = 0xd,
.flags = 0,
.ngrp = 1,
.numasks = LIBPFM_ARRAY_SIZE(amd64_fam19h_zen4_packed_int_ops_retired),
.umasks = amd64_fam19h_zen4_packed_int_ops_retired,
},
{ .name = "FP_DISPATCH_FAULTS",
.desc = "Floating-point dispatch faults",
.modmsk = AMD64_FAM19H_ATTRS,
.code = 0xe,
.flags = 0,
.ngrp = 1,
.numasks = LIBPFM_ARRAY_SIZE(amd64_fam19h_zen4_fp_dispatch_faults),
.umasks = amd64_fam19h_zen4_fp_dispatch_faults,
},
{ .name = "BAD_STATUS_2",
.desc = "TBD",
.modmsk = AMD64_FAM19H_ATTRS,
.code = 0x24,
.flags = 0,
.ngrp = 1,
.numasks = LIBPFM_ARRAY_SIZE(amd64_fam19h_zen4_bad_status_2),
.umasks = amd64_fam19h_zen4_bad_status_2,
},
{ .name = "RETIRED_LOCK_INSTRUCTIONS",
.desc = "Counts the number of retired locked instructions",
.modmsk = AMD64_FAM19H_ATTRS,
.code = 0x25,
.flags = 0,
.ngrp = 1,
.numasks = LIBPFM_ARRAY_SIZE(amd64_fam19h_zen4_retired_lock_instructions),
.umasks = amd64_fam19h_zen4_retired_lock_instructions,
},
{ .name = "RETIRED_CLFLUSH_INSTRUCTIONS",
.desc = "Counts the number of retired non-speculative clflush instructions",
.modmsk = AMD64_FAM19H_ATTRS,
.code = 0x26,
.flags = 0,
},
{ .name = "RETIRED_CPUID_INSTRUCTIONS",
.desc = "Counts the number of retired cpuid instructions",
.modmsk = AMD64_FAM19H_ATTRS,
.code = 0x27,
.flags = 0,
},
{ .name = "LS_DISPATCH",
.desc = "Counts the number of operations dispatched to the LS unit. Unit Masks ADDed",
.modmsk = AMD64_FAM19H_ATTRS,
.code = 0x29,
.flags = 0,
.ngrp = 1,
.numasks = LIBPFM_ARRAY_SIZE(amd64_fam19h_zen4_ls_dispatch),
.umasks = amd64_fam19h_zen4_ls_dispatch,
},
{ .name = "SMI_RECEIVED",
.desc = "Counts the number system management interrupts (SMI) received",
.modmsk = AMD64_FAM19H_ATTRS,
.code = 0x2b,
.flags = 0,
},
{ .name = "INTERRUPT_TAKEN",
.desc = "Counts the number of interrupts taken",
.modmsk = AMD64_FAM19H_ATTRS,
.code = 0x2c,
.flags = 0,
},
{ .name = "STORE_TO_LOAD_FORWARD",
.desc = "Number of STore to Load Forward hits",
.modmsk = AMD64_FAM19H_ATTRS,
.code = 0x35,
.flags = 0,
.ngrp = 0,
},
{ .name = "STORE_COMMIT_CANCELS_2",
.desc = "TBD",
.modmsk = AMD64_FAM19H_ATTRS,
.code = 0x37,
.flags = 0,
.ngrp = 1,
.numasks = LIBPFM_ARRAY_SIZE(amd64_fam19h_zen4_store_commit_cancels_2),
.umasks = amd64_fam19h_zen4_store_commit_cancels_2,
},
{ .name = "MAB_ALLOCATION_BY_TYPE",
.desc = "Counts when a LS pipe allocates a MAB entry",
.modmsk = AMD64_FAM19H_ATTRS,
.code = 0x41,
.flags = 0,
.ngrp = 1,
.numasks = LIBPFM_ARRAY_SIZE(amd64_fam19h_zen4_mab_allocation_by_type),
.umasks = amd64_fam19h_zen4_mab_allocation_by_type,
},
{ .name = "DEMAND_DATA_CACHE_FILLS_FROM_SYSTEM",
.desc = "Demand Data Cache fills by data source",
.modmsk = AMD64_FAM19H_ATTRS,
.code = 0x43,
.flags = 0,
.ngrp = 1,
.numasks = LIBPFM_ARRAY_SIZE(amd64_fam19h_zen4_demand_data_fills_from_system),
.umasks = amd64_fam19h_zen4_demand_data_fills_from_system,
},
{ .name = "ANY_DATA_CACHE_FILLS_FROM_SYSTEM",
.desc = "Any Data Cache fills by data source",
.modmsk = AMD64_FAM19H_ATTRS,
.code = 0x44,
.flags = 0,
.ngrp = 1,
.numasks = LIBPFM_ARRAY_SIZE(amd64_fam19h_zen4_demand_data_fills_from_system),
.umasks = amd64_fam19h_zen4_demand_data_fills_from_system, /* shared */
},
{ .name = "L1_DTLB_MISS",
.desc = "L1 Data TLB misses",
.modmsk = AMD64_FAM19H_ATTRS,
.code = 0x45,
.flags = 0,
.ngrp = 1,
.numasks = LIBPFM_ARRAY_SIZE(amd64_fam19h_zen4_l1_dtlb_miss),
.umasks = amd64_fam19h_zen4_l1_dtlb_miss,
},
{ .name = "MISALIGNED_LOADS",
.desc = "Misaligned loads retired",
.modmsk = AMD64_FAM19H_ATTRS,
.code = 0x47,
.flags = 0,
.ngrp = 1,
.numasks = LIBPFM_ARRAY_SIZE(amd64_fam19h_zen4_misaligned_loads),
.umasks = amd64_fam19h_zen4_misaligned_loads,
},
{ .name = "PREFETCH_INSTRUCTIONS_DISPATCHED",
.desc = "Software Prefetch Instructions Dispatched. This is a speculative event",
.modmsk = AMD64_FAM19H_ATTRS,
.code = 0x4b,
.flags = 0,
.ngrp = 1,
.numasks = LIBPFM_ARRAY_SIZE(amd64_fam19h_zen4_prefetch_instructions_dispatched),
.umasks = amd64_fam19h_zen4_prefetch_instructions_dispatched,
},
{ .name = "INEFFECTIVE_SOFTWARE_PREFETCH",
.desc = "Number of software prefetches that did not fetch data outside of the processor core",
.modmsk = AMD64_FAM19H_ATTRS,
.code = 0x52,
.flags = 0,
.ngrp = 1,
.numasks = LIBPFM_ARRAY_SIZE(amd64_fam19h_zen4_ineffective_software_prefetch),
.umasks = amd64_fam19h_zen4_ineffective_software_prefetch,
},
{ .name = "SOFTWARE_PREFETCH_DATA_CACHE_FILLS",
.desc = "Number of software prefetches fills by data source",
.modmsk = AMD64_FAM19H_ATTRS,
.code = 0x59,
.flags = 0,
.ngrp = 1,
.numasks = LIBPFM_ARRAY_SIZE(amd64_fam19h_zen4_demand_data_fills_from_system),
.umasks = amd64_fam19h_zen4_demand_data_fills_from_system, /* shared */
},
{ .name = "HARDWARE_PREFETCH_DATA_CACHE_FILLS",
.desc = "Number of hardware prefetches fills by data source",
.modmsk = AMD64_FAM19H_ATTRS,
.code = 0x5a,
.flags = 0,
.ngrp = 1,
.numasks = LIBPFM_ARRAY_SIZE(amd64_fam19h_zen4_demand_data_fills_from_system),
.umasks = amd64_fam19h_zen4_demand_data_fills_from_system, /* shared */
},
{ .name = "ALLOC_MAB_COUNT",
.desc = "Counts the in-flight L1 data cache misses (allocated Miss Address Buffers) divided by 4 and rounded down each cycle unless used with the MergeEvent functionality. If the MergeEvent is used, it counts the exact number of outstanding L1 data cache misses",
.modmsk = AMD64_FAM19H_ATTRS,
.code = 0x5f,
.flags = 0,
.ngrp = 0,
},
{ .name = "CYCLES_NOT_IN_HALT",
.desc = "Number of core cycles not in halted state",
.modmsk = AMD64_FAM19H_ATTRS,
.code = 0x76,
.flags = 0,
.ngrp = 0,
},
{ .name = "TLB_FLUSHES",
.desc = "Number of TLB flushes",
.modmsk = AMD64_FAM19H_ATTRS,
.code = 0x78,
.flags = 0,
.ngrp = 1,
.numasks = LIBPFM_ARRAY_SIZE(amd64_fam19h_zen4_tlb_flushes),
.umasks = amd64_fam19h_zen4_tlb_flushes,
},
{ .name = "P0_FREQ_CYCLES_NOT_IN_HALT",
.desc = "Number of core cycle4s not in halted state by P-level",
.modmsk = AMD64_FAM19H_ATTRS,
.code = 0x120,
.flags = 0,
.ngrp = 1,
.numasks = LIBPFM_ARRAY_SIZE(amd64_fam19h_zen4_p0_freq_cycles_not_in_halt),
.umasks = amd64_fam19h_zen4_p0_freq_cycles_not_in_halt,
},
{ .name = "INSTRUCTION_CACHE_REFILLS_FROM_L2",
.desc = "Number of 64-byte instruction cachelines that was fulfilled by the L2 cache",
.modmsk = AMD64_FAM19H_ATTRS,
.code = 0x82,
.flags = 0,
.ngrp = 0,
},
{ .name = "INSTRUCTION_CACHE_REFILLS_FROM_SYSTEM",
.desc = "Number of 64-byte instruction cachelines fulfilled from system memory or another cache",
.modmsk = AMD64_FAM19H_ATTRS,
.code = 0x83,
.flags = 0,
.ngrp = 0,
},
{ .name = "L1_ITLB_MISS_L2_ITLB_HIT",
.desc = "Number of instruction fetches that miss in the L1 ITLB but hit in the L2 ITLB",
.modmsk = AMD64_FAM19H_ATTRS,
.code = 0x84,
.flags = 0,
.ngrp = 0,
},
{ .name = "L1_ITLB_MISS_L2_ITLB_MISS",
.desc = "The number of valid fills into the ITLB originating from the LS Page-Table Walker. Tablewalk requests are issued for L1-ITLB and L2-ITLB misses",
.modmsk = AMD64_FAM19H_ATTRS,
.code = 0x85,
.flags = 0,
.ngrp = 1,
.numasks = LIBPFM_ARRAY_SIZE(amd64_fam19h_zen4_l1_itlb_miss_l2_itlb_miss),
.umasks = amd64_fam19h_zen4_l1_itlb_miss_l2_itlb_miss,
},
{ .name = "L2_BTB_CORRECTION",
.desc = "Number of L2 branch prediction overrides of existing prediction. This is a speculative event",
.modmsk = AMD64_FAM19H_ATTRS,
.code = 0x8b,
.flags = 0,
.ngrp = 0,
},
{ .name = "DYNAMIC_INDIRECT_PREDICTIONS",
.desc = "Number of times a branch used the indirect predictor to make a prediction",
.modmsk = AMD64_FAM19H_ATTRS,
.code = 0x8e,
.flags = 0,
.ngrp = 0,
},
{ .name = "DECODER_OVERRIDE_BRANCH_PRED",
.desc = "Number of decoder overrides of existing branch prediction",
.modmsk = AMD64_FAM19H_ATTRS,
.code = 0x91,
.flags = 0,
.ngrp = 0,
},
{ .name = "L1_ITLB_FETCH_HIT",
.desc = "Instruction fetches that hit in the L1 ITLB",
.modmsk = AMD64_FAM19H_ATTRS,
.code = 0x94,
.flags = 0,
.ngrp = 1,
.numasks = LIBPFM_ARRAY_SIZE(amd64_fam19h_zen4_itlb_fetch_hit),
.umasks = amd64_fam19h_zen4_itlb_fetch_hit,
},
{ .name = "RESYNCS",
.desc = "Number of HW resyncs (pipeline restarts) or NC redirects. NC redirects occur when front-end transitions to fetching from un-cacheable memory",
.modmsk = AMD64_FAM19H_ATTRS,
.code = 0x96,
.flags = 0,
.ngrp = 0,
},
{ .name = "IC_TAG_HIT_MISS",
.desc = "Counts various IC tag related hit and miss events",
.modmsk = AMD64_FAM19H_ATTRS,
.code = 0x18e,
.flags = 0,
.ngrp = 1,
.numasks = LIBPFM_ARRAY_SIZE(amd64_fam19h_zen4_ic_tag_hit_miss),
.umasks = amd64_fam19h_zen4_ic_tag_hit_miss,
},
{ .name = "OP_CACHE_HIT_MISS",
.desc = "Counts op cache micro-tag hit/miss events",
.modmsk = AMD64_FAM19H_ATTRS,
.code = 0x28f,
.flags = 0,
.ngrp = 1,
.numasks = LIBPFM_ARRAY_SIZE(amd64_fam19h_zen4_op_cache_hit_miss),
.umasks = amd64_fam19h_zen4_op_cache_hit_miss,
},
{ .name = "OPS_QUEUE_EMPTY",
.desc = "Number of cycles where the uop queue is empty",
.modmsk = AMD64_FAM19H_ATTRS,
.code = 0xa9,
.flags = 0,
.ngrp = 0,
},
{ .name = "OPS_SOURCE_DISPATCHED_FROM_DECODER",
.desc = "Number of ops dispatched from the decoder classified by op source",
.modmsk = AMD64_FAM19H_ATTRS,
.code = 0xaa,
.flags = 0,
.ngrp = 1,
.numasks = LIBPFM_ARRAY_SIZE(amd64_fam19h_zen4_ops_source_dispatched_from_decoder),
.umasks = amd64_fam19h_zen4_ops_source_dispatched_from_decoder,
},
{ .name = "OPS_TYPE_DISPATCHED_FROM_DECODER",
.desc = "Number of ops dispatched from the decoder classified by op type",
.modmsk = AMD64_FAM19H_ATTRS,
.code = 0xab,
.flags = 0,
.ngrp = 1,
.numasks = LIBPFM_ARRAY_SIZE(amd64_fam19h_zen4_ops_type_dispatched_from_decoder),
.umasks = amd64_fam19h_zen4_ops_type_dispatched_from_decoder,
},
{ .name = "DISPATCH_RESOURCE_STALL_CYCLES_1",
.desc = "Number of cycles where a dispatch group is valid but does not get dispatched due to a Token Stall",
.modmsk = AMD64_FAM19H_ATTRS,
.code = 0xae,
.flags = 0,
.ngrp = 1,
.numasks = LIBPFM_ARRAY_SIZE(amd64_fam19h_zen4_dispatch_resource_stall_cycles_1),
.umasks = amd64_fam19h_zen4_dispatch_resource_stall_cycles_1,
},
{ .name = "DISPATCH_RESOURCE_STALL_CYCLES_2",
.desc = "Number of cycles where a dispatch group is valid but does not get dispatched due to a Token Stall",
.modmsk = AMD64_FAM19H_ATTRS,
.code = 0xaf,
.flags = 0,
.ngrp = 1,
.numasks = LIBPFM_ARRAY_SIZE(amd64_fam19h_zen4_dispatch_resource_stall_cycles_2),
.umasks = amd64_fam19h_zen4_dispatch_resource_stall_cycles_2,
},
{ .name = "DISPATCH_STALLS_1",
.desc = "For each cycle, counts the number of dispatch slots that remained unused for a given reason",
.modmsk = AMD64_FAM19H_ATTRS,
.code = 0x1a0,
.flags = 0,
.ngrp = 1,
.numasks = LIBPFM_ARRAY_SIZE(amd64_fam19h_zen4_dispatch_stalls_1),
.umasks = amd64_fam19h_zen4_dispatch_stalls_1,
},
{ .name = "DISPATCH_STALLS_2",
.desc = "For each cycle, counts the number of dispatch slots that remained unused for a given reason",
.modmsk = AMD64_FAM19H_ATTRS,
.code = 0x1a2,
.flags = 0,
.ngrp = 1,
.numasks = LIBPFM_ARRAY_SIZE(amd64_fam19h_zen4_dispatch_stalls_2),
.umasks = amd64_fam19h_zen4_dispatch_stalls_2,
},
{ .name = "RETIRED_INSTRUCTIONS",
.desc = "Number of instructions retired",
.modmsk = AMD64_FAM19H_ATTRS,
.code = 0xc0,
.flags = 0,
.ngrp = 0,
},
{ .name = "RETIRED_OPS",
.desc = "Number of macro-ops retired",
.modmsk = AMD64_FAM19H_ATTRS,
.code = 0xc1,
.flags = 0,
.ngrp = 0,
},
{ .name = "RETIRED_BRANCH_INSTRUCTIONS",
.desc = "Number of branch instructions retired. This includes all types of architectural control flow changes, including exceptions and interrupts",
.modmsk = AMD64_FAM19H_ATTRS,
.code = 0xc2,
.flags = 0,
.ngrp = 0,
},
{ .name = "RETIRED_BRANCH_INSTRUCTIONS_MISPREDICTED",
.desc = "Number of retired branch instructions, that were mispredicted",
.modmsk = AMD64_FAM19H_ATTRS,
.code = 0xc3,
.flags = 0,
.ngrp = 0,
},
{ .name = "RETIRED_TAKEN_BRANCH_INSTRUCTIONS",
.desc = "Number of taken branches that were retired. This includes all types of architectural control flow changes, including exceptions and interrupts",
.modmsk = AMD64_FAM19H_ATTRS,
.code = 0xc4,
.flags = 0,
.ngrp = 0,
},
{ .name = "RETIRED_TAKEN_BRANCH_INSTRUCTIONS_MISPREDICTED",
.desc = "Number of retired taken branch instructions that were mispredicted",
.modmsk = AMD64_FAM19H_ATTRS,
.code = 0xc5,
.flags = 0,
.ngrp = 0,
},
{ .name = "RETIRED_FAR_CONTROL_TRANSFERS",
.desc = "Number of far control transfers retired including far call/jump/return, IRET, SYSCALL and SYSRET, plus exceptions and interrupts. Far control transfers are not subject to branch prediction",
.modmsk = AMD64_FAM19H_ATTRS,
.code = 0xc6,
.flags = 0,
.ngrp = 0,
},
{ .name = "RETIRED_NEAR_RETURNS",
.desc = "Number of near return instructions (RET or RET Iw) retired",
.modmsk = AMD64_FAM19H_ATTRS,
.code = 0xc8,
.flags = 0,
.ngrp = 0,
},
{ .name = "RETIRED_NEAR_RETURNS_MISPREDICTED",
.desc = "Number of near returns retired that were not correctly predicted by the return address predictor. Each such mispredict incurs the same penalty as a mispredicted conditional branch instruction",
.modmsk = AMD64_FAM19H_ATTRS,
.code = 0xc9,
.flags = 0,
.ngrp = 0,
},
{ .name = "RETIRED_INDIRECT_BRANCH_INSTRUCTIONS_MISPREDICTED",
.desc = "Number of indirect branches retired there were not correctly predicted. Each such mispredict incurs the same penalty as a mispredicted condition branch instruction. Only EX mispredicts are counted",
.modmsk = AMD64_FAM19H_ATTRS,
.code = 0xca,
.flags = 0,
.ngrp = 0,
},
{ .name = "RETIRED_MMX_FP_INSTRUCTIONS",
.desc = "Number of MMX, SSE or x87 instructions retired. The UnitMask allows the selection of the individual classes of instructions as given in the table. Each increment represents one complete instruction. Since this event includes non-numeric instructions, it is not suitable for measuring MFLOPS",
.modmsk = AMD64_FAM19H_ATTRS,
.code = 0xcb,
.flags = 0,
.ngrp = 1,
.numasks = LIBPFM_ARRAY_SIZE(amd64_fam19h_zen4_retired_mmx_fp_instructions),
.umasks = amd64_fam19h_zen4_retired_mmx_fp_instructions,
},
{ .name = "RETIRED_INDIRECT_BRANCH_INSTRUCTIONS",
.desc = "Number of indirect branches retired",
.modmsk = AMD64_FAM19H_ATTRS,
.code = 0xcc,
.flags = 0,
.ngrp = 0,
},
{ .name = "RETIRED_CONDITIONAL_BRANCH_INSTRUCTIONS",
.desc = "Number of retired conditional branch instructions",
.modmsk = AMD64_FAM19H_ATTRS,
.code = 0xd1,
.flags = 0,
.ngrp = 0,
},
{ .name = "DIV_CYCLES_BUSY_COUNT",
.desc = "Number of cycles when the divider is busy",
.modmsk = AMD64_FAM19H_ATTRS,
.code = 0xd3,
.flags = 0,
.ngrp = 0,
},
{ .name = "DIV_OP_COUNT",
.desc = "Number of divide ops",
.modmsk = AMD64_FAM19H_ATTRS,
.code = 0xd4,
.flags = 0,
.ngrp = 0,
},
{ .name = "CYCLES_NO_RETIRE",
.desc = "Counts cycles when the hardware does not retire any ops for a given reason. Event can only track one reason at a time. If multiple reasons apply for a given cycle, the lowest numbered reason is counted",
.modmsk = AMD64_FAM19H_ATTRS,
.code = 0xd6,
.flags = 0,
.ngrp = 1,
.numasks = LIBPFM_ARRAY_SIZE(amd64_fam19h_zen4_cycles_no_retire),
.umasks = amd64_fam19h_zen4_cycles_no_retire,
},
{ .name = "RETIRED_UCODE_INSTRUCTIONS",
.desc = "Number of microcode instructions retired",
.modmsk = AMD64_FAM19H_ATTRS,
.code = 0x1c1,
.flags = 0,
.ngrp = 0,
},
{ .name = "RETIRED_UCODE_OPS",
.desc = "Number of microcode ops retired",
.modmsk = AMD64_FAM19H_ATTRS,
.code = 0x1c2,
.flags = 0,
.ngrp = 0,
},
{ .name = "RETIRED_BRANCH_MISPREDICTED_DIRECTION_MISMATCH",
.desc = "Number of retired conditional branch instructions that were not correctly predicted because of branch direction mismatch",
.modmsk = AMD64_FAM19H_ATTRS,
.code = 0x1c7,
.flags = 0,
.ngrp = 0,
},
{ .name = "RETIRED_UNCONDITIONAL_INDIRECT_BRANCH_INSTRUCTIONS_MISPREDICTED",
.desc = "Number of retired unconditional indirect branch instructions that were mispredicted",
.modmsk = AMD64_FAM19H_ATTRS,
.code = 0x1c8,
.flags = 0,
.ngrp = 0,
},
{ .name = "RETIRED_UNCONDITIONAL_BRANCH_INSTRUCTIONS",
.desc = "Number of retired unconditional branch instructions",
.modmsk = AMD64_FAM19H_ATTRS,
.code = 0x1c9,
.flags = 0,
.ngrp = 0,
},
{ .name = "TAGGED_IBS_OPS",
.desc = "Counts Op IBS related events",
.modmsk = AMD64_FAM19H_ATTRS,
.code = 0x1cf,
.flags = 0,
.ngrp = 1,
.numasks = LIBPFM_ARRAY_SIZE(amd64_fam19h_zen4_tagged_ibs_ops),
.umasks = amd64_fam19h_zen4_tagged_ibs_ops,
},
{ .name = "RETIRED_FUSED_INSTRUCTIONS",
.desc = "Counts retired fused instructions",
.modmsk = AMD64_FAM19H_ATTRS,
.code = 0x1d0,
.flags = 0,
.ngrp = 0,
},
{ .name = "REQUESTS_TO_L2_GROUP1",
.desc = "All L2 cache requests",
.modmsk = AMD64_FAM19H_ATTRS,
.code = 0x60,
.flags = 0,
.ngrp = 1,
.numasks = LIBPFM_ARRAY_SIZE(amd64_fam19h_zen4_requests_to_l2_group1),
.umasks = amd64_fam19h_zen4_requests_to_l2_group1,
},
{ .name = "CORE_TO_L2_CACHEABLE_REQUEST_ACCESS_STATUS",
.desc = "L2 cache request outcomes. This event does not count accesses to the L2 cache by the L2 prefetcher",
.modmsk = AMD64_FAM19H_ATTRS,
.code = 0x64,
.flags = 0,
.ngrp = 1,
.numasks = LIBPFM_ARRAY_SIZE(amd64_fam19h_zen4_core_to_l2_cacheable_request_access_status),
.umasks = amd64_fam19h_zen4_core_to_l2_cacheable_request_access_status,
},
{ .name = "L2_PREFETCH_HIT_L2",
.desc = "Number of L2 prefetches that hit in the L2",
.modmsk = AMD64_FAM19H_ATTRS,
.code = 0x70,
.flags = 0,
.ngrp = 1,
.numasks = LIBPFM_ARRAY_SIZE(amd64_fam19h_zen4_l2_prefetch_hit_l2),
.umasks = amd64_fam19h_zen4_l2_prefetch_hit_l2,
},
{ .name = "L2_PREFETCH_HIT_L3",
.desc = "Number of L2 prefetches accepted by the L2 pipeline which miss the L2 cache and hit the L3",
.modmsk = AMD64_FAM19H_ATTRS,
.code = 0x71,
.flags = 0,
.ngrp = 1,
.numasks = LIBPFM_ARRAY_SIZE(amd64_fam19h_zen4_l2_prefetch_hit_l2),
.umasks = amd64_fam19h_zen4_l2_prefetch_hit_l2,
},
{ .name = "L2_PREFETCH_MISS_L3",
.desc = "Number of L2 prefetches accepted by the L2 pipeline which miss the L2 and the L3 caches",
.modmsk = AMD64_FAM19H_ATTRS,
.code = 0x72,
.flags = 0,
.ngrp = 1,
.numasks = LIBPFM_ARRAY_SIZE(amd64_fam19h_zen4_l2_prefetch_hit_l2),
.umasks = amd64_fam19h_zen4_l2_prefetch_hit_l2,
},
};
|