.. | .. |
---|
32 | 32 | DECLARE_HOOK(android_vh_mutex_wait_finish, |
---|
33 | 33 | TP_PROTO(struct mutex *lock), |
---|
34 | 34 | TP_ARGS(lock)); |
---|
| 35 | +DECLARE_HOOK(android_vh_mutex_opt_spin_start, |
---|
| 36 | + TP_PROTO(struct mutex *lock, bool *time_out, int *cnt), |
---|
| 37 | + TP_ARGS(lock, time_out, cnt)); |
---|
| 38 | +DECLARE_HOOK(android_vh_mutex_opt_spin_finish, |
---|
| 39 | + TP_PROTO(struct mutex *lock, bool taken), |
---|
| 40 | + TP_ARGS(lock, taken)); |
---|
| 41 | +DECLARE_HOOK(android_vh_mutex_can_spin_on_owner, |
---|
| 42 | + TP_PROTO(struct mutex *lock, int *retval), |
---|
| 43 | + TP_ARGS(lock, retval)); |
---|
35 | 44 | |
---|
36 | 45 | DECLARE_HOOK(android_vh_rtmutex_wait_start, |
---|
37 | 46 | TP_PROTO(struct rt_mutex *lock), |
---|
.. | .. |
---|
52 | 61 | DECLARE_HOOK(android_vh_rwsem_write_wait_finish, |
---|
53 | 62 | TP_PROTO(struct rw_semaphore *sem), |
---|
54 | 63 | TP_ARGS(sem)); |
---|
| 64 | +DECLARE_HOOK(android_vh_rwsem_opt_spin_start, |
---|
| 65 | + TP_PROTO(struct rw_semaphore *sem, bool *time_out, int *cnt, bool chk_only), |
---|
| 66 | + TP_ARGS(sem, time_out, cnt, chk_only)); |
---|
| 67 | +DECLARE_HOOK(android_vh_rwsem_opt_spin_finish, |
---|
| 68 | + TP_PROTO(struct rw_semaphore *sem, bool taken, bool wlock), |
---|
| 69 | + TP_ARGS(sem, taken, wlock)); |
---|
| 70 | +DECLARE_HOOK(android_vh_rwsem_can_spin_on_owner, |
---|
| 71 | + TP_PROTO(struct rw_semaphore *sem, bool *ret, bool wlock), |
---|
| 72 | + TP_ARGS(sem, ret, wlock)); |
---|
55 | 73 | |
---|
56 | 74 | DECLARE_HOOK(android_vh_sched_show_task, |
---|
57 | 75 | TP_PROTO(struct task_struct *task), |
---|
58 | 76 | TP_ARGS(task)); |
---|
59 | | -#ifndef CONFIG_PREEMPT_RT |
---|
60 | 77 | DECLARE_HOOK(android_vh_alter_mutex_list_add, |
---|
61 | 78 | TP_PROTO(struct mutex *lock, |
---|
62 | 79 | struct mutex_waiter *waiter, |
---|
63 | 80 | struct list_head *list, |
---|
64 | 81 | bool *already_on_list), |
---|
65 | 82 | TP_ARGS(lock, waiter, list, already_on_list)); |
---|
66 | | -#endif |
---|
67 | 83 | DECLARE_HOOK(android_vh_mutex_unlock_slowpath, |
---|
68 | 84 | TP_PROTO(struct mutex *lock), |
---|
69 | 85 | TP_ARGS(lock)); |
---|
.. | .. |
---|
83 | 99 | TP_PROTO(struct task_struct *tsk, unsigned long settime_jiffies), |
---|
84 | 100 | TP_ARGS(tsk, settime_jiffies)); |
---|
85 | 101 | |
---|
| 102 | +struct percpu_rw_semaphore; |
---|
| 103 | +DECLARE_HOOK(android_vh_percpu_rwsem_wq_add, |
---|
| 104 | + TP_PROTO(struct percpu_rw_semaphore *sem, bool reader), |
---|
| 105 | + TP_ARGS(sem, reader)); |
---|
| 106 | + |
---|
| 107 | + |
---|
86 | 108 | /* macro versions of hooks are no longer required */ |
---|
87 | 109 | |
---|
88 | 110 | #endif /* _TRACE_HOOK_DTASK_H */ |
---|