Thread (16 messages) 16 messages, 3 authors, 2020-05-26

Re: [bpf-next PATCH v5 5/5] bpf, selftests: test probe_* helpers from SCHED_CLS

From: Andrii Nakryiko <hidden>
Date: 2020-05-26 18:09:26
Also in: bpf

On Sun, May 24, 2020 at 9:52 AM John Fastabend [off-list ref] wrote:
Lets test using probe* in SCHED_CLS network programs as well just
to be sure these keep working. Its cheap to add the extra test
and provides a second context to test outside of sk_msg after
we generalized probe* helpers to all networking types.

Acked-by: Yonghong Song <redacted>
Signed-off-by: John Fastabend <john.fastabend@gmail.com>
---
One day we need to just replace all bpf_prog_load() calls with
bpf_object__open() or skeleton open/load. But not today :)

Acked-by: Andrii Nakryiko <redacted>
 .../testing/selftests/bpf/prog_tests/skb_helpers.c |   30 ++++++++++++++++++++
 .../testing/selftests/bpf/progs/test_skb_helpers.c |   28 +++++++++++++++++++
 2 files changed, 58 insertions(+)
 create mode 100644 tools/testing/selftests/bpf/prog_tests/skb_helpers.c
 create mode 100644 tools/testing/selftests/bpf/progs/test_skb_helpers.c
[...]
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help