Changeset 610 for trunk/kernel/kern/scheduler.c
- Timestamp:
- Dec 27, 2018, 7:38:58 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/kern/scheduler.c
r593 r610 254 254 uint32_t cycle = (uint32_t)hal_get_cycles(); 255 255 if( DEBUG_SCHED_HANDLE_SIGNALS < cycle ) 256 printk("\n[ DBG] %s :thread[%x,%x] on core[%x,%d] deleted / cycle %d\n",256 printk("\n[%s] thread[%x,%x] on core[%x,%d] deleted / cycle %d\n", 257 257 __FUNCTION__ , process->pid , thread->trdid , local_cxy , thread->core->lid , cycle ); 258 258 #endif … … 266 266 cycle = (uint32_t)hal_get_cycles(); 267 267 if( DEBUG_SCHED_HANDLE_SIGNALS < cycle ) 268 printk("\n[ DBG] %s :process %x in cluster %x deleted / cycle %d\n",268 printk("\n[%s] process %x in cluster %x deleted / cycle %d\n", 269 269 __FUNCTION__ , process->pid , local_cxy , cycle ); 270 270 #endif … … 336 336 uint32_t cycle = (uint32_t)hal_get_cycles(); 337 337 if( DEBUG_SCHED_HANDLE_SIGNALS < cycle ) 338 printk("\n[ DBG] %s :thread[%x,%x] on core[%x,%d] deleted / cycle %d\n",338 printk("\n[%s] thread[%x,%x] on core[%x,%d] deleted / cycle %d\n", 339 339 __FUNCTION__ , process_zero.pid , thread->trdid , local_cxy , thread->core->lid , cycle ); 340 340 #endif … … 396 396 uint32_t cycle = (uint32_t)hal_get_cycles(); 397 397 if( DEBUG_SCHED_RPC_ACTIVATE < cycle ) 398 printk("\n[ DBG] %s :new RPC thread %x created for core[%x,%d] / total %d / cycle %d\n",398 printk("\n[%s] new RPC thread %x created for core[%x,%d] / total %d / cycle %d\n", 399 399 __FUNCTION__, thread->trdid, local_cxy, lid, LOCAL_CLUSTER->rpc_threads[lid], cycle ); 400 400 #endif … … 409 409 uint32_t cycle = (uint32_t)hal_get_cycles(); 410 410 if( DEBUG_SCHED_RPC_ACTIVATE < cycle ) 411 printk("\n[ DBG] %s :idle RPC thread %x unblocked for core[%x,%d] / cycle %d\n",411 printk("\n[%s] idle RPC thread %x unblocked for core[%x,%d] / cycle %d\n", 412 412 __FUNCTION__, thread->trdid, local_cxy, lid, cycle ); 413 413 #endif … … 540 540 #if DEBUG_SCHED_YIELD 541 541 if( sched->trace ) 542 printk("\n[ DBG] %s :core[%x,%d] / cause = %s\n"542 printk("\n[%s] core[%x,%d] / cause = %s\n" 543 543 " thread %x (%s) (%x,%x) => thread %x (%s) (%x,%x) / cycle %d\n", 544 544 __FUNCTION__, local_cxy, lid, cause, … … 557 557 #if (DEBUG_SCHED_YIELD & 1) 558 558 if( sched->trace ) 559 printk("\n[ DBG] %s :core[%x,%d] / cause = %s\n"559 printk("\n[%s] core[%x,%d] / cause = %s\n" 560 560 " thread %x (%s) (%x,%x) continue / cycle %d\n", 561 561 __FUNCTION__, local_cxy, lid, cause, current, thread_type_str(current->type), … … 687 687 uint32_t blocked = hal_remote_l32 ( XPTR( cxy , &thread->blocked ) ); 688 688 uint32_t flags = hal_remote_l32 ( XPTR( cxy , &thread->flags ) ); 689 process_t * process = hal_remote_lpt ( XPTR( cxy , &thread->process ) );689 process_t * process = hal_remote_lpt ( XPTR( cxy , &thread->process ) ); 690 690 pid_t pid = hal_remote_l32 ( XPTR( cxy , &process->pid ) ); 691 691 … … 695 695 char name[16]; 696 696 chdev_t * chdev = hal_remote_lpt( XPTR( cxy , &thread->chdev ) ); 697 hal_remote_strcpy( XPTR( local_cxy , name ), XPTR( cxy , &chdev->name ) );697 hal_remote_strcpy( XPTR( local_cxy , name ), XPTR( cxy , chdev->name ) ); 698 698 699 699 nolock_printk(" - %s / pid %X / trdid %X / desc %X / block %X / flags %X / %s\n", … … 721 721 uint32_t blocked = hal_remote_l32 ( XPTR( cxy , &thread->blocked ) ); 722 722 uint32_t flags = hal_remote_l32 ( XPTR( cxy , &thread->flags ) ); 723 process_t * process = hal_remote_lpt ( XPTR( cxy , &thread->process ) );723 process_t * process = hal_remote_lpt ( XPTR( cxy , &thread->process ) ); 724 724 pid_t pid = hal_remote_l32 ( XPTR( cxy , &process->pid ) ); 725 725
Note: See TracChangeset
for help on using the changeset viewer.