Changeset 624 for trunk/kernel/syscalls
- Timestamp:
- Mar 12, 2019, 1:37:38 PM (6 years ago)
- Location:
- trunk/kernel/syscalls
- Files:
-
- 20 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/syscalls/sys_barrier.c
r619 r624 74 74 printk("\n[ERROR] in %s : unmapped barrier %x / thread %x / process %x\n", 75 75 __FUNCTION__ , vaddr , this->trdid , process->pid ); 76 vmm_display( process , false );76 hal_vmm_display( process , false ); 77 77 #endif 78 78 this->errno = error; … … 95 95 printk("\n[ERROR] in %s : unmapped barrier attributes %x / thread %x / process %x\n", 96 96 __FUNCTION__ , attr , this->trdid , process->pid ); 97 vmm_display( process , false );97 hal_vmm_display( process , false ); 98 98 #endif 99 99 this->errno = EINVAL; -
trunk/kernel/syscalls/sys_condvar.c
r566 r624 2 2 * sys_condvar.c - Access a POSIX condvar. 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_special.h> 26 #include <hal_vmm.h> 26 27 #include <errno.h> 27 28 #include <thread.h> … … 75 76 printk("\n[ERROR] in %s : unmapped condvar %x / thread %x / process %x\n", 76 77 __FUNCTION__ , (intptr_t)condvar , this->trdid , process->pid ); 77 vmm_display( process , false );78 hal_vmm_display( process , false ); 78 79 #endif 79 80 this->errno = error; -
trunk/kernel/syscalls/sys_display.c
r623 r624 2 2 * sys_display.c - display the current state of a kernel structure on TXT0 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 <errno.h> 27 28 #include <vmm.h> … … 167 168 if( cxy == local_cxy ) 168 169 { 169 vmm_display( process , true );170 hal_vmm_display( process , true ); 170 171 } 171 172 else 172 173 { 173 rpc_ vmm_display_client( cxy , process , true );174 rpc_hal_vmm_display_client( cxy , process , true ); 174 175 } 175 176 -
trunk/kernel/syscalls/sys_get_config.c
r566 r624 66 66 printk("\n[ERROR] in %s : x_size buffer unmapped / thread %x / process %x\n", 67 67 __FUNCTION__ , (intptr_t)x_size , this->trdid , process->pid ); 68 vmm_display( process , false );68 hal_vmm_display( process , false ); 69 69 #endif 70 70 this->errno = EINVAL; … … 81 81 printk("\n[ERROR] in %s : y_size buffer unmapped / thread %x / process %x\n", 82 82 __FUNCTION__ , (intptr_t)y_size , this->trdid , process->pid ); 83 vmm_display( process , false );83 hal_vmm_display( process , false ); 84 84 #endif 85 85 this->errno = EINVAL; … … 96 96 printk("\n[ERROR] in %s : ncores buffer unmapped / thread %x / process %x\n", 97 97 __FUNCTION__ , (intptr_t)ncores , this->trdid , process->pid ); 98 vmm_display( process , false );98 hal_vmm_display( process , false ); 99 99 #endif 100 100 this->errno = EINVAL; -
trunk/kernel/syscalls/sys_get_core.c
r506 r624 55 55 printk("\n[ERROR] in %s : cxy buffer unmapped %x / thread %x / process %x\n", 56 56 __FUNCTION__ , (intptr_t)cxy , this->trdid , process->pid ); 57 vmm_display( process , false );57 hal_vmm_display( process , false ); 58 58 #endif 59 59 this->errno = EFAULT; … … 70 70 printk("\n[ERROR] in %s : lid buffer unmapped %x / thread %x / process %x\n", 71 71 __FUNCTION__ , (intptr_t)lid , this->trdid , process->pid ); 72 vmm_display( process , false );72 hal_vmm_display( process , false ); 73 73 #endif 74 74 this->errno = EFAULT; -
trunk/kernel/syscalls/sys_get_cycle.c
r506 r624 53 53 printk("\n[ERROR] in %s : user buffer unmapped %x / thread %x / process %x\n", 54 54 __FUNCTION__ , (intptr_t)cycle , this->trdid , process->pid ); 55 vmm_display( process , false );55 hal_vmm_display( process , false ); 56 56 #endif 57 57 this->errno = EFAULT; -
trunk/kernel/syscalls/sys_is_fg.c
r566 r624 67 67 printk("\n[ERROR] in %s : unmapped owner buffer %x / thread %x in process %x\n", 68 68 __FUNCTION__ , (intptr_t)is_fg, this->trdid, process->pid ); 69 vmm_display( process , false );69 hal_vmm_display( process , false ); 70 70 #endif 71 71 this->errno = EINVAL; -
trunk/kernel/syscalls/sys_kill.c
r594 r624 74 74 tm_start = hal_get_cycles(); 75 75 if( DEBUG_SYS_KILL < tm_start ) 76 printk("\n[%s] thread[%x,%x] enter / process %x / %s/ cycle %d\n",77 __FUNCTION__, this->process->pid, this->trdid, pid,78 sig_type_str(sig_id), (uint32_t)tm_start );76 printk("\n[%s] thread[%x,%x] enter : %s to process %x / cycle %d\n", 77 __FUNCTION__, this->process->pid, this->trdid, 78 sig_type_str(sig_id), pid, (uint32_t)tm_start ); 79 79 #endif 80 80 … … 86 86 #if (DEBUG_SYS_KILL & 1) 87 87 if( DEBUG_SYS_KILL < tm_start ) 88 printk("\n[%s] thread[%x,%x] get owner process %x incluster %x\n",88 printk("\n[%s] thread[%x,%x] get target process descriptor %x in owner cluster %x\n", 89 89 __FUNCTION__ , this->process->pid, this->trdid, owner_ptr, owner_cxy ); 90 90 #endif … … 108 108 #if (DEBUG_SYS_KILL & 1) 109 109 if( DEBUG_SYS_KILL < tm_start ) 110 printk("\n[% x] thread[%x,%x] get parent process%x in cluster %x\n",110 printk("\n[%s] thread[%x,%x] get parent process descriptor %x in cluster %x\n", 111 111 __FUNCTION__ , this->process->pid, this->trdid, parent_ptr, parent_cxy ); 112 112 #endif … … 128 128 process_sigaction( pid , BLOCK_ALL_THREADS ); 129 129 130 #if (DEBUG_SYS_KILL & 1) 131 if( DEBUG_SYS_KILL < tm_start ) 132 printk("\n[%s] thread[%x,%x] blocked all threads of process %x\n", 133 __FUNCTION__ , this->process->pid, this->trdid, pid ); 134 #endif 130 135 // atomically update owner process termination state 131 136 hal_remote_atomic_or( XPTR( owner_cxy , &owner_ptr->term_state ) , … … 136 141 137 142 // calling thread deschedules when it is itself a target thread 138 if( this->process->pid == pid ) sched_yield("block itself"); 143 if( this->process->pid == pid ) 144 { 145 146 #if (DEBUG_SYS_KILL & 1) 147 if( DEBUG_SYS_KILL < tm_start ) 148 printk("\n[%s] thread[%x,%x] is a target thread => deschedule\n", 149 __FUNCTION__ , this->process->pid, this->trdid ); 150 #endif 151 sched_yield("block itself"); 152 } 139 153 140 154 break; -
trunk/kernel/syscalls/sys_mmap.c
r623 r624 70 70 printk("\n[ERROR] in %s : thread[%x,%x] / mmap attributes unmapped %x\n", 71 71 __FUNCTION__ , process->pid, this->trdid, (intptr_t)attr ); 72 vmm_display( process , false );72 hal_vmm_display( process , false ); 73 73 #endif 74 74 this->errno = EINVAL; -
trunk/kernel/syscalls/sys_munmap.c
r623 r624 67 67 printk("\n[ERROR] in %s : thread[%x,%x] / user buffer unmapped %x\n", 68 68 __FUNCTION__ , process->pid, this->trdid, (intptr_t)vaddr ); 69 vmm_display( process , false );69 hal_vmm_display( process , false ); 70 70 #endif 71 71 this->errno = EINVAL; -
trunk/kernel/syscalls/sys_mutex.c
r566 r624 74 74 printk("\n[ERROR] in %s : mutex unmapped %x / thread %x / process %x\n", 75 75 __FUNCTION__ , (intptr_t)vaddr , this->trdid , process->pid ); 76 vmm_display( process , false );76 hal_vmm_display( process , false ); 77 77 #endif 78 78 this->errno = error; -
trunk/kernel/syscalls/sys_opendir.c
r614 r624 66 66 printk("\n[ERROR] in %s / thread[%x,%x] : DIR buffer %x unmapped\n", 67 67 __FUNCTION__ , process->pid , this->trdid, dirp ); 68 vmm_display( process , false );68 hal_vmm_display( process , false ); 69 69 #endif 70 70 this->errno = EINVAL; -
trunk/kernel/syscalls/sys_read.c
r610 r624 107 107 printk("\n[ERROR] in %s : thread[%x,%x] user buffer unmapped %x\n", 108 108 __FUNCTION__ , process->pid, this->trdid, (intptr_t)vaddr ); 109 vmm_display( process , false );109 hal_vmm_display( process , false ); 110 110 #endif 111 111 this->errno = EINVAL; -
trunk/kernel/syscalls/sys_readdir.c
r612 r624 69 69 printk("\n[ERROR] in %s / thread[%x,%x] : user buffer %x unmapped\n", 70 70 __FUNCTION__ , process->pid , this->trdid, buffer ); 71 vmm_display( process , false );71 hal_vmm_display( process , false ); 72 72 #endif 73 73 this->errno = EINVAL; -
trunk/kernel/syscalls/sys_sem.c
r566 r624 2 2 * sys_sem.c - Acces a POSIX unamed semaphore. 3 3 * 4 * Authors Alain Greiner (2016,2017,2018 )4 * Authors 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 <shared_semaphore.h> 27 28 #include <errno.h> … … 74 75 printk("\n[ERROR] in %s : unmapped semaphore pointer %x / thread %x in process %x / cycle %d\n", 75 76 __FUNCTION__ , (intptr_t)vaddr, this->trdid, process->pid, (uint32_t)hal_get_cycles() ); 76 vmm_display( process , false );77 hal_vmm_display( process , false ); 77 78 #endif 78 79 this->errno = EINVAL; … … 112 113 printk("\n[ERROR] in %s GETVALUE: unmapped buffer %x / thread %x in process %x / cycle %d\n", 113 114 __FUNCTION__ , (intptr_t)current_value, this->trdid, process->pid, (uint32_t)hal_get_cycles() ); 114 vmm_display( process , false );115 hal_vmm_display( process , false ); 115 116 #endif 116 117 this->errno = EINVAL; … … 154 155 printk("\n[ERROR] in %s WAIT: semaphore %x not found / thread %x in process %x / cycle %d\n", 155 156 __FUNCTION__ , (intptr_t)vaddr, this->trdid, process->pid, (uint32_t)hal_get_cycles() ); 156 vmm_display( process , true );157 hal_vmm_display( process , true ); 157 158 #endif 158 159 this->errno = EINVAL; -
trunk/kernel/syscalls/sys_stat.c
r610 r624 2 2 * sys_stat.c - kernel function implementing the "stat" syscall. 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> … … 61 62 printk("\n[ERROR] in %s / thread[%x,%x] : stat structure %x unmapped\n", 62 63 __FUNCTION__ , process->pid , this->trdid, u_stat ); 63 vmm_display( process , false );64 hal_vmm_display( process , false ); 64 65 #endif 65 66 this->errno = EINVAL; -
trunk/kernel/syscalls/sys_thread_create.c
r619 r624 2 2 * sys_thread_create.c - creates a new user thread 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 … … 25 25 #include <hal_kernel_types.h> 26 26 #include <hal_uspace.h> 27 #include <hal_vmm.h> 27 28 #include <printk.h> 28 29 #include <errno.h> … … 82 83 printk("\n[ERROR] in %s : thread[%x,%x] / trdid buffer %x unmapped %x\n", 83 84 __FUNCTION__, process->pid, parent->trdid, (intptr_t)trdid_ptr ); 84 vmm_display( process , false );85 hal_vmm_display( process , false ); 85 86 #endif 86 87 parent->errno = EINVAL; … … 99 100 printk("\n[ERROR] in %s : thread[%x,%x] / user_attr buffer unmapped %x\n", 100 101 __FUNCTION__, process->pid, parent->trdid, (intptr_t)user_attr ); 101 vmm_display( process , false );102 hal_vmm_display( process , false ); 102 103 #endif 103 104 parent->errno = EINVAL; … … 117 118 printk("\n[ERROR] in %s : thread[%x,%x] / start_func unmapped %x\n", 118 119 __FUNCTION__, process->pid, parent->trdid, (intptr_t)start_func ); 119 vmm_display( process , false );120 hal_vmm_display( process , false ); 120 121 #endif 121 122 parent->errno = EINVAL; … … 134 135 printk("\n[ERROR] in %s : thread[%x,%x] / start_args buffer unmapped %x\n", 135 136 __FUNCTION__, process->pid, parent->trdid, (intptr_t)start_args ); 136 vmm_display( process , false );137 hal_vmm_display( process , false ); 137 138 #endif 138 139 parent->errno = EINVAL; -
trunk/kernel/syscalls/sys_timeofday.c
r506 r624 2 2 * sys_timeofday.c - Get current time 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 <thread.h> 27 28 #include <printk.h> … … 70 71 printk("\n[ERROR] in %s : user buffer tz unmapped / thread %x / process %x\n", 71 72 __FUNCTION__ , (intptr_t)tz , this->trdid , process->pid ); 72 vmm_display( process , false );73 hal_vmm_display( process , false ); 73 74 #endif 74 75 this->errno = EINVAL; -
trunk/kernel/syscalls/sys_wait.c
r566 r624 25 25 #include <hal_uspace.h> 26 26 #include <hal_irqmask.h> 27 #include <hal_vmm.h> 27 28 #include <remote_queuelock.h> 28 29 #include <core.h> … … 68 69 printk("\n[ERROR] in %s : status buffer %x unmapped for thread %x in process %x\n", 69 70 __FUNCTION__ , (intptr_t)status, this->trdid , process->pid ); 70 vmm_display( process , false );71 hal_vmm_display( process , false ); 71 72 #endif 72 73 this->errno = EINVAL; -
trunk/kernel/syscalls/sys_write.c
r623 r624 24 24 #include <kernel_config.h> 25 25 #include <hal_kernel_types.h> 26 #include <hal_vmm.h> 26 27 #include <hal_uspace.h> 27 28 #include <hal_irqmask.h> … … 106 107 printk("\n[ERROR] in %s : thread[%x,%x] user buffer unmapped %x\n", 107 108 __FUNCTION__ , process->pid, this->trdid, (intptr_t)vaddr ); 108 vmm_display( process , false );109 hal_vmm_display( process , false ); 109 110 #endif 110 111 this->errno = EINVAL;
Note: See TracChangeset
for help on using the changeset viewer.