diff options
| author | Andrii Nakryiko <[email protected]> | 2019-12-19 00:28:34 +0000 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2019-12-19 01:33:36 +0000 |
| commit | 81bfdd087bf31a87c5ff25cc7004d5308954a35c (patch) | |
| tree | 364a9d81d8f7bd736c22c12e5e7795be1fd50dd6 /tools/lib/bpf/bpf_helpers.h | |
| parent | libbpf: Add bpf_link__disconnect() API to preserve underlying BPF resource (diff) | |
| download | kernel-81bfdd087bf31a87c5ff25cc7004d5308954a35c.tar.gz kernel-81bfdd087bf31a87c5ff25cc7004d5308954a35c.zip | |
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 <[email protected]>
Signed-off-by: Andrii Nakryiko <[email protected]>
Signed-off-by: Alexei Starovoitov <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/lib/bpf/bpf_helpers.h')
| -rw-r--r-- | tools/lib/bpf/bpf_helpers.h | 2 |
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 |
