Changeset 593 for trunk/kernel/kern/cluster.c
- Timestamp:
- Nov 10, 2018, 2:16:38 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/kern/cluster.c
r583 r593 113 113 114 114 #if DEBUG_CLUSTER_INIT 115 uint32_t cycle = (uint32_t)hal_get_cycles(); 115 uint32_t cycle = (uint32_t)hal_get_cycles(); 116 thread_t * this = CURRENT_THREAD; 116 117 if( DEBUG_CLUSTER_INIT < cycle ) 117 printk("\n[ DBG] %s : thread %x in process %xenters for cluster %x / cycle %d\n",118 __FUNCTION__, CURRENT_THREAD->trdid, CURRENT_THREAD->process->pid, local_cxy , cycle );118 printk("\n[%s] thread[%x,%x] enters for cluster %x / cycle %d\n", 119 __FUNCTION__, this->process->pid, this->trdid, local_cxy , cycle ); 119 120 #endif 120 121 … … 132 133 cycle = (uint32_t)hal_get_cycles(); 133 134 if( DEBUG_CLUSTER_INIT < cycle ) 134 printk("\n[ DBG] %s :PPM initialized in cluster %x / cycle %d\n",135 printk("\n[%s] PPM initialized in cluster %x / cycle %d\n", 135 136 __FUNCTION__ , local_cxy , cycle ); 136 137 #endif … … 142 143 cycle = (uint32_t)hal_get_cycles(); 143 144 if( DEBUG_CLUSTER_INIT < cycle ) 144 printk("\n[ DBG] %s :KHM initialized in cluster %x at cycle %d\n",145 printk("\n[%s] KHM initialized in cluster %x at cycle %d\n", 145 146 __FUNCTION__ , local_cxy , hal_get_cycles() ); 146 147 #endif … … 152 153 cycle = (uint32_t)hal_get_cycles(); 153 154 if( DEBUG_CLUSTER_INIT < cycle ) 154 printk("\n[ DBG] %s :KCM initialized in cluster %x at cycle %d\n",155 printk("\n[%s] KCM initialized in cluster %x at cycle %d\n", 155 156 __FUNCTION__ , local_cxy , hal_get_cycles() ); 156 157 #endif … … 167 168 cycle = (uint32_t)hal_get_cycles(); 168 169 if( DEBUG_CLUSTER_INIT < cycle ) 169 printk("\n[ DBG] %s :cores initialized in cluster %x / cycle %d\n",170 printk("\n[%s] cores initialized in cluster %x / cycle %d\n", 170 171 __FUNCTION__ , local_cxy , cycle ); 171 172 #endif … … 181 182 cycle = (uint32_t)hal_get_cycles(); 182 183 if( DEBUG_CLUSTER_INIT < cycle ) 183 printk("\n[ DBG] %s :RPC fifo inialized in cluster %x at cycle %d\n",184 printk("\n[%s] RPC fifo inialized in cluster %x at cycle %d\n", 184 185 __FUNCTION__ , local_cxy , hal_get_cycles() ); 185 186 #endif … … 212 213 cycle = (uint32_t)hal_get_cycles(); 213 214 if( DEBUG_CLUSTER_INIT < cycle ) 214 printk("\n[ DBG] %s : thread %x in process %xexit for cluster %x / cycle %d\n",215 __FUNCTION__, CURRENT_THREAD->trdid, CURRENT_THREAD->process->pid , local_cxy, cycle );215 printk("\n[%s] thread[%x,%x] exit for cluster %x / cycle %d\n", 216 __FUNCTION__, this->process->pid, this->trdid, local_cxy, cycle ); 216 217 #endif 217 218 … … 430 431 431 432 #if DEBUG_CLUSTER_PID_ALLOC 432 uint32_t cycle = (uint32_t)hal_get_cycles(); 433 uint32_t cycle = (uint32_t)hal_get_cycles(); 434 thread_t * this = CURRENT_THREAD; 433 435 if( DEBUG_CLUSTER_PID_ALLOC < cycle ) 434 printk("\n[ DBG] %s : thread %xenters in cluster %x / cycle %d\n",435 __FUNCTION__ , CURRENT_THREAD, local_cxy , cycle );436 printk("\n[%s] thread[%x,%x] enters in cluster %x / cycle %d\n", 437 __FUNCTION__ , this->process->pid , this->trdid , local_cxy , cycle ); 436 438 #endif 437 439 … … 477 479 cycle = (uint32_t)hal_get_cycles(); 478 480 if( DEBUG_CLUSTER_PID_ALLOC < cycle ) 479 printk("\n[ DBG] %s : thread %x exit in cluster %x / pid%x / cycle %d\n",480 __FUNCTION__ , CURRENT_THREAD , local_cxy , *pid, cycle );481 printk("\n[%s] thread[%x,%x] exit in cluster %x / cycle %d\n", 482 __FUNCTION__ , this->process->pid , this->trdid , local_cxy , cycle ); 481 483 #endif 482 484 … … 488 490 489 491 #if DEBUG_CLUSTER_PID_RELEASE 490 uint32_t cycle = (uint32_t)hal_get_cycles(); 491 if( DEBUG_CLUSTER_PID_RELEASE < cycle ) 492 printk("\n[DBG] %s : thread %x enters in cluster %x / pid %x / cycle %d\n", 493 __FUNCTION__ , CURRENT_THREAD , local_cxy , pid , cycle ); 492 uint32_t cycle = (uint32_t)hal_get_cycles(); 493 thread_t * this = CURRENT_THREAD; 494 if( DEBUG_CLUSTER_PID_ALLOC < cycle ) 495 printk("\n[%s] thread[%x,%x] enters in cluster %x / pid %x / cycle %d\n", 496 __FUNCTION__ , this->process->pid , this->trdid , local_cxy , pid, cycle ); 494 497 #endif 495 498 … … 519 522 #if DEBUG_CLUSTER_PID_RELEASE 520 523 cycle = (uint32_t)hal_get_cycles(); 521 if( DEBUG_CLUSTER_PID_ RELEASE< cycle )522 printk("\n[ DBG] %s : thread %xexit in cluster %x / cycle %d\n",523 __FUNCTION__ , CURRENT_THREAD, local_cxy , cycle );524 if( DEBUG_CLUSTER_PID_ALLOC < cycle ) 525 printk("\n[%s] thread[%x,%x] exit in cluster %x / cycle %d\n", 526 __FUNCTION__ , this->process->pid , this->trdid , local_cxy , cycle ); 524 527 #endif 525 528 … … 599 602 600 603 #if DEBUG_CLUSTER_PROCESS_COPIES 601 uint32_t cycle = (uint32_t)hal_get_cycles(); 604 uint32_t cycle = (uint32_t)hal_get_cycles(); 605 thread_t * this = CURRENT_THREAD; 602 606 if( DEBUG_CLUSTER_PROCESS_COPIES < cycle ) 603 printk("\n[ DBG] %s enters / cluster %x /process %x / cycle %d\n",604 __FUNCTION__ , local_cxy , process, cycle );607 printk("\n[%s] thread[%x,%x] enters for process %x / cycle %d\n", 608 __FUNCTION__ , this->process->pid , this->trdid , process->pid , cycle ); 605 609 #endif 606 610 … … 632 636 cycle = (uint32_t)hal_get_cycles(); 633 637 if( DEBUG_CLUSTER_PROCESS_COPIES < cycle ) 634 printk("\n[ DBG] %s exit / cluster %x /process %x / cycle %d\n",635 __FUNCTION__ , local_cxy , process, cycle );638 printk("\n[%s] thread[%x,%x] exit for process %x / cycle %d\n", 639 __FUNCTION__ , this->process->pid , this->trdid , process->pid , cycle ); 636 640 #endif 637 641 … … 644 648 645 649 #if DEBUG_CLUSTER_PROCESS_COPIES 646 uint32_t cycle = (uint32_t)hal_get_cycles(); 650 uint32_t cycle = (uint32_t)hal_get_cycles(); 651 thread_t * this = CURRENT_THREAD; 647 652 if( DEBUG_CLUSTER_PROCESS_COPIES < cycle ) 648 printk("\n[ DBG] %s enters / cluster %x /process %x / cycle %d\n",649 __FUNCTION__ , local_cxy , process, cycle );653 printk("\n[%s] thread[%x,%x] enters for process %x / cycle %d\n", 654 __FUNCTION__ , this->process->pid , this->trdid , process->pid , cycle ); 650 655 #endif 651 656 … … 674 679 cycle = (uint32_t)hal_get_cycles(); 675 680 if( DEBUG_CLUSTER_PROCESS_COPIES < cycle ) 676 printk("\n[ DBG] %s exit / cluster %x /process %x / cycle %d\n",677 __FUNCTION__ , local_cxy , process, cycle );681 printk("\n[%s] thread[%x,%x] exit for process %x / cycle %d\n", 682 __FUNCTION__ , this->process->pid , this->trdid , process->pid , cycle ); 678 683 #endif 679 684
Note: See TracChangeset
for help on using the changeset viewer.