Changeset 693 for soft/giet_vm
- Timestamp:
- Aug 5, 2015, 6:46:14 PM (9 years ago)
- Location:
- soft/giet_vm
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/applications/ocean/giet_utils.C
r598 r693 102 102 103 103 giet_proc_xyp(&cx, &cy, &lp); 104 giet_ shr_printf("Thread %d (%d:%d.%d) waiting\n", id, cx, cy, lp);104 giet_tty_printf("Thread %d (%d:%d.%d) waiting\n", id, cx, cy, lp); 105 105 106 106 if (lp == 0) { … … 212 212 } 213 213 } 214 giet_ shr_printf("Thread %d launched\n", id);214 giet_tty_printf("Thread %d launched\n", id); 215 215 216 216 slave(&id); -
soft/giet_vm/applications/ocean/giet_utils.H
r581 r693 14 14 15 15 16 #define printf(...) giet_ shr_printf(__VA_ARGS__)16 #define printf(...) giet_tty_printf(__VA_ARGS__) 17 17 18 18 extern const char *optarg; -
soft/giet_vm/applications/ocean/null_macros/c.m4.null.GIET
r581 r693 23 23 asm volatile("nop\r\n"); 24 24 } 25 giet_ shr_printf("Tas initialisés\n");25 giet_tty_printf("Tas initialisés\n"); 26 26 sqt_barrier_init(&($1), nclusters_x, nclusters_y, procs_per_cluster); 27 27 }') … … 42 42 43 43 define(WAIT_FOR_END, `{ 44 giet_ shr_printf("Wait threads...\n");44 giet_tty_printf("Wait threads...\n"); 45 45 BARRIER(bars->barrier) 46 46 }') -
soft/giet_vm/giet_libs/mwmr_channel.c
r479 r693 23 23 unsigned int lpid; 24 24 giet_proc_xyp( &x, &y, &lpid ); 25 giet_ shr_printf("\n[MWMR DEBUG] Proc[%d,%d,%d] initialises fifo %x / "25 giet_tty_printf("\n[MWMR DEBUG] Proc[%d,%d,%d] initialises fifo %x / " 26 26 " buffer = %x / width = %d / nitems = %d\n", 27 27 x, y, lpid, (unsigned int)mwmr, (unsigned int)buffer, width, nitems ); … … 50 50 unsigned int lpid; 51 51 giet_proc_xyp( &x, &y, &lpid ); 52 giet_ shr_printf("\n[MWMR DEBUG] Proc[%d,%d,%d] enters nb_mwmr_write()"52 giet_tty_printf("\n[MWMR DEBUG] Proc[%d,%d,%d] enters nb_mwmr_write()" 53 53 " : mwmr = %x / buffer = %x / items = %d\n", 54 54 x, y, lpid, (unsigned int)mwmr, (unsigned int)buffer, items ); … … 88 88 89 89 #if GIET_DEBUG_USER_MWMR 90 giet_ shr_printf("\n[MWMR DEBUG] Proc[%d,%d,%d] writes %d words in fifo %x : sts = %d\n",90 giet_tty_printf("\n[MWMR DEBUG] Proc[%d,%d,%d] writes %d words in fifo %x : sts = %d\n", 91 91 x, y, lpid, nwords, (unsigned int)mwmr, mwmr->sts ); 92 92 #endif … … 113 113 114 114 #if GIET_DEBUG_USER_MWMR 115 giet_ shr_printf("\n[MWMR DEBUG] Proc[%d,%d,%d] writes %d words in fifo %x : sts = %d\n",115 giet_tty_printf("\n[MWMR DEBUG] Proc[%d,%d,%d] writes %d words in fifo %x : sts = %d\n", 116 116 x, y, lpid, nwords, (unsigned int)mwmr, mwmr->sts ); 117 117 #endif … … 135 135 unsigned int lpid; 136 136 giet_proc_xyp( &x, &y, &lpid ); 137 giet_ shr_printf("\n[MWMR DEBUG] Proc[%d,%d,%d] enters nb_mwmr_read()"137 giet_tty_printf("\n[MWMR DEBUG] Proc[%d,%d,%d] enters nb_mwmr_read()" 138 138 " : mwmr = %x / buffer = %x / items = %d\n", 139 139 x, y, lpid, (unsigned int)mwmr, (unsigned int)buffer, items ); … … 171 171 172 172 #if GIET_DEBUG_USER_MWMR 173 giet_ shr_printf("\n[MWMR DEBUG] Proc[%d,%d,%d] read %d words in fifo %x : sts = %d\n",173 giet_tty_printf("\n[MWMR DEBUG] Proc[%d,%d,%d] read %d words in fifo %x : sts = %d\n", 174 174 x, y, lpid, nwords, (unsigned int)mwmr, mwmr->sts ); 175 175 #endif … … 182 182 183 183 #if GIET_DEBUG_USER_MWMR 184 giet_ shr_printf("\n[MWMR DEBUG] Proc[%d,%d,%d] read nothing in fifo %x : sts = %d\n",184 giet_tty_printf("\n[MWMR DEBUG] Proc[%d,%d,%d] read nothing in fifo %x : sts = %d\n", 185 185 x, y, lpid, (unsigned int)mwmr, mwmr->sts ); 186 186 #endif … … 202 202 203 203 #if GIET_DEBUG_USER_MWMR 204 giet_ shr_printf("\n[MWMR DEBUG] Proc[%d,%d,%d] read %d words in fifo %x : sts = %d\n",204 giet_tty_printf("\n[MWMR DEBUG] Proc[%d,%d,%d] read %d words in fifo %x : sts = %d\n", 205 205 x, y, lpid, nwords, (unsigned int)mwmr, mwmr->sts ); 206 206 #endif … … 224 224 unsigned int lpid; 225 225 giet_proc_xyp( &x, &y, &lpid ); 226 giet_ shr_printf("\n[MWMR DEBUG] Proc[%d,%d,%d] enters mwmr_write()"226 giet_tty_printf("\n[MWMR DEBUG] Proc[%d,%d,%d] enters mwmr_write()" 227 227 " : mwmr = %x / buffer = %x / items = %d\n", 228 228 x, y, lpid, (unsigned int)mwmr, (unsigned int)buffer, items ); … … 264 264 265 265 #if GIET_DEBUG_USER_MWMR 266 giet_ shr_printf("\n[MWMR DEBUG] Proc[%d,%d,%d] writes %d words in fifo %x : sts = %d\n",266 giet_tty_printf("\n[MWMR DEBUG] Proc[%d,%d,%d] writes %d words in fifo %x : sts = %d\n", 267 267 x, y, lpid, nwords, (unsigned int)mwmr, mwmr->sts ); 268 268 #endif … … 290 290 291 291 #if GIET_DEBUG_USER_MWMR 292 giet_ shr_printf("\n[MWMR DEBUG] Proc[%d,%d,%d] writes %d words in fifo %x : sts = %d\n",292 giet_tty_printf("\n[MWMR DEBUG] Proc[%d,%d,%d] writes %d words in fifo %x : sts = %d\n", 293 293 x, y, lpid, nwords, (unsigned int)mwmr, mwmr->sts ); 294 294 #endif … … 314 314 unsigned int lpid; 315 315 giet_proc_xyp( &x, &y, &lpid ); 316 giet_ shr_printf("\n[MWMR DEBUG] Proc[%d,%d,%d] enters mwmr_read()"316 giet_tty_printf("\n[MWMR DEBUG] Proc[%d,%d,%d] enters mwmr_read()" 317 317 " : mwmr = %x / buffer = %x / items = %d\n", 318 318 x, y, lpid, (unsigned int)mwmr, (unsigned int)buffer, items ); … … 352 352 353 353 #if GIET_DEBUG_USER_MWMR 354 giet_ shr_printf("\n[MWMR DEBUG] Proc[%d,%d,%d] read %d words in fifo %x : sts = %d\n",354 giet_tty_printf("\n[MWMR DEBUG] Proc[%d,%d,%d] read %d words in fifo %x : sts = %d\n", 355 355 x, y, lpid, nwords, (unsigned int)mwmr, mwmr->sts ); 356 356 #endif … … 378 378 379 379 #if GIET_DEBUG_USER_MWMR 380 giet_ shr_printf("\n[MWMR DEBUG] Proc[%d,%d,%d] read %d words in fifo %x : sts = %d\n",380 giet_tty_printf("\n[MWMR DEBUG] Proc[%d,%d,%d] read %d words in fifo %x : sts = %d\n", 381 381 x, y, lpid, nwords, (unsigned int)mwmr, mwmr->sts ); 382 382 #endif -
soft/giet_vm/giet_libs/user_barrier.c
r588 r693 35 35 unsigned int p; 36 36 giet_proc_xyp( &x, &y, &p ); 37 giet_ shr_printf("\n[DEBUG USER BARRIER] proc[%d,%d,%d] enters barrier_wait()\n",37 giet_tty_printf("\n[DEBUG USER BARRIER] proc[%d,%d,%d] enters barrier_wait()\n", 38 38 x, y, p ); 39 39 #endif … … 85 85 86 86 #if GIET_DEBUG_USER_BARRIER 87 giet_ shr_printf("\n[DEBUG USER BARRIER] proc[%d,%d,%d] exit barrier_wait()\n",87 giet_tty_printf("\n[DEBUG USER BARRIER] proc[%d,%d,%d] exit barrier_wait()\n", 88 88 x, y, p ); 89 89 #endif … … 126 126 127 127 #if GIET_DEBUG_USER_BARRIER 128 giet_ shr_printf("\n[DEBUG USER BARRIER] initialize sqt_node[%d][%d][%d] : arity = %d\n"128 giet_tty_printf("\n[DEBUG USER BARRIER] initialize sqt_node[%d][%d][%d] : arity = %d\n" 129 129 " parent = %x / child0 = %x / child1 = %x / child2 = %x / child3 = %x\n", 130 130 x, y, level, node->arity, … … 175 175 176 176 #if GIET_DEBUG_USER_BARRIER 177 giet_ shr_printf("\n[DEBUG USER BARRIER] initialize sqt_node[%d][%d][%d] : arity = %d\n"177 giet_tty_printf("\n[DEBUG USER BARRIER] initialize sqt_node[%d][%d][%d] : arity = %d\n" 178 178 " parent = %x / child0 = %x / child1 = %x / child0 = %x / child1 = %x\n", 179 179 x, y, level, node->arity, … … 220 220 unsigned int side; 221 221 side = (z < 2) ? 1 : (z < 3) ? 2 : (z < 5) ? 4 : (z < 9) ? 8 : 16; 222 giet_ shr_printf("\n[DEBUG USER BARRIER] sqt_nodes allocation\n"222 giet_tty_printf("\n[DEBUG USER BARRIER] sqt_nodes allocation\n" 223 223 " x_size = %d / y_size = %d / levels = %d / side = %d\n", 224 224 x_size , y_size , levels , side ); … … 248 248 249 249 #if GIET_DEBUG_USER_BARRIER 250 giet_ shr_printf("\n[DEBUG USER BARRIER] SQT node[%d][%d][%d] : vaddr = %x\n",250 giet_tty_printf("\n[DEBUG USER BARRIER] SQT node[%d][%d][%d] : vaddr = %x\n", 251 251 x, y, l, (unsigned int)barrier->node[x][y][l] ); 252 252 #endif … … 285 285 unsigned int pl; 286 286 giet_proc_xyp( &px, &py, &pl ); 287 giet_ shr_printf("\n[DEBUG USER BARRIER] P[%d,%d,%d] decrement SQT barrier node %x :\n"287 giet_tty_printf("\n[DEBUG USER BARRIER] P[%d,%d,%d] decrement SQT barrier node %x :\n" 288 288 " level = %d / parent = %x / arity = %d / sense = %d / count = %d\n", 289 289 px , py , pl , (unsigned int)node , … … 326 326 327 327 #if GIET_DEBUG_USER_BARRIER 328 giet_ shr_printf("\n[DEBUG USER BARRIER] P[%d,%d,%d] reset SQT barrier node %x :\n"328 giet_tty_printf("\n[DEBUG USER BARRIER] P[%d,%d,%d] reset SQT barrier node %x :\n" 329 329 " level = %d / arity = %d / sense = %d / count = %d\n", 330 330 px , py , pl , (unsigned int)node , … … 358 358 giet_proc_xyp( &x, &y, &lpid ); 359 359 #if GIET_DEBUG_USER_BARRIER 360 giet_ shr_printf("[DEBUG SQT USER BARRIER] proc[%d,%d,%d] enters sqt_barrier_wait(). vaddr=%x. node=%x\n",360 giet_tty_printf("[DEBUG SQT USER BARRIER] proc[%d,%d,%d] enters sqt_barrier_wait(). vaddr=%x. node=%x\n", 361 361 x, y, lpid, barrier, barrier->node[x][y][0] ); 362 362 #endif -
soft/giet_vm/giet_libs/user_lock.c
r501 r693 49 49 unsigned int lpid; 50 50 giet_proc_xyp( &x, &y, &lpid ); 51 giet_ shr_printf("\n[USER_LOCK DEBUG] P[%d,%d,%d] get ticket = %d"51 giet_tty_printf("\n[USER_LOCK DEBUG] P[%d,%d,%d] get ticket = %d" 52 52 " for lock %x at cycle %d (current = %d / free = %d)\n", 53 53 x, y, lpid, ticket, … … 65 65 66 66 #if GIET_DEBUG_USER_LOCK 67 giet_ shr_printf("\n[USER_LOCK DEBUG] P[%d,%d,%d] get lock %x"67 giet_tty_printf("\n[USER_LOCK DEBUG] P[%d,%d,%d] get lock %x" 68 68 " at cycle %d (current = %d / free = %d)\n", 69 69 x, y, lpid, (unsigned int)lock, … … 87 87 unsigned int lpid; 88 88 giet_proc_xyp( &x, &y, &lpid ); 89 giet_ shr_printf("\n[USER_LOCK DEBUG] P[%d,%d,%d] release lock %x"89 giet_tty_printf("\n[USER_LOCK DEBUG] P[%d,%d,%d] release lock %x" 90 90 " at cycle %d (current = %d / free = %d)\n", 91 91 x, y, lpid, (unsigned int)lock, … … 108 108 unsigned int lpid; 109 109 giet_proc_xyp( &x, &y, &lpid ); 110 giet_ shr_printf("\n[USER_LOCK DEBUG] P[%d,%d,%d] init lock %x"110 giet_tty_printf("\n[USER_LOCK DEBUG] P[%d,%d,%d] init lock %x" 111 111 " at cycle %d (current = %d / free = %d)\n", 112 112 x, y, lpid, (unsigned int)lock, -
soft/giet_vm/giet_libs/user_sqt_lock.c
r581 r693 40 40 41 41 #if GIET_DEBUG_USER_LOCK 42 giet_ shr_printf("\n[DEBUG USER SQT_LOCK] P[%d,%d,%d] initialises SQT node[%d,%d,%d] : \n"42 giet_tty_printf("\n[DEBUG USER SQT_LOCK] P[%d,%d,%d] initialises SQT node[%d,%d,%d] : \n" 43 43 " parent = %x / childO = %x / child1 = %x / child2 = %x / child3 = %x\n", 44 44 px , py , pl , x , y , level , … … 85 85 86 86 #if GIET_DEBUG_USER_LOCK 87 giet_ shr_printf("\n[DEBUG USER SQT_LOCK] P[%d,%d,%d] initialises SQT node[%d,%d,%d] : \n"87 giet_tty_printf("\n[DEBUG USER SQT_LOCK] P[%d,%d,%d] initialises SQT node[%d,%d,%d] : \n" 88 88 " parent = %x / childO = %x / child1 = %x / child2 = %x / child3 = %x\n", 89 89 px , py , pl , x , y , level , … … 134 134 giet_proc_xyp(&px, &py, &pl); 135 135 unsigned int side = (z < 2) ? 1 : (z < 3) ? 2 : (z < 5) ? 4 : (z < 9) ? 8 : 16; 136 giet_ shr_printf("\n[DEBUG USER SQT_LOCK] sqt_nodes allocation\n"136 giet_tty_printf("\n[DEBUG USER SQT_LOCK] sqt_nodes allocation\n" 137 137 " x_size = %d / y_size = %d / levels = %d / side = %d\n", 138 138 x_size , y_size , levels , side ); … … 162 162 163 163 #if GIET_DEBUG_USER_LOCK 164 giet_ shr_printf("\n[DEBUG USER SQT_LOCK] P[%d,%d,%d] allocates SQT node[%d,%d,%d]"164 giet_tty_printf("\n[DEBUG USER SQT_LOCK] P[%d,%d,%d] allocates SQT node[%d,%d,%d]" 165 165 " : vaddr = %x\n", 166 166 px , py , pl , x , y , l , (unsigned int)lock->node[x][y][l] ); … … 183 183 184 184 #if GIET_DEBUG_USER_LOCK 185 giet_ shr_printf("\n[DEBUG USER SQT_LOCK] SQT nodes initialisation completed\n");185 giet_tty_printf("\n[DEBUG USER SQT_LOCK] SQT nodes initialisation completed\n"); 186 186 #endif 187 187 … … 201 201 unsigned int l; 202 202 giet_proc_xyp(&x, &y, &l); 203 giet_ shr_printf("\n[DEBUG USER SQT_LOCK] P[%d,%d,%d] get ticket %d for SQT lock %x"203 giet_tty_printf("\n[DEBUG USER SQT_LOCK] P[%d,%d,%d] get ticket %d for SQT lock %x" 204 204 " / level = %d / current = %d / free = %d\n", 205 205 x , y , l , ticket , (unsigned int)node , … … 211 211 212 212 #if GIET_DEBUG_USER_LOCK 213 giet_ shr_printf("\n[DEBUG SQT_LOCK] P[%d,%d,%d] get SQT lock %x"213 giet_tty_printf("\n[DEBUG SQT_LOCK] P[%d,%d,%d] get SQT lock %x" 214 214 " / level = %d / current = %d / free = %d\n", 215 215 x , y , l , (unsigned int)node , … … 248 248 unsigned int l; 249 249 giet_proc_xyp(&x, &y, &l); 250 giet_ shr_printf("\n[DEBUG USER SQT_LOCK] P[%d,%d,%d] release SQT lock %x"250 giet_tty_printf("\n[DEBUG USER SQT_LOCK] P[%d,%d,%d] release SQT lock %x" 251 251 " / level = %d / current = %d / free = %d\n", 252 252 x , y , l , (unsigned int)node,
Note: See TracChangeset
for help on using the changeset viewer.