diff options
author | Jiri Olsa <jolsa@kernel.org> | 2020-07-12 00:53:29 +0300 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2020-07-13 20:42:03 +0300 |
commit | cc15a20d5f3abc3cbd7911b70156b7b9e2bc7d41 (patch) | |
tree | 72725e347309aa4c0ad196b34978f359c54d2ab6 /ipc | |
parent | e5a0516ec9681daf5c1f0d05144d21430b6ca6d7 (diff) | |
download | linux-cc15a20d5f3abc3cbd7911b70156b7b9e2bc7d41.tar.xz |
selftests/bpf: Add test for resolve_btfids
Adding resolve_btfids test under test_progs suite.
It's possible to use btf_ids.h header and its logic in
user space application, so we can add easy test for it.
The test defines BTF_ID_LIST and checks it gets properly
resolved.
For this reason the test_progs binary (and other binaries
that use TRUNNER* macros) is processed with resolve_btfids
tool, which resolves BTF IDs in .BTF_ids section. The BTF
data are taken from btf_data.o object rceated from
progs/btf_data.c.
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Tested-by: Andrii Nakryiko <andriin@fb.com>
Acked-by: Andrii Nakryiko <andriin@fb.com>
Link: https://lore.kernel.org/bpf/20200711215329.41165-10-jolsa@kernel.org
Diffstat (limited to 'ipc')
0 files changed, 0 insertions, 0 deletions