Changeset ef687799 in mainline
- Timestamp:
- 2008-11-21T22:51:51Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- ce4a3dae
- Parents:
- 32e6c9c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/trace/trace.c
r32e6c9c ref687799 446 446 thread_id = next_thread_id++; 447 447 448 printf("Start tracing thread [%d] (hash 0x%lx) \n", thread_id, thread_hash);448 printf("Start tracing thread [%d] (hash 0x%lx).\n", thread_id, thread_hash); 449 449 450 450 while (!abort_trace) { 451 451 452 452 if (paused) { 453 printf(" Waiting for resume\n");453 printf("Press R to resume (and be patient).\n"); 454 454 while (paused) { 455 455 usleep(1000000); … … 485 485 break; 486 486 case UDEBUG_EVENT_THREAD_E: 487 printf("Thread 0x%lx exited \n", val0);487 printf("Thread 0x%lx exited.\n", val0); 488 488 abort_trace = 1; 489 489 break; 490 490 default: 491 printf("Unknown event type %d \n", ev_type);491 printf("Unknown event type %d.\n", ev_type); 492 492 break; 493 493 } … … 496 496 } 497 497 498 printf("Finished tracing thread [%d] \n", thread_id);498 printf("Finished tracing thread [%d].\n", thread_id); 499 499 return 0; 500 500 } … … 708 708 case 'p': dm = dm | DM_SYSTEM | DM_USER; break; 709 709 default: 710 printf("Unexpected event type '%c' \n", *c);710 printf("Unexpected event type '%c'.\n", *c); 711 711 exit(1); 712 712 } … … 783 783 784 784 printf("System Call / IPC Tracer\n"); 785 printf("Controls: Q - Quit, P - Pause, R - Resume\n"); 785 786 786 787 display_mask = DM_THREAD | DM_SYSTEM | DM_USER; … … 793 794 rc = connect_task(task_id); 794 795 if (rc < 0) { 795 printf("Failed connecting to task %lld \n", task_id);796 printf("Failed connecting to task %lld.\n", task_id); 796 797 return 1; 797 798 } 798 799 799 printf("Connected to task %lld \n", task_id);800 printf("Connected to task %lld.\n", task_id); 800 801 801 802 if (task_ldr != NULL) {
Note:
See TracChangeset
for help on using the changeset viewer.