Pull perf fixes from Ingo Molnar: "Two fixes on the kernel side: fix an over-eager condition that failed larger perf ring-buffer sizes, plus fix crashes in the Intel BTS code for a corner case, found by fuzzing" * 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: perf/core: Fix impossible ring-buffer sizes warning perf/x86: Add check_period PMU callback
Showing the changes to include/linux (1 of 6 files). Show all
Unified · Split
| @@ -447,6 +447,11 @@ struct pmu { · 446 unmodified lines | ||
| 447 | 447 | * Filter events for PMU-specific reasons. |
| 448 | 448 | */ |
| 449 | 449 | int (*filter_match) (struct perf_event *event); /* optional */ |
| 450 | + | |
| 451 | + /* | |
| 452 | + * Check period value for PERF_EVENT_IOC_PERIOD ioctl. | |
| 453 | + */ | |
| 454 | + int (*check_period) (struct perf_event *event, u64 value); /* optional */ | |
| 450 | 455 | }; |
| 451 | 456 | |
| 452 | 457 | enum perf_addr_filter_action_t { |