summaryrefslogtreecommitdiff
path: root/samples/bpf/test_cgrp2_sock.sh
diff options
context:
space:
mode:
authorDavid Ahern <dsahern@gmail.com>2017-09-01 01:05:46 +0300
committerDavid S. Miller <davem@davemloft.net>2017-09-01 08:05:15 +0300
commitfa38aa17bcf31a798638d911891cd478cdea40e0 (patch)
tree0f8740c0a28fe5df698e16ff7905aca62e7d815b /samples/bpf/test_cgrp2_sock.sh
parentae2cf1c466bea99e927899707aed022942505d27 (diff)
downloadlinux-fa38aa17bcf31a798638d911891cd478cdea40e0.tar.xz
samples/bpf: Update sock test to allow setting mark and priority
Update sock test to set mark and priority on socket create. Signed-off-by: David Ahern <dsahern@gmail.com> Acked-by: Alexei Starovoitov <ast@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'samples/bpf/test_cgrp2_sock.sh')
-rwxr-xr-xsamples/bpf/test_cgrp2_sock.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/samples/bpf/test_cgrp2_sock.sh b/samples/bpf/test_cgrp2_sock.sh
index 925fd467c7cc..1153c33e8964 100755
--- a/samples/bpf/test_cgrp2_sock.sh
+++ b/samples/bpf/test_cgrp2_sock.sh
@@ -20,7 +20,7 @@ function attach_bpf {
mkdir -p /tmp/cgroupv2
mount -t cgroup2 none /tmp/cgroupv2
mkdir -p /tmp/cgroupv2/foo
- test_cgrp2_sock /tmp/cgroupv2/foo foo
+ test_cgrp2_sock -b foo /tmp/cgroupv2/foo
echo $$ >> /tmp/cgroupv2/foo/cgroup.procs
}