[BOLT] Filter itrace from perf script mmap & task events #69585
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
perf2bolt launches a few perf script commands and stores the output in temporary files before processing the output and cleaning them up before it exits.
The command
perf script --show-mmap-events
outputs PERF_RECORD_MMAP2 and instruction tracing data but when processed it only looks for PERF_RECORD_MMAP2 and the instruction tracing data is ignored. This is fine for small amounts of instruction trace data but when I've recorded Arm ETM or Intel PT AUX I get lots of itBy adding
--no-itrace
is will just show the PERF_RECORD_MMAP2 records and will save on time running theperf script
, disk space storing the output & time parsing the output.It is the same for
perf script --show-task-events
where BOLT is only interested in the PERF_RECORD_COMM & PERF_RECORD_FORK records.Data