Re: [bpf-next v3 05/12] selftests/bpf: Allow passing more information to BPF prog test run

2019-07-11 Thread Krzesimir Nowak
On Thu, Jul 11, 2019 at 3:17 AM Andrii Nakryiko wrote: > > On Mon, Jul 8, 2019 at 3:42 PM Krzesimir Nowak wrote: > > > > The test case can now specify a custom length of the data member, > > context data and its length, which will be passed to > > bpf_prog_test_run_xattr. For backward compatilibi

Re: [bpf-next v3 05/12] selftests/bpf: Allow passing more information to BPF prog test run

2019-07-10 Thread Andrii Nakryiko
On Mon, Jul 8, 2019 at 3:42 PM Krzesimir Nowak wrote: > > The test case can now specify a custom length of the data member, > context data and its length, which will be passed to > bpf_prog_test_run_xattr. For backward compatilibity, if the data > length is 0 (which is what will happen when the fi

[bpf-next v3 05/12] selftests/bpf: Allow passing more information to BPF prog test run

2019-07-08 Thread Krzesimir Nowak
The test case can now specify a custom length of the data member, context data and its length, which will be passed to bpf_prog_test_run_xattr. For backward compatilibity, if the data length is 0 (which is what will happen when the field is left unspecified in the designated initializer of a struct