.. | .. |
---|
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), |
---|
.. | .. |
---|
81 | 99 | TP_PROTO(struct task_struct *tsk, unsigned long settime_jiffies), |
---|
82 | 100 | TP_ARGS(tsk, settime_jiffies)); |
---|
83 | 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 | + |
---|
84 | 108 | /* macro versions of hooks are no longer required */ |
---|
85 | 109 | |
---|
86 | 110 | #endif /* _TRACE_HOOK_DTASK_H */ |
---|