Changeset 0910e9d4 in rtems
- Timestamp:
- 07/22/15 07:05:52 (9 years ago)
- Branches:
- 5, master
- Children:
- d70f530
- Parents:
- 1f199799
- git-author:
- Sebastian Huber <sebastian.huber@…> (07/22/15 07:05:52)
- git-committer:
- Sebastian Huber <sebastian.huber@…> (07/24/15 07:09:18)
- Location:
- cpukit/libmisc/monitor
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
cpukit/libmisc/monitor/mon-task.c
r1f199799 r0910e9d4 9 9 #include <rtems.h> 10 10 #include <rtems/monitor.h> 11 #include <rtems/score/threadqimpl.h> 11 12 12 13 #include <stdio.h> … … 31 32 canonical_task->state = rtems_thread->current_state; 32 33 canonical_task->wait_id = rtems_thread->Wait.id; 34 canonical_task->wait_queue = rtems_thread->Wait.queue; 35 canonical_task->wait_operations = rtems_thread->Wait.operations; 33 36 canonical_task->events = api->Event.pending_events; 34 37 /* … … 46 49 canonical_task->modes = 0; /* XXX FIX ME.... rtems_thread->current_modes; */ 47 50 canonical_task->attributes = 0 /* XXX FIX ME rtems_thread->API_Extensions[ THREAD_API_RTEMS ]->attribute_set */; 48 49 /* XXX more to fix */50 /*51 (void) memcpy(&canonical_task->wait_args, &rtems_thread->Wait.Extra, sizeof(canonical_task->wait_args));52 */53 51 } 54 52 … … 60 58 { 61 59 fprintf(stdout,"\ 62 ID NAME PRI STATE MODES EVENTS WAITID WAITARG\n\ 63 "); 64 /*23456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 65 0 1 2 3 4 5 6 7 */ 60 ID NAME PRI STATE MODES EVENTS WAITID WAITQUEUE\n"); /* 61 0a010004 SHLL 100 READY P:T:nA NONE 00000000 00000000 [DFLT] */ 66 62 67 63 rtems_monitor_separator(); … … 84 80 length += rtems_monitor_pad(26, length); 85 81 length += rtems_monitor_dump_priority(monitor_task->priority); 86 length += rtems_monitor_pad( 29, length);82 length += rtems_monitor_pad(30, length); 87 83 length += rtems_monitor_dump_state(monitor_task->state); 88 84 length += rtems_monitor_pad(37, length); 89 85 length += rtems_monitor_dump_modes(monitor_task->modes); 90 length += rtems_monitor_pad(4 5, length);86 length += rtems_monitor_pad(44, length); 91 87 length += rtems_monitor_dump_events(monitor_task->events); 92 if (monitor_task->wait_id) 93 { 94 length += rtems_monitor_pad(54, length); 95 length += rtems_monitor_dump_id(monitor_task->wait_id); 96 length += rtems_monitor_pad(63, length); 97 length += rtems_monitor_dump_hex(monitor_task->wait_args); 88 length += rtems_monitor_pad(53, length); 89 length += rtems_monitor_dump_id(monitor_task->wait_id); 90 length += rtems_monitor_pad(62, length); 91 length += rtems_monitor_dump_addr(monitor_task->wait_queue); 92 if (monitor_task->wait_operations == &_Thread_queue_Operations_default) { 93 length += fprintf(stdout, " [DFLT]"); 94 } else if (monitor_task->wait_operations == &_Thread_queue_Operations_FIFO) { 95 length += fprintf(stdout, " [FIFO]"); 96 } else if (monitor_task->wait_operations == &_Thread_queue_Operations_priority) { 97 length += fprintf(stdout, " [PRIO]"); 98 } else { 99 length += fprintf(stdout, " [?]"); 98 100 } 99 101 -
cpukit/libmisc/monitor/monitor.h
r1f199799 r0910e9d4 106 106 rtems_attribute attributes; 107 107 rtems_id wait_id; 108 uint32_t wait_args; 108 const void *wait_queue; 109 const void *wait_operations; 109 110 uint32_t ticks; 110 111 } rtems_monitor_task_t;
Note: See TracChangeset
for help on using the changeset viewer.