diff options
| author | Yonghong Song <[email protected]> | 2020-07-20 16:33:59 +0000 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2020-07-21 20:26:26 +0000 |
| commit | d8dfe5bfe856c0c72b1750322dbfcad402e73373 (patch) | |
| tree | 85cda7933e3f4bbacf3a7d8d7f5fbe7fff83a672 /tools/testing/selftests/bpf/prog_tests/resolve_btfids.c | |
| parent | bpf: Compute bpf_skc_to_*() helper socket btf ids at build time (diff) | |
| download | kernel-d8dfe5bfe856c0c72b1750322dbfcad402e73373.tar.gz kernel-d8dfe5bfe856c0c72b1750322dbfcad402e73373.zip | |
tools/bpf: Sync btf_ids.h to tools
Sync kernel header btf_ids.h to tools directory.
Also define macro CONFIG_DEBUG_INFO_BTF before
including btf_ids.h in prog_tests/resolve_btfids.c
since non-stub definitions for BTF_ID_LIST etc. macros
are defined under CONFIG_DEBUG_INFO_BTF. This
prevented test_progs from failing.
Signed-off-by: Yonghong Song <[email protected]>
Signed-off-by: Alexei Starovoitov <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/resolve_btfids.c')
| -rw-r--r-- | tools/testing/selftests/bpf/prog_tests/resolve_btfids.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/testing/selftests/bpf/prog_tests/resolve_btfids.c b/tools/testing/selftests/bpf/prog_tests/resolve_btfids.c index 403be6f36cba..22d83bba4e91 100644 --- a/tools/testing/selftests/bpf/prog_tests/resolve_btfids.c +++ b/tools/testing/selftests/bpf/prog_tests/resolve_btfids.c @@ -6,6 +6,7 @@ #include <bpf/libbpf.h> #include <linux/btf.h> #include <linux/kernel.h> +#define CONFIG_DEBUG_INFO_BTF #include <linux/btf_ids.h> #include "test_progs.h" |
