Trace Buffering Demonstration
This post demonstrates trace buffering for the fileio sample testcase.
1) Setup Rtems for the sparc/erc32 architecture bsp pair. Refer to the quickstart section of rtems user manual documentation.
2) Download the fileio configuration file and store it on the top of the installed bsp’s directory.
3) Change the value of the keys: rtems-path and prefix according to your rtems installation. The rtems-path is the path to the bsp installation and prefix is the path to the tools used to build rtems.
cd into the directory where you’ve downloaded the configuration file and run the following commands to generate traces:
BSP is configured with the following command.
The next two commands are used to link the fileio executable.The -B option signifies the use of the complete path to the required directory or file. Confirm the path of the fileio’s executable and object files in the last line of the command.
This is the trace linker command to generate and compile the wrapper c file for the application. The link command follows the escape sequence “–”. “-C” option denotes the name of the user configuration file and “-W” specifies the name of the wrapper c file.
The following command is used to run the application. Hit enter key quickly and type “s” and “root” and “pwd” to run the rtems shell. Use the rtrace staus, rtrace trace and rtrace save commands to know the status of the tracing, display the contents of the trace buffer and save the buffer to disk in the form of binary files.