Changeset 438 for trunk/kernel/devices
- Timestamp:
- Apr 4, 2018, 2:49:02 PM (7 years ago)
- Location:
- trunk/kernel/devices
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/devices/dev_fbf.c
r437 r438 177 177 { 178 178 179 #if CONFIG_DEBUG_DEV_FBF_RX179 #if DEBUG_DEV_FBF_RX 180 180 uint32_t cycle = (uint32_t)hal_get_cycle(); 181 if( CONFIG_DEBUG_DEV_FBF_RX < cycle )181 if( DEBUG_DEV_FBF_RX < cycle ) 182 182 printk("\n[DBG] %s : thread %x enter / process %x / vaddr %x / size %x\n", 183 183 __FUNCTION__ , this, this->process->pid , buffer , buf_paddr ); … … 186 186 return dev_fbf_access( false , buffer , length , offset ); 187 187 188 #if CONFIG_DEBUG_DEV_FBF_RX188 #if DEBUG_DEV_FBF_RX 189 189 cycle = (uint32_t)hal_get_cycle(); 190 if( CONFIG_DEBUG_DEV_FBF_RX < cycle )190 if( DEBUG_DEV_FBF_RX < cycle ) 191 191 printk("\n[DBG] %s : thread %x exit / process %x / vaddr %x / size %x\n", 192 192 __FUNCTION__ , this, this->process->pid , buffer , buf_paddr ); … … 201 201 { 202 202 203 #if CONFIG_DEBUG_DEV_FBF_TX203 #if DEBUG_DEV_FBF_TX 204 204 uint32_t cycle = (uint32_t)hal_get_cycle(); 205 if( CONFIG_DEBUG_DEV_FBF_TX < cycle )205 if( DEBUG_DEV_FBF_TX < cycle ) 206 206 printk("\n[DBG] %s : thread %x enter / process %x / vaddr %x / size %x\n", 207 207 __FUNCTION__ , this, this->process->pid , buffer , buf_paddr ); … … 210 210 return dev_fbf_access( true , buffer , length , offset ); 211 211 212 #if CONFIG_DEBUG_DEV_FBF_RX212 #if DEBUG_DEV_FBF_RX 213 213 cycle = (uint32_t)hal_get_cycle(); 214 if( CONFIG_DEBUG_DEV_FBF_RX < cycle )214 if( DEBUG_DEV_FBF_RX < cycle ) 215 215 printk("\n[DBG] %s : thread %x exit / process %x / vaddr %x / size %x\n", 216 216 __FUNCTION__ , this, this->process->pid , buffer , buf_paddr ); -
trunk/kernel/devices/dev_ioc.c
r437 r438 136 136 { 137 137 138 #if CONFIG_DEBUG_DEV_IOC_RX138 #if DEBUG_DEV_IOC_RX 139 139 uint32_t cycle = (uint32_t)hal_get_cycles(); 140 if( CONFIG_DEBUG_DEV_IOC_RX < cycle )140 if( DEBUG_DEV_IOC_RX < cycle ) 141 141 printk("\n[DBG] %s : thread %x enters / lba %x / buffer %x / cycle %d\n", 142 142 __FUNCTION__ , this, lba, buffer, cycle ); … … 145 145 return dev_ioc_access( IOC_READ , buffer , lba , count ); 146 146 147 #if CONFIG_DEBUG_DEV_IOC_RX147 #if DEBUG_DEV_IOC_RX 148 148 cycle = (uint32_t)hal_get_cycles(); 149 if( CONFIG_DEBUG_DEV_IOC_RX < cycle )149 if( DEBUG_DEV_IOC_RX < cycle ) 150 150 printk("\n[DBG] %s : thread %x exit / lba %x / buffer %x / cycle %d\n", 151 151 __FUNCTION__ , this, lba, buffer, cycle ); … … 160 160 { 161 161 162 #if CONFIG_DEBUG_DEV_IOC_TX162 #if DEBUG_DEV_IOC_TX 163 163 uint32_t cycle = (uint32_t)hal_get_cycles(); 164 if( CONFIG_DEBUG_DEV_IOC_TX < cycle )164 if( DEBUG_DEV_IOC_TX < cycle ) 165 165 printk("\n[DBG] %s : thread %x enters / lba %x / buffer %x / cycle %d\n", 166 166 __FUNCTION__ , this, lba, buffer, cycle ); … … 169 169 return dev_ioc_access( IOC_WRITE , buffer , lba , count ); 170 170 171 #if CONFIG_DEBUG_DEV_IOC_TX171 #if DEBUG_DEV_IOC_TX 172 172 cycle = (uint32_t)hal_get_cycles(); 173 if( CONFIG_DEBUG_DEV_IOC_TX < cycle )173 if( DEBUG_DEV_IOC_TX < cycle ) 174 174 printk("\n[DBG] %s : thread %x exit / lba %x / buffer %x / cycle %d\n", 175 175 __FUNCTION__ , this, lba, buffer, cycle ); … … 186 186 thread_t * this = CURRENT_THREAD; 187 187 188 #if CONFIG_DEBUG_DEV_IOC_RX188 #if DEBUG_DEV_IOC_RX 189 189 uint32_t cycle = (uint32_t)hal_get_cycles(); 190 if( CONFIG_DEBUG_DEV_IOC_RX < cycle )190 if( DEBUG_DEV_IOC_RX < cycle ) 191 191 printk("\n[DBG] %s : thread %x enters / lba %x / buffer %x / cycle %d\n", 192 192 __FUNCTION__ , this, lba, buffer, cycle ); … … 227 227 dev_pic_enable_irq( lid , ioc_xp ); 228 228 229 #if CONFIG_DEBUG_DEV_IOC_RX229 #if DEBUG_DEV_IOC_RX 230 230 cycle = (uint32_t)hal_get_cycles(); 231 if( CONFIG_DEBUG_DEV_IOC_RX < cycle )231 if( DEBUG_DEV_IOC_RX < cycle ) 232 232 printk("\n[DBG] %s : thread %x exit / lba %x / buffer %x / cycle %d\n", 233 233 __FUNCTION__ , this, lba, buffer, cycle ); -
trunk/kernel/devices/dev_mmc.c
r437 r438 99 99 thread_t * this = CURRENT_THREAD; 100 100 101 #if CONFIG_DEBUG_DEV_MMC101 #if DEBUG_DEV_MMC 102 102 uint32_t cycle = (uint32_t)hal_get_cycles(); 103 if( CONFIG_DEBUG_DEV_MMC < cycle )103 if( DEBUG_DEV_MMC < cycle ) 104 104 printk("\n[DBG] %s : thread %x enters / process %x / buf_xp = %l\n", 105 105 __FUNCTION__, this, this->process->pid , buf_xp ); … … 128 128 error = dev_mmc_access( this ); 129 129 130 #if CONFIG_DEBUG_DEV_MMC130 #if DEBUG_DEV_MMC 131 131 cycle = (uint32_t)hal_get_cycles(); 132 if( CONFIG_DEBUG_DEV_MMC < cycle )132 if( DEBUG_DEV_MMC < cycle ) 133 133 printk("\n[DBG] %s : thread %x exit / process %x / buf_xp = %l\n", 134 134 __FUNCTION__, this, this->process->pid , buf_xp ); … … 147 147 thread_t * this = CURRENT_THREAD; 148 148 149 #if CONFIG_DEBUG_DEV_MMC149 #if DEBUG_DEV_MMC 150 150 uint32_t cycle = (uint32_t)hal_get_cycles(); 151 if( CONFIG_DEBUG_DEV_MMC < cycle )151 if( DEBUG_DEV_MMC < cycle ) 152 152 printk("\n[DBG] %s : thread %x enters / process %x / buf_xp = %l\n", 153 153 __FUNCTION__, this, this->process->pid , buf_xp ); … … 176 176 error = dev_mmc_access( this ); 177 177 178 #if CONFIG_DEBUG_DEV_MMC178 #if DEBUG_DEV_MMC 179 179 cycle = (uint32_t)hal_get_cycles(); 180 if( CONFIG_DEBUG_DEV_MMC < cycle )180 if( DEBUG_DEV_MMC < cycle ) 181 181 printk("\n[DBG] %s : thread %x exit / process %x / buf_xp = %l\n", 182 182 __FUNCTION__, this, this->process->pid , buf_xp ); -
trunk/kernel/devices/dev_nic.c
r437 r438 99 99 core_t * core = thread_ptr->core; 100 100 101 #if CONFIG_DEBUG_DEV_NIC_RX101 #if DEBUG_DEV_NIC_RX 102 102 uint32_t cycle = (uint32_t)hal_get_cycles(); 103 if( CONFIG_DEBUG_DEV_NIC_RX < cycle )103 if( DEBUG_DEV_NIC_RX < cycle ) 104 104 printk("\n[DBG] %s : thread %x enters for packet %x in cluster %x\n", 105 105 __FUNCTION__ , thread_ptr , pkd , local_cxy ); … … 153 153 pkd->length = thread_ptr->nic_cmd.length; 154 154 155 #if CONFIG_DEBUG_DEV_NIC_RX155 #if DEBUG_DEV_NIC_RX 156 156 cycle = (uint32_t)hal_get_cycles(); 157 if( CONFIG_DEBUG_DEV_NIC_RX < cycle )157 if( DEBUG_DEV_NIC_RX < cycle ) 158 158 printk("\n[DBG] %s : thread %x exit for packet %x in cluster %x\n", 159 159 __FUNCTION__ , thread_ptr , pkd , local_cxy ); … … 177 177 core_t * core = thread_ptr->core; 178 178 179 #if CONFIG_DEBUG_DEV_NIC_RX179 #if DEBUG_DEV_NIC_RX 180 180 uint32_t cycle = (uint32_t)hal_get_cycles(); 181 if( CONFIG_DEBUG_DEV_NIC_RX < cycle )181 if( DEBUG_DEV_NIC_RX < cycle ) 182 182 printk("\n[DBG] %s : thread %x enters for packet %x in cluster %x\n", 183 183 __FUNCTION__ , thread_ptr , pkd , local_cxy ); … … 229 229 if( error ) return error; 230 230 231 #if CONFIG_DEBUG_DEV_NIC_RX231 #if DEBUG_DEV_NIC_RX 232 232 cycle = (uint32_t)hal_get_cycles(); 233 if( CONFIG_DEBUG_DEV_NIC_RX < cycle )233 if( DEBUG_DEV_NIC_RX < cycle ) 234 234 printk("\n[DBG] %s : thread %x exit for packet %x in cluster %x\n", 235 235 __FUNCTION__ , thread_ptr , pkd , local_cxy ); -
trunk/kernel/devices/dev_pic.c
r437 r438 86 86 { 87 87 88 #if CONFIG_DEBUG_DEV_PIC89 uint32_t cycle = (uint32_t)hal_get_cycles(); 90 if( CONFIG_DEBUG_DEV_PIC < cycle )88 #if DEBUG_DEV_PIC 89 uint32_t cycle = (uint32_t)hal_get_cycles(); 90 if( DEBUG_DEV_PIC < cycle ) 91 91 printk("\n[DBG] %s : core[%x,%d] / src_chdev_cxy %x / src_chdev_ptr %x / cycle %d\n", 92 92 __FUNCTION__, local_cxy, lid, GET_CXY(src_chdev_xp), GET_PTR(src_chdev_xp), cycle ); … … 109 109 { 110 110 111 #if CONFIG_DEBUG_DEV_PIC112 uint32_t cycle = (uint32_t)hal_get_cycles(); 113 if( CONFIG_DEBUG_DEV_PIC < cycle )111 #if DEBUG_DEV_PIC 112 uint32_t cycle = (uint32_t)hal_get_cycles(); 113 if( DEBUG_DEV_PIC < cycle ) 114 114 printk("\n[DBG] %s : core[%x,%d] / src_chdev_cxy %x / src_chdev_ptr %x / cycle %d\n", 115 115 __FUNCTION__, local_cxy, lid, GET_CXY(src_chdev_xp), GET_PTR(src_chdev_xp), cycle ); … … 131 131 { 132 132 133 #if CONFIG_DEBUG_DEV_PIC134 uint32_t cycle = (uint32_t)hal_get_cycles(); 135 if( CONFIG_DEBUG_DEV_PIC < cycle )133 #if DEBUG_DEV_PIC 134 uint32_t cycle = (uint32_t)hal_get_cycles(); 135 if( DEBUG_DEV_PIC < cycle ) 136 136 printk("\n[DBG] %s : core[%x,%d] / period %d / cycle %d\n", 137 137 __FUNCTION__ , local_cxy , CURRENT_THREAD->core->lid , period, cycle ); … … 153 153 { 154 154 155 #if CONFIG_DEBUG_DEV_PIC156 uint32_t cycle = (uint32_t)hal_get_cycles(); 157 if( CONFIG_DEBUG_DEV_PIC < cycle )155 #if DEBUG_DEV_PIC 156 uint32_t cycle = (uint32_t)hal_get_cycles(); 157 if( DEBUG_DEV_PIC < cycle ) 158 158 printk("\n[DBG] %s : core[%x,%d] / cycle %d\n", 159 159 __FUNCTION__ , local_cxy , CURRENT_THREAD->core->lid , cycle ); … … 176 176 { 177 177 178 #if CONFIG_DEBUG_DEV_PIC179 uint32_t cycle = (uint32_t)hal_get_cycles(); 180 if( CONFIG_DEBUG_DEV_PIC < cycle )178 #if DEBUG_DEV_PIC 179 uint32_t cycle = (uint32_t)hal_get_cycles(); 180 if( DEBUG_DEV_PIC < cycle ) 181 181 printk("\n[DBG] %s : src_core[%x,%d] / dst_core[%x,%d] / cycle %d\n", 182 182 __FUNCTION__, local_cxy, CURRENT_THREAD->core->lid, cxy, lid, cycle ); … … 198 198 { 199 199 200 #if CONFIG_DEBUG_DEV_PIC201 uint32_t cycle = (uint32_t)hal_get_cycles(); 202 if( CONFIG_DEBUG_DEV_PIC < cycle )200 #if DEBUG_DEV_PIC 201 uint32_t cycle = (uint32_t)hal_get_cycles(); 202 if( DEBUG_DEV_PIC < cycle ) 203 203 printk("\n[DBG] %s : core[%x,%d] / cycle %d\n", 204 204 __FUNCTION__, local_cxy, CURRENT_THREAD->core->lid, cycle ); -
trunk/kernel/devices/dev_txt.c
r436 r438 38 38 extern chdev_directory_t chdev_dir; // allocated in kernel_init.c 39 39 40 #if ( CONFIG_DEBUG_SYS_READ & 1)40 #if (DEBUG_SYS_READ & 1) 41 41 extern uint32_t enter_txt_read; 42 42 extern uint32_t exit_txt_read; 43 43 #endif 44 44 45 #if ( CONFIG_DEBUG_SYS_WRITE & 1)45 #if (DEBUG_SYS_WRITE & 1) 46 46 extern uint32_t enter_txt_write; 47 47 extern uint32_t exit_txt_write; … … 161 161 { 162 162 163 #if ( CONFIG_DEBUG_SYS_WRITE & 1)163 #if (DEBUG_SYS_WRITE & 1) 164 164 enter_txt_write = hal_time_stamp(); 165 165 #endif 166 166 167 #if CONFIG_DEBUG_DEV_TXT_TX167 #if DEBUG_DEV_TXT_TX 168 168 uint32_t cycle = (uint32_t)hal_get_cycles(); 169 if( CONFIG_DEBUG_DEV_TXT_TX < cycle )169 if( DEBUG_DEV_TXT_TX < cycle ) 170 170 printk("\n[DBG] %s : thread %x enters / cycle %d\n", __FUNCTION__, CURRENT_THREAD, cycle ); 171 171 #endif … … 173 173 return dev_txt_access( TXT_WRITE , channel , buffer , count ); 174 174 175 #if CONFIG_DEBUG_DEV_TXT_TX175 #if DEBUG_DEV_TXT_TX 176 176 cycle = (uint32_t)hal_get_cycles(); 177 if( CONFIG_DEBUG_DEV_TXT_TX < cycle )177 if( DEBUG_DEV_TXT_TX < cycle ) 178 178 printk("\n[DBG] %s : thread %x exit / cycle %d\n", __FUNCTION__, CURRENT_THREAD, cycle ); 179 179 #endif 180 180 181 #if ( CONFIG_DEBUG_SYS_WRITE & 1)181 #if (DEBUG_SYS_WRITE & 1) 182 182 exit_txt_write = hal_time_stamp(); 183 183 #endif … … 190 190 { 191 191 192 #if ( CONFIG_DEBUG_SYS_READ & 1)192 #if (DEBUG_SYS_READ & 1) 193 193 enter_txt_read = hal_time_stamp(); 194 194 #endif 195 195 196 #if CONFIG_DEBUG_DEV_TXT_RX196 #if DEBUG_DEV_TXT_RX 197 197 uint32_t cycle = (uint32_t)hal_get_cycles(); 198 if( CONFIG_DEBUG_DEV_TXT_RX < cycle )198 if( DEBUG_DEV_TXT_RX < cycle ) 199 199 printk("\n[DBG] %s : thread %x enters / cycle %d\n", __FUNCTION__, CURRENT_THREAD, cycle ); 200 200 #endif … … 202 202 return dev_txt_access( TXT_READ , channel , buffer , 1 ); 203 203 204 #if CONFIG_DEBUG_DEV_TXT_RX204 #if DEBUG_DEV_TXT_RX 205 205 cycle = (uint32_t)hal_get_cycles(); 206 if( CONFIG_DEBUG_DEV_TXT_RX < cycle )206 if( DEBUG_DEV_TXT_RX < cycle ) 207 207 printk("\n[DBG] %s : thread %x exit / cycle %d\n", __FUNCTION__, CURRENT_THREAD, cycle ); 208 208 #endif 209 209 210 #if ( CONFIG_DEBUG_SYS_READ & 1)210 #if (DEBUG_SYS_READ & 1) 211 211 exit_txt_read = hal_time_stamp(); 212 212 #endif
Note: See TracChangeset
for help on using the changeset viewer.