ANDROID: vendor_hooks: Add hook for trace_android_vh_copy_process
Add hook for trace_android_vh_copy_process, which gives the vendor a chance to monitor the total thread count of the system and the thread count under a particular process Bug: 325765508 Change-Id: Ibeb8aa571d44997ac10623321cd00d1686bde033 Signed-off-by: chenweitao <chenweitao@oppo.com>
This commit is contained in:
@@ -2611,6 +2611,7 @@ __latent_entropy struct task_struct *copy_process(
|
||||
attach_pid(p, PIDTYPE_PID);
|
||||
nr_threads++;
|
||||
}
|
||||
trace_android_vh_copy_process(current, nr_threads);
|
||||
total_forks++;
|
||||
hlist_del_init(&delayed.node);
|
||||
spin_unlock(¤t->sighand->siglock);
|
||||
|
||||
Reference in New Issue
Block a user