Changeset 437 for trunk/kernel/devices/dev_nic.c
- Timestamp:
- Mar 28, 2018, 2:40:29 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/devices/dev_nic.c
r436 r437 2 2 * dev_nic.c - NIC (Network Controler) generic device API implementation. 3 3 * 4 * Author Alain Greiner (2016,2017 )4 * Author Alain Greiner (2016,2017,2018) 5 5 * 6 6 * Copyright (c) UPMC Sorbonne Universites … … 99 99 core_t * core = thread_ptr->core; 100 100 101 nic_dmsg("\n[DBG] %s enters for NIC-RX thread on core %d in cluster %x\n", 102 __FUNCTION__ , core->lid , local_cxy ); 101 #if CONFIG_DEBUG_DEV_NIC_RX 102 uint32_t cycle = (uint32_t)hal_get_cycles(); 103 if( CONFIG_DEBUG_DEV_NIC_RX < cycle ) 104 printk("\n[DBG] %s : thread %x enters for packet %x in cluster %x\n", 105 __FUNCTION__ , thread_ptr , pkd , local_cxy ); 106 #endif 103 107 104 108 // get pointer on NIC-RX chdev descriptor … … 149 153 pkd->length = thread_ptr->nic_cmd.length; 150 154 151 nic_dmsg("\n[DBG] %s exit for NIC-RX thread on core %d in cluster %x\n", 152 __FUNCTION__ , core->lid , local_cxy ); 155 #if CONFIG_DEBUG_DEV_NIC_RX 156 cycle = (uint32_t)hal_get_cycles(); 157 if( CONFIG_DEBUG_DEV_NIC_RX < cycle ) 158 printk("\n[DBG] %s : thread %x exit for packet %x in cluster %x\n", 159 __FUNCTION__ , thread_ptr , pkd , local_cxy ); 160 #endif 153 161 154 162 return 0; … … 169 177 core_t * core = thread_ptr->core; 170 178 171 nic_dmsg("\n[DBG] %s enters for NIC-RX thread on core %d in cluster %x\n", 172 __FUNCTION__ , core->lid , local_cxy ); 179 #if CONFIG_DEBUG_DEV_NIC_RX 180 uint32_t cycle = (uint32_t)hal_get_cycles(); 181 if( CONFIG_DEBUG_DEV_NIC_RX < cycle ) 182 printk("\n[DBG] %s : thread %x enters for packet %x in cluster %x\n", 183 __FUNCTION__ , thread_ptr , pkd , local_cxy ); 184 #endif 173 185 174 186 // get pointer on NIC-TX chdev descriptor … … 217 229 if( error ) return error; 218 230 219 nic_dmsg("\n[DBG] %s exit for NIC-TX thread on core %d in cluster %x\n", 220 __FUNCTION__ , core->lid , local_cxy ); 231 #if CONFIG_DEBUG_DEV_NIC_RX 232 cycle = (uint32_t)hal_get_cycles(); 233 if( CONFIG_DEBUG_DEV_NIC_RX < cycle ) 234 printk("\n[DBG] %s : thread %x exit for packet %x in cluster %x\n", 235 __FUNCTION__ , thread_ptr , pkd , local_cxy ); 236 #endif 221 237 222 238 return 0;
Note: See TracChangeset
for help on using the changeset viewer.