On Tue, Apr 16, 2019 at 1:13 PM Andrey Ignatov <r...@fb.com> wrote: > > Add support for recently added BPF_PROG_TYPE_CGROUP_SYSCTL program type > and BPF_CGROUP_SYSCTL attach type. > > Example of bpftool output with sysctl program from selftests: > > # bpftool p load ./test_sysctl_prog.o /mnt/bpf/sysctl_prog type > cgroup/sysctl > # bpftool p l > 9: cgroup_sysctl name sysctl_tcp_mem tag 0dd05f81a8d0d52e gpl > loaded_at 2019-04-16T12:57:27-0700 uid 0 > xlated 1008B jited 623B memlock 4096B > # bpftool c a /mnt/cgroup2/bla sysctl id 9 > # bpftool c t > CgroupPath > ID AttachType AttachFlags Name > /mnt/cgroup2/bla > 9 sysctl sysctl_tcp_mem > # bpftool c d /mnt/cgroup2/bla sysctl id 9 > # bpftool c t > CgroupPath > ID AttachType AttachFlags Name > > Signed-off-by: Andrey Ignatov <r...@fb.com>
Applied. Thanks