Blob Blame History Raw
From: Jakub Kicinski <jakub.kicinski@netronome.com>
Date: Thu, 3 May 2018 18:37:10 -0700
Subject: bpf: export bpf_event_output()
Patch-mainline: v4.18-rc1
Git-commit: 6cb5fb3891db9d3f6feb0f7669946550c9abc420
References: bsc#1109837

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>
Acked-by: Thomas Bogendoerfer <tbogendoerfer@suse.de>
---
 kernel/bpf/core.c |    1 +
 1 file changed, 1 insertion(+)

--- a/kernel/bpf/core.c
+++ b/kernel/bpf/core.c
@@ -1651,6 +1651,7 @@ bpf_event_output(struct bpf_map *map, u6
 {
 	return -ENOTSUPP;
 }
+EXPORT_SYMBOL_GPL(bpf_event_output);
 
 /* Always built-in helper functions. */
 const struct bpf_func_proto bpf_tail_call_proto = {