From 5f80bc480047e847f59443fab40d3b887747633e Mon Sep 17 00:00:00 2001 From: Chris Johns Date: Sun, 21 Sep 2014 14:29:56 +1000 Subject: Add a deep trace of the both hello world. --- hello/both_hello/hello-deep.ini | 48 +++++++++++++++++++++++++++++++++++++++++ hello/both_hello/hello.ini | 3 ++- hello/both_hello/wscript | 5 +++++ 3 files changed, 55 insertions(+), 1 deletion(-) create mode 100644 hello/both_hello/hello-deep.ini diff --git a/hello/both_hello/hello-deep.ini b/hello/both_hello/hello-deep.ini new file mode 100644 index 0000000..e3f486b --- /dev/null +++ b/hello/both_hello/hello-deep.ini @@ -0,0 +1,48 @@ +; +; 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, verbose +options = dump-on-error +; +; Functions to trace. +; +traces = hello-deep-trace +traces = rtems-score-object-all +traces = rtems-score-thread-all +traces = rtems-score-heap-all +traces = rtems-score-coremutex-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 " + +[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 index 6790d74..4cde2b6 100644 --- a/hello/both_hello/hello.ini +++ b/hello/both_hello/hello.ini @@ -12,7 +12,8 @@ name = Hello RTEMS Tracer ; ; Options can be defined here or on the command line. ; -options = all-funcs, verbose +;options = verbose +options = dump-on-error ; ; Functions to trace. ; diff --git a/hello/both_hello/wscript b/hello/both_hello/wscript index 33187c4..2cb1d76 100644 --- a/hello/both_hello/wscript +++ b/hello/both_hello/wscript @@ -16,6 +16,11 @@ def build(bld): 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', -- cgit v1.2.3