Files
linux/tools/perf/util
Ian Rogers e6ad1fb345 perf parse-events: Restrict core PMU bypass to --cputype option
Commit b1c5efbfd9 ("perf parse-events: Remove hard coded legacy hardware
and cache parsing") introduced a bypass to PMU filtering to prevent uncore
PMUs from being filtered out during event parsing, which was required for
resolving `duration_time` and `uncore_freq` when running with `--cputype`.
However, this bypass was active whenever `pmu_filter` was set, which also
incorrectly bypassed filtering for the `--pmu-filter` option.

Introduce a `cputype_filter` boolean flag in `parse_events_state` and
`parse_events_option_args` to distinguish filtering initiated by
`--cputype` from that initiated by `--pmu-filter`. Restrict the core-only
check in `parse_events__filter_pmu()` to when `cputype_filter` is true.

Fixes: b1c5efbfd9 ("perf parse-events: Remove hard coded legacy hardware and cache parsing")
Assisted-by: Antigravity:gemini-3.1-pro
Signed-off-by: Ian Rogers <irogers@google.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
2026-06-30 17:09:13 -07:00
..
2026-06-15 14:33:49 -03:00
2026-01-13 17:03:25 -03:00
2026-01-13 17:03:25 -03:00
2026-03-13 14:13:02 -07:00
2025-06-09 11:18:17 -07:00
2026-04-02 19:35:16 -07:00
2023-03-14 08:29:46 -03:00
2026-06-30 10:17:10 -07:00
2026-06-30 10:17:10 -07:00
2021-08-11 09:35:44 -03:00
2024-08-19 14:52:13 -03:00
2023-01-23 10:00:47 -03:00
2026-06-30 10:17:10 -07:00
2024-08-12 18:05:14 -03:00
2024-08-19 14:51:46 -03:00
2026-06-15 09:01:27 -03:00
2026-06-15 09:01:27 -03:00
2025-05-02 15:36:14 -03:00
2025-02-10 11:46:02 -08:00
2026-06-30 10:17:11 -07:00
2023-04-06 21:40:28 -03:00
2023-09-12 17:47:00 -03:00
2026-06-30 10:17:11 -07:00
2025-03-10 11:31:24 -07:00
2025-03-10 11:31:24 -07:00
2025-12-17 09:30:37 -03:00
2026-06-30 10:17:18 -07:00
2026-03-26 15:22:18 -07:00
2025-07-11 12:36:40 -07:00
2025-07-11 12:36:40 -07:00
2024-12-12 15:53:36 -03:00
2026-06-03 16:54:09 -03:00
2025-06-09 11:18:18 -07:00
2025-07-26 16:31:43 -07:00
2025-09-19 12:14:29 -03:00
2023-04-10 19:20:53 -03:00
2024-09-27 15:38:52 -03:00