Changeset 625 for trunk/kernel/syscalls/sys_get_config.c
- Timestamp:
- Apr 10, 2019, 10:09:39 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/syscalls/sys_get_config.c
r624 r625 2 2 * sys_get_config.c - get hardware platform parameters. 3 3 * 4 * Author Alain Greiner (2016,2017,2018 )4 * Author Alain Greiner (2016,2017,2018,2019) 5 5 * 6 6 * Copyright (c) UPMC Sorbonne Universites … … 24 24 #include <hal_kernel_types.h> 25 25 #include <hal_uspace.h> 26 #include <hal_vmm.h> 26 27 #include <hal_special.h> 27 28 #include <errno.h> … … 48 49 process_t * process = this->process; 49 50 51 #if (DEBUG_SYS_GET_CONFIG || CONFIG_INSTRUMENTATION_SYSCALLS) 52 uint64_t tm_start = hal_get_cycles(); 53 #endif 54 50 55 #if DEBUG_SYS_GET_CONFIG 51 uint64_t tm_start;52 uint64_t tm_end;53 56 tm_start = hal_get_cycles(); 54 57 if( DEBUG_SYS_GET_CONFIG < tm_start ) … … 114 117 hal_fence(); 115 118 119 #if (DEBUG_SYS_GET_CONFIG || CONFIG_INSTRUMENTATION_SYSCALLS) 120 uint64_t tm_end = hal_get_cycles(); 121 #endif 122 116 123 #if DEBUG_SYS_GET_CONFIG 117 tm_end = hal_get_cycles();118 124 if( DEBUG_SYS_GET_CONFIG < tm_end ) 119 125 printk("\n[DBG] %s : thread %x exit / process %x / cost %d / cycle %d\n", … … 121 127 #endif 122 128 129 #if CONFIG_INSTRUMENTATION_SYSCALLS 130 hal_atomic_add( &syscalls_cumul_cost[SYS_GET_CONFIG] , tm_end - tm_start ); 131 hal_atomic_add( &syscalls_occurences[SYS_GET_CONFIG] , 1 ); 132 #endif 133 123 134 return 0; 124 135
Note: See TracChangeset
for help on using the changeset viewer.