mirror of
https://github.com/nxp-imx/linux-imx.git
synced 2025-07-19 07:39:54 +02:00
ANDROID: sched: Add android_vh_set_task_comm
Vendor may have specific actions after task renamed. Bug: 357956265 Change-Id: I78263dc023af6fd1ee2db03eee4ccb3ca3ebb278 Signed-off-by: Rick Yiu <rickyiu@google.com> (cherry picked from commit 42515e9246a690e226e6dde38cf5a0b98100e031) Signed-off-by: Jacky Liu <qsliu@google.com>
This commit is contained in:
parent
e0b348c4b8
commit
dd7de90d0e
|
@ -1236,6 +1236,7 @@ void __set_task_comm(struct task_struct *tsk, const char *buf, bool exec)
|
|||
task_lock(tsk);
|
||||
trace_task_rename(tsk, buf);
|
||||
strscpy_pad(tsk->comm, buf, sizeof(tsk->comm));
|
||||
trace_android_vh_set_task_comm(tsk);
|
||||
task_unlock(tsk);
|
||||
perf_event_comm(tsk, exec);
|
||||
trace_android_rvh_set_task_comm(tsk, exec);
|
||||
|
|
|
@ -476,7 +476,9 @@ DECLARE_HOOK(android_vh_prio_restore,
|
|||
TP_PROTO(int saved_prio),
|
||||
TP_ARGS(saved_prio));
|
||||
|
||||
/* macro versions of hooks are no longer required */
|
||||
DECLARE_HOOK(android_vh_set_task_comm,
|
||||
TP_PROTO(struct task_struct *p),
|
||||
TP_ARGS(p));
|
||||
|
||||
#endif /* _TRACE_HOOK_SCHED_H */
|
||||
/* This part must be outside protection */
|
||||
|
|
|
@ -121,3 +121,4 @@ EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_set_sugov_sched_attr);
|
|||
EXPORT_TRACEPOINT_SYMBOL_GPL(android_rvh_set_iowait);
|
||||
EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_prio_inheritance);
|
||||
EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_prio_restore);
|
||||
EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_set_task_comm);
|
||||
|
|
Loading…
Reference in New Issue
Block a user