Linux Perf Users
 help / color / mirror / Atom feed
* combined usage of `--aio -z` corrupts perf.data files - fallout from COMPRESSED2?
@ 2025-09-10  8:51 Milian Wolff
  2025-09-12 12:31 ` Milian Wolff
  0 siblings, 1 reply; 2+ messages in thread
From: Milian Wolff @ 2025-09-10  8:51 UTC (permalink / raw)
  To: linux-perf-users; +Cc: Chun-Tse Shao, acme

Hey all,

for some context, see https://github.com/KDAB/hotspot/issues/
736#issuecomment-3273734660

The gist is the following:

```
$ perf record --call-graph dwarf -z --aio -- ls
...
[ perf record: Captured and wrote 0.005 MB perf.data, compressed (original 
0.101 MB, ratio is 28.747) ]
$ perf script
Couldn't decompress data
0x598 [0xe53]: failed to process type: 83 [Operation not permitted]
```

If you remove the explicit `--aio` while keeping compression via `-z` enabled, 
then the result file can be parsed. Enabling `--aio` but disabling `-z` also 
works as expected.

My understanding so far was that `-z` implies `--aio`, and that there should 
be zero semantic difference between `-z` and `-z --aio`. But apparently this 
was a misunderstanding on my end.

I suspect that the above issue is related to the recent addition of the 
COMPRESSED2 record type, since commands combining both of these flags used to 
work fine until very recently.

Cheers
-- 
Milian Wolff | milian.wolff@kdab.com | Senior Software Engineer
KDAB (Deutschland) GmbH, a KDAB Group company
Tel: +49-30-521325470
KDAB - Trusted Software Excellence


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-09-12 12:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-10  8:51 combined usage of `--aio -z` corrupts perf.data files - fallout from COMPRESSED2? Milian Wolff
2025-09-12 12:31 ` Milian Wolff

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox