ANDROID: vendor_hooks: Add hooks to recognize special worker thread.
Recognize special worker thread. Bug: 184571803 Signed-off-by: Liujie Xie <xieliujie@oppo.com> Change-Id: I2ad112627eb18b98d0868bac6bd00bbfd84b34c4
This commit is contained in:
@@ -54,6 +54,7 @@
|
||||
#include "workqueue_internal.h"
|
||||
|
||||
#include <trace/hooks/wqlockup.h>
|
||||
#include <trace/hooks/workqueue.h>
|
||||
/* events/workqueue.h uses default TRACE_INCLUDE_PATH */
|
||||
#undef TRACE_INCLUDE_PATH
|
||||
|
||||
@@ -1948,6 +1949,7 @@ static struct worker *create_worker(struct worker_pool *pool)
|
||||
if (IS_ERR(worker->task))
|
||||
goto fail;
|
||||
|
||||
trace_android_vh_create_worker(worker, pool->attrs);
|
||||
set_user_nice(worker->task, pool->attrs->nice);
|
||||
kthread_bind_mask(worker->task, pool->attrs->cpumask);
|
||||
|
||||
|
Reference in New Issue
Block a user