diff options
author | Alexei Starovoitov <ast@kernel.org> | 2019-12-18 17:33:37 -0800 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2019-12-18 17:33:52 -0800 |
commit | a352a82496d17f210a88b4fe2de7904afdb92003 (patch) | |
tree | 3b5e3706df1729956cdd345108858418713ee117 /tools/lib/bpf/bpf_helpers.h | |
parent | d69587062c347314a019cf6ee27f2e4b494868e1 (diff) | |
parent | 630628cb7dc39780660d8fcedc66e0298a82f9da (diff) |
Merge branch 'libbpf-extern-followups'
Andrii Nakryiko says:
====================
Based on latest feedback and discussions, this patch set implements the
following changes:
- Kconfig-provided externs have to be in .kconfig section, for which
bpf_helpers.h provides convenient __kconfig macro (Daniel);
- instead of allowing to override Kconfig file path, switch this to ability to
extend and override system Kconfig with user-provided custom values (Alexei);
- BTF is required when externs are used.
====================
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
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 |