Changeset 443 for trunk/kernel/mm
- Timestamp:
- May 16, 2018, 4:15:22 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/mm/vmm.c
r441 r443 201 201 gpt_t * gpt = &vmm->gpt; 202 202 203 printk("\n***** VSL and GPT for process %x in cluster %x\n\n", 204 process->pid , local_cxy ); 203 printk("\n***** VSL and GPT for process %x in cluster %x\n\n", process->pid , local_cxy ); 205 204 206 205 // get lock protecting the vseg list … … 666 665 uint32_t cycle = (uint32_t)hal_get_cycles(); 667 666 if( DEBUG_VMM_DESTROY < cycle ) 668 printk("\n[DBG] %s : thread %x enter for process %x / cycle %d\n",669 __FUNCTION__ , CURRENT_THREAD , process->pid , cycle );667 printk("\n[DBG] %s : thread %x enter for process %x in cluster %x / cycle %d\n", 668 __FUNCTION__ , CURRENT_THREAD , process->pid , local_cxy , cycle ); 670 669 #endif 671 670 672 671 #if (DEBUG_VMM_DESTROY & 1 ) 672 if( DEBUG_VMM_DESTROY < cycle ) 673 673 vmm_display( process , true ); 674 674 #endif … … 693 693 #if( DEBUG_VMM_DESTROY & 1 ) 694 694 if( DEBUG_VMM_DESTROY < cycle ) 695 printk("\n[DBG] %s : %s/ vpn_base %x / vpn_size %d\n",695 printk("\n[DBG] %s : found %s vseg / vpn_base %x / vpn_size %d\n", 696 696 __FUNCTION__ , vseg_type_str( vseg->type ), vseg->vpn_base, vseg->vpn_size ); 697 697 #endif 698 699 698 // unmap and release physical pages 700 699 vmm_unmap_vseg( process , vseg ); … … 705 704 // release memory allocated to vseg descriptor 706 705 vseg_free( vseg ); 706 707 #if( DEBUG_VMM_DESTROY & 1 ) 708 if( DEBUG_VMM_DESTROY < cycle ) 709 printk("\n[DBG] %s : %s vseg released / vpn_base %x / vpn_size %d\n", 710 __FUNCTION__ , vseg_type_str( vseg->type ), vseg->vpn_base, vseg->vpn_size ); 711 #endif 712 707 713 } 708 714 … … 717 723 { 718 724 vseg = LIST_FIRST( &vmm->mmap_mgr.zombi_list[i] , vseg_t , zlist ); 725 726 #if( DEBUG_VMM_DESTROY & 1 ) 727 if( DEBUG_VMM_DESTROY < cycle ) 728 printk("\n[DBG] %s : found zombi vseg / vpn_base %x / vpn_size %d\n", 729 __FUNCTION__ , vseg_type_str( vseg->type ), vseg->vpn_base, vseg->vpn_size ); 730 #endif 719 731 vseg_detach( vmm , vseg ); 720 732 vseg_free( vseg ); 733 734 #if( DEBUG_VMM_DESTROY & 1 ) 735 if( DEBUG_VMM_DESTROY < cycle ) 736 printk("\n[DBG] %s : zombi vseg released / vpn_base %x / vpn_size %d\n", 737 __FUNCTION__ , vseg_type_str( vseg->type ), vseg->vpn_base, vseg->vpn_size ); 738 #endif 721 739 } 722 740 } … … 728 746 cycle = (uint32_t)hal_get_cycles(); 729 747 if( DEBUG_VMM_DESTROY < cycle ) 730 printk("\n[DBG] %s : thread %x exit / cycle %d\n",731 __FUNCTION__ , CURRENT_THREAD , cycle );748 printk("\n[DBG] %s : thread %x exit for process %x in cluster %x / cycle %d\n", 749 __FUNCTION__ , CURRENT_THREAD , process->pid , local_cxy , cycle ); 732 750 #endif 733 751
Note: See TracChangeset
for help on using the changeset viewer.