This set improves BPF perf fd array map release wrt to purging entries, first two extend the API as needed. Please see individual patches for more details.
Thanks! Daniel Borkmann (3): bpf, maps: add release callback bpf, maps: extend map_fd_get_ptr arguments bpf, maps: flush own entries on perf map release include/linux/bpf.h | 24 ++++++++-- kernel/bpf/arraymap.c | 116 +++++++++++++++++++++++++++++++++-------------- kernel/bpf/syscall.c | 13 +++++- kernel/trace/bpf_trace.c | 18 ++++---- 4 files changed, 122 insertions(+), 49 deletions(-) -- 1.9.3