]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: Resolve BTF IDs in vmlinux image
authorJiri Olsa <jolsa@kernel.org>
Sat, 11 Jul 2020 21:53:24 +0000 (23:53 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Mon, 13 Jul 2020 17:42:02 +0000 (10:42 -0700)
commit0913f2eaad7868758bf66257af125053b21d1fcd
treed0f83e40d55fa26ed0b96aee69fcb66fc521be3f
parent2360e0d2c7da7750f26283e85c802f6fba0a9c64
bpf: Resolve BTF IDs in vmlinux image

Using BTF_ID_LIST macro to define lists for several helpers
using BTF arguments.

And running resolve_btfids on vmlinux elf object during linking,
so the .BTF_ids section gets the IDs resolved.

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-5-jolsa@kernel.org
Makefile
kernel/bpf/stackmap.c
kernel/trace/bpf_trace.c
net/core/filter.c
scripts/link-vmlinux.sh