• Roman Gushchin's avatar
    samples/bpf: extend test_cgrp2_attach2 test to use per-cpu cgroup storage · 5fcbd29b
    Roman Gushchin authored
    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: default avatarRoman Gushchin <guro@fb.com>
    Acked-by: default avatarSong Liu <songliubraving@fb.com>
    Cc: Daniel Borkmann <daniel@iogearbox.net>
    Cc: Alexei Starovoitov <ast@kernel.org>
    Signed-off-by: default avatarDaniel Borkmann <daniel@iogearbox.net>
    5fcbd29b
Name
Last commit
Last update
..
auxdisplay Loading commit data...
bpf Loading commit data...
configfs Loading commit data...
connector Loading commit data...
hidraw Loading commit data...
hw_breakpoint Loading commit data...
kdb Loading commit data...
kfifo Loading commit data...
kobject Loading commit data...
kprobes Loading commit data...
livepatch Loading commit data...
mei Loading commit data...
mic/mpssd Loading commit data...
pktgen Loading commit data...
qmi Loading commit data...
rpmsg Loading commit data...
seccomp Loading commit data...
statx Loading commit data...
timers Loading commit data...
trace_events Loading commit data...
trace_printk Loading commit data...
uhid Loading commit data...
v4l Loading commit data...
vfio-mdev Loading commit data...
watchdog Loading commit data...
Kconfig Loading commit data...
Makefile Loading commit data...