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
|
/*
* Copyright (c) 2012 Google, Inc
* Contributed by Stephane Eranian <eranian@gmail.com>
*
* 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: snbep_unc_cbo (Intel SandyBridge-EP C-Box uncore PMU)
*/
#define CBO_FILT_MESIF(a, b, c, d) \
{ .uname = "STATE_"#a,\
.udesc = #b" cacheline state",\
.ufilters[0] = 1ULL << (18 + (c)),\
.grpid = d, \
}
#define CBO_FILT_MESIFS(d) \
CBO_FILT_MESIF(I, Invalid, 0, d), \
CBO_FILT_MESIF(S, Shared, 1, d), \
CBO_FILT_MESIF(E, Exclusive, 2, d), \
CBO_FILT_MESIF(M, Modified, 3, d), \
CBO_FILT_MESIF(F, Forward, 4, d), \
{ .uname = "STATE_MESIF",\
.udesc = "Any cache line state",\
.ufilters[0] = 0x1fULL << 18,\
.grpid = d, \
.uflags = INTEL_X86_NCOMBO | INTEL_X86_DFL, \
}
#define CBO_FILT_OPC(d) \
{ .uname = "OPC_RFO",\
.udesc = "Demand data RFO (combine with any OPCODE umask)",\
.ufilters[0] = 0x180ULL << 23, \
.uflags = INTEL_X86_NCOMBO, \
.grpid = d, \
}, \
{ .uname = "OPC_CRD",\
.udesc = "Demand code read (combine with any OPCODE umask)",\
.ufilters[0] = 0x181ULL << 23, \
.uflags = INTEL_X86_NCOMBO, \
.grpid = d, \
}, \
{ .uname = "OPC_DRD",\
.udesc = "Demand data read (combine with any OPCODE umask)",\
.ufilters[0] = 0x182ULL << 23, \
.uflags = INTEL_X86_NCOMBO, \
.grpid = d, \
}, \
{ .uname = "OPC_PRD",\
.udesc = "Partial reads (UC) (combine with any OPCODE umask)",\
.ufilters[0] = 0x187ULL << 23, \
.uflags = INTEL_X86_NCOMBO, \
.grpid = d, \
}, \
{ .uname = "OPC_WCILF",\
.udesc = "Full Stream store (combine with any OPCODE umask)", \
.ufilters[0] = 0x18cULL << 23, \
.uflags = INTEL_X86_NCOMBO, \
.grpid = d, \
}, \
{ .uname = "OPC_WCIL",\
.udesc = "Partial Stream store (combine with any OPCODE umask)", \
.ufilters[0] = 0x18dULL << 23, \
.uflags = INTEL_X86_NCOMBO, \
.grpid = d, \
}, \
{ .uname = "OPC_PF_RFO",\
.udesc = "Prefetch RFO into LLC but do not pass to L2 (includes hints) (combine with any OPCODE umask)", \
.ufilters[0] = 0x190ULL << 23, \
.uflags = INTEL_X86_NCOMBO, \
.grpid = d, \
}, \
{ .uname = "OPC_PF_CODE",\
.udesc = "Prefetch code into LLC but do not pass to L2 (includes hints) (combine with any OPCODE umask)", \
.ufilters[0] = 0x191ULL << 23, \
.uflags = INTEL_X86_NCOMBO, \
.grpid = d, \
}, \
{ .uname = "OPC_PF_DATA",\
.udesc = "Prefetch data into LLC but do not pass to L2 (includes hints) (combine with any OPCODE umask)", \
.ufilters[0] = 0x192ULL << 23, \
.uflags = INTEL_X86_NCOMBO, \
.grpid = d, \
}, \
{ .uname = "OPC_PCIWILF",\
.udesc = "PCIe write (non-allocating) (combine with any OPCODE umask)", \
.ufilters[0] = 0x194ULL << 23, \
.uflags = INTEL_X86_NCOMBO, \
.grpid = d, \
}, \
{ .uname = "OPC_PCIPRD",\
.udesc = "PCIe UC read (combine with any OPCODE umask)", \
.ufilters[0] = 0x195ULL << 23, \
.uflags = INTEL_X86_NCOMBO, \
.grpid = d, \
}, \
{ .uname = "OPC_PCIITOM",\
.udesc = "PCIe write (allocating) (combine with any OPCODE umask)", \
.ufilters[0] = 0x19cULL << 23, \
.uflags = INTEL_X86_NCOMBO, \
.grpid = d, \
}, \
{ .uname = "OPC_PCIRDCUR",\
.udesc = "PCIe read current (combine with any OPCODE umask)", \
.ufilters[0] = 0x19eULL << 23, \
.uflags = INTEL_X86_NCOMBO, \
.grpid = d, \
}, \
{ .uname = "OPC_WBMTOI",\
.udesc = "Request writeback modified invalidate line (combine with any OPCODE umask)", \
.ufilters[0] = 0x1c4ULL << 23, \
.uflags = INTEL_X86_NCOMBO, \
.grpid = d, \
}, \
{ .uname = "OPC_WBMTOE",\
.udesc = "Request writeback modified set to exclusive (combine with any OPCODE umask)", \
.ufilters[0] = 0x1c5ULL << 23, \
.uflags = INTEL_X86_NCOMBO, \
.grpid = d, \
}, \
{ .uname = "OPC_ITOM",\
.udesc = "Request invalidate line (combine with any OPCODE umask)", \
.ufilters[0] = 0x1c8ULL << 23, \
.uflags = INTEL_X86_NCOMBO, \
.grpid = d, \
}, \
{ .uname = "OPC_PCINSRD",\
.udesc = "PCIe non-snoop read (combine with any OPCODE umask)", \
.ufilters[0] = 0x1e4ULL << 23, \
.uflags = INTEL_X86_NCOMBO, \
.grpid = d, \
}, \
{ .uname = "OPC_PCINSWR",\
.udesc = "PCIe non-snoop write (partial) (combine with any OPCODE umask)", \
.ufilters[0] = 0x1e5ULL << 23, \
.uflags = INTEL_X86_NCOMBO, \
.grpid = d, \
}, \
{ .uname = "OPC_PCINSWRF",\
.udesc = "PCIe non-snoop write (full) (combine with any OPCODE umask)", \
.ufilters[0] = 0x1e6ULL << 23, \
.uflags = INTEL_X86_NCOMBO, \
.grpid = d, \
}
static const intel_x86_umask_t snbep_unc_c_llc_lookup[]={
{ .uname = "ANY",
.udesc = "Any request",
.grpid = 0,
.uflags = INTEL_X86_NCOMBO,
.ucode = 0x1f00,
},
{ .uname = "DATA_READ",
.udesc = "Data read requests",
.grpid = 0,
.uflags = INTEL_X86_NCOMBO | INTEL_X86_DFL,
.ucode = 0x300,
},
{ .uname = "WRITE",
.udesc = "Write requests. Includes all write transactions (cached, uncached)",
.grpid = 0,
.uflags = INTEL_X86_NCOMBO,
.ucode = 0x500,
},
{ .uname = "REMOTE_SNOOP",
.udesc = "External snoop request",
.grpid = 0,
.uflags = INTEL_X86_NCOMBO,
.ucode = 0x900,
},
{ .uname = "NID",
.udesc = "Match a given RTID destination NID (must provide nf=X modifier)",
.uflags = INTEL_X86_NCOMBO | INTEL_X86_GRP_DFL_NONE,
.umodmsk_req = _SNBEP_UNC_ATTR_NF,
.grpid = 1,
.ucode = 0x4100,
},
CBO_FILT_MESIFS(2),
};
static const intel_x86_umask_t snbep_unc_c_llc_victims[]={
{ .uname = "M_STATE",
.udesc = "Lines in M state",
.ucode = 0x100,
},
{ .uname = "E_STATE",
.udesc = "Lines in E state",
.ucode = 0x200,
},
{ .uname = "S_STATE",
.udesc = "Lines in S state",
.ucode = 0x400,
},
{ .uname = "MISS",
.udesc = "TBD",
.ucode = 0x800,
},
{ .uname = "NID",
.udesc = "Victimized Lines matching the NID filter (must provide nf=X modifier)",
.uflags = INTEL_X86_NCOMBO,
.umodmsk_req = _SNBEP_UNC_ATTR_NF,
.ucode = 0x4000,
},
};
static const intel_x86_umask_t snbep_unc_c_misc[]={
{ .uname = "RSPI_WAS_FSE",
.udesc = "Silent snoop eviction",
.ucode = 0x100,
},
{ .uname = "WC_ALIASING",
.udesc = "Write combining aliasing",
.ucode = 0x200,
},
{ .uname = "STARTED",
.udesc = "TBD",
.ucode = 0x400,
},
{ .uname = "RFO_HIT_S",
.udesc = "RFO hits in S state",
.ucode = 0x800,
},
};
static const intel_x86_umask_t snbep_unc_c_ring_ad_used[]={
{ .uname = "UP_EVEN",
.udesc = "Up and Even ring polarity filter",
.ucode = 0x100,
},
{ .uname = "UP_ODD",
.udesc = "Up and odd ring polarity filter",
.ucode = 0x200,
},
{ .uname = "DOWN_EVEN",
.udesc = "Down and even ring polarity filter",
.ucode = 0x400,
},
{ .uname = "DOWN_ODD",
.udesc = "Down and odd ring polarity filter",
.ucode = 0x800,
},
};
static const intel_x86_umask_t snbep_unc_c_ring_bounces[]={
{ .uname = "AK_CORE",
.udesc = "Acknowledgment to core",
.ucode = 0x200,
},
{ .uname = "BL_CORE",
.udesc = "Data response to core",
.ucode = 0x400,
},
{ .uname = "IV_CORE",
.udesc = "Snoops of processor cache",
.ucode = 0x800,
},
};
static const intel_x86_umask_t snbep_unc_c_ring_iv_used[]={
{ .uname = "ANY",
.udesc = "Any filter",
.ucode = 0xf00,
.uflags = INTEL_X86_DFL,
},
};
static const intel_x86_umask_t snbep_unc_c_rxr_ext_starved[]={
{ .uname = "IRQ",
.udesc = "Irq externally starved, therefore blocking the IPQ",
.ucode = 0x100,
},
{ .uname = "IPQ",
.udesc = "IPQ externally starved, therefore blocking the IRQ",
.ucode = 0x200,
},
{ .uname = "ISMQ",
.udesc = "ISMQ externally starved, therefore blocking both IRQ and IPQ",
.ucode = 0x400,
},
{ .uname = "ISMQ_BIDS",
.udesc = "Number of time the ISMQ bids",
.ucode = 0x800,
},
};
static const intel_x86_umask_t snbep_unc_c_rxr_inserts[]={
{ .uname = "IPQ",
.udesc = "IPQ",
.ucode = 0x400,
.uflags = INTEL_X86_NCOMBO,
},
{ .uname = "IRQ",
.udesc = "IRQ",
.ucode = 0x100,
.uflags = INTEL_X86_NCOMBO,
},
{ .uname = "IRQ_REJECTED",
.udesc = "IRQ rejected",
.ucode = 0x200,
.uflags = INTEL_X86_NCOMBO,
},
{ .uname = "VFIFO",
.udesc = "Counts the number of allocated into the IRQ ordering FIFO",
.ucode = 0x1000,
.uflags = INTEL_X86_NCOMBO,
},
};
static const intel_x86_umask_t snbep_unc_c_rxr_ipq_retry[]={
{ .uname = "ADDR_CONFLICT",
.udesc = "Address conflict",
.ucode = 0x400,
.uflags = INTEL_X86_NCOMBO,
},
{ .uname = "ANY",
.udesc = "Any Reject",
.ucode = 0x100,
.uflags = INTEL_X86_NCOMBO | INTEL_X86_DFL,
},
{ .uname = "FULL",
.udesc = "No Egress credits",
.ucode = 0x200,
.uflags = INTEL_X86_NCOMBO,
},
{ .uname = "QPI_CREDITS",
.udesc = "No QPI credits",
.ucode = 0x1000,
.uflags = INTEL_X86_NCOMBO,
},
};
static const intel_x86_umask_t snbep_unc_c_rxr_irq_retry[]={
{ .uname = "ADDR_CONFLICT",
.udesc = "Address conflict",
.ucode = 0x400,
.uflags = INTEL_X86_NCOMBO,
},
{ .uname = "ANY",
.udesc = "Any reject",
.ucode = 0x100,
.uflags = INTEL_X86_NCOMBO | INTEL_X86_DFL,
},
{ .uname = "FULL",
.udesc = "No Egress credits",
.ucode = 0x200,
.uflags = INTEL_X86_NCOMBO,
},
{ .uname = "QPI_CREDITS",
.udesc = "No QPI credits",
.ucode = 0x1000,
.uflags = INTEL_X86_NCOMBO,
},
{ .uname = "RTID",
.udesc = "No RTIDs",
.ucode = 0x800,
.uflags = INTEL_X86_NCOMBO,
},
};
static const intel_x86_umask_t snbep_unc_c_rxr_ismq_retry[]={
{ .uname = "ANY",
.udesc = "Any reject",
.ucode = 0x100,
.uflags = INTEL_X86_NCOMBO | INTEL_X86_DFL,
},
{ .uname = "FULL",
.udesc = "No Egress credits",
.ucode = 0x200,
.uflags = INTEL_X86_NCOMBO,
},
{ .uname = "IIO_CREDITS",
.udesc = "No IIO credits",
.ucode = 0x2000,
.uflags = INTEL_X86_NCOMBO,
},
{ .uname = "QPI_CREDITS",
.udesc = "NO QPI credits",
.ucode = 0x1000,
.uflags = INTEL_X86_NCOMBO,
},
{ .uname = "RTID",
.udesc = "No RTIDs",
.ucode = 0x800,
.uflags = INTEL_X86_NCOMBO,
},
};
static const intel_x86_umask_t snbep_unc_c_tor_inserts[]={
{ .uname = "EVICTION",
.udesc = "Number of Evictions transactions inserted into TOR",
.ucode = 0x400,
.grpid = 0,
.uflags = INTEL_X86_NCOMBO | INTEL_X86_EXCL_GRP_GT,
},
{ .uname = "MISS_ALL",
.udesc = "Number of miss requests inserted into the TOR",
.ucode = 0xa00,
.grpid = 0,
.uflags = INTEL_X86_NCOMBO | INTEL_X86_EXCL_GRP_GT,
},
{ .uname = "MISS_OPCODE",
.udesc = "Number of miss transactions inserted into the TOR that match an opcode (must provide opc_* umask)",
.ucode = 0x300,
.grpid = 0,
.uflags = INTEL_X86_NCOMBO,
},
{ .uname = "NID_ALL",
.udesc = "Number of NID-matched transactions inserted into the TOR (must provide nf=X modifier)",
.ucode = 0x4800,
.grpid = 0,
.umodmsk_req = _SNBEP_UNC_ATTR_NF,
.uflags = INTEL_X86_NCOMBO | INTEL_X86_EXCL_GRP_GT,
},
{ .uname = "NID_EVICTION",
.udesc = "Number of NID-matched eviction transactions inserted into the TOR (must provide nf=X modifier)",
.ucode = 0x4400,
.grpid = 0,
.umodmsk_req = _SNBEP_UNC_ATTR_NF,
.uflags = INTEL_X86_NCOMBO | INTEL_X86_EXCL_GRP_GT,
},
{ .uname = "NID_MISS_ALL",
.udesc = "Number of NID-matched miss transactions that were inserted into the TOR (must provide nf=X modifier)",
.ucode = 0x4a00,
.grpid = 0,
.umodmsk_req = _SNBEP_UNC_ATTR_NF,
.uflags = INTEL_X86_NCOMBO | INTEL_X86_EXCL_GRP_GT,
},
{ .uname = "NID_MISS_OPCODE",
.udesc = "Number of NID and opcode matched miss transactions inserted into the TOR (must provide opc_* umask and nf=X modifier)",
.ucode = 0x4300,
.grpid = 0,
.umodmsk_req = _SNBEP_UNC_ATTR_NF,
.uflags = INTEL_X86_NCOMBO,
},
{ .uname = "NID_OPCODE",
.udesc = "Number of transactions inserted into the TOR that match a NID and opcode (must provide opc_* umask and nf=X modifier)",
.ucode = 0x4100,
.grpid = 0,
.umodmsk_req = _SNBEP_UNC_ATTR_NF,
.uflags = INTEL_X86_NCOMBO,
},
{ .uname = "NID_WB",
.udesc = "Number of NID-matched write back transactions inserted into the TOR (must provide nf=X modifier)",
.ucode = 0x5000,
.grpid = 0,
.umodmsk_req = _SNBEP_UNC_ATTR_NF,
.uflags = INTEL_X86_NCOMBO | INTEL_X86_EXCL_GRP_GT,
},
{ .uname = "OPCODE",
.udesc = "Number of transactions inserted into the TOR that match an opcode (must provide opc_* umask)",
.ucode = 0x100,
.grpid = 0,
.uflags = INTEL_X86_NCOMBO,
},
{ .uname = "WB",
.udesc = "Number of write transactions inserted into the TOR",
.ucode = 0x1000,
.grpid = 0,
.uflags = INTEL_X86_NCOMBO | INTEL_X86_EXCL_GRP_GT,
},
CBO_FILT_OPC(1)
};
static const intel_x86_umask_t snbep_unc_c_tor_occupancy[]={
{ .uname = "ALL",
.udesc = "All valid TOR entries",
.ucode = 0x800,
.grpid = 0,
.uflags = INTEL_X86_NCOMBO | INTEL_X86_DFL | INTEL_X86_EXCL_GRP_GT,
},
{ .uname = "EVICTION",
.udesc = "Number of outstanding eviction transactions in the TOR",
.ucode = 0x400,
.grpid = 0,
.uflags = INTEL_X86_NCOMBO | INTEL_X86_EXCL_GRP_GT,
},
{ .uname = "MISS_ALL",
.udesc = "Number of outstanding miss requests in the TOR",
.ucode = 0xa00,
.grpid = 0,
.uflags = INTEL_X86_NCOMBO | INTEL_X86_EXCL_GRP_GT,
},
{ .uname = "MISS_OPCODE",
.udesc = "Number of TOR entries that match a NID and an opcode (must provide opc_* umask)",
.ucode = 0x300,
.grpid = 0,
.uflags = INTEL_X86_NCOMBO,
},
{ .uname = "NID_ALL",
.udesc = "Number of NID-matched outstanding requests in the TOR (must provide nf=X modifier)",
.ucode = 0x4800,
.grpid = 0,
.umodmsk_req = _SNBEP_UNC_ATTR_NF,
.uflags = INTEL_X86_NCOMBO | INTEL_X86_EXCL_GRP_GT,
},
{ .uname = "NID_EVICTION",
.udesc = "Number of NID-matched outstanding requests in the TOR (must provide a nf=X modifier)",
.ucode = 0x4400,
.grpid = 0,
.umodmsk_req = _SNBEP_UNC_ATTR_NF,
.uflags = INTEL_X86_NCOMBO | INTEL_X86_EXCL_GRP_GT,
},
{ .uname = "NID_MISS_ALL",
.udesc = "Number of NID-matched outstanding miss requests in the TOR (must provide a nf=X modifier)",
.ucode = 0x4a00,
.grpid = 0,
.umodmsk_req = _SNBEP_UNC_ATTR_NF,
.uflags = INTEL_X86_NCOMBO | INTEL_X86_EXCL_GRP_GT,
},
{ .uname = "NID_MISS_OPCODE",
.udesc = "Number of NID-matched outstanding miss requests in the TOR that an opcode (must provide nf=X modifier and opc_* umask)",
.ucode = 0x4300,
.grpid = 0,
.umodmsk_req = _SNBEP_UNC_ATTR_NF,
.uflags = INTEL_X86_NCOMBO,
},
{ .uname = "NID_OPCODE",
.udesc = "Number of NID-matched TOR entries that an opcode (must provide nf=X modifier and opc_* umask)",
.ucode = 0x4100,
.grpid = 0,
.umodmsk_req = _SNBEP_UNC_ATTR_NF,
.uflags = INTEL_X86_NCOMBO,
},
{ .uname = "OPCODE",
.udesc = "Number of TOR entries that match an opcode (must provide opc_* umask)",
.ucode = 0x100,
.grpid = 0,
.uflags = INTEL_X86_NCOMBO,
},
CBO_FILT_OPC(1)
};
static const intel_x86_umask_t snbep_unc_c_txr_inserts[]={
{ .uname = "AD_CACHE",
.udesc = "Counts the number of ring transactions from Cachebo to AD ring",
.ucode = 0x100,
.uflags = INTEL_X86_NCOMBO,
},
{ .uname = "AK_CACHE",
.udesc = "Counts the number of ring transactions from Cachebo to AK ring",
.ucode = 0x200,
.uflags = INTEL_X86_NCOMBO,
},
{ .uname = "BL_CACHE",
.udesc = "Counts the number of ring transactions from Cachebo to BL ring",
.ucode = 0x400,
.uflags = INTEL_X86_NCOMBO,
},
{ .uname = "IV_CACHE",
.udesc = "Counts the number of ring transactions from Cachebo to IV ring",
.ucode = 0x800,
.uflags = INTEL_X86_NCOMBO,
},
{ .uname = "AD_CORE",
.udesc = "Counts the number of ring transactions from Corebo to AD ring",
.ucode = 0x1000,
.uflags = INTEL_X86_NCOMBO,
},
{ .uname = "AK_CORE",
.udesc = "Counts the number of ring transactions from Corebo to AK ring",
.ucode = 0x2000,
.uflags = INTEL_X86_NCOMBO,
},
{ .uname = "BL_CORE",
.udesc = "Counts the number of ring transactions from Corebo to BL ring",
.ucode = 0x4000,
.uflags = INTEL_X86_NCOMBO,
},
};
static const intel_x86_entry_t intel_snbep_unc_c_pe[]={
{ .name = "UNC_C_CLOCKTICKS",
.desc = "C-box Uncore clockticks",
.modmsk = 0x0,
.cntmsk = 0xf,
.code = 0x00,
.flags = INTEL_X86_FIXED,
},
{ .name = "UNC_C_COUNTER0_OCCUPANCY",
.desc = "Counter 0 occupancy. Counts the occupancy related information by filtering CB0 occupancy count captured in counter 0.",
.modmsk = SNBEP_UNC_CBO_ATTRS,
.cntmsk = 0xe,
.code = 0x1f,
},
{ .name = "UNC_C_ISMQ_DRD_MISS_OCC",
.desc = "TBD",
.modmsk = SNBEP_UNC_CBO_ATTRS,
.cntmsk = 0x3,
.code = 0x21,
},
{ .name = "UNC_C_LLC_LOOKUP",
.desc = "Cache lookups. Counts number of times the LLC is accessed from L2 for code, data, prefetches (Must set filter mask bit 0 and select )",
.modmsk = SNBEP_UNC_CBO_NID_ATTRS,
.cntmsk = 0x3,
.code = 0x34,
.ngrp = 3,
.flags = INTEL_X86_NO_AUTOENCODE,
.numasks = LIBPFM_ARRAY_SIZE(snbep_unc_c_llc_lookup),
.umasks = snbep_unc_c_llc_lookup,
},
{ .name = "UNC_C_LLC_VICTIMS",
.desc = "Lines victimized",
.modmsk = SNBEP_UNC_CBO_NID_ATTRS,
.cntmsk = 0x3,
.code = 0x37,
.flags = INTEL_X86_NO_AUTOENCODE,
.numasks = LIBPFM_ARRAY_SIZE(snbep_unc_c_llc_victims),
.ngrp = 1,
.umasks = snbep_unc_c_llc_victims,
},
{ .name = "UNC_C_MISC",
.desc = "Miscellaneous C-Box events",
.modmsk = SNBEP_UNC_CBO_ATTRS,
.cntmsk = 0x3,
.code = 0x39,
.numasks = LIBPFM_ARRAY_SIZE(snbep_unc_c_misc),
.ngrp = 1,
.umasks = snbep_unc_c_misc,
},
{ .name = "UNC_C_RING_AD_USED",
.desc = "Address ring in use. Counts number of cycles ring is being used at this ring stop",
.modmsk = SNBEP_UNC_CBO_ATTRS,
.cntmsk = 0xc,
.code = 0x1b,
.numasks = LIBPFM_ARRAY_SIZE(snbep_unc_c_ring_ad_used),
.ngrp = 1,
.umasks = snbep_unc_c_ring_ad_used,
},
{ .name = "UNC_C_RING_AK_USED",
.desc = "Acknowledgment ring in use. Counts number of cycles ring is being used at this ring stop",
.modmsk = SNBEP_UNC_CBO_ATTRS,
.cntmsk = 0xc,
.code = 0x1c,
.numasks = LIBPFM_ARRAY_SIZE(snbep_unc_c_ring_ad_used), /* identical to RING_AD_USED */
.ngrp = 1,
.umasks = snbep_unc_c_ring_ad_used,
},
{ .name = "UNC_C_RING_BL_USED",
.desc = "Bus or Data ring in use. Counts number of cycles ring is being used at this ring stop",
.modmsk = SNBEP_UNC_CBO_ATTRS,
.cntmsk = 0xc,
.code = 0x1d,
.numasks = LIBPFM_ARRAY_SIZE(snbep_unc_c_ring_ad_used), /* identical to RING_AD_USED */
.ngrp = 1,
.umasks = snbep_unc_c_ring_ad_used,
},
{ .name = "UNC_C_RING_BOUNCES",
.desc = "Number of LLC responses that bounced in the ring",
.modmsk = SNBEP_UNC_CBO_ATTRS,
.cntmsk = 0x3,
.code = 0x05,
.numasks = LIBPFM_ARRAY_SIZE(snbep_unc_c_ring_bounces),
.ngrp = 1,
.umasks = snbep_unc_c_ring_bounces,
},
{ .name = "UNC_C_RING_IV_USED",
.desc = "Invalidate ring in use. Counts number of cycles ring is being used at this ring stop",
.modmsk = SNBEP_UNC_CBO_ATTRS,
.cntmsk = 0xc,
.code = 0x1e,
.numasks = LIBPFM_ARRAY_SIZE(snbep_unc_c_ring_iv_used),
.ngrp = 1,
.umasks = snbep_unc_c_ring_iv_used,
},
{ .name = "UNC_C_RING_SRC_THRTL",
.desc = "TDB",
.modmsk = SNBEP_UNC_CBO_ATTRS,
.cntmsk = 0x3,
.code = 0x07,
},
{ .name = "UNC_C_RXR_EXT_STARVED",
.desc = "Ingress arbiter blocking cycles",
.modmsk = SNBEP_UNC_CBO_ATTRS,
.cntmsk = 0x3,
.code = 0x12,
.numasks = LIBPFM_ARRAY_SIZE(snbep_unc_c_rxr_ext_starved),
.ngrp = 1,
.umasks = snbep_unc_c_rxr_ext_starved,
},
{ .name = "UNC_C_RXR_INSERTS",
.desc = "Ingress Allocations",
.code = 0x13,
.cntmsk = 0x3,
.ngrp = 1,
.modmsk = SNBEP_UNC_CBO_ATTRS,
.numasks = LIBPFM_ARRAY_SIZE(snbep_unc_c_rxr_inserts),
.umasks = snbep_unc_c_rxr_inserts
},
{ .name = "UNC_C_RXR_IPQ_RETRY",
.desc = "Probe Queue Retries",
.code = 0x31,
.cntmsk = 0x3,
.ngrp = 1,
.modmsk = SNBEP_UNC_CBO_ATTRS,
.numasks = LIBPFM_ARRAY_SIZE(snbep_unc_c_rxr_ipq_retry),
.umasks = snbep_unc_c_rxr_ipq_retry
},
{ .name = "UNC_C_RXR_IRQ_RETRY",
.desc = "Ingress Request Queue Rejects",
.code = 0x32,
.cntmsk = 0x3,
.ngrp = 1,
.modmsk = SNBEP_UNC_CBO_ATTRS,
.numasks = LIBPFM_ARRAY_SIZE(snbep_unc_c_rxr_irq_retry),
.umasks = snbep_unc_c_rxr_irq_retry
},
{ .name = "UNC_C_RXR_ISMQ_RETRY",
.desc = "ISMQ Retries",
.code = 0x33,
.cntmsk = 0x3,
.ngrp = 1,
.modmsk = SNBEP_UNC_CBO_ATTRS,
.numasks = LIBPFM_ARRAY_SIZE(snbep_unc_c_rxr_ismq_retry),
.umasks = snbep_unc_c_rxr_ismq_retry
},
{ .name = "UNC_C_RXR_OCCUPANCY",
.desc = "Ingress Occupancy",
.code = 0x11,
.cntmsk = 0x1,
.ngrp = 1,
.modmsk = SNBEP_UNC_CBO_ATTRS,
.numasks = LIBPFM_ARRAY_SIZE(snbep_unc_c_rxr_inserts),
.umasks = snbep_unc_c_rxr_inserts, /* identical to snbep_unc_c_rxr_inserts */
},
{ .name = "UNC_C_TOR_INSERTS",
.desc = "TOR Inserts",
.code = 0x35,
.cntmsk = 0x3,
.ngrp = 2,
.modmsk = SNBEP_UNC_CBO_NID_ATTRS,
.flags = INTEL_X86_NO_AUTOENCODE,
.numasks = LIBPFM_ARRAY_SIZE(snbep_unc_c_tor_inserts),
.umasks = snbep_unc_c_tor_inserts
},
{ .name = "UNC_C_TOR_OCCUPANCY",
.desc = "TOR Occupancy",
.code = 0x36,
.cntmsk = 0x1,
.ngrp = 2,
.modmsk = SNBEP_UNC_CBO_NID_ATTRS,
.flags = INTEL_X86_NO_AUTOENCODE,
.numasks = LIBPFM_ARRAY_SIZE(snbep_unc_c_tor_occupancy),
.umasks = snbep_unc_c_tor_occupancy
},
{ .name = "UNC_C_TXR_ADS_USED",
.desc = "Egress events",
.code = 0x04,
.cntmsk = 0x3,
.modmsk = SNBEP_UNC_CBO_ATTRS,
},
{ .name = "UNC_C_TXR_INSERTS",
.desc = "Egress allocations",
.code = 0x02,
.cntmsk = 0x3,
.ngrp = 1,
.modmsk = SNBEP_UNC_CBO_ATTRS,
.numasks = LIBPFM_ARRAY_SIZE(snbep_unc_c_txr_inserts),
.umasks = snbep_unc_c_txr_inserts
},
};
|