Common Trace Format - Failed to produce correct trace output #24457
Labels
area: Tracing
Tracing
bug
The issue is a bug, or the PR is fixing a bug
priority: medium
Medium impact/importance bug
Describe the bug
We wanted to produce a CTF trace via UART, so we enabled it in Kconfig and used minicom to capture the output. When trying to open the file in Trace compass it fails to import the file when the metadata file is used, otherwise it can import the file but can't understand it. It fails to be correctly parsed when run through babeltrace.
The output is from running the test program in tests/subsys/tracing. The print statements in the test program was removed.
The error message from babeltrace is:
Looking through the metadata file no such event is defined.
What have you tried to diagnose or workaround this issue?
We started to add event handlers for each of the events that babeltrace complained about. The number of events added quickly grew, so we wrote a script to add all events between 0 - 255 that were not already defined. All the events we added are defined as follows:
When using this modified metadata file we get the following output:
babeltrace output.txt
As you can see there are a lot of events captured that are not defined in the default metadata file. As well as this warning with differing values:
These three warnings are most likely related to us shutting down the board:
To Reproduce
Steps to reproduce the behavior:
Expected behavior
By running the supplied test program we expected to be able to produce a correct trace file and analyze it in Trace compass or babeltrace.
Impact
We can't progress with our Thesis since we need to be able to analyze the trace output.
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: