diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2011-05-17 19:31:12 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2011-05-17 19:31:12 +0000 |
commit | f40778b48660b589278898593c62cf2250d3fbab (patch) | |
tree | 09d84495b8a489f65e58819c8d77ec488da30571 /schedsim/shell/schedsim_smpsimple/printheir_executing.c | |
parent | 2011-05-17 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-schedsim-f40778b48660b589278898593c62cf2250d3fbab.tar.bz2 |
2011-05-17 Joel Sherrill <joel.sherrill@oarcorp.com>
* .cvsignore, ChangeLog, Makefile.am, README, TODO, add_commands.c,
config.c, main_current_cpu.c, main_dispatch.c, main_dump_all_cpus.c,
main_dump_ready_tasks.c, printheir_executing.c, schedsim.cc,
smp_stub.c, wrap_thread_dispatch.c, scenarios/.cvsignore,
scenarios/cpus1_mode.expected, scenarios/cpus1_mode.scen,
scenarios/cpus1_priority.expected, scenarios/cpus1_priority.scen,
scenarios/cpus1_resume_on_primary.expected,
scenarios/cpus1_resume_on_primary.scen,
scenarios/cpus1_suspend_on_primary.expected,
scenarios/cpus1_suspend_on_primary.scen,
scenarios/cpus4_mode_case1.expected, scenarios/cpus4_mode_case1.scen,
scenarios/cpus4_mode_case2.expected, scenarios/cpus4_mode_case2.scen,
scenarios/cpus4_nonpreempt_case1.expected,
scenarios/cpus4_nonpreempt_case1.scen,
scenarios/cpus4_pick_older.expected, scenarios/cpus4_pick_older.scen,
scenarios/cpus4_priority.expected, scenarios/cpus4_priority.scen,
scenarios/cpus4_simple_nopreempt.expected,
scenarios/cpus4_simple_nopreempt.scen,
scenarios/cpus4_simple_preemption.expected,
scenarios/cpus4_simple_preemption.scen,
scenarios/cpus4_suspend_on_all.expected,
scenarios/cpus4_suspend_on_all.scen,
scenarios/cpus4_suspend_on_primary.expected,
scenarios/cpus4_suspend_on_primary.scen,
scenarios/cpus4_suspend_on_secondary.expected,
scenarios/cpus4_suspend_on_secondary.scen: New files.
Diffstat (limited to 'schedsim/shell/schedsim_smpsimple/printheir_executing.c')
-rw-r--r-- | schedsim/shell/schedsim_smpsimple/printheir_executing.c | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/schedsim/shell/schedsim_smpsimple/printheir_executing.c b/schedsim/shell/schedsim_smpsimple/printheir_executing.c new file mode 100644 index 0000000..b0855d3 --- /dev/null +++ b/schedsim/shell/schedsim_smpsimple/printheir_executing.c @@ -0,0 +1,31 @@ +/* + * printheir_executing + * + * COPYRIGHT (c) 1989-2010. + * On-Line Applications Research Corporation (OAR). + * + * The license and distribution terms for this file may be + * found in the file LICENSE in this distribution or at + * http://www.rtems.com/license/LICENSE. + * + * $Id$ + */ + +#include <stdio.h> +#include <rtems.h> + +void PRINT_EXECUTING() { + printf( + " Thread Executing: 0x%08x priority=%ld\n", + _Thread_Executing->Object.id, + (long) _Thread_Executing->current_priority + ); +} + +void PRINT_HEIR() { + printf( + " Thread Heir: 0x%08x priority=%ld\n", + _Thread_Heir->Object.id, + (long) _Thread_Heir->current_priority + ); +} |