浏览代码

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: Jakub Kicinski <jakub.kicinski@netronome.com>
Reviewed-by: Quentin Monnet <quentin.monnet@netronome.com>
Reviewed-by: Jiong Wang <jiong.wang@netronome.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Jakub Kicinski 7 年之前
父节点
当前提交
6cb5fb3891
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      kernel/bpf/core.c

+ 1 - 0
kernel/bpf/core.c

@@ -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 = {