Ummm 🤔
Do you ever wish that you could monitor cgroup creation / removal race-free with fanotify? Now you can! Any kernfs works!
Linux v6.6-rc1 is out and it contains my commit:
* https://github.com/torvalds/linux/commit/0ce7c12e88cf
Example usage in Go:
* https://github.com/cloudflare/ebpf_exporter/pull/244
All you do is ask for events from a mount and then read them in a loop. No need to re-arm watches like with inotify.
The patch is trivial and can be easily backported if you want it in an older kernel.
Released earlier this month, kernel 5.16 is full of great features, including two that had been in development for some time by our kernel team: the new #futex syscall & the new #fanotify event! Here's a look at our contributions: https://col.la/lk516 #futex2 #embedded