Commit ba5d35b
perf/amd/ibs: Add support for L3 miss filtering
IBS L3 miss filtering works by tagging an instruction on IBS counter
overflow and generating an NMI if the tagged instruction causes an L3
miss. Samples without an L3 miss are discarded and counter is reset
with random value (between 1-15 for fetch pmu and 1-127 for op pmu).
This helps in reducing sampling overhead when user is interested only
in such samples. One of the use case of such filtered samples is to
feed data to page-migration daemon in tiered memory systems.
Add support for L3 miss filtering in IBS driver via new pmu attribute
"l3missonly". Example usage:
# perf record -a -e ibs_op/l3missonly=1/ --raw-samples sleep 5
Signed-off-by: Ravi Bangoria <ravi.bangoria@amd.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lore.kernel.org/r/20220509044914.1473-4-ravi.bangoria@amd.com1 parent 2a7a7e6 commit ba5d35b
2 files changed
Lines changed: 63 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
544 | 544 | | |
545 | 545 | | |
546 | 546 | | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
547 | 555 | | |
548 | 556 | | |
549 | 557 | | |
550 | 558 | | |
551 | 559 | | |
552 | 560 | | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
553 | 566 | | |
554 | 567 | | |
555 | 568 | | |
556 | 569 | | |
557 | 570 | | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
558 | 577 | | |
559 | 578 | | |
560 | 579 | | |
561 | 580 | | |
562 | 581 | | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
563 | 587 | | |
564 | 588 | | |
565 | 589 | | |
| |||
571 | 595 | | |
572 | 596 | | |
573 | 597 | | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
574 | 603 | | |
575 | 604 | | |
576 | 605 | | |
577 | 606 | | |
578 | 607 | | |
579 | 608 | | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
580 | 615 | | |
581 | 616 | | |
| 617 | + | |
582 | 618 | | |
583 | 619 | | |
584 | 620 | | |
| |||
805 | 841 | | |
806 | 842 | | |
807 | 843 | | |
808 | | - | |
| 844 | + | |
809 | 845 | | |
810 | | - | |
811 | | - | |
812 | 846 | | |
813 | 847 | | |
814 | 848 | | |
| |||
819 | 853 | | |
820 | 854 | | |
821 | 855 | | |
| 856 | + | |
| 857 | + | |
| 858 | + | |
822 | 859 | | |
| 860 | + | |
823 | 861 | | |
824 | | - | |
825 | | - | |
826 | | - | |
| 862 | + | |
| 863 | + | |
827 | 864 | | |
| 865 | + | |
| 866 | + | |
828 | 867 | | |
829 | 868 | | |
830 | 869 | | |
| |||
834 | 873 | | |
835 | 874 | | |
836 | 875 | | |
| 876 | + | |
| 877 | + | |
| 878 | + | |
837 | 879 | | |
838 | 880 | | |
839 | 881 | | |
840 | | - | |
| 882 | + | |
| 883 | + | |
| 884 | + | |
| 885 | + | |
| 886 | + | |
| 887 | + | |
| 888 | + | |
| 889 | + | |
| 890 | + | |
| 891 | + | |
| 892 | + | |
| 893 | + | |
841 | 894 | | |
842 | 895 | | |
843 | 896 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
410 | 410 | | |
411 | 411 | | |
412 | 412 | | |
| 413 | + | |
413 | 414 | | |
414 | 415 | | |
415 | 416 | | |
| |||
423 | 424 | | |
424 | 425 | | |
425 | 426 | | |
| 427 | + | |
426 | 428 | | |
427 | 429 | | |
428 | 430 | | |
| |||
439 | 441 | | |
440 | 442 | | |
441 | 443 | | |
| 444 | + | |
442 | 445 | | |
443 | 446 | | |
444 | 447 | | |
| |||
0 commit comments