ANDROID: vendor_hook: rename the the name of hooks
Renamed trace_android_vh_binder_detect_low_async_space_locked to trace_android_vh_binder_detect_low_async_space. Because the orignal name is too long, which results to the compile-err of .ko that uses the symbol: ERROR: modpost: too long symbol "__tracepoint_android_vh_binder_detect_low_async_space_locked" There is not any users of the the orignal hooks so that it is safe to rename it. Bug: 322915513 Change-Id: If45046efe8b2dba2c2ce0b9b41d2a794272f1887 Signed-off-by: chenweitao <chenweitao@oppo.com>
This commit is contained in:
parent
4292d25903
commit
db91c5d31a
3 changed files with 10 additions and 9 deletions
|
|
@ -410,13 +410,14 @@ static struct binder_buffer *binder_alloc_new_buf_locked(
|
|||
return ERR_PTR(-EINVAL);
|
||||
}
|
||||
trace_android_vh_binder_alloc_new_buf_locked(size, &alloc->free_async_space, is_async);
|
||||
trace_android_vh_binder_detect_low_async_space_locked(is_async, &alloc->free_async_space, pid, &should_fail);
|
||||
if (should_fail) {
|
||||
binder_alloc_debug(BINDER_DEBUG_BUFFER_ALLOC,
|
||||
trace_android_vh_binder_detect_low_async_space(is_async, &alloc->free_async_space, pid,
|
||||
&should_fail);
|
||||
if (should_fail) {
|
||||
binder_alloc_debug(BINDER_DEBUG_BUFFER_ALLOC,
|
||||
"%d: binder_alloc_buf size %zd failed, not allowed to alloc more async space\n",
|
||||
alloc->pid, size);
|
||||
return ERR_PTR(-EPERM);
|
||||
}
|
||||
return ERR_PTR(-EPERM);
|
||||
}
|
||||
if (is_async &&
|
||||
alloc->free_async_space < size + sizeof(struct binder_buffer)) {
|
||||
binder_alloc_debug(BINDER_DEBUG_BUFFER_ALLOC,
|
||||
|
|
|
|||
|
|
@ -381,7 +381,7 @@ EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_binder_ioctl_end);
|
|||
EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_binder_looper_exited);
|
||||
EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_binder_spawn_new_thread);
|
||||
EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_binder_has_special_work_ilocked);
|
||||
EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_binder_detect_low_async_space_locked);
|
||||
EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_binder_detect_low_async_space);
|
||||
EXPORT_TRACEPOINT_SYMBOL_GPL(android_rvh_delayacct_init);
|
||||
EXPORT_TRACEPOINT_SYMBOL_GPL(android_rvh_delayacct_tsk_init);
|
||||
EXPORT_TRACEPOINT_SYMBOL_GPL(android_rvh_delayacct_tsk_free);
|
||||
|
|
|
|||
|
|
@ -83,9 +83,9 @@ DECLARE_HOOK(android_vh_binder_alloc_new_buf_locked,
|
|||
TP_PROTO(size_t size, size_t *free_async_space, int is_async),
|
||||
TP_ARGS(size, free_async_space, is_async));
|
||||
|
||||
DECLARE_HOOK(android_vh_binder_detect_low_async_space_locked,
|
||||
TP_PROTO(int is_async, size_t *free_async_space, int pid, bool *should_fail),
|
||||
TP_ARGS(is_async, free_async_space, pid, should_fail));
|
||||
DECLARE_HOOK(android_vh_binder_detect_low_async_space,
|
||||
TP_PROTO(int is_async, size_t *free_async_space, int pid, bool *should_fail),
|
||||
TP_ARGS(is_async, free_async_space, pid, should_fail));
|
||||
struct binder_transaction_data;
|
||||
DECLARE_HOOK(android_vh_binder_reply,
|
||||
TP_PROTO(struct binder_proc *target_proc, struct binder_proc *proc,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue