Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf: cs-etm: Fixes issues driving the trace decoder.
The routine in cs-etm.c that was driving trace data through the decoder was ignoring an error return, resulting in an infinite loop. The cs-etm routines were assuming that the trace blocks in perf.data were contiguous trace and driving the decoder accordingly. As they cannot be contiguous the decoder must be reset between blocks to force re-sync and ensure that only valid trace is decoded. Adds reset call to cs-etm-decoder.c API and appropriate call in cs-etm.c between blocks. Signed-off-by: Mike Leach <mike.leach@linaro.org>
- Loading branch information
1 parent
8ca6ef5
commit f78c495
Showing
3 changed files
with
25 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters