bpf: get type information with BTF_ID_LIST
authorKui-Feng Lee <thinker.li@gmail.com>
Fri, 19 Jan 2024 22:49:53 +0000 (14:49 -0800)
committerMartin KaFai Lau <martin.lau@kernel.org>
Wed, 24 Jan 2024 00:37:43 +0000 (16:37 -0800)
commit95678395386d45fa0a075d2e7a6866326a469d76
tree272be15c9b5ae3c0b0758ef982f48d30facc5868
parent3b1f89e747cd4b24244f2798a35d28815b744303
bpf: get type information with BTF_ID_LIST

Get ready to remove bpf_struct_ops_init() in the future. By using
BTF_ID_LIST, it is possible to gather type information while building
instead of runtime.

Signed-off-by: Kui-Feng Lee <thinker.li@gmail.com>
Link: https://lore.kernel.org/r/20240119225005.668602-3-thinker.li@gmail.com
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
kernel/bpf/bpf_struct_ops.c