ANDROID: cgroup: Add trace_android_vh_cgroup_set_task parameter
Add "cgroup" and "threadgroup" parameters to the vendor hook to get the specific operation of the function. Bug: 181917687 Change-Id: Ib6fae381aca2814434e7be5208b9437486ed1e53 Signed-off-by: maoshenshen <maoshenshen@oppo.com>
This commit is contained in:
committed by
T.J. Mercier
parent
3b58573735
commit
578bcc20c0
@@ -12,8 +12,8 @@ struct cgroup_taskset;
|
||||
struct cgroup_subsys;
|
||||
struct cgroup_subsys_state;
|
||||
DECLARE_HOOK(android_vh_cgroup_set_task,
|
||||
TP_PROTO(int ret, struct task_struct *task),
|
||||
TP_ARGS(ret, task));
|
||||
TP_PROTO(int ret, struct cgroup *cgrp, struct task_struct *task, bool threadgroup),
|
||||
TP_ARGS(ret, cgrp, task, threadgroup));
|
||||
|
||||
DECLARE_HOOK(android_vh_cgroup_attach,
|
||||
TP_PROTO(struct cgroup_subsys *ss, struct cgroup_taskset *tset),
|
||||
|
||||
@@ -528,7 +528,7 @@ static ssize_t __cgroup1_procs_write(struct kernfs_open_file *of,
|
||||
goto out_finish;
|
||||
|
||||
ret = cgroup_attach_task(cgrp, task, threadgroup);
|
||||
trace_android_vh_cgroup_set_task(ret, task);
|
||||
trace_android_vh_cgroup_set_task(ret, cgrp, task, threadgroup);
|
||||
|
||||
out_finish:
|
||||
cgroup_procs_write_finish(task, locked);
|
||||
|
||||
Reference in New Issue
Block a user