Changeset 450 for trunk/kernel/kern/thread.c
- Timestamp:
- Jun 29, 2018, 10:44:14 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/kern/thread.c
r446 r450 654 654 if( DEBUG_THREAD_DESTROY < cycle ) 655 655 printk("\n[DBG] %s : thread %x enter to destroy thread %x in process %x / cycle %d\n", 656 __FUNCTION__, CURRENT_THREAD, thread , process->pid, cycle );656 __FUNCTION__, CURRENT_THREAD, thread->trdid, process->pid, cycle ); 657 657 #endif 658 658 … … 694 694 cycle = (uint32_t)hal_get_cycles(); 695 695 if( DEBUG_THREAD_DESTROY < cycle ) 696 printk("\n[DBG] %s : thread %x exit / destroyed thread %x in process %x / cycle %d\n",697 __FUNCTION__, CURRENT_THREAD, thread , process->pid,cycle );696 printk("\n[DBG] %s : thread %x exit / destroyed thread %x in process %x / last %d / cycle %d\n", 697 __FUNCTION__, CURRENT_THREAD, thread->trdid, process->pid, last_thread / cycle ); 698 698 #endif 699 699 … … 800 800 uint32_t cycle = (uint32_t)hal_get_cycles(); 801 801 if( DEBUG_THREAD_BLOCK < cycle ) 802 printk("\n[ @@@] %s : thread %x in cxy %x blocked thread %x in cxy %x / cause %x / cycle %d\n",802 printk("\n[DBG] %s : thread %x in cxy %x blocked thread %x in cxy %x / cause %x / cycle %d\n", 803 803 __FUNCTION__ , CURRENT_THREAD , local_cxy , ptr , cxy , cause , cycle ); 804 #endif805 806 #if (DEBUG_THREAD_BLOCK & 1)807 if( DEBUG_THREAD_BLOCK < cycle )808 {809 if( cxy == local_cxy)810 {811 sched_display( ptr->core->lid );812 }813 else814 {815 core_t * core = hal_remote_lpt( XPTR( cxy , &ptr->core ) );816 lid_t lid = hal_remote_lw ( XPTR( cxy , &core->lid ) );817 rpc_sched_display_client( cxy , lid );818 }819 }820 804 #endif 821 805 … … 837 821 uint32_t cycle = (uint32_t)hal_get_cycles(); 838 822 if( DEBUG_THREAD_BLOCK < cycle ) 839 printk("\n[ @@@] %s : thread %x in cxy %x unblocked thread %x in cxy %x / cause %x / cycle %d\n",823 printk("\n[DBG] %s : thread %x in cxy %x unblocked thread %x in cxy %x / cause %x / cycle %d\n", 840 824 __FUNCTION__ , CURRENT_THREAD , local_cxy , ptr , cxy , cause , cycle ); 841 #endif842 843 #if (DEBUG_THREAD_BLOCK & 1)844 if( DEBUG_THREAD_BLOCK < cycle )845 {846 if( cxy == local_cxy)847 {848 sched_display( ptr->core->lid );849 }850 else851 {852 core_t * core = hal_remote_lpt( XPTR( cxy , &ptr->core ) );853 lid_t lid = hal_remote_lw ( XPTR( cxy , &core->lid ) );854 rpc_sched_display_client( cxy , lid );855 }856 }857 825 #endif 858 826
Note: See TracChangeset
for help on using the changeset viewer.