aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/netcnt_common.h
diff options
context:
space:
mode:
authorRoman Gushchin <guro@fb.com>2018-09-28 14:45:58 +0000
committerDaniel Borkmann <daniel@iogearbox.net>2018-10-01 16:18:33 +0200
commit5fcbd29b372402c96b182e0e80b3d95463431490 (patch)
tree460af9949d1e63fb16bcf8ffde5b9c833b5fcb9e /tools/testing/selftests/bpf/netcnt_common.h
parentselftests/bpf: extend the storage test to test per-cpu cgroup storage (diff)
downloadlinux-dev-5fcbd29b372402c96b182e0e80b3d95463431490.tar.xz
linux-dev-5fcbd29b372402c96b182e0e80b3d95463431490.zip
samples/bpf: extend test_cgrp2_attach2 test to use per-cpu cgroup storage
This commit extends the test_cgrp2_attach2 test to cover per-cpu cgroup storage. Bpf program will use shared and per-cpu cgroup storages simultaneously, so a better coverage of corresponding core code will be achieved. Expected output: $ ./test_cgrp2_attach2 Attached DROP prog. This ping in cgroup /foo should fail... ping: sendmsg: Operation not permitted Attached DROP prog. This ping in cgroup /foo/bar should fail... ping: sendmsg: Operation not permitted Attached PASS prog. This ping in cgroup /foo/bar should pass... Detached PASS from /foo/bar while DROP is attached to /foo. This ping in cgroup /foo/bar should fail... ping: sendmsg: Operation not permitted Attached PASS from /foo/bar and detached DROP from /foo. This ping in cgroup /foo/bar should pass... ### override:PASS ### multi:PASS Signed-off-by: Roman Gushchin <guro@fb.com> Acked-by: Song Liu <songliubraving@fb.com> Cc: Daniel Borkmann <daniel@iogearbox.net> Cc: Alexei Starovoitov <ast@kernel.org> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'tools/testing/selftests/bpf/netcnt_common.h')
0 files changed, 0 insertions, 0 deletions