commit | f269099a7e7a0c6732c4a817d0e99e92216414d9 | [log] [tgz] |
---|---|---|
author | Yonghong Song <yhs@fb.com> | Sun Jun 03 15:59:43 2018 -0700 |
committer | Alexei Starovoitov <ast@kernel.org> | Sun Jun 03 18:22:41 2018 -0700 |
tree | 74151563ca1a780f930b7537846123d165af5829 | |
parent | c7ddbbaf1e73e2f4e95cfda7b1da1be7fd199a4d [diff] |
tools/bpf: add a selftest for bpf_get_current_cgroup_id() helper Syscall name_to_handle_at() can be used to get cgroup id for a particular cgroup path in user space. The selftest got cgroup id from both user and kernel, and compare to ensure they are equal to each other. Acked-by: Alexei Starovoitov <ast@kernel.org> Signed-off-by: Yonghong Song <yhs@fb.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org>