Re: [bpf-next v3 11/12] selftests/bpf: Add tests for bpf_prog_test_run for perf events progs

2019-07-12 Thread Andrii Nakryiko
On Fri, Jul 12, 2019 at 10:37 AM Krzesimir Nowak wrote: > > On Fri, Jul 12, 2019 at 2:38 AM Andrii Nakryiko > wrote: > > > > On Mon, Jul 8, 2019 at 3:42 PM Krzesimir Nowak wrote: > > > > > > The tests check if ctx and data are correctly prepared from ctx_in and > > > data_in, so accessing the ct

Re: [bpf-next v3 11/12] selftests/bpf: Add tests for bpf_prog_test_run for perf events progs

2019-07-12 Thread Krzesimir Nowak
On Fri, Jul 12, 2019 at 2:38 AM Andrii Nakryiko wrote: > > On Mon, Jul 8, 2019 at 3:42 PM Krzesimir Nowak wrote: > > > > The tests check if ctx and data are correctly prepared from ctx_in and > > data_in, so accessing the ctx and using the bpf_perf_prog_read_value > > work as expected. > > > > Th

Re: [bpf-next v3 11/12] selftests/bpf: Add tests for bpf_prog_test_run for perf events progs

2019-07-11 Thread Andrii Nakryiko
On Mon, Jul 8, 2019 at 3:42 PM Krzesimir Nowak wrote: > > The tests check if ctx and data are correctly prepared from ctx_in and > data_in, so accessing the ctx and using the bpf_perf_prog_read_value > work as expected. > These are x86_64-specific tests, aren't they? Should probably guard them be

[bpf-next v3 11/12] selftests/bpf: Add tests for bpf_prog_test_run for perf events progs

2019-07-08 Thread Krzesimir Nowak
The tests check if ctx and data are correctly prepared from ctx_in and data_in, so accessing the ctx and using the bpf_perf_prog_read_value work as expected. Signed-off-by: Krzesimir Nowak --- tools/testing/selftests/bpf/test_verifier.c | 48 ++ .../selftests/bpf/verifier/perf_event_ru