diff options
author | Sargun Dhillon | 2016-08-12 17:56:40 +0200 |
---|---|---|
committer | David S. Miller | 2016-08-13 06:49:41 +0200 |
commit | aed704b7a634954dc28fe5c4b49db478cf2d96b7 (patch) | |
tree | 4999afa6e46efcf5903f967a1dd737375de6b2cc /kernel/trace/bpf_trace.c | |
parent | Merge tag 'batadv-next-for-davem-20160812' of git://git.open-mesh.org/linux-m... (diff) | |
download | kernel-qcow2-linux-aed704b7a634954dc28fe5c4b49db478cf2d96b7.tar.gz kernel-qcow2-linux-aed704b7a634954dc28fe5c4b49db478cf2d96b7.tar.xz kernel-qcow2-linux-aed704b7a634954dc28fe5c4b49db478cf2d96b7.zip |
cgroup: Add task_under_cgroup_hierarchy cgroup inline function to headers
This commit adds an inline function to cgroup.h to check whether a given
task is under a given cgroup hierarchy. This is to avoid having to put
ifdefs in .c files to gate access to cgroups. When cgroups are disabled
this always returns true.
Signed-off-by: Sargun Dhillon <sargun@sargun.me>
Cc: Alexei Starovoitov <ast@kernel.org>
Cc: Daniel Borkmann <daniel@iogearbox.net>
Cc: Tejun Heo <tj@kernel.org>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'kernel/trace/bpf_trace.c')
0 files changed, 0 insertions, 0 deletions