aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stat-cpi.py
diff options
context:
space:
mode:
authorSargun Dhillon <[email protected]>2016-08-12 08:56:40 -0700
committerDavid S. Miller <[email protected]>2016-08-12 21:49:41 -0700
commitaed704b7a634954dc28fe5c4b49db478cf2d96b7 (patch)
tree4999afa6e46efcf5903f967a1dd737375de6b2cc /tools/perf/scripts/python/stat-cpi.py
parentf9f9ab17268e53b2ca0920c0c0c50f98bd267fe3 (diff)
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 <[email protected]> Cc: Alexei Starovoitov <[email protected]> Cc: Daniel Borkmann <[email protected]> Cc: Tejun Heo <[email protected]> Acked-by: Tejun Heo <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stat-cpi.py')
0 files changed, 0 insertions, 0 deletions