Re: [PATCH net-next v5 3/3] samples/bpf: Add test_current_task_under_cgroup test

2016-08-12 Thread Alexei Starovoitov
On Fri, Aug 12, 2016 at 08:57:04AM -0700, Sargun Dhillon wrote: > This test has a BPF program which writes the last known pid to call the > sync syscall within a given cgroup to a map. > > The user mode program creates its own mount namespace, and mounts the > cgroupsv2 hierarchy in there, as on

[PATCH net-next v5 3/3] samples/bpf: Add test_current_task_under_cgroup test

2016-08-12 Thread Sargun Dhillon
This test has a BPF program which writes the last known pid to call the sync syscall within a given cgroup to a map. The user mode program creates its own mount namespace, and mounts the cgroupsv2 hierarchy in there, as on all current test systems (Ubuntu 16.04, Debian), the cgroupsv2 vfs is unmo