diff options
author | 2013-08-15 11:43:15 -0400 | |
---|---|---|
committer | 2013-08-19 09:56:34 -0400 | |
commit | 6e6eab0efdf48fb2d8d7aee904d7740acb4661c6 (patch) | |
tree | 7805e157bdbe18844f650fa0a691cd8d1a6e1baf /tools/perf/scripts/python | |
parent | cgroup: fix subsystem file accesses on the root cgroup (diff) | |
download | linux-dev-6e6eab0efdf48fb2d8d7aee904d7740acb4661c6.tar.xz linux-dev-6e6eab0efdf48fb2d8d7aee904d7740acb4661c6.zip |
cgroup: fix cgroup_write_event_control()
81eeaf0411 ("cgroup: make cftype->[un]register_event() deal with
cgroup_subsys_state inst ead of cgroup") updated the cftype event
methods to take @css (cgroup_subsys_state) instead of @cgroup;
however, it incorrectly used @css passed to
cgroup_write_event_control(), which the dummy_css for the cgroup as
the file is a cgroup core file. This leads to oops on event
registration.
Fix it by using the css matching the event target file. Note that
cgroup_write_event_control() now disallows cgroup core files from
being event sources. This is for simplicity and doesn't matter as
cgroup_event will be moved and made specific to memcg.
Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: Li Zefan <lizefan@huawei.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions