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:
chenweitao
2025-03-11 11:25:47 +08:00
parent bd702ad54e
commit 1dc69ebe20
3 changed files with 7 additions and 0 deletions
+1
View File
@@ -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(&current->sighand->siglock);