Changeset 406 for trunk/kernel/kern/process.c
- Timestamp:
- Aug 29, 2017, 12:03:37 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/kern/process.c
r380 r406 90 90 pid_t parent_pid; 91 91 92 process_dmsg("\n[ INFO] %s : enters for process %x in cluster%x\n",93 __FUNCTION__ , pid , local_cxy);92 process_dmsg("\n[DMSG] %s : core[%x,%d] enters for process %x\n", 93 __FUNCTION__ , local_cxy , CURRENT_THREAD->core->lid , pid ); 94 94 95 95 // get parent process cluster, local pointer, and pid … … 116 116 process->ppid = parent_pid; 117 117 118 // resetreference process vmm (not for kernel process)118 // initialize reference process vmm (not for kernel process) 119 119 if( pid ) vmm_init( process ); 120 120 … … 169 169 hal_fence(); 170 170 171 process_dmsg("\n[ INFO] %s : exit for process %x in cluster %x\n",171 process_dmsg("\n[DMSG] %s : exit for process %x in cluster %x\n", 172 172 __FUNCTION__ , pid ); 173 173 … … 198 198 local_process->ref_xp = reference_process_xp; 199 199 200 process_dmsg("\n[ INFO] %s : enter for process %x in cluster %x\n",200 process_dmsg("\n[DMSG] %s : enter for process %x in cluster %x\n", 201 201 __FUNCTION__ , local_process->pid ); 202 202 … … 233 233 hal_fence(); 234 234 235 process_dmsg("\n[ INFO] %s : exit for process %x in cluster %x\n",235 process_dmsg("\n[DMSG] %s : exit for process %x in cluster %x\n", 236 236 __FUNCTION__ , local_process->pid ); 237 237 … … 288 288 vmm_destroy( process ); 289 289 290 process_dmsg("\n[ INFO] %s for pid %d / page_faults = %d\n",290 process_dmsg("\n[DMSG] %s for pid %d / page_faults = %d\n", 291 291 __FUNCTION__ , process->pid, process->vmm.pgfault_nr ); 292 292 } … … 627 627 parent_pid = hal_remote_lw( XPTR( parent_cxy , &parent_ptr->pid ) ); 628 628 629 exec_dmsg("\n[ INFO] %s : thread %x on core[%x,%d] enters for path = %s\n",629 exec_dmsg("\n[DMSG] %s : thread %x on core[%x,%d] enters for path = %s\n", 630 630 __FUNCTION__, CURRENT_THREAD->trdid, local_cxy, CURRENT_THREAD->core->lid , path ); 631 631 … … 654 654 process_reference_init( process , pid , parent_xp ); 655 655 656 exec_dmsg("\n[ INFO] %s : thread %x on core[%x,%d] created process %x / path = %s\n",656 exec_dmsg("\n[DMSG] %s : thread %x on core[%x,%d] created process %x / path = %s\n", 657 657 __FUNCTION__, CURRENT_THREAD->trdid, local_cxy, CURRENT_THREAD->core->lid, pid, path ); 658 658 … … 670 670 XPTR( parent_cxy , &parent_ptr->fd_array) ); 671 671 672 exec_dmsg("\n[ INFO] %s : fd_array copied from process %x to process %x\n",672 exec_dmsg("\n[DMSG] %s : fd_array copied from process %x to process %x\n", 673 673 __FUNCTION__, parent_pid , pid ); 674 674 … … 688 688 } 689 689 690 exec_dmsg("\n[ INFO] %s : code and data vsegs registered for process %x / path = %s\n",690 exec_dmsg("\n[DMSG] %s : code and data vsegs registered for process %x / path = %s\n", 691 691 __FUNCTION__ , pid , path ); 692 692 … … 714 714 } 715 715 716 exec_dmsg("\n[ INFO] %s : thread created for process %x on core %d in cluster %x\n",716 exec_dmsg("\n[DMSG] %s : thread created for process %x on core %d in cluster %x\n", 717 717 __FUNCTION__ , pid , core->lid , local_cxy ); 718 719 #if CONFIG_EXEC_DEBUG 720 if( hal_time_stamp() > CONFIG_EXEC_DEBUG ) 721 { 722 grdxt_print( &process->vmm.grdxt , GRDXT_TYPE_VSEG , process->pid ); 723 hal_gpt_print( &process->vmm.gpt , process->pid ); 724 } 725 #endif 718 726 719 727 // update children list in parent process … … 725 733 thread_unblock( XPTR( local_cxy , thread ) , THREAD_BLOCKED_GLOBAL ); 726 734 727 exec_dmsg("\n[ INFO] %s : exit for process %x\n",735 exec_dmsg("\n[DMSG] %s : exit for process %x\n", 728 736 __FUNCTION__, process->pid ); 729 737 … … 747 755 uint32_t stderr_id; 748 756 749 process_dmsg("\n[ INFO] %s : enters in cluster %x\n", __FUNCTION__ , local_cxy );757 process_dmsg("\n[DMSG] %s : enters in cluster %x\n", __FUNCTION__ , local_cxy ); 750 758 751 759 // open stdin / stdout / stderr pseudo-files … … 771 779 assert( (error1 == 0) , __FUNCTION__ , "cannot create process_init\n"); 772 780 773 process_dmsg("\n[ INFO] %s : exit in cluster %x\n", __FUNCTION__ , local_cxy );781 process_dmsg("\n[DMSG] %s : exit in cluster %x\n", __FUNCTION__ , local_cxy ); 774 782 775 783 hal_fence();
Note: See TracChangeset
for help on using the changeset viewer.