summaryrefslogtreecommitdiffstats
path: root/cpukit/libmisc/capture
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2009-11-29 12:12:39 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2009-11-29 12:12:39 +0000
commit0893220b2a4507fc2619b625ecb0d6241ef5cd6f (patch)
tree1f81a1c1fac15dc8f3cd86aef65cbcf261f01a97 /cpukit/libmisc/capture
parentWhitespace removal. (diff)
downloadrtems-0893220b2a4507fc2619b625ecb0d6241ef5cd6f.tar.bz2
Whitespace removal.
Diffstat (limited to 'cpukit/libmisc/capture')
-rw-r--r--cpukit/libmisc/capture/capture-cli.c28
-rw-r--r--cpukit/libmisc/capture/capture.c44
2 files changed, 36 insertions, 36 deletions
diff --git a/cpukit/libmisc/capture/capture-cli.c b/cpukit/libmisc/capture/capture-cli.c
index c3b20f4269..fb9dc45e84 100644
--- a/cpukit/libmisc/capture/capture-cli.c
+++ b/cpukit/libmisc/capture/capture-cli.c
@@ -311,7 +311,7 @@ rtems_capture_cli_task_load_thread (rtems_task_argument arg __attribute__((unuse
rtems_task_priority ceiling = rtems_capture_watch_get_ceiling ();
rtems_task_priority floor = rtems_capture_watch_get_floor ();
int last_count = 0;
-
+
for (;;)
{
rtems_capture_task_t* tasks[RTEMS_CAPTURE_CLI_MAX_LOAD_TASKS + 1];
@@ -431,14 +431,14 @@ rtems_capture_cli_task_load_thread (rtems_task_argument arg __attribute__((unuse
if (count < RTEMS_CAPTURE_CLI_MAX_LOAD_TASKS)
{
- j = RTEMS_CAPTURE_CLI_MAX_LOAD_TASKS - count;
+ j = RTEMS_CAPTURE_CLI_MAX_LOAD_TASKS - count;
while (j > 0)
{
fprintf (stdout, "\x1b[K\n");
j--;
}
}
-
+
last_count = count;
cli_load_thread_active = 0;
@@ -477,13 +477,13 @@ rtems_capture_cli_task_load (int argc __attribute__((un
}
name = rtems_build_name('C', 'P', 'l', 't');
-
+
sc = rtems_task_create (name, priority, 4 * 1024,
RTEMS_NO_FLOATING_POINT | RTEMS_LOCAL,
RTEMS_PREEMPT | RTEMS_TIMESLICE | RTEMS_NO_ASR,
&id);
-
- if (sc != RTEMS_SUCCESSFUL)
+
+ if (sc != RTEMS_SUCCESSFUL)
{
fprintf (stdout, "error: cannot create helper thread: %s\n",
rtems_status_text (sc));
@@ -660,7 +660,7 @@ rtems_capture_cli_get_name_id (char* arg,
* remove unless the score has been updated.
*/
rtems_name rname;
-
+
rname = rtems_build_name(arg[0], arg[1], arg[2], arg[3]);
*name = rname;
*valid_name = true;
@@ -1118,7 +1118,7 @@ rtems_capture_cli_trigger_worker (int set, int argc, char** argv)
{
bool found = false;
int t;
-
+
for (t = 0; t < RTEMS_CAPTURE_CLI_TRIGGERS_NUM; t++)
if (strcmp (argv[arg], rtems_capture_cli_triggers[t].name) == 0)
{
@@ -1141,7 +1141,7 @@ rtems_capture_cli_trigger_worker (int set, int argc, char** argv)
{
if (is_from)
fprintf (stdout, "warning: extra 'from' ignored\n");
-
+
is_from = 1;
continue;
}
@@ -1170,7 +1170,7 @@ rtems_capture_cli_trigger_worker (int set, int argc, char** argv)
else
fprintf (stdout, "warning: extra arguments ignored\n");
}
-
+
if (valid_id)
{
if (is_from)
@@ -1200,7 +1200,7 @@ rtems_capture_cli_trigger_worker (int set, int argc, char** argv)
rtems_capture_cli_triggers[trigger].name);
return;
}
-
+
if (!to_valid_name && !to_valid_id && !from_valid_name && !from_valid_id)
{
fprintf (stdout, trigger_set_usage);
@@ -1351,7 +1351,7 @@ rtems_capture_cli_trace_records (int argc,
* If we have no records then just exist. We still need to release
* the reader lock.
*/
-
+
if (read == 0)
{
rtems_capture_release (read);
@@ -1359,7 +1359,7 @@ rtems_capture_cli_trace_records (int argc,
}
count = total < read ? total : read;
-
+
while (count--)
{
if (csv)
@@ -1403,7 +1403,7 @@ rtems_capture_cli_trace_records (int argc,
}
count = total < read ? total : read;
-
+
if (count < total)
total -= count;
else
diff --git a/cpukit/libmisc/capture/capture.c b/cpukit/libmisc/capture/capture.c
index 1fb18d6f9d..fb81811408 100644
--- a/cpukit/libmisc/capture/capture.c
+++ b/cpukit/libmisc/capture/capture.c
@@ -40,7 +40,7 @@
* watch filters.
*
* This feature has been disabled as it becomes confusing when
- * setting up filters and some event leak.
+ * setting up filters and some event leak.
*/
#if defined (RTEMS_CAPTURE_ENGINE_ALLOW_RELATED_EVENTS)
#define RTEMS_CAPTURE_RECORD_EVENTS (RTEMS_CAPTURE_CREATED_BY_EVENT | \
@@ -220,7 +220,7 @@ rtems_capture_by_in_to (uint32_t events,
uint32_t valid_mask = RTEMS_CAPTURE_CONTROL_FROM_MASK (0);
uint32_t valid_remainder = 0xffffffff;
int i;
-
+
for (i = 0; i < RTEMS_CAPTURE_TRIGGER_TASKS; i++)
{
/*
@@ -245,11 +245,11 @@ rtems_capture_by_in_to (uint32_t events,
by->name, by->id))
return 1;
}
-
+
valid_mask >>= 1;
valid_remainder >>= 1;
}
-
+
return 0;
}
@@ -400,7 +400,7 @@ rtems_capture_create_capture_task (rtems_tcb* new_task)
rtems_capture_task_t* task;
rtems_capture_control_t* control;
rtems_name name;
-
+
task = _Workspace_Allocate (sizeof (rtems_capture_task_t));
if (task == NULL)
@@ -414,9 +414,9 @@ rtems_capture_create_capture_task (rtems_tcb* new_task)
*/
rtems_object_get_classic_name( new_task->Object.id, &name );
-
+
rtems_capture_dup_name (&task->name, name);
-
+
task->id = new_task->Object.id;
task->flags = 0;
task->in = 0;
@@ -590,14 +590,14 @@ rtems_capture_trigger (rtems_capture_task_t* ft,
uint32_t from_events = 0;
uint32_t to_events = 0;
uint32_t from_to_events = 0;
-
+
if (ft)
{
fc = ft->control;
if (fc)
from_events = fc->from_triggers & events;
}
-
+
if (tt)
{
tc = tt->control;
@@ -636,7 +636,7 @@ rtems_capture_trigger (rtems_capture_task_t* ft,
return 0;
}
-
+
return 1;
}
@@ -711,7 +711,7 @@ rtems_capture_start_task (rtems_tcb* current_task,
if (st == NULL)
st = rtems_capture_create_capture_task (started_task);
-
+
if (rtems_capture_trigger (ct, st, RTEMS_CAPTURE_START))
{
rtems_capture_record (ct, RTEMS_CAPTURE_STARTED_BY_EVENT);
@@ -802,7 +802,7 @@ rtems_capture_delete_task (rtems_tcb* current_task,
rtems_capture_record (ct, RTEMS_CAPTURE_DELETED_BY_EVENT);
rtems_capture_record (dt, RTEMS_CAPTURE_DELETED_EVENT);
}
-
+
rtems_capture_task_stack_usage (dt);
/*
@@ -1223,7 +1223,7 @@ rtems_capture_flush (bool prime)
capture_count = 0;
capture_in = capture_records;
capture_out = 0;
-
+
rtems_interrupt_enable (level);
task = capture_tasks;
@@ -1540,7 +1540,7 @@ rtems_capture_set_trigger (rtems_name from_name,
* FROM ANY means trigger when the event happens TO this
* task. TO ANY means FROM this task.
*/
-
+
if (mode == rtems_capture_to_any)
{
control = rtems_capture_create_control (from_name, from_id);
@@ -1559,9 +1559,9 @@ rtems_capture_set_trigger (rtems_name from_name,
{
bool done = false;
int i;
-
+
control->by_triggers |= flags;
-
+
for (i = 0; i < RTEMS_CAPTURE_TRIGGER_TASKS; i++)
{
if (rtems_capture_control_by_valid (control, i) &&
@@ -1616,7 +1616,7 @@ rtems_capture_clear_trigger (rtems_name from_name,
uint32_t flags;
flags = rtems_capture_map_trigger (trigger);
-
+
if (mode == rtems_capture_to_any)
{
control = rtems_capture_find_control (from_name, from_id);
@@ -1643,9 +1643,9 @@ rtems_capture_clear_trigger (rtems_name from_name,
{
bool done = false;
int i;
-
+
control->by_triggers &= ~flags;
-
+
for (i = 0; i < RTEMS_CAPTURE_TRIGGER_TASKS; i++)
{
if (rtems_capture_control_by_valid (control, i) &&
@@ -1808,7 +1808,7 @@ rtems_capture_release (uint32_t count)
{
rtems_capture_record_t* rec;
uint32_t counted;
-
+
rtems_interrupt_level level;
rtems_interrupt_disable (level);
@@ -1819,7 +1819,7 @@ rtems_capture_release (uint32_t count)
rtems_interrupt_enable (level);
counted = count;
-
+
rec = &capture_records[capture_out];
while (counted--)
@@ -1828,7 +1828,7 @@ rtems_capture_release (uint32_t count)
rtems_capture_destroy_capture_task (rec->task);
rec++;
}
-
+
rtems_interrupt_disable (level);
capture_count -= count;