ANDROID: vendor_hooks: Add a hook for set_task_comm
android_rvh_set_task_comm:
To record vendor-specific task comm's change.
We need to know the name changes of specific tasks so that
we can notify the user layer of the pids of these tasks,
and then the user layer can set some attributes of the tasks
based on the names, such as priority scheduling, priority, etc.
Since the user layer is notified through netlink, and netlink may
cause blocking actions when sending messages, it's non-atomic context,
so set the hook be restricted.
Bug: 317949078
Change-Id: Ica30c123be339a7ef29c727bfaa7513efced5bd1
Signed-off-by:
Xuewen Yan <xuewen.yan@unisoc.com>
Loading