bpf: Use BTF_ID to resolve bpf_ctx_convert struct
authorJiri Olsa <jolsa@kernel.org>
Sat, 11 Jul 2020 21:53:26 +0000 (23:53 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Mon, 13 Jul 2020 17:42:03 +0000 (10:42 -0700)
commit49f4e6720748c778795df62d222d0200b61345be
treed1b5032be766b4d837480db5940ee275d1596a0d
parent138b9a0511c789f2451ff1d80e7fd3f9eef3a9e3
bpf: Use BTF_ID to resolve bpf_ctx_convert struct

This way the ID is resolved during compile time,
and we can remove the runtime name search.

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-7-jolsa@kernel.org
kernel/bpf/btf.c