mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 10:31:46 +09:00
ANDROID: mutex: Add vendor hook to init mutex oem data.
Add hooks to init oem data of mutex. Bug: 231527236 Signed-off-by: Dezhi Huang <huangdezhi@hihonor.com> Change-Id: Id0aeac168e81bd3d88051657c32ba709c329dbdd
This commit is contained in:
committed by
Treehugger Robot
parent
07b9faefd4
commit
bcf27b22e4
@@ -83,6 +83,7 @@ EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_binder_wakeup_ilocked);
|
||||
EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_do_send_sig_info);
|
||||
EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_mutex_wait_start);
|
||||
EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_mutex_wait_finish);
|
||||
EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_mutex_init);
|
||||
EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_rtmutex_wait_start);
|
||||
EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_rtmutex_wait_finish);
|
||||
EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_mutex_opt_spin_start);
|
||||
|
||||
@@ -31,6 +31,9 @@ DECLARE_HOOK(android_vh_mutex_opt_spin_finish,
|
||||
DECLARE_HOOK(android_vh_mutex_can_spin_on_owner,
|
||||
TP_PROTO(struct mutex *lock, int *retval),
|
||||
TP_ARGS(lock, retval));
|
||||
DECLARE_HOOK(android_vh_mutex_init,
|
||||
TP_PROTO(struct mutex *lock),
|
||||
TP_ARGS(lock));
|
||||
|
||||
DECLARE_HOOK(android_vh_rtmutex_wait_start,
|
||||
TP_PROTO(struct rt_mutex_base *lock),
|
||||
|
||||
@@ -55,6 +55,7 @@ __mutex_init(struct mutex *lock, const char *name, struct lock_class_key *key)
|
||||
osq_lock_init(&lock->osq);
|
||||
#endif
|
||||
|
||||
trace_android_vh_mutex_init(lock);
|
||||
debug_mutex_init(lock, name, key);
|
||||
}
|
||||
EXPORT_SYMBOL(__mutex_init);
|
||||
|
||||
Reference in New Issue
Block a user