| 1 |
|
| 2 | |
| 3 | * This program is free software; you can redistribute it and/or modify
|
| 4 | * it under the terms of the GNU General Public License as published by
|
| 5 | * the Free Software Foundation; either version 2 of the License, or
|
| 6 | * (at your option) any later version.
|
| 7 | *
|
| 8 | * This program is distributed in the hope that it will be useful,
|
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
| 11 | * GNU General Public License for more details.
|
| 12 | *
|
| 13 | * Authors: Waiman Long <[email protected]>
|
| 14 |
|
| 15 |
|
| 16 | #ifndef LOCK_EVENT
|
| 17 | #define LOCK_EVENT(name) LOCKEVENT_ ## name,
|
| 18 | #endif
|
| 19 |
|
| 20 | #ifdef CONFIG_QUEUED_SPINLOCKS
|
| 21 | #ifdef CONFIG_PARAVIRT_SPINLOCKS
|
| 22 | |
| 23 | * Locking events for PV qspinlock.
|
| 24 |
|
| 25 | LOCK_EVENT(pv_hash_hops)
|
| 26 | LOCK_EVENT(pv_kick_unlock)
|
| 27 | LOCK_EVENT(pv_kick_wake)
|
| 28 | LOCK_EVENT(pv_latency_kick)
|
| 29 | LOCK_EVENT(pv_latency_wake)
|
| 30 | LOCK_EVENT(pv_lock_stealing)
|
| 31 | LOCK_EVENT(pv_spurious_wakeup)
|
| 32 | LOCK_EVENT(pv_wait_again)
|
| 33 | LOCK_EVENT(pv_wait_early)
|
| 34 | LOCK_EVENT(pv_wait_head)
|
| 35 | LOCK_EVENT(pv_wait_node)
|
| 36 | #endif
|
| 37 |
|
| 38 | |
| 39 | * Locking events for qspinlock
|
| 40 | *
|
| 41 | * Subtracting lock_use_node[234] from lock_slowpath will give you
|
| 42 | * lock_use_node1.
|
| 43 |
|
| 44 | LOCK_EVENT(lock_pending)
|
| 45 | LOCK_EVENT(lock_slowpath)
|
| 46 | LOCK_EVENT(lock_use_node2)
|
| 47 | LOCK_EVENT(lock_use_node3)
|
| 48 | LOCK_EVENT(lock_use_node4)
|
| 49 | LOCK_EVENT(lock_no_node)
|
| 50 | #endif
|
| 51 |
|
| 52 | |
| 53 | * Locking events for Resilient Queued Spin Lock
|
| 54 |
|
| 55 | LOCK_EVENT(rqspinlock_lock_timeout)
|
| 56 |
|
| 57 | |
| 58 | * Locking events for rwsem
|
| 59 |
|
| 60 | LOCK_EVENT(rwsem_sleep_reader)
|
| 61 | LOCK_EVENT(rwsem_sleep_writer)
|
| 62 | LOCK_EVENT(rwsem_wake_reader)
|
| 63 | LOCK_EVENT(rwsem_wake_writer)
|
| 64 | LOCK_EVENT(rwsem_opt_lock)
|
| 65 | LOCK_EVENT(rwsem_opt_fail)
|
| 66 | LOCK_EVENT(rwsem_opt_nospin)
|
| 67 | LOCK_EVENT(rwsem_rlock)
|
| 68 | LOCK_EVENT(rwsem_rlock_steal)
|
| 69 | LOCK_EVENT(rwsem_rlock_fast)
|
| 70 | LOCK_EVENT(rwsem_rlock_fail)
|
| 71 | LOCK_EVENT(rwsem_rlock_handoff)
|
| 72 | LOCK_EVENT(rwsem_wlock)
|
| 73 | LOCK_EVENT(rwsem_wlock_fail)
|
| 74 | LOCK_EVENT(rwsem_wlock_handoff)
|
| 75 |
|
| 76 | |
| 77 | * Locking events for rtlock_slowlock()
|
| 78 |
|
| 79 | LOCK_EVENT(rtlock_slowlock)
|
| 80 | LOCK_EVENT(rtlock_slow_acq1)
|
| 81 | LOCK_EVENT(rtlock_slow_acq2)
|
| 82 | LOCK_EVENT(rtlock_slow_sleep)
|
| 83 | LOCK_EVENT(rtlock_slow_wake)
|
| 84 |
|
| 85 | |
| 86 | * Locking events for rt_mutex_slowlock()
|
| 87 |
|
| 88 | LOCK_EVENT(rtmutex_slowlock)
|
| 89 | LOCK_EVENT(rtmutex_slow_block)
|
| 90 | LOCK_EVENT(rtmutex_slow_acq1)
|
| 91 | LOCK_EVENT(rtmutex_slow_acq2)
|
| 92 | LOCK_EVENT(rtmutex_slow_acq3)
|
| 93 | LOCK_EVENT(rtmutex_slow_sleep)
|
| 94 | LOCK_EVENT(rtmutex_slow_wake)
|
| 95 | LOCK_EVENT(rtmutex_deadlock)
|
| 96 |
|
| 97 | |
| 98 | * Locking events for lockdep
|
| 99 |
|
| 100 | LOCK_EVENT(lockdep_acquire)
|
| 101 | LOCK_EVENT(lockdep_lock)
|
| 102 | LOCK_EVENT(lockdep_nocheck)
|