Re: [PATCH bpf-next 3/3] selftests/bpf: add raw_tp_test_run

2020-09-22 Thread Song Liu
Thanks for the quick review! > On Sep 22, 2020, at 9:49 PM, John Fastabend wrote: > > Song Liu wrote: >> This test runs test_run for raw_tracepoint program. The test covers ctx >> input, retval output, and proper handling of cpu_plus field. >> >> Signed-off-by: Song Liu >> --- > > [...] > >>

RE: [PATCH bpf-next 3/3] selftests/bpf: add raw_tp_test_run

2020-09-22 Thread John Fastabend
Song Liu wrote: > This test runs test_run for raw_tracepoint program. The test covers ctx > input, retval output, and proper handling of cpu_plus field. > > Signed-off-by: Song Liu > --- [...] > + > + test_attr.ctx_size_in = sizeof(args); > + err = bpf_prog_test_run_xattr(&test_attr); >

[PATCH bpf-next 3/3] selftests/bpf: add raw_tp_test_run

2020-09-22 Thread Song Liu
This test runs test_run for raw_tracepoint program. The test covers ctx input, retval output, and proper handling of cpu_plus field. Signed-off-by: Song Liu --- .../bpf/prog_tests/raw_tp_test_run.c | 68 +++ .../bpf/progs/test_raw_tp_test_run.c | 26 +++ 2 f