Commit d9c5f5f
perf pmu: Count sys and cpuid JSON events separately
Sys events are eagerly loaded as each event has a compat option that may
mean the event is or isn't associated with the PMU.
These shouldn't be counted as loaded_json_events as that is used for
JSON events matching the CPUID that may or may not have been loaded. The
mismatch causes issues on ARM64 that uses sys events.
Fixes: e6ff1ee ("perf pmu: Lazily add JSON events")
Closes: https://lore.kernel.org/lkml/20240510024729.1075732-1-justin.he@arm.com/
Reported-by: Jia He <justin.he@arm.com>
Signed-off-by: Ian Rogers <irogers@google.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: James Clark <james.clark@arm.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: John Garry <john.g.garry@oracle.com>
Cc: Kan Liang <kan.liang@linux.intel.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: https://lore.kernel.org/r/20240511003601.2666907-1-irogers@google.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>1 parent 193a9e3 commit d9c5f5f
2 files changed
+53
-23
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
39 | 51 | | |
40 | 52 | | |
41 | 53 | | |
| |||
521 | 533 | | |
522 | 534 | | |
523 | 535 | | |
524 | | - | |
| 536 | + | |
525 | 537 | | |
526 | 538 | | |
527 | 539 | | |
| |||
574 | 586 | | |
575 | 587 | | |
576 | 588 | | |
577 | | - | |
578 | | - | |
579 | | - | |
580 | | - | |
581 | | - | |
582 | | - | |
583 | | - | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
584 | 592 | | |
585 | 593 | | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
586 | 599 | | |
587 | 600 | | |
588 | | - | |
| 601 | + | |
589 | 602 | | |
590 | | - | |
591 | | - | |
592 | | - | |
593 | 603 | | |
594 | | - | |
595 | | - | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
596 | 613 | | |
597 | 614 | | |
598 | 615 | | |
| |||
653 | 670 | | |
654 | 671 | | |
655 | 672 | | |
656 | | - | |
| 673 | + | |
| 674 | + | |
657 | 675 | | |
658 | 676 | | |
659 | 677 | | |
| |||
946 | 964 | | |
947 | 965 | | |
948 | 966 | | |
949 | | - | |
| 967 | + | |
| 968 | + | |
950 | 969 | | |
951 | 970 | | |
952 | 971 | | |
| |||
981 | 1000 | | |
982 | 1001 | | |
983 | 1002 | | |
984 | | - | |
| 1003 | + | |
985 | 1004 | | |
986 | 1005 | | |
987 | 1006 | | |
988 | 1007 | | |
989 | 1008 | | |
990 | | - | |
| 1009 | + | |
| 1010 | + | |
991 | 1011 | | |
992 | 1012 | | |
993 | 1013 | | |
| |||
1082 | 1102 | | |
1083 | 1103 | | |
1084 | 1104 | | |
| 1105 | + | |
| 1106 | + | |
| 1107 | + | |
| 1108 | + | |
| 1109 | + | |
| 1110 | + | |
1085 | 1111 | | |
1086 | 1112 | | |
1087 | 1113 | | |
| |||
1739 | 1765 | | |
1740 | 1766 | | |
1741 | 1767 | | |
1742 | | - | |
| 1768 | + | |
1743 | 1769 | | |
1744 | 1770 | | |
1745 | | - | |
| 1771 | + | |
1746 | 1772 | | |
1747 | | - | |
| 1773 | + | |
| 1774 | + | |
| 1775 | + | |
1748 | 1776 | | |
1749 | 1777 | | |
1750 | 1778 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
126 | | - | |
127 | | - | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
128 | 130 | | |
129 | 131 | | |
130 | 132 | | |
| |||
0 commit comments