ANDROID: vendor_hooks: Add hooks to dup_task_struct

Add hook to dup_task_struct for vendor data fields initialisation.

Bug: 188004638

Change-Id: I4b58604ee822fb8d1e0cc37bec72e820e7318427
Signed-off-by: Liangliang Li <liliangliang@vivo.com>
This commit is contained in:
Liangliang Li
2021-05-13 15:01:26 +08:00
committed by Todd Kjos
parent 727ab0f839
commit f66d96b14a
3 changed files with 6 additions and 0 deletions

View File

@@ -975,6 +975,7 @@ static struct task_struct *dup_task_struct(struct task_struct *orig, int node)
#ifdef CONFIG_MEMCG
tsk->active_memcg = NULL;
#endif
trace_android_vh_dup_task_struct(tsk, orig);
return tsk;
free_stack: