Re: [PATCH bpf-next 1/5] selftests/bpf: fix btf_dedup testing code

2019-02-28 Thread Andrii Nakryiko
On Thu, Feb 28, 2019 at 10:52 AM Arnaldo Carvalho de Melo wrote: > > Em Wed, Feb 27, 2019 at 02:46:37PM -0800, Andrii Nakryiko escreveu: > > btf_dedup testing code doesn't account for length of struct btf_header > > when calculating the start of a string section. This patch fixes this > > problem.

Re: [PATCH bpf-next 1/5] selftests/bpf: fix btf_dedup testing code

2019-02-28 Thread Arnaldo Carvalho de Melo
Em Wed, Feb 27, 2019 at 02:46:37PM -0800, Andrii Nakryiko escreveu: > btf_dedup testing code doesn't account for length of struct btf_header > when calculating the start of a string section. This patch fixes this > problem. > > Fixes: 49b57e0d01db ("tools/bpf: remove btf__get_strings() superseded

Re: [PATCH bpf-next 1/5] selftests/bpf: fix btf_dedup testing code

2019-02-28 Thread Yonghong Song
On 2/27/19 2:46 PM, Andrii Nakryiko wrote: > btf_dedup testing code doesn't account for length of struct btf_header > when calculating the start of a string section. This patch fixes this > problem. > > Fixes: 49b57e0d01db ("tools/bpf: remove btf__get_strings() superseded by raw > data API") >

Re: [PATCH bpf-next 1/5] selftests/bpf: fix btf_dedup testing code

2019-02-28 Thread Song Liu
On Wed, Feb 27, 2019 at 2:47 PM Andrii Nakryiko wrote: > > btf_dedup testing code doesn't account for length of struct btf_header > when calculating the start of a string section. This patch fixes this > problem. > > Fixes: 49b57e0d01db ("tools/bpf: remove btf__get_strings() superseded by raw > d

[PATCH bpf-next 1/5] selftests/bpf: fix btf_dedup testing code

2019-02-27 Thread Andrii Nakryiko
btf_dedup testing code doesn't account for length of struct btf_header when calculating the start of a string section. This patch fixes this problem. Fixes: 49b57e0d01db ("tools/bpf: remove btf__get_strings() superseded by raw data API") Signed-off-by: Andrii Nakryiko --- tools/testing/selftest