Commit 6cb5fb38 authored by Jakub Kicinski's avatar Jakub Kicinski Committed by Daniel Borkmann

bpf: export bpf_event_output()

bpf_event_output() is useful for offloads to add events to BPF
event rings, export it.  Note that export is placed near the stub
since tracing is optional and kernel/bpf/core.c is always going
to be built.
Signed-off-by: default avatarJakub Kicinski <jakub.kicinski@netronome.com>
Reviewed-by: default avatarQuentin Monnet <quentin.monnet@netronome.com>
Reviewed-by: default avatarJiong Wang <jiong.wang@netronome.com>
Signed-off-by: default avatarDaniel Borkmann <daniel@iogearbox.net>
parent 630a4d38
...@@ -1719,6 +1719,7 @@ bpf_event_output(struct bpf_map *map, u64 flags, void *meta, u64 meta_size, ...@@ -1719,6 +1719,7 @@ bpf_event_output(struct bpf_map *map, u64 flags, void *meta, u64 meta_size,
{ {
return -ENOTSUPP; return -ENOTSUPP;
} }
EXPORT_SYMBOL_GPL(bpf_event_output);
/* Always built-in helper functions. */ /* Always built-in helper functions. */
const struct bpf_func_proto bpf_tail_call_proto = { const struct bpf_func_proto bpf_tail_call_proto = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment