diff options
author | Joel Sherrill <joel@rtems.org> | 2022-02-22 14:08:25 -0600 |
---|---|---|
committer | Joel Sherrill <joel@rtems.org> | 2022-02-23 16:17:54 -0600 |
commit | 3c7094087ed544beff2535a5190deb5bcdc9326e (patch) | |
tree | 5f5b7f465e5c36f4927b717c113d7d129943e891 /hello | |
parent | ticker_stackhk: Add variant which prints stack and cpu usage reports (diff) | |
download | rtems-examples-3c7094087ed544beff2535a5190deb5bcdc9326e.tar.bz2 |
tracing: Add a special ticker variant to show tracing.
This was complicating both_hello which was designed for another
purpose entirely.
Diffstat (limited to 'hello')
-rw-r--r-- | hello/both_hello/hello-deep.ini | 47 | ||||
-rw-r--r-- | hello/both_hello/hello.ini | 45 | ||||
-rw-r--r-- | hello/both_hello/wscript | 22 |
3 files changed, 11 insertions, 103 deletions
diff --git a/hello/both_hello/hello-deep.ini b/hello/both_hello/hello-deep.ini deleted file mode 100644 index 84466fc..0000000 --- a/hello/both_hello/hello-deep.ini +++ /dev/null @@ -1,47 +0,0 @@ -; -; RTEMS Trace Linker Configuration: hello deep -; -; This script configure the both hello example to perform deep -; tracing of RTEMS via the printf trace generator. -; -[tracer] -; -; Name of the trace. -; -name = Hello Deep RTEMS Tracer -; -; Options can be defined here or on the command line. -; -;options = verbose -; -; Functions to trace. -; -traces = hello-deep-trace -traces = rtems-score-object-all -traces = rtems-score-thread-all -traces = rtems-score-threadq-all -traces = rtems-score-heap-all -; -; Define the function sets. These are the function's that can be -; added to the trace lists. -; -functions = hello-deep-trace -functions = rtems-score -; -; Include RTEMS Trace support. -; -include = rtems.ini, rtld-base.ini - -; -; User application trace example. -; -[hello-deep-trace] -generator = printk-generator -signatures = hello-signatures -trace = exit, Init, POSIX_Init -header = "#include <rtems.h>" - -[hello-signatures] -exit=void, int -Init = void, rtems_task_argument -POSIX_Init = void*, void* diff --git a/hello/both_hello/hello.ini b/hello/both_hello/hello.ini deleted file mode 100644 index 7056414..0000000 --- a/hello/both_hello/hello.ini +++ /dev/null @@ -1,45 +0,0 @@ -; -; RTEMS Trace Linker Configuration: hello -; -; This script configure the both hello example to perform some -; tracing via the printf trace generator. -; -[tracer] -; -; Name of the trace. -; -name = Hello RTEMS Tracer -; -; Options can be defined here or on the command line. -; -;options = verbose -; -; Functions to trace. -; -traces = hello-trace -; -; Define the function sets. These are the function's that can be -; added to the trace lists. -; -functions = hello-trace -; -; Include RTEMS Trace support. -; -include = rtems.ini, rtld-base.ini - -; -; User application trace example. -; -[hello-trace] -generator = printk-generator -signatures = hello-signatures -trace = exit, Init, POSIX_Init, _Thread_Initialize -header = "#include <rtems.h>" -header = "#include <rtems/score/objectimpl.h>" -header = "#include <rtems/score/scheduler.h>" - -[hello-signatures] -exit=void, int -Init = void, rtems_task_argument -POSIX_Init = void*, void* -_Thread_Initialize = bool, Objects_Information*, Thread_Control*, const Scheduler_Control*, void*, size_t, bool, Priority_Control, bool, Thread_CPU_budget_algorithms, Thread_CPU_budget_algorithm_callout, uint32_t, Objects_Name diff --git a/hello/both_hello/wscript b/hello/both_hello/wscript index 2cb1d76..5e784b4 100644 --- a/hello/both_hello/wscript +++ b/hello/both_hello/wscript @@ -10,17 +10,17 @@ import rtems_waf.rtems as rtems def build(bld): rtems.build(bld) - if rtems.check_env(bld, 'RTEMS_TLD'): - bld(features = 'c rtrace', - target = 'both_hello.texe', - source = ['test.c'], - rtrace_cfg = '../../hello/both_hello/hello.ini', - rtrace_wrapper = 'hello-test') - bld(features = 'c rtrace', - target = 'hello-deep.texe', - source = ['test.c'], - rtrace_cfg = '../../hello/both_hello/hello-deep.ini', - rtrace_wrapper = 'hello-deep') +# if rtems.check_env(bld, 'RTEMS_TLD'): +# bld(features = 'c rtrace', +# target = 'both_hello.texe', +# source = ['test.c'], +# rtrace_cfg = '../../hello/both_hello/hello.ini', +# rtrace_wrapper = 'hello-test') +# bld(features = 'c rtrace', +# target = 'hello-deep.texe', +# source = ['test.c'], +# rtrace_cfg = '../../hello/both_hello/hello-deep.ini', +# rtrace_wrapper = 'hello-deep') bld(features = 'c cprogram', target = 'both_hello.exe', |