Changeset 600 for trunk/kernel/libk/queuelock.c
- Timestamp:
- Nov 10, 2018, 5:38:51 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/libk/queuelock.c
r563 r600 63 63 #if DEBUG_QUEUELOCK 64 64 if( DEBUG_QUEUELOCK < (uint32_t)hal_get_cycles() ) 65 { 66 printk("\n[DBG] %s : thread %x in process %x BLOCK on q_lock %s [%x,%x]\n", 67 __FUNCTION__, this->trdid, this->process->pid, 68 lock_type_str[lock->lock.type], local_cxy, lock ); 69 } 65 printk("\n[%s ] thread[%x,%x] BLOCK on q_lock %s [%x,%x]\n", 66 __FUNCTION__, this->process->pid, this->trdid, lock_type_str[lock->lock.type], local_cxy, lock ); 70 67 #endif 71 68 // get pointer on calling thread … … 90 87 #if DEBUG_QUEUELOCK 91 88 if( DEBUG_QUEUELOCK < (uint32_t)hal_get_cycles() ) 92 { 93 printk("\n[DBG] %s : thread %x in process %x ACQUIRE q_lock %s [%x,%x]\n", 94 __FUNCTION__, this->trdid, this->process->pid, 95 lock_type_str[lock->lock.type], local_cxy, lock ); 96 } 89 printk("\n[%s] thread[%x,%x] ACQUIRE q_lock %s [%x,%x]\n", 90 __FUNCTION__, this->process->pid, this->trdid, lock_type_str[lock->lock.type], local_cxy, lock ); 97 91 #endif 98 92 … … 115 109 116 110 #if DEBUG_QUEUELOCK 111 thread_t * this = CURRENT_THREAD; 117 112 if( DEBUG_QUEUELOCK < (uint32_t)hal_get_cycles() ) 118 { 119 thread_t * this = CURRENT_THREAD; 120 printk("\n[DBG] %s : thread %x in %x process RELEASE q_lock %s [%x,%x]\n", 121 __FUNCTION__, this->trdid, this->process->pid, 122 lock_type_str[lock->lock.type], local_cxy, lock ); 123 } 113 printk("\n[%s] thread[%x,%x] RELEASE q_lock %s [%x,%x]\n", 114 __FUNCTION__, this->process->pid, this->trdid, lock_type_str[lock->lock.type], local_cxy, lock ); 124 115 #endif 125 116 … … 135 126 #if DEBUG_QUEUELOCK 136 127 if( DEBUG_QUEUELOCK < (uint32_t)hal_get_cycles() ) 137 { 138 thread_t * this = CURRENT_THREAD; 139 printk("\n[DBG] %s : thread %x in process %x UNBLOCK thread %x in process %x" 140 " / q_lock %s [%x,%x]\n", 141 __FUNCTION__, this->trdid, this->process->pid, thread->trdid, thread->process->pid, 142 lock_type_str[lock->lock.type], local_cxy, lock ); 143 } 128 printk("\n[%s] thread[%x,%x] UNBLOCK thread [%x,%x] / q_lock %s [%x,%x]\n", 129 __FUNCTION__, this->process->pid, this->trdid, thread->process->pid, thread->trdid, 130 lock_type_str[lock->lock.type], local_cxy, lock ); 144 131 #endif 145 132 // remove this waiting thread from waiting list
Note: See TracChangeset
for help on using the changeset viewer.