diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2004-04-16 12:06:28 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2004-04-16 12:06:28 +0000 |
commit | aed742c9a09fc443418ba4ef8f31892ef00df984 (patch) | |
tree | e9d0138d2456e7ec94be79b66f1f06181d308743 /cpukit/libmisc/capture | |
parent | Remove stray white spaces. (diff) | |
download | rtems-aed742c9a09fc443418ba4ef8f31892ef00df984.tar.bz2 |
Remove stray white spaces.
Diffstat (limited to 'cpukit/libmisc/capture')
-rw-r--r-- | cpukit/libmisc/capture/capture-cli.c | 132 | ||||
-rw-r--r-- | cpukit/libmisc/capture/capture-cli.h | 4 | ||||
-rw-r--r-- | cpukit/libmisc/capture/capture.c | 66 | ||||
-rw-r--r-- | cpukit/libmisc/capture/capture.h | 44 |
4 files changed, 123 insertions, 123 deletions
diff --git a/cpukit/libmisc/capture/capture-cli.c b/cpukit/libmisc/capture/capture-cli.c index 8a7798931f..d61868b196 100644 --- a/cpukit/libmisc/capture/capture-cli.c +++ b/cpukit/libmisc/capture/capture-cli.c @@ -2,7 +2,7 @@ ------------------------------------------------------------------------ $Id$ ------------------------------------------------------------------------ - + Copyright Objective Design Systems Pty Ltd, 2002 All rights reserved Objective Design Systems Pty Ltd, 2002 Chris Johns (ccj@acm.org) @@ -14,7 +14,7 @@ found in the file LICENSE in this distribution. This software with is provided ``as is'' and with NO WARRANTY. - + ------------------------------------------------------------------------ RTEMS Performance Monitoring and Measurement Framework. @@ -63,9 +63,9 @@ static const char* open_usage = "usage: copen [-i] size\n"; static void rtems_capture_cli_open ( - int argc, + int argc, char **argv, - rtems_monitor_command_arg_t *command_arg, + rtems_monitor_command_arg_t *command_arg, boolean verbose ) { uint32_t size = 0; @@ -112,7 +112,7 @@ rtems_capture_cli_open ( if (!enable) return; - + sc = rtems_capture_control (enable); if (sc != RTEMS_SUCCESSFUL) @@ -135,9 +135,9 @@ rtems_capture_cli_open ( static void rtems_capture_cli_close ( - int argc, + int argc, char **argv, - rtems_monitor_command_arg_t *command_arg, + rtems_monitor_command_arg_t *command_arg, boolean verbose ) { rtems_status_code sc; @@ -164,9 +164,9 @@ rtems_capture_cli_close ( static void rtems_capture_cli_enable ( - int argc, + int argc, char **argv, - rtems_monitor_command_arg_t *command_arg, + rtems_monitor_command_arg_t *command_arg, boolean verbose ) { rtems_status_code sc; @@ -193,9 +193,9 @@ rtems_capture_cli_enable ( static void rtems_capture_cli_disable ( - int argc, + int argc, char **argv, - rtems_monitor_command_arg_t *command_arg, + rtems_monitor_command_arg_t *command_arg, boolean verbose ) { rtems_status_code sc; @@ -222,9 +222,9 @@ rtems_capture_cli_disable ( static void rtems_capture_cli_task_list ( - int argc, + int argc, char **argv, - rtems_monitor_command_arg_t *command_arg, + rtems_monitor_command_arg_t *command_arg, boolean verbose ) { rtems_task_priority ceiling = rtems_capture_watch_get_ceiling (); @@ -313,12 +313,12 @@ rtems_capture_cli_task_load_thread (rtems_task_argument arg) rtems_task_priority ceiling = rtems_capture_watch_get_ceiling (); rtems_task_priority floor = rtems_capture_watch_get_floor (); int last_count = 0; - + printf ("\x1b[2J Press ENTER to exit.\n\n"); printf (" PID NAME RPRI CPRI STATE %%CPU %%STK FLGS EXEC TIME\n"); for (;;) - { + { rtems_capture_task_t* tasks[RTEMS_CAPTURE_CLI_MAX_LOAD_TASKS + 1]; unsigned long long load[RTEMS_CAPTURE_CLI_MAX_LOAD_TASKS + 1]; rtems_capture_task_t* task; @@ -328,18 +328,18 @@ rtems_capture_cli_task_load_thread (rtems_task_argument arg) int j; cli_load_thread_active = 1; - + /* * Iterate over the tasks and sort the highest load tasks * into our local arrays. We only handle a limited number of * tasks. */ - + memset (tasks, 0, sizeof (tasks)); memset (load, 0, sizeof (load)); task = rtems_capture_get_task_list (); - + while (task) { if (rtems_capture_task_valid (task)) @@ -366,14 +366,14 @@ rtems_capture_cli_task_load_thread (rtems_task_argument arg) load[i] = l; break; } - } + } task = rtems_capture_next_task (task); } printf ("\x1b[4;0H"); total_time = 0; - + for (i = 0; i < RTEMS_CAPTURE_CLI_MAX_LOAD_TASKS; i++) total_time += load[i]; @@ -391,7 +391,7 @@ rtems_capture_cli_task_load_thread (rtems_task_argument arg) if (!tasks[i]) break; - + j--; stack_used = rtems_capture_task_stack_usage (tasks[i]) * 100; @@ -425,11 +425,11 @@ rtems_capture_cli_task_load_thread (rtems_task_argument arg) printf ("--"); else printf ("%c%c", - rtems_capture_task_control (tasks[i]) ? + rtems_capture_task_control (tasks[i]) ? (rtems_capture_task_control_flags (tasks[i]) & RTEMS_CAPTURE_WATCH ? 'w' : '+') : '-', rtems_capture_watch_global_on () ? 'g' : '-'); - + printf (" %qi\n", rtems_capture_task_time (tasks[i])); } @@ -442,7 +442,7 @@ rtems_capture_cli_task_load_thread (rtems_task_argument arg) last_count = count; cli_load_thread_active = 0; - + rtems_task_wake_after (TOD_MICROSECONDS_TO_TICKS (5000000)); } } @@ -458,16 +458,16 @@ rtems_capture_cli_task_load_thread (rtems_task_argument arg) static void rtems_capture_cli_task_load ( - int argc, + int argc, char **argv, - rtems_monitor_command_arg_t *command_arg, + rtems_monitor_command_arg_t *command_arg, boolean verbose ) { rtems_status_code sc; rtems_task_priority priority; rtems_name name; rtems_id id; - + sc = rtems_task_set_priority (RTEMS_SELF, RTEMS_CURRENT_PRIORITY, &priority); if (sc != RTEMS_SUCCESSFUL) @@ -475,23 +475,23 @@ rtems_capture_cli_task_load ( printf ("error: cannot obtain the current priority: %s\n", rtems_status_text (sc)); return; } - + memcpy (&name, "CPlt", 4); - + sc = rtems_task_create (name, priority, 1024, RTEMS_NO_FLOATING_POINT | RTEMS_LOCAL, RTEMS_PREEMPT | RTEMS_TIMESLICE | RTEMS_NO_ASR, &id); - - if (sc != RTEMS_SUCCESSFUL) + + if (sc != RTEMS_SUCCESSFUL) { printf ("error: cannot create helper thread: %s\n", rtems_status_text (sc)); return; } sc = rtems_task_start (id, rtems_capture_cli_task_load_thread, 0); - - if (sc != RTEMS_SUCCESSFUL) + + if (sc != RTEMS_SUCCESSFUL) { printf ("error: cannot start helper thread: %s\n", rtems_status_text (sc)); rtems_task_delete (id); @@ -505,7 +505,7 @@ rtems_capture_cli_task_load ( if ((c == '\r') || (c == '\n')) { int loops = 20; - + while (loops && cli_load_thread_active) rtems_task_wake_after (TOD_MICROSECONDS_TO_TICKS (100000)); @@ -529,15 +529,15 @@ rtems_capture_cli_task_load ( static void rtems_capture_cli_watch_list ( - int argc, + int argc, char **argv, - rtems_monitor_command_arg_t *command_arg, + rtems_monitor_command_arg_t *command_arg, boolean verbose ) { rtems_capture_control_t* control = rtems_capture_get_control_list (); rtems_task_priority ceiling = rtems_capture_watch_get_ceiling (); rtems_task_priority floor = rtems_capture_watch_get_floor (); - + printf ("watch priority ceiling is %i\n", ceiling); printf ("watch priority floor is %i\n", floor); printf ("global watch is %s\n", @@ -549,7 +549,7 @@ rtems_capture_cli_watch_list ( int f; int fshowed; int lf; - + printf (" "); rtems_monitor_dump_id (rtems_capture_control_id (control)); printf (" "); @@ -568,7 +568,7 @@ rtems_capture_cli_watch_list ( printf ("\n"); lf = 0; } - + /* * FIXME: name test. */ @@ -619,7 +619,7 @@ rtems_capture_cli_get_name_id (char* arg, /* * See if the arg is all hex digits. */ - + l = strlen (arg); for (i = 0; i < l; i++) @@ -627,9 +627,9 @@ rtems_capture_cli_get_name_id (char* arg, break; *id = strtoul (arg, 0, 16); - + objclass = _Objects_Get_class (*id); - + if ((i == l)) *valid_id = 1; else @@ -655,9 +655,9 @@ static char const * watch_add_usage = "usage: cwadd [task name] [id]\n"; static void rtems_capture_cli_watch_add ( - int argc, + int argc, char **argv, - rtems_monitor_command_arg_t *command_arg, + rtems_monitor_command_arg_t *command_arg, boolean verbose ) { rtems_status_code sc; @@ -717,9 +717,9 @@ static char const * watch_del_usage = "usage: cwdel [task name] [id]\n"; static void rtems_capture_cli_watch_del ( - int argc, + int argc, char **argv, - rtems_monitor_command_arg_t *command_arg, + rtems_monitor_command_arg_t *command_arg, boolean verbose ) { rtems_status_code sc; @@ -778,9 +778,9 @@ static char const * watch_control_usage = "usage: cwctl [task name] [id] on/off\ static void rtems_capture_cli_watch_control ( - int argc, + int argc, char **argv, - rtems_monitor_command_arg_t *command_arg, + rtems_monitor_command_arg_t *command_arg, boolean verbose ) { rtems_status_code sc; @@ -844,9 +844,9 @@ static char const * watch_global_usage = "usage: cwglob on/off\n"; static void rtems_capture_cli_watch_global ( - int argc, + int argc, char **argv, - rtems_monitor_command_arg_t *command_arg, + rtems_monitor_command_arg_t *command_arg, boolean verbose ) { rtems_status_code sc; @@ -898,9 +898,9 @@ static char const * watch_ceiling_usage = "usage: cwceil priority\n"; static void rtems_capture_cli_watch_ceiling ( - int argc, + int argc, char **argv, - rtems_monitor_command_arg_t *command_arg, + rtems_monitor_command_arg_t *command_arg, boolean verbose ) { rtems_status_code sc; @@ -949,9 +949,9 @@ static char const * watch_floor_usage = "usage: cwfloor priority\n"; static void rtems_capture_cli_watch_floor ( - int argc, + int argc, char **argv, - rtems_monitor_command_arg_t *command_arg, + rtems_monitor_command_arg_t *command_arg, boolean verbose ) { rtems_status_code sc; @@ -1000,9 +1000,9 @@ static char const *trigger_set_usage = "usage: ctrig type [from] [fromid] [to] [ static void rtems_capture_cli_trigger_set ( - int argc, + int argc, char **argv, - rtems_monitor_command_arg_t *command_arg, + rtems_monitor_command_arg_t *command_arg, boolean verbose ) { rtems_status_code sc; @@ -1156,9 +1156,9 @@ rtems_capture_cli_trigger_set ( static void rtems_capture_cli_trace_records ( - int argc, + int argc, char **argv, - rtems_monitor_command_arg_t *command_arg, + rtems_monitor_command_arg_t *command_arg, boolean verbose ) { rtems_status_code sc; @@ -1169,7 +1169,7 @@ rtems_capture_cli_trace_records ( uint32_t read; rtems_capture_record_t* rec; int arg; - + for (arg = 1; arg < argc; arg++) { if (argv[arg][0] == '-') @@ -1196,7 +1196,7 @@ rtems_capture_cli_trace_records ( printf ("error: option -r requires number and currently it is not\n"); return; } - + dump_total = strtoul (argv[arg], 0, 0); } else @@ -1205,7 +1205,7 @@ rtems_capture_cli_trace_records ( } total = dump_total; - + while (total) { sc = rtems_capture_read (0, 0, &read, &rec); @@ -1219,7 +1219,7 @@ rtems_capture_cli_trace_records ( if (read == 0) break; - + for (count = 0; count < read; count++, rec++) { if (csv) @@ -1236,7 +1236,7 @@ rtems_capture_cli_trace_records ( int e; event = rec->events >> RTEMS_CAPTURE_EVENT_START; - + t = rec->ticks; t *= rtems_capture_tick_time (); t += rec->tick_offset; @@ -1281,9 +1281,9 @@ rtems_capture_cli_trace_records ( static void rtems_capture_cli_flush ( - int argc, + int argc, char **argv, - rtems_monitor_command_arg_t *command_arg, + rtems_monitor_command_arg_t *command_arg, boolean verbose ) { rtems_status_code sc; @@ -1458,7 +1458,7 @@ rtems_status_code rtems_capture_cli_init (rtems_capture_timestamp timestamp) { int cmd; - + capture_timestamp = timestamp; for (cmd = 0; diff --git a/cpukit/libmisc/capture/capture-cli.h b/cpukit/libmisc/capture/capture-cli.h index 968e3217f9..519cad0d56 100644 --- a/cpukit/libmisc/capture/capture-cli.h +++ b/cpukit/libmisc/capture/capture-cli.h @@ -2,7 +2,7 @@ ------------------------------------------------------------------------ $Id$ ------------------------------------------------------------------------ - + Copyright Objective Design Systems Pty Ltd, 2002 All rights reserved Objective Design Systems Pty Ltd, 2002 Chris Johns (ccj@acm.org) @@ -14,7 +14,7 @@ found in the file LICENSE in this distribution. This software with is provided ``as is'' and with NO WARRANTY. - + ------------------------------------------------------------------------ RTEMS Performance Monitoring and Measurement Framework. diff --git a/cpukit/libmisc/capture/capture.c b/cpukit/libmisc/capture/capture.c index 8597bfc681..c8fd751918 100644 --- a/cpukit/libmisc/capture/capture.c +++ b/cpukit/libmisc/capture/capture.c @@ -2,7 +2,7 @@ ------------------------------------------------------------------------ $Id$ ------------------------------------------------------------------------ - + Copyright Objective Design Systems Pty Ltd, 2002 All rights reserved Objective Design Systems Pty Ltd, 2002 Chris Johns (ccj@acm.org) @@ -14,7 +14,7 @@ found in the file LICENSE in this distribution. This software with is provided ``as is'' and with NO WARRANTY. - + ------------------------------------------------------------------------ RTEMS Performance Monitoring and Measurement Framework. @@ -236,7 +236,7 @@ static inline rtems_capture_control_t* rtems_capture_find_control (rtems_name name, rtems_id id) { rtems_capture_control_t* control; - + for (control = capture_controls; control != NULL; control = control->next) if (rtems_capture_match_name_id (name, id, control->name, control->id)) break; @@ -262,7 +262,7 @@ rtems_capture_create_control (rtems_name name, rtems_id id) return NULL; control = rtems_capture_find_control (name, id); - + if (control == NULL) { control = _Workspace_Allocate (sizeof (rtems_capture_control_t)); @@ -272,14 +272,14 @@ rtems_capture_create_control (rtems_name name, rtems_id id) capture_flags |= RTEMS_CAPTURE_NO_MEMORY; return NULL; } - + control->name = name; control->id = id; control->flags = 0; memset (control->from, 0, sizeof (control->from)); memset (control->from_id, 0, sizeof (control->from_id)); - + rtems_interrupt_disable (level); control->next = capture_controls; @@ -323,7 +323,7 @@ rtems_capture_create_capture_task (rtems_tcb* new_task) } rtems_capture_dup_name (&task->name, ((rtems_name) new_task->Object.name)); - + task->id = new_task->Object.id; task->flags = 0; task->in = 0; @@ -359,7 +359,7 @@ rtems_capture_create_capture_task (rtems_tcb* new_task) if (rtems_capture_match_name_id (control->name, control->id, task->name, task->id)) task->control = control; - + return task; } @@ -398,9 +398,9 @@ rtems_capture_record (rtems_capture_task_t* task, (control && (control->flags & RTEMS_CAPTURE_WATCH))))) { rtems_interrupt_level level; - + rtems_interrupt_disable (level); - + if (capture_count < capture_size) { capture_count++; @@ -417,7 +417,7 @@ rtems_capture_record (rtems_capture_task_t* task, if (capture_in == &capture_records[capture_size - 1]) capture_in = capture_records; else - capture_in++; + capture_in++; } else capture_flags |= RTEMS_CAPTURE_OVERFLOW; @@ -500,7 +500,7 @@ rtems_capture_start_task (rtems_tcb* current_task, rtems_capture_record (ct, RTEMS_CAPTURE_STARTED_BY_EVENT); rtems_capture_record (st, RTEMS_CAPTURE_STARTED_EVENT); - + rtems_capture_init_stack_usage (st); } @@ -671,7 +671,7 @@ rtems_capture_switch_task (rtems_tcb* current_task, { uint32_t ticks; uint32_t tick_offset; - + /* * Get the cpature task control block so we can update the * reference anbd perform any watch or trigger functions. @@ -719,7 +719,7 @@ rtems_capture_switch_task (rtems_tcb* current_task, ht->ticks_in = ticks; ht->tick_offset_in = tick_offset; } - + if (ct) { ct->out++; @@ -728,7 +728,7 @@ rtems_capture_switch_task (rtems_tcb* current_task, if (capture_timestamp) { tick_offset += capture_tick_period - ct->tick_offset_in; - + if (tick_offset < capture_tick_period) ct->tick_offset = tick_offset; else @@ -754,7 +754,7 @@ rtems_capture_switch_task (rtems_tcb* current_task, if (ct) { cc = ct->control; - + /* * Check the current task for a TO_ANY trigger. */ @@ -854,7 +854,7 @@ rtems_capture_open (uint32_t size, rtems_capture_timestamp timestamp) * Get the tick period from the BSP Configuration Table. */ capture_tick_period = _Configuration_Table->microseconds_per_tick; - + /* * Register the user extension handlers for the CAPture Engine. */ @@ -922,7 +922,7 @@ rtems_capture_close () return sc; task = capture_tasks; - + while (task) { rtems_capture_task_t* delete = task; @@ -933,7 +933,7 @@ rtems_capture_close () capture_tasks = NULL; control = capture_controls; - + while (control) { rtems_capture_control_t* delete = control; @@ -1009,7 +1009,7 @@ rtems_capture_flush (rtems_boolean prime) capture_in = capture_records; capture_out = 0; - rtems_interrupt_enable (level); + rtems_interrupt_enable (level); return RTEMS_SUCCESSFUL; } @@ -1074,7 +1074,7 @@ rtems_capture_watch_del (rtems_name name, rtems_id id) if (rtems_capture_match_name_id (name, id, control->name, control->id)) { rtems_interrupt_disable (level); - + for (task = capture_tasks; task != NULL; task = task->next) if (task->control == control) task->control = 0; @@ -1116,7 +1116,7 @@ rtems_capture_watch_ctrl (rtems_name name, rtems_id id, rtems_boolean enable) rtems_interrupt_level level; rtems_capture_control_t* control; rtems_boolean found = 0; - + /* * Find the control and then set the watch. It must exist before it can * be controlled. @@ -1135,7 +1135,7 @@ rtems_capture_watch_ctrl (rtems_name name, rtems_id id, rtems_boolean enable) rtems_interrupt_enable (level); found = 1; - } + } } if (found) @@ -1157,7 +1157,7 @@ rtems_status_code rtems_capture_watch_global (rtems_boolean enable) { rtems_interrupt_level level; - + rtems_interrupt_disable (level); /* @@ -1278,7 +1278,7 @@ rtems_capture_set_trigger (rtems_name from, { rtems_capture_control_t* control; int i; - + /* * Find the capture control blocks for the from and to * tasks. @@ -1297,7 +1297,7 @@ rtems_capture_set_trigger (rtems_name from, control = rtems_capture_create_control (to, to_id); if (control == NULL) return RTEMS_NO_MEMORY; - + if (trigger == rtems_capture_from_any) control->flags |= RTEMS_CAPTURE_FROM_ANY; else @@ -1387,10 +1387,10 @@ rtems_capture_read (uint32_t threshold, */ if (count && ((capture_out + count) >= capture_size)) *read = capture_size - capture_out; - + /* - * Do we have a threshold and the current count has not wrapped - * around the end of the capture record buffer ? + * Do we have a threshold and the current count has not wrapped + * around the end of the capture record buffer ? */ if ((*read == count) && threshold) { @@ -1404,11 +1404,11 @@ rtems_capture_read (uint32_t threshold, rtems_task_ident (RTEMS_SELF, RTEMS_LOCAL, &capture_reader); rtems_interrupt_disable (level); - + capture_flags |= RTEMS_CAPTURE_READER_WAITING; rtems_interrupt_enable (level); - + sc = rtems_event_receive (RTEMS_EVENT_0, RTEMS_WAIT | RTEMS_EVENT_ANY, TOD_MICROSECONDS_TO_TICKS (timeout), @@ -1481,7 +1481,7 @@ rtems_capture_release (uint32_t count) * * This function returns the tick period in nano-seconds. */ -uint32_t +uint32_t rtems_capture_tick_time () { return capture_tick_period; @@ -1526,7 +1526,7 @@ rtems_capture_get_task_list () * This function updates the stack usage. The task control block * is updated. */ -uint32_t +uint32_t rtems_capture_task_stack_usage (rtems_capture_task_t* task) { if (task->tcb) diff --git a/cpukit/libmisc/capture/capture.h b/cpukit/libmisc/capture/capture.h index 836bb96916..6e040efa0e 100644 --- a/cpukit/libmisc/capture/capture.h +++ b/cpukit/libmisc/capture/capture.h @@ -2,7 +2,7 @@ ------------------------------------------------------------------------ $Id$ ------------------------------------------------------------------------ - + Copyright Objective Design Systems Pty Ltd, 2002 All rights reserved Objective Design Systems Pty Ltd, 2002 Chris Johns (ccj@acm.org) @@ -14,7 +14,7 @@ found in the file LICENSE in this distribution. This software with is provided ``as is'' and with NO WARRANTY. - + ------------------------------------------------------------------------ RTEMS Performance Monitoring and Measurement Framework. @@ -42,7 +42,7 @@ extern "C" { * * DESCRIPTION: * - * RTEMS control holds the trigger and watch configuration for a group of + * RTEMS control holds the trigger and watch configuration for a group of * tasks with the same name. */ typedef struct rtems_capture_control_s @@ -62,15 +62,15 @@ typedef struct rtems_capture_control_s #define RTEMS_CAPTURE_FROM_ANY (1 << 1) #define RTEMS_CAPTURE_TO_ANY (1 << 2) #define RTEMS_CAPTURE_FROM_TO (1 << 3) - + /* * rtems_capture_control_t * * DESCRIPTION: * - * RTEMS capture control provdes the information about a task, along + * RTEMS capture control provdes the information about a task, along * with its trigger state. The control is referenced by each - * capture record. This is* information neeed by the decoder. The + * capture record. This is* information neeed by the decoder. The * capture record cannot assume the task will exist when the record is * dumped via the target interface so task info needed for tracing is * copied and held here. @@ -79,7 +79,7 @@ typedef struct rtems_capture_control_s * contained in this structure. * * Note, the tracer code exploits the fact an rtems_name is a - * 32bit value. + * 32bit value. */ typedef struct rtems_capture_task_s { @@ -407,7 +407,7 @@ rtems_capture_release (uint32_t count); * * This function returns the tick period in micro-seconds. */ -uint32_t +uint32_t rtems_capture_tick_time (); /* @@ -417,7 +417,7 @@ rtems_capture_tick_time (); * * This function returns the tick period in micro-seconds. */ -uint32_t +uint32_t rtems_capture_tick_time (); /* @@ -519,7 +519,7 @@ rtems_capture_task_name (rtems_capture_task_t* task) * * This function returns the task flags. */ -static inline uint32_t +static inline uint32_t rtems_capture_task_flags (rtems_capture_task_t* task) { return task->flags; @@ -545,7 +545,7 @@ rtems_capture_task_control (rtems_capture_task_t* task) * * This function returns the task control flags if a control is present. */ -static inline uint32_t +static inline uint32_t rtems_capture_task_control_flags (rtems_capture_task_t* task) { if (!task->control) @@ -561,7 +561,7 @@ rtems_capture_task_control_flags (rtems_capture_task_t* task) * This function returns the number of times the task has * been switched into context. */ -static inline uint32_t +static inline uint32_t rtems_capture_task_switched_in (rtems_capture_task_t* task) { return task->in; @@ -575,7 +575,7 @@ rtems_capture_task_switched_in (rtems_capture_task_t* task) * This function returns the number of times the task has * been switched out of context. */ -static inline uint32_t +static inline uint32_t rtems_capture_task_switched_out (rtems_capture_task_t* task) { return task->out; @@ -633,7 +633,7 @@ rtems_capture_task_curr_priority (rtems_capture_task_t* task) * This function updates the stack usage. The task control block * is updated. */ -uint32_t +uint32_t rtems_capture_task_stack_usage (rtems_capture_task_t* task); /* @@ -643,7 +643,7 @@ rtems_capture_task_stack_usage (rtems_capture_task_t* task); * * This function returns the task's stack size. */ -static inline uint32_t +static inline uint32_t rtems_capture_task_stack_size (rtems_capture_task_t* task) { return task->stack_size; @@ -656,7 +656,7 @@ rtems_capture_task_stack_size (rtems_capture_task_t* task) * * This function returns the amount of stack used. */ -static inline uint32_t +static inline uint32_t rtems_capture_task_stack_used (rtems_capture_task_t* task) { return task->stack_size - task->stack_clean; @@ -669,7 +669,7 @@ rtems_capture_task_stack_used (rtems_capture_task_t* task) * * This function returns the current execution time as ticks. */ -static inline uint32_t +static inline uint32_t rtems_capture_task_ticks (rtems_capture_task_t* task) { return task->ticks; @@ -682,7 +682,7 @@ rtems_capture_task_ticks (rtems_capture_task_t* task) * * This function returns the current execution time tick offset. */ -static inline uint32_t +static inline uint32_t rtems_capture_task_tick_offset (rtems_capture_task_t* task) { return task->tick_offset; @@ -730,12 +730,12 @@ rtems_capture_task_delta_time (rtems_capture_task_t* task) * This function returns the number of tasks the capture * engine knows about. */ -static inline uint32_t +static inline uint32_t rtems_capture_task_count () { rtems_capture_task_t* task = rtems_capture_get_task_list (); uint32_t count = 0; - + while (task) { count++; @@ -803,7 +803,7 @@ rtems_capture_control_name (rtems_capture_control_t* control) * * This function returns the control flags. */ -static inline uint32_t +static inline uint32_t rtems_capture_control_flags (rtems_capture_control_t* control) { return control->flags; @@ -847,7 +847,7 @@ rtems_capture_control_from_id (rtems_capture_control_t* control, int from) * This function returns the number of controls the capture * engine has. */ -static inline uint32_t +static inline uint32_t rtems_capture_control_count () { rtems_capture_control_t* control = rtems_capture_get_control_list (); |