Changeset 741fd16 in mainline
- Timestamp:
- 2008-11-21T22:14:24Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 32e6c9c
- Parents:
- 384c488
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/ipc/sysipc.c
r384c488 r741fd16 456 456 457 457 if (!(res = request_preprocess(&call, phone))) { 458 #ifdef CONFIG_UDEBUG 459 udebug_stoppable_begin(); 460 #endif 458 461 rc = ipc_call_sync(phone, &call); 462 #ifdef CONFIG_UDEBUG 463 udebug_stoppable_end(); 464 #endif 459 465 if (rc != EOK) 460 466 return rc; 461 467 process_answer(&call); 468 462 469 } else { 463 470 IPC_SET_RETVAL(call.data, res); … … 496 503 497 504 if (!(res = request_preprocess(&call, phone))) { 505 #ifdef CONFIG_UDEBUG 506 udebug_stoppable_begin(); 507 #endif 498 508 rc = ipc_call_sync(phone, &call); 509 #ifdef CONFIG_UDEBUG 510 udebug_stoppable_end(); 511 #endif 499 512 if (rc != EOK) 500 513 return rc; … … 799 812 call_t *call; 800 813 801 restart: 814 restart: 815 816 #ifdef CONFIG_UDEBUG 817 udebug_stoppable_begin(); 818 #endif 802 819 call = ipc_wait_for_call(&TASK->answerbox, usec, 803 820 flags | SYNCH_FLAGS_INTERRUPTIBLE); 821 822 #ifdef CONFIG_UDEBUG 823 udebug_stoppable_end(); 824 #endif 804 825 if (!call) 805 826 return 0; -
kernel/generic/src/synch/futex.c
r384c488 r741fd16 116 116 pte_t *t; 117 117 ipl_t ipl; 118 int rc; 118 119 119 120 ipl = interrupts_disable(); … … 135 136 136 137 futex = futex_find(paddr); 137 138 return (unative_t) waitq_sleep_timeout(&futex->wq, usec, flags | 138 139 #ifdef CONFIG_UDEBUG 140 udebug_stoppable_begin(); 141 #endif 142 rc = waitq_sleep_timeout(&futex->wq, usec, flags | 139 143 SYNCH_FLAGS_INTERRUPTIBLE); 144 145 #ifdef CONFIG_UDEBUG 146 udebug_stoppable_end(); 147 #endif 148 return (unative_t) rc; 140 149 } 141 150 -
kernel/generic/src/syscall/syscall.c
r384c488 r741fd16 106 106 udebug_syscall_event(a1, a2, a3, a4, a5, a6, id, 0, false); 107 107 #endif 108 109 108 if (id < SYSCALL_END) { 110 #ifdef CONFIG_UDEBUG111 udebug_stoppable_begin();112 #endif113 109 rc = syscall_table[id](a1, a2, a3, a4, a5, a6); 114 110 } else { … … 123 119 #ifdef CONFIG_UDEBUG 124 120 udebug_syscall_event(a1, a2, a3, a4, a5, a6, id, rc, true); 125 udebug_stoppable_end(); 126 #endif 127 121 #endif 128 122 return rc; 129 123 } -
kernel/generic/src/udebug/udebug_ops.c
r384c488 r741fd16 318 318 319 319 LOG("udebug_stop()\n"); 320 mutex_lock(&TASK->udebug.lock);321 320 322 321 /* … … 355 354 _thread_op_end(t); 356 355 356 mutex_lock(&TASK->udebug.lock); 357 357 ipc_answer(&TASK->answerbox, call); 358 358 mutex_unlock(&TASK->udebug.lock); -
uspace/app/trace/trace.c
r384c488 r741fd16 450 450 while (!abort_trace) { 451 451 452 if (paused) { 453 printf("Waiting for resume\n"); 454 while (paused) { 455 usleep(1000000); 456 fibril_yield(); 457 printf("."); 458 } 459 printf("Resumed\n"); 460 } 461 452 462 /* Run thread until an event occurs */ 453 463 rc = udebug_go(phoneid, thread_hash, … … 470 480 case UDEBUG_EVENT_STOP: 471 481 printf("Stop event\n"); 472 printf("Waiting for resume\n");473 while (paused) {474 usleep(1000000);475 fibril_yield();476 printf(".");477 }478 printf("Resumed\n");479 482 break; 480 483 case UDEBUG_EVENT_THREAD_B: … … 581 584 if (c == 'q') break; 582 585 if (c == 'p') { 586 printf("Pause...\n"); 583 587 paused = 1; 584 588 rc = udebug_stop(phoneid, thash); … … 587 591 if (c == 'r') { 588 592 paused = 0; 593 printf("Resume...\n"); 589 594 } 590 595 }
Note:
See TracChangeset
for help on using the changeset viewer.