Notification when an eBPF map is modified

Francesco Picciariello <picciariello.francesco@...>

Hello all,
Is there a way to receive asynchronous notification each time an eBPF map is modified?

I used bpf_obj_pin() in order to save a specific map on filesystem, and I called linux inotify() on the pinned object.

The inotify API provides a mechanism for monitoring filesystem events, and the goal is to notice when a pinned eBPF map is modified, but it seems inotify() does not work properly with bpf filesystem. In fact it's able to detect the creation and the deletion, but not the modification of the pinned object.


Join to automatically receive all group messages.