= RTEMS Trace Tool = RTEMS Trace Tool - trace your application in RTEMS The RTEMS trace tool it's a tool that allows users to integrate tracing into their applications. TBD = Main configuration file – default: rtems-trace.cfg = In order for the rtems-trace tool to function correctly the user must provide a configuration file which should have the following format and include the following sections: include "path_to_an_API_config_file" This section specifies paths to other configuration files (called API configuration files) which contain information that is needed for the encoding of data and generation of ID's (functions ID, manager ID, API id etc). The section “API configuration files” explains what these configuration files should contain. Check this for an example. rtems-functions: list of comma separated function names This section should contain a list of comma separated function names that the user wants to trace. Check this for an example. rtems-managers: list of comma separated manager names This section should contain a list of comma separated manager names. The manager names should be specified like this: API_name-manager_name. This is to help the user to specify more easily hole sets of functions. Ex: If the user wants to trace all the functions from the task manager from the Classic API then he could do this: rtems-manager: classic-task Rather than doing this: rtems-functions: rtems_task_create, rtems_task_ident rtems_task_self, rtems_task_start rtems_task_restart, rtems_task_delete rtems_task_suspend, rtems_task_resume rtems_task_is_suspended, rtems_task_set_priority rtems_task_mode, rtems_task_get_note rtems_task_set_note, rtems_task_wake_after rtems_task_wake_when, rtems_iterate_over_all_threads rtems_task_variable_add, rtems_task_variable_get rtems_task_variable_delete I think you got the point. :) rtems-libraries: list of comma separated library names This section should contain a list of comma separated library names. Check this for an example. rtems-symbols-path: path to the folder containing the symbols files This section should contain a valid path to a directory containing the symbols files. The symbols files (functions.sym, structs.sym, typedefs.sym, unions.sym) contain information, as their name suggest, about functions signature, struct, typedef and union definition. These files are specific to a library and should be found in a directory that has the same name as the library from which the files resulted. Below is a sample configuration file. # This is a comment. # Sample configuration file # Include section include "rtems_trace_classic.cfg" include "rtems_trace_posix.cfg" # The user can specify just some functions specific to an API to trace # or a hole set of functions specific to a manager from an API. # Specify some functions. rtems-functions: rtems_task_create, rtems_task_delete # Specify a manager from an API. # API_name-manager_name rtems-api: classic-task, classic-interrupt, classic-clock, classic-timer, classic-semaphore, classic-message , classic-event, classic-signal, classic-io, classic-init, posix-mutex, posix-semaphore, posix-clock, posix-timer, posix-condvar, posix-scheduler, posix-message # Specify a path # The path to the symbols files. rtems-symbols-path: /home/cocan/Faculta/RTEMS/gsoc_2009/branch-rtems-trace/rtems-trace/bin/rtems-trace/symbols/librtems/ = API configuration file =