From 29ad92c524be36364ad2e987a3bcf16f753dd88a Mon Sep 17 00:00:00 2001 From: Chris Johns Date: Mon, 23 Mar 2015 17:19:01 +1100 Subject: 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. --- linkers/test-trace.ini | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'linkers/test-trace.ini') diff --git a/linkers/test-trace.ini b/linkers/test-trace.ini index a6205d2..64da320 100644 --- a/linkers/test-trace.ini +++ b/linkers/test-trace.ini @@ -13,14 +13,14 @@ name = RTEMS Trace Linker Test ; bsp = sparc/sis ; -; Options can be defined here or on the command line. -; -options = all-funcs, verbose -; ; Functions to trace. ; traces = test-trace, test-trace-funcs, rtems-api-task ; +; Specify the options. +; +options = test-options +; ; Define the function sets. These are the function's that can be ; added to the trace lists. ; @@ -30,6 +30,13 @@ functions = test-trace-funcs, rtems-api ; include = rtems.ini, rtld-base.ini +; +; Options can be defined here or on the command line. +; +[trace-options] +all-funcs = true +verbose = true + ; ; User application trace example. ; -- cgit v1.2.3