"[...] Always remember: upstream Linux kernel development is highly social. 😉"
#sched_ext, which allows scheduling policies to be implemented as #BPF programs, has been merged for #Linux 6.12:
https://git.kernel.org/torvalds/c/88264981f2082248e892a706b2c5004650faac54
See https://lwn.net/Articles/922405/ for a description of what it does and https://lwn.net/Articles/972710/ for the controversy it caused that is the reason why it took so long to land in mainline.
Sched_ext Merged For Linux 6.12 - Scheduling Policies As BPF Programs
Linux 6.12 is shaping up to be a heck of a kernel update! Following real-time "PREEMPT_RT" going mainline after twenty years and many other kernel features merged this week, Linus Torvalds just pulled in the much anticipated sched_ext code!..
https://www.phoronix.com/news/Linux-6.12-Lands-sched-ext
@gregkh
> but it's not obvious how and no one has come up with a way to do so. Maybe now they will have some more incentive :)
Not sure if this is what you want, but there is __attribute__((tainted_args)) since gcc 12.