From 4322bb07e85d6dbaede321f236b43650769d993e Mon Sep 17 00:00:00 2001 From: xieliujie Date: Thu, 15 Jul 2021 17:28:28 +0800 Subject: [PATCH] ANDROID: vendor_hooks: Modify the function name Vendor hook is add in the commit: https://android-review.googlesource.com/c/kernel/common/+/1687592 When we register the vendor hook and build, there is build error: too long symbol "__tracepoint_android_vh_binder_transaction_priority_skip" So, I shorten the function name android_vh_binder_transaction_priority_skip --> android_vh_binder_priority_skip Bug: 186482511 Signed-off-by: xieliujie Change-Id: I27f39dd32436b09257bcf6e746f4ccdfbd6d6cfe --- drivers/android/binder.c | 2 +- drivers/android/vendor_hooks.c | 2 +- include/trace/hooks/binder.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/android/binder.c b/drivers/android/binder.c index fb39c14dd44c..daae755d0ddb 100644 --- a/drivers/android/binder.c +++ b/drivers/android/binder.c @@ -738,7 +738,7 @@ static void binder_transaction_priority(struct task_struct *task, t->saved_priority.sched_policy = task->policy; t->saved_priority.prio = task->normal_prio; - trace_android_vh_binder_transaction_priority_skip(task, &skip); + trace_android_vh_binder_priority_skip(task, &skip); if (skip) return; diff --git a/drivers/android/vendor_hooks.c b/drivers/android/vendor_hooks.c index 6ebc82a0ff43..48ca66786f42 100644 --- a/drivers/android/vendor_hooks.c +++ b/drivers/android/vendor_hooks.c @@ -98,7 +98,7 @@ EXPORT_TRACEPOINT_SYMBOL_GPL(android_rvh_nf_conn_free); EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_arch_set_freq_scale); EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_is_fpsimd_save); EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_binder_transaction_init); -EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_binder_transaction_priority_skip); +EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_binder_priority_skip); EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_binder_set_priority); EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_binder_restore_priority); EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_binder_wakeup_ilocked); diff --git a/include/trace/hooks/binder.h b/include/trace/hooks/binder.h index afa7b59c5ae2..ffba8746e58b 100644 --- a/include/trace/hooks/binder.h +++ b/include/trace/hooks/binder.h @@ -21,7 +21,7 @@ struct seq_file; DECLARE_HOOK(android_vh_binder_transaction_init, TP_PROTO(struct binder_transaction *t), TP_ARGS(t)); -DECLARE_HOOK(android_vh_binder_transaction_priority_skip, +DECLARE_HOOK(android_vh_binder_priority_skip, TP_PROTO(struct task_struct *task, bool *skip), TP_ARGS(task, skip)); DECLARE_HOOK(android_vh_binder_set_priority,