5
Last change
on this file since 718b230 was
29ad92c5,
checked in by Chris Johns <chrisj@…>, on 03/23/15 at 06:19:01
|
trace-linker: Add options, names, enables, and triggers.
Move the options to a section so an option can be a single line. This
gives the user the ability to localise specific configurations in a
top level configuration file.
Provide support for names, enables and triggers. Names is an array of
names of the trace functions. The table is sorted and you can use an
index to reference the trace function. There is a @FUNC_INDEX@ macro
that is replaced with the trace function's index. Enables is a bitmap
of default trace enabled states for all trace functions. Triggers is
a bitmap of default triggers bit states for each trace function.
Generators can use these bitmaps to control functionality.
Currently the bitmaps are const but a generator option can be added
to disable the const and allow the capture engine access to update
the bitmaps.
|
-
Property mode set to
100644
|
File size:
1.3 KB
|
Line | |
---|
1 | ; |
---|
2 | ; RTEMS Trace Linker Test Configuration. |
---|
3 | ; |
---|
4 | ; We must provide a top level trace section. |
---|
5 | ; |
---|
6 | [tracer] |
---|
7 | ; |
---|
8 | ; Name of the trace. |
---|
9 | ; |
---|
10 | name = RTEMS Trace Linker Test |
---|
11 | ; |
---|
12 | ; The BSP. |
---|
13 | ; |
---|
14 | bsp = sparc/sis |
---|
15 | ; |
---|
16 | ; Functions to trace. |
---|
17 | ; |
---|
18 | traces = test-trace, test-trace-funcs, rtems-api-task |
---|
19 | ; |
---|
20 | ; Specify the options. |
---|
21 | ; |
---|
22 | options = test-options |
---|
23 | ; |
---|
24 | ; Define the function sets. These are the function's that can be |
---|
25 | ; added to the trace lists. |
---|
26 | ; |
---|
27 | functions = test-trace-funcs, rtems-api |
---|
28 | ; |
---|
29 | ; Include RTEMS Trace support. |
---|
30 | ; |
---|
31 | include = rtems.ini, rtld-base.ini |
---|
32 | |
---|
33 | ; |
---|
34 | ; Options can be defined here or on the command line. |
---|
35 | ; |
---|
36 | [trace-options] |
---|
37 | all-funcs = true |
---|
38 | verbose = true |
---|
39 | |
---|
40 | ; |
---|
41 | ; User application trace example. |
---|
42 | ; |
---|
43 | [test-trace] |
---|
44 | generator = printf-generator |
---|
45 | ; Just here for testing. |
---|
46 | trace = test_trace_3 |
---|
47 | |
---|
48 | [test-trace-funcs] |
---|
49 | ; Parsed via the 'function-set', not parse as a 'trace'. |
---|
50 | headers = test-headers |
---|
51 | header = '#include "test-trace-2.h"' |
---|
52 | defines = test-defines |
---|
53 | define = "#define TEST_TRACE_2 2" |
---|
54 | signatures = test-signatures |
---|
55 | ; Parsed via the 'trace', not parsed as a function-set |
---|
56 | trace = test_trace_1, test_trace_2 |
---|
57 | |
---|
58 | [test-headers] |
---|
59 | header = '#include "test-trace-1.h"' |
---|
60 | |
---|
61 | [test-defines] |
---|
62 | define = "#define TEST_TRACE_1 1" |
---|
63 | |
---|
64 | [test-signatures] |
---|
65 | test_trace_1 = void, int |
---|
66 | test_trace_2 = test_type_2, test_type_1 |
---|
67 | test_trace_3 = float, float* |
---|
Note: See
TracBrowser
for help on using the repository browser.