summaryrefslogtreecommitdiffstats
path: root/include/linux/cgroup.h
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2013-04-08 19:00:38 -0700
committerTejun Heo <tj@kernel.org>2013-04-10 11:07:16 -0700
commitef824fa129b7579f56b92d466ecda2e378879806 (patch)
tree4a0e244bae94fffd4cc37d5ddaa73edad3fa2882 /include/linux/cgroup.h
parent78574cf981cd3d9ae9f6adbd466a772310ec24ff (diff)
downloadlinux-ef824fa129b7579f56b92d466ecda2e378879806.tar.gz
linux-ef824fa129b7579f56b92d466ecda2e378879806.tar.bz2
linux-ef824fa129b7579f56b92d466ecda2e378879806.zip
perf: make perf_event cgroup hierarchical
perf_event is one of a couple remaining cgroup controllers with broken hierarchy support. Converting it to support hierarchy is almost trivial. The only thing necessary is to consider a task belonging to a descendant cgroup as a match. IOW, if the cgroup of the currently executing task (@cpuctx->cgrp) equals or is a descendant of the event's cgroup (@event->cgrp), then the event should be enabled. Implement hierarchy support and remove .broken_hierarchy tag along with the incorrect comment on what needs to be done for hierarchy support. Signed-off-by: Tejun Heo <tj@kernel.org> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Paul Mackerras <paulus@samba.org> Cc: Ingo Molnar <mingo@redhat.com> Cc: Arnaldo Carvalho de Melo <acme@ghostprotocols.net> Cc: Stephane Eranian <eranian@google.com> Cc: Namhyung Kim <namhyung.kim@lge.com>
Diffstat (limited to 'include/linux/cgroup.h')
0 files changed, 0 insertions, 0 deletions