ANDROID: vendor_hooks: Add a hook for task tagging
Add a hook to tag task by its comm. Easy way to identity a task by its tag. Bug: 189352151 Signed-off-by: ted.lin <ted.lin@oneplus.com> Change-Id: I32f2f7cec6643f4bd48312b9cffa770c902cebf3
This commit is contained in:
@@ -362,6 +362,10 @@ DECLARE_HOOK(android_vh_dup_task_struct,
|
||||
TP_PROTO(struct task_struct *tsk, struct task_struct *orig),
|
||||
TP_ARGS(tsk, orig));
|
||||
|
||||
DECLARE_HOOK(android_vh_set_task_comm,
|
||||
TP_PROTO(struct task_struct *p),
|
||||
TP_ARGS(p));
|
||||
|
||||
/* macro versions of hooks are no longer required */
|
||||
|
||||
#endif /* _TRACE_HOOK_SCHED_H */
|
||||
|
Reference in New Issue
Block a user