summaryrefslogtreecommitdiff
path: root/kernel/bpf
diff options
context:
space:
mode:
authorHao Luo <haoluo@google.com>2020-09-29 16:50:45 -0700
committerAlexei Starovoitov <ast@kernel.org>2020-10-02 14:59:25 -0700
commitd370bbe1214381f444cbd9cdf3b8647223abb536 (patch)
treed4a0fd5035fb2c95af17be35073c99958913cd49 /kernel/bpf
parent4976b718c3551faba2c0616ef55ebeb74db1c5ca (diff)
bpf/libbpf: BTF support for typed ksyms
If a ksym is defined with a type, libbpf will try to find the ksym's btf information from kernel btf. If a valid btf entry for the ksym is found, libbpf can pass in the found btf id to the verifier, which validates the ksym's type and value. Typeless ksyms (i.e. those defined as 'void') will not have such btf_id, but it has the symbol's address (read from kallsyms) and its value is treated as a raw pointer. Signed-off-by: Hao Luo <haoluo@google.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Acked-by: Andrii Nakryiko <andriin@fb.com> Link: https://lore.kernel.org/bpf/20200929235049.2533242-3-haoluo@google.com
Diffstat (limited to 'kernel/bpf')
0 files changed, 0 insertions, 0 deletions