This minor set adds a new helper bpf_event_output() for eBPF cls/act program types which allows to pass events to user space applications. For details, please see individual patches.
Thanks! v1 -> v2: - Address kbuild bot found compile issue in patch 2 - Rest as is Daniel Borkmann (2): bpf, trace: add BPF_F_CURRENT_CPU flag for bpf_perf_event_output bpf: add event output helper for notifications/sampling/logging include/linux/bpf.h | 2 ++ include/uapi/linux/bpf.h | 4 ++++ kernel/bpf/core.c | 7 +++++++ kernel/trace/bpf_trace.c | 34 +++++++++++++++++++++++++++++++++- net/core/filter.c | 2 ++ 5 files changed, 48 insertions(+), 1 deletion(-) -- 1.9.3