Changeset 435 for trunk/kernel/mm/vmm.c
- Timestamp:
- Feb 20, 2018, 5:32:17 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/mm/vmm.c
r433 r435 1643 1643 #if CONFIG_DEBUG_VMM_GET_PTE 1644 1644 uint32_t cycle = (uint32_t)hal_get_cycles(); 1645 if( CONFIG_DEBUG_VMM_GET_PTE >cycle )1645 if( CONFIG_DEBUG_VMM_GET_PTE < cycle ) 1646 1646 printk("\n[DBG] %s : thread %x enter for vpn = %x / process %x / cow = %d / cycle %d\n", 1647 1647 __FUNCTION__ , CURRENT_THREAD , vpn , process->pid , cow , cycle ); … … 1800 1800 error_t error; 1801 1801 1802 #if CONFIG_DEBUG_VMM_GET_PTE 1803 uint32_t cycle = (uint32_t)hal_get_cycles(); 1804 if( CONFIG_DEBUG_VMM_GET_PTE < cycle ) 1805 printk("\n[DBG] %s : thread %x enter for vpn %x / process %x / cycle %d\n", 1806 __FUNCTION__ , CURRENT_THREAD , vpn , process->pid , cycle ); 1807 #endif 1808 1802 1809 // get reference process cluster and local pointer 1803 1810 cxy_t ref_cxy = GET_CXY( process->ref_xp ); … … 1833 1840 } 1834 1841 1842 #if CONFIG_DEBUG_VMM_GET_PTE 1843 cycle = (uint32_t)hal_get_cycles(); 1844 if( CONFIG_DEBUG_VMM_GET_PTE < cycle ) 1845 printk("\n[DBG] %s : thread %x exit for vpn %x / process %x / cycle %d\n", 1846 __FUNCTION__ , CURRENT_THREAD , vpn , process->pid , cycle ); 1847 #endif 1848 1835 1849 return error; 1836 1850 … … 1845 1859 error_t error; 1846 1860 1861 #if CONFIG_DEBUG_VMM_GET_PTE 1862 uint32_t cycle = (uint32_t)hal_get_cycles(); 1863 if( CONFIG_DEBUG_VMM_GET_PTE < cycle ) 1864 printk("\n[DBG] %s : thread %x enter for vpn %x / process %x / cycle %d\n", 1865 __FUNCTION__ , CURRENT_THREAD , vpn , process->pid , cycle ); 1866 #endif 1847 1867 1848 1868 // get reference process cluster and local pointer … … 1879 1899 } 1880 1900 1901 #if CONFIG_DEBUG_VMM_GET_PTE 1902 cycle = (uint32_t)hal_get_cycles(); 1903 if( CONFIG_DEBUG_VMM_GET_PTE < cycle ) 1904 printk("\n[DBG] %s : thread %x exit for vpn %x / process %x / cycle %d\n", 1905 __FUNCTION__ , CURRENT_THREAD , vpn , process->pid , cycle ); 1906 #endif 1907 1881 1908 return error; 1882 1909
Note: See TracChangeset
for help on using the changeset viewer.