Revert "ANDROID: vendor_hooks: Add hooks to recognize special worker thread."
This reverts commit 8f3f46d77c
.
The hook android_vh_create_worker is not used by any vendor, so remove
it to help with merge issues with future LTS releases.
If this is needed by any real user, it can easily be reverted to add it
back and then the symbol should be added to the abi list at the same
time to prevent it from being removed again later.
Bug: 203756332
Bug: 184571803
Cc: Liujie Xie <xieliujie@oppo.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: I3112f4e067c27ecb6889333bb58f9342df0ecb63
This commit is contained in:
@@ -40,7 +40,6 @@
|
||||
#include <trace/hooks/ufshcd.h>
|
||||
#include <trace/hooks/block.h>
|
||||
#include <trace/hooks/cgroup.h>
|
||||
#include <trace/hooks/workqueue.h>
|
||||
#include <trace/hooks/sys.h>
|
||||
#include <trace/hooks/traps.h>
|
||||
#include <trace/hooks/avc.h>
|
||||
@@ -233,7 +232,6 @@ EXPORT_TRACEPOINT_SYMBOL_GPL(android_rvh_cpufreq_transition);
|
||||
EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_cgroup_set_task);
|
||||
EXPORT_TRACEPOINT_SYMBOL_GPL(android_rvh_cgroup_force_kthread_migration);
|
||||
EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_syscall_prctl_finished);
|
||||
EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_create_worker);
|
||||
EXPORT_TRACEPOINT_SYMBOL_GPL(android_rvh_check_preempt_tick);
|
||||
EXPORT_TRACEPOINT_SYMBOL_GPL(android_rvh_replace_next_task_fair);
|
||||
EXPORT_TRACEPOINT_SYMBOL_GPL(android_rvh_do_sched_yield);
|
||||
|
@@ -1,22 +0,0 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0 */
|
||||
#undef TRACE_SYSTEM
|
||||
#define TRACE_SYSTEM workqueue
|
||||
#define TRACE_INCLUDE_PATH trace/hooks
|
||||
|
||||
#if !defined(_TRACE_HOOK_WORKQUEUE_H) || defined(TRACE_HEADER_MULTI_READ)
|
||||
#define _TRACE_HOOK_WORKQUEUE_H
|
||||
#include <linux/tracepoint.h>
|
||||
#include <trace/hooks/vendor_hooks.h>
|
||||
/*
|
||||
* Following tracepoints are not exported in tracefs and provide a
|
||||
* mechanism for vendor modules to hook and extend functionality
|
||||
*/
|
||||
struct worker;
|
||||
DECLARE_HOOK(android_vh_create_worker,
|
||||
TP_PROTO(struct worker *worker, struct workqueue_attrs *attrs),
|
||||
TP_ARGS(worker, attrs));
|
||||
/* macro versions of hooks are no longer required */
|
||||
|
||||
#endif /* _TRACE_HOOK_WORKQUEUE_H */
|
||||
/* This part must be outside protection */
|
||||
#include <trace/define_trace.h>
|
@@ -55,7 +55,6 @@
|
||||
#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
|
||||
|
||||
@@ -1950,7 +1949,6 @@ 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