Changeset 589 for trunk/libs/libalmosmkh
- Timestamp:
- Nov 1, 2018, 12:48:51 PM (6 years ago)
- Location:
- trunk/libs/libalmosmkh
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libs/libalmosmkh/almosmkh.c
r580 r589 79 79 } 80 80 81 ////////////////////////////////// 82 int place_fork( unsigned int cxy ) 83 { 84 return hal_user_syscall( SYS_PLACE_FORK, 85 (reg_t)cxy, 0, 0, 0 ); 86 } 87 81 88 ///////////////////////////////// 82 89 int utls( unsigned int operation, … … 223 230 224 231 ///////////////////////////////////////////////// 225 int display_cluster_processes( unsigned int cxy ) 232 int display_cluster_processes( unsigned int cxy, 233 unsigned int owned ) 226 234 { 227 235 return hal_user_syscall( SYS_DISPLAY, 228 236 DISPLAY_CLUSTER_PROCESSES, 229 (reg_t)cxy, 0, 0 ); 237 (reg_t)cxy, 238 (reg_t)owned, 0 ); 230 239 } 231 240 … … 304 313 "t : display on TXT0 process decriptors attached to TXT[tid]\n" 305 314 "b : display on TXT0 busylocks taken by thread[pid,trdid]\n" 315 "q : display on TXT0 DQDT state\n" 306 316 "y : activate/desactivate trace for core[cxy,lid]\n" 307 317 "x : force calling process to exit\n" … … 313 323 printf("p / cxy = "); 314 324 cxy = get_uint32(); 315 display_cluster_processes( cxy );325 display_cluster_processes( cxy , 0 ); 316 326 } 317 327 else if( cmd == 's' ) … … 336 346 txt = get_uint32(); 337 347 display_txt_processes( txt ); 348 } 349 else if( cmd == 'q' ) 350 { 351 printf("q\n"); 352 display_dqdt(); 338 353 } 339 354 else if( cmd == 'y' ) -
trunk/libs/libalmosmkh/almosmkh.h
r580 r589 39 39 40 40 /*************************************************************************************** 41 * This function is used to give the process identified by the <pid> argument the42 * exclusiveownership of its TXT terminal.41 * This syscall gives the process identified by the <pid> argument the exclusive 42 * ownership of its TXT terminal. 43 43 *************************************************************************************** 44 44 * @ pid : process identifier. … … 48 48 49 49 /*************************************************************************************** 50 * This functionstores in the buffer identified by the <owner> argument a non zero50 * This syscall stores in the buffer identified by the <owner> argument a non zero 51 51 * value when the process identified by the <pid> argument is currently the exclusive 52 52 * owner of its TXT terminal. … … 60 60 61 61 /*************************************************************************************** 62 * This functionreturns the hardware platform parameters.62 * This syscall returns the hardware platform parameters. 63 63 *************************************************************************************** 64 64 * @ x_size : [out] number of clusters in a row. … … 72 72 73 73 /*************************************************************************************** 74 * This functionreturns the cluster an local index for the calling core.74 * This syscall returns the cluster an local index for the calling core. 75 75 *************************************************************************************** 76 76 * @ cxy : [out] cluster identifier. … … 90 90 int get_cycle( unsigned long long * cycle ); 91 91 92 /*************************************************************************************** 93 * This function implement the operations related to User Thread Local Storage. 92 /*************************************************************************************** 93 * This syscall allows the calling thread to specify the target cluster for 94 * a subsequent fork(). It must be called for each fork(). 95 *************************************************************************************** 96 * @ cxy : [in] target cluster identifier. 97 * @ return 0 if success / returns -1 if illegal cxy argument. 98 **************************************************************************************/ 99 int place_fork( unsigned int cxy ); 100 101 /*************************************************************************************** 102 * This syscall implements the operations related to User Thread Local Storage. 94 103 *************************************************************************************** 95 104 * @ operation : UTLS operation type as defined in "shared_sycalls.h" file. … … 101 110 102 111 /*************************************************************************************** 103 * This functionreturns an unsigned 32 bits integer from the standard "stdin" stream.112 * This syscall returns an unsigned 32 bits integer from the standard "stdin" stream. 104 113 * Both decimal numbers and hexadecimal numbers (prefixed by 0x) are supported. 105 114 *************************************************************************************** 106 115 * returns the integer value if success / returns -1 if failure. 107 116 **************************************************************************************/ 108 unsigned int get int32( void );117 unsigned int get_uint32( void ); 109 118 110 119 … … 113 122 114 123 /*************************************************************************************** 115 * This debug functiondisplays on the kernel terminal TXT0124 * This debug syscall displays on the kernel terminal TXT0 116 125 * the thread / process / core identifiers, the current cycle, plus a user defined 117 126 * message as specified by the <string> argument. … … 132 141 133 142 /*************************************************************************************** 134 * This debug functiondisplays on the kernel terminal TXT0143 * This debug syscall displays on the kernel terminal TXT0 135 144 * the state of the core scheduler identified by the <cxy> and <lid> arguments. 136 145 * It can be called by any thread running in any cluster. … … 144 153 145 154 /*************************************************************************************** 146 * This debug functiondisplays on the kernel terminal TXT0155 * This debug syscall displays on the kernel terminal TXT0 147 156 * the list of process registered in a given cluster identified by the <cxy> argument. 157 * Only the owned processes are displayed when the <owned> argument is non zero. 148 158 * It can be called by any thread running in any cluster. 149 159 *************************************************************************************** 150 160 * @ cxy : [in] target cluster identifier. 161 * @ owned : [in] only owned processes if non zero. 151 162 * @ return 0 if success / return -1 if illegal argument. 152 163 **************************************************************************************/ 153 int display_cluster_processes( unsigned int cxy ); 154 155 /*************************************************************************************** 156 * This debug function displays on the kernel terminal TXT0 164 int display_cluster_processes( unsigned int cxy, 165 unsigned int owned ); 166 167 /*************************************************************************************** 168 * This debug syscall displays on the kernel terminal TXT0 157 169 * the list of processes attached to a given TXT channel. 158 170 * It can be called by any thread running in any cluster. … … 164 176 165 177 /*************************************************************************************** 166 * This debug functiondisplays on the kernel terminal TXT0178 * This debug syscall displays on the kernel terminal TXT0 167 179 * the list of channel devices available in the architecture. 168 180 * It can be called by any thread running in any cluster. … … 173 185 174 186 /*************************************************************************************** 175 * This debug functiondisplays on the kernel terminal TXT0187 * This debug syscall displays on the kernel terminal TXT0 176 188 * the list of channel device or pseudo-files registered in the VFS cache. 177 189 * It can be called by any thread running in any cluster. … … 182 194 183 195 /*************************************************************************************** 184 * This debug functiondisplays on the kernel terminal TXT0 the current DQDT state.196 * This debug syscall displays on the kernel terminal TXT0 the current DQDT state. 185 197 * It can be called by any thread running in any cluster. 186 198 *************************************************************************************** … … 190 202 191 203 /***************************************************************************************** 192 * This debug functionis used to activate / desactivate the context switches trace204 * This debug syscall is used to activate / desactivate the context switches trace 193 205 * for a core identified by the <cxy> and <lid> arguments. 194 206 * It can be called by any thread running in any cluster. … … 204 216 205 217 /**************************************************************************************** 206 * This blocking functionimplements an user-level interactive debugger that can be218 * This syscall implements an user-level interactive debugger that can be 207 219 * introduced in any user application to display various kernel distributed structures. 208 220 * The supported commands are:
Note: See TracChangeset
for help on using the changeset viewer.