Re: [PATCH bpf-next v3 3/6] selftests/bpf: ksyms_btf to test typed ksyms

2020-09-21 Thread Andrii Nakryiko
On Wed, Sep 16, 2020 at 3:39 PM Hao Luo wrote: > > Selftests for typed ksyms. Tests two types of ksyms: one is a struct, > the other is a plain int. This tests two paths in the kernel. Struct > ksyms will be converted into PTR_TO_BTF_ID by the verifier while int > typed ksyms will be converted

[PATCH bpf-next v3 3/6] selftests/bpf: ksyms_btf to test typed ksyms

2020-09-16 Thread Hao Luo
Selftests for typed ksyms. Tests two types of ksyms: one is a struct, the other is a plain int. This tests two paths in the kernel. Struct ksyms will be converted into PTR_TO_BTF_ID by the verifier while int typed ksyms will be converted into PTR_TO_MEM. Signed-off-by: Hao Luo ---