diff options
| author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2026-06-02 20:45:14 -0300 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2026-06-03 16:31:04 -0300 |
| commit | 078fc0430bf17e2a571e36877c1942f6c0860524 (patch) | |
| tree | 7c6a759768b938d5eeea31a080916ff7f7910434 /tools/perf/scripts/python/bin/stackcollapse-record | |
| parent | 1e2c83f732deb329ebce23e26cbc482f4c4bf194 (diff) | |
perf test: Add file offset diagnostic test for corrupted perf.data
Add a shell test that verifies the file_offset diagnostic messages
work correctly when perf encounters corrupted events.
The test corrupts a MMAP2 event's size field in a recorded perf.data
file, then checks that perf report produces warning messages that
include both the file offset (e.g. "at offset 0x2738:") and the
event type name with numeric id (e.g. "MMAP2 (10)").
This exercises the diagnostic improvements from the file_offset
series, which retrofitted all skip/stop/error messages to include
the position and type of the problematic event.
Reviewed-by: Ian Rogers <irogers@google.com>
Assisted-by: Claude:claude-opus-4.6
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions
