Re: bpf: btf: Change how section is supported in btf_header

2018-09-12 Thread Dmitry Vyukov
On Tue, Sep 11, 2018 at 8:10 PM, Martin KaFai Lau wrote: > On Tue, Sep 11, 2018 at 06:40:05PM +0200, Dmitry Vyukov wrote: >> Hi Martin, >> >> I am looking at the subj commit: >> >> static int btf_add_type(struct btf_verifier_env *env, struct btf_type *t) >> @@ -1754,9 +1756,9 @@ static int btf_ch

Re: bpf: btf: Change how section is supported in btf_header

2018-09-11 Thread Martin KaFai Lau
On Tue, Sep 11, 2018 at 06:40:05PM +0200, Dmitry Vyukov wrote: > Hi Martin, > > I am looking at the subj commit: > > static int btf_add_type(struct btf_verifier_env *env, struct btf_type *t) > @@ -1754,9 +1756,9 @@ static int btf_check_all_metas(struct > btf_verifier_env *env) > struct b

Re: bpf: btf: Change how section is supported in btf_header

2018-09-11 Thread Dmitry Vyukov
Hi Martin, I am looking at the subj commit: static int btf_add_type(struct btf_verifier_env *env, struct btf_type *t) @@ -1754,9 +1756,9 @@ static int btf_check_all_metas(struct btf_verifier_env *env) struct btf_header *hdr; void *cur, *end; - hdr = btf->hdr; + hdr =