ANDROID: vendor_hook: rename the the name of hooks
Renamed trace_android_vh_record_percpu_rwsem_lock_starttime to trace_android_vh_record_pcpu_rwsem_starttime. 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_record_percpu_rwsem_lock_starttime" There is not any users of the the orignal hooks so that it is safe to rename it. Bug: 241191475 Signed-off-by: Peifeng Li <lipeifeng@oppo.com> Change-Id: Ie246a933414db5e9e28a65a4c280fae3a1cbefe3
This commit is contained in:

committed by
Matthias Männich

parent
2c625a20c0
commit
5c5b7a4da6
@@ -9,7 +9,7 @@
|
||||
#include <linux/rcu_sync.h>
|
||||
#include <linux/lockdep.h>
|
||||
|
||||
void _trace_android_vh_record_percpu_rwsem_lock_starttime(
|
||||
void _trace_android_vh_record_pcpu_rwsem_starttime(
|
||||
struct task_struct *tsk, unsigned long settime);
|
||||
|
||||
struct percpu_rw_semaphore {
|
||||
@@ -76,7 +76,7 @@ static inline void percpu_down_read(struct percpu_rw_semaphore *sem)
|
||||
* bleeding the critical section out.
|
||||
*/
|
||||
preempt_enable();
|
||||
_trace_android_vh_record_percpu_rwsem_lock_starttime(current, jiffies);
|
||||
_trace_android_vh_record_pcpu_rwsem_starttime(current, jiffies);
|
||||
}
|
||||
|
||||
static inline bool percpu_down_read_trylock(struct percpu_rw_semaphore *sem)
|
||||
@@ -98,7 +98,7 @@ static inline bool percpu_down_read_trylock(struct percpu_rw_semaphore *sem)
|
||||
*/
|
||||
|
||||
if (ret) {
|
||||
_trace_android_vh_record_percpu_rwsem_lock_starttime(current, jiffies);
|
||||
_trace_android_vh_record_pcpu_rwsem_starttime(current, jiffies);
|
||||
rwsem_acquire_read(&sem->dep_map, 0, 1, _RET_IP_);
|
||||
}
|
||||
|
||||
@@ -107,7 +107,7 @@ static inline bool percpu_down_read_trylock(struct percpu_rw_semaphore *sem)
|
||||
|
||||
static inline void percpu_up_read(struct percpu_rw_semaphore *sem)
|
||||
{
|
||||
_trace_android_vh_record_percpu_rwsem_lock_starttime(current, 0);
|
||||
_trace_android_vh_record_pcpu_rwsem_starttime(current, 0);
|
||||
rwsem_release(&sem->dep_map, _RET_IP_);
|
||||
|
||||
preempt_disable();
|
||||
|
Reference in New Issue
Block a user