Changeset 634 for trunk/kernel/mm/vmm.c
- Timestamp:
- May 29, 2019, 3:26:44 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/mm/vmm.c
r633 r634 1906 1906 1907 1907 #if DEBUG_VMM_HANDLE_PAGE_FAULT 1908 if( vpn == 0x40b)1908 if( (start_cycle > DEBUG_VMM_HANDLE_PAGE_FAULT) && (vpn == vpn) ) 1909 1909 printk("\n[%s] thread[%x,%x] enter for vpn %x / cycle %d\n", 1910 1910 __FUNCTION__, this->process->pid, this->trdid, vpn, start_cycle ); … … 1912 1912 1913 1913 #if (DEBUG_VMM_HANDLE_PAGE_FAULT & 1) 1914 if( (start_cycle > DEBUG_VMM_HANDLE_PAGE_FAULT) && (vpn == vpn) ) 1914 1915 hal_vmm_display( this->process , false ); 1915 1916 #endif … … 1928 1929 1929 1930 #if DEBUG_VMM_HANDLE_PAGE_FAULT 1930 uint32_t cycle = (uint32_t)hal_get_cycles(); 1931 if( vpn == 0x40b ) 1932 printk("\n[%s] thread[%x,%x] found vseg %s / cycle %d\n", 1933 __FUNCTION__, this->process->pid, this->trdid, vseg_type_str(vseg->type), cycle ); 1931 if( (start_cycle > DEBUG_VMM_HANDLE_PAGE_FAULT) && (vpn == vpn) ) 1932 printk("\n[%s] thread[%x,%x] found vseg %s\n", 1933 __FUNCTION__, this->process->pid, this->trdid, vseg_type_str(vseg->type) ); 1934 1934 #endif 1935 1935 … … 1951 1951 1952 1952 #if DEBUG_VMM_HANDLE_PAGE_FAULT 1953 cycle = (uint32_t)hal_get_cycles(); 1954 if( vpn == 0x40b ) 1953 if( (start_cycle > DEBUG_VMM_HANDLE_PAGE_FAULT) && (vpn == vpn) ) 1955 1954 printk("\n[%s] thread[%x,%x] locked vpn %x in cluster %x / cycle %d\n", 1956 __FUNCTION__, this->process->pid, this->trdid, vpn, local_cxy , cycle);1955 __FUNCTION__, this->process->pid, this->trdid, vpn, local_cxy ); 1957 1956 #endif 1958 1957 … … 1972 1971 1973 1972 #if DEBUG_VMM_HANDLE_PAGE_FAULT 1974 if( vpn == 0x40b)1975 printk("\n[%s] thread[%x,%x] : access local gpt : local_cxy %x / ref_cxy %x / type %s\n",1973 if( (start_cycle > DEBUG_VMM_HANDLE_PAGE_FAULT) && (vpn == vpn) ) 1974 printk("\n[%s] thread[%x,%x] access local gpt : cxy %x / ref_cxy %x / type %s\n", 1976 1975 __FUNCTION__, this->process->pid, this->trdid, local_cxy, ref_cxy, vseg_type_str(vseg->type) ); 1977 1976 #endif … … 2009 2008 2010 2009 #if DEBUG_VMM_HANDLE_PAGE_FAULT 2011 if( vpn == 0x40b)2010 if( (end_cycle > DEBUG_VMM_HANDLE_PAGE_FAULT) && (vpn == vpn) ) 2012 2011 printk("\n[%s] thread[%x,%x] handled local pgfault / ppn %x / attr %x / cycle %d\n", 2013 2012 __FUNCTION__, this->process->pid, this->trdid, ppn, attr, end_cycle ); … … 2028 2027 2029 2028 #if DEBUG_VMM_HANDLE_PAGE_FAULT 2030 if( vpn == 0x40b)2031 printk("\n[%s] thread[%x,%x] access ref gpt : local_cxy %x / ref_cxy %x / type %s\n",2029 if( (start_cycle > DEBUG_VMM_HANDLE_PAGE_FAULT) && (vpn == vpn) ) 2030 printk("\n[%s] thread[%x,%x] access ref gpt : cxy %x / ref_cxy %x / type %s\n", 2032 2031 __FUNCTION__, this->process->pid, this->trdid, local_cxy, ref_cxy, vseg_type_str(vseg->type) ); 2033 2032 #endif … … 2052 2051 2053 2052 #if DEBUG_VMM_HANDLE_PAGE_FAULT 2054 if( vpn == 0x40b)2053 if( (start_cycle > DEBUG_VMM_HANDLE_PAGE_FAULT) && (vpn == vpn) ) 2055 2054 printk("\n[%s] thread[%x,%x] get pte from ref gpt / attr %x / ppn %x\n", 2056 2055 __FUNCTION__, this->process->pid, this->trdid, ref_attr, ref_ppn ); … … 2067 2066 2068 2067 #if DEBUG_VMM_HANDLE_PAGE_FAULT 2069 if( vpn == 0x40b)2068 if( (start_cycle > DEBUG_VMM_HANDLE_PAGE_FAULT) && (vpn == vpn) ) 2070 2069 printk("\n[%s] thread[%x,%x] updated local gpt for a false pgfault\n", 2071 2070 __FUNCTION__, this->process->pid, this->trdid ); … … 2076 2075 2077 2076 #if DEBUG_VMM_HANDLE_PAGE_FAULT 2078 if( vpn == 0x40b)2077 if( (start_cycle > DEBUG_VMM_HANDLE_PAGE_FAULT) && (vpn == vpn) ) 2079 2078 printk("\n[%s] thread[%x,%x] unlock the ref gpt after a false pgfault\n", 2080 2079 __FUNCTION__, this->process->pid, this->trdid ); … … 2086 2085 2087 2086 #if DEBUG_VMM_HANDLE_PAGE_FAULT 2088 if( vpn == 0x40b)2087 if( (end_cycle > DEBUG_VMM_HANDLE_PAGE_FAULT) && (vpn == vpn) ) 2089 2088 printk("\n[%s] thread[%x,%x] handled false pgfault / ppn %x / attr %x / cycle %d\n", 2090 2089 __FUNCTION__, this->process->pid, this->trdid, ref_ppn, ref_attr, end_cycle ); … … 2122 2121 2123 2122 #if DEBUG_VMM_HANDLE_PAGE_FAULT 2124 if( vpn == 0x40b)2123 if( (start_cycle > DEBUG_VMM_HANDLE_PAGE_FAULT) && (vpn == vpn) ) 2125 2124 printk("\n[%s] thread[%x,%x] build a new PTE for a true pgfault\n", 2126 2125 __FUNCTION__, this->process->pid, this->trdid ); … … 2134 2133 2135 2134 #if DEBUG_VMM_HANDLE_PAGE_FAULT 2136 if( vpn == 0x40b)2135 if( (start_cycle > DEBUG_VMM_HANDLE_PAGE_FAULT) && (vpn == vpn) ) 2137 2136 printk("\n[%s] thread[%x,%x] set new PTE in ref gpt for a true page fault\n", 2138 2137 __FUNCTION__, this->process->pid, this->trdid ); … … 2151 2150 2152 2151 #if DEBUG_VMM_HANDLE_PAGE_FAULT 2153 if( vpn == 0x40b)2152 if( (end_cycle > DEBUG_VMM_HANDLE_PAGE_FAULT) && (vpn == vpn) ) 2154 2153 printk("\n[%s] thread[%x,%x] handled global pgfault / ppn %x / attr %x / cycle %d\n", 2155 2154 __FUNCTION__, this->process->pid, this->trdid, ppn, attr, end_cycle ); … … 2174 2173 2175 2174 #if DEBUG_VMM_HANDLE_PAGE_FAULT 2176 if( vpn == 0x40b)2175 if( (end_cycle > DEBUG_VMM_HANDLE_PAGE_FAULT) && (vpn == vpn) ) 2177 2176 printk("\n[%s] handled by another thread / vpn %x / ppn %x / attr %x / cycle %d\n", 2178 2177 __FUNCTION__, vpn, ppn, attr, end_cycle );
Note: See TracChangeset
for help on using the changeset viewer.