summaryrefslogtreecommitdiff
path: root/tools/lib/bpf/bpf_helpers.h
diff options
context:
space:
mode:
authorAndrii Nakryiko <andriin@fb.com>2019-12-18 16:28:34 -0800
committerAlexei Starovoitov <ast@kernel.org>2019-12-18 17:33:36 -0800
commit81bfdd087bf31a87c5ff25cc7004d5308954a35c (patch)
tree364a9d81d8f7bd736c22c12e5e7795be1fd50dd6 /tools/lib/bpf/bpf_helpers.h
parentd69587062c347314a019cf6ee27f2e4b494868e1 (diff)
libbpf: Put Kconfig externs into .kconfig section
Move Kconfig-provided externs into custom .kconfig section. Add __kconfig into bpf_helpers.h for user convenience. Update selftests accordingly. Suggested-by: Daniel Borkmann <daniel@iogearbox.net> Signed-off-by: Andrii Nakryiko <andriin@fb.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Link: https://lore.kernel.org/bpf/20191219002837.3074619-2-andriin@fb.com
Diffstat (limited to 'tools/lib/bpf/bpf_helpers.h')
-rw-r--r--tools/lib/bpf/bpf_helpers.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/lib/bpf/bpf_helpers.h b/tools/lib/bpf/bpf_helpers.h
index aa46700075e1..f69cc208778a 100644
--- a/tools/lib/bpf/bpf_helpers.h
+++ b/tools/lib/bpf/bpf_helpers.h
@@ -53,4 +53,6 @@ enum libbpf_tristate {
TRI_MODULE = 2,
};
+#define __kconfig __attribute__((section(".kconfig")))
+
#endif