summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2014-09-21 14:29:56 +1000
committerChris Johns <chrisj@rtems.org>2014-09-21 14:29:56 +1000
commit5f80bc480047e847f59443fab40d3b887747633e (patch)
treeb57d684d01d462eefca75236f14086f74bc229dc
parentcf50e5776feb5bfcb0295ae8547679c738cd2623 (diff)
Add a deep trace of the both hello world.
-rw-r--r--hello/both_hello/hello-deep.ini48
-rw-r--r--hello/both_hello/hello.ini3
-rw-r--r--hello/both_hello/wscript5
3 files changed, 55 insertions, 1 deletions
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 <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
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',