simpleperf: Handle unused space in sample record
After kernel patch "0a9081cf0a1 perf/core: Add perf_sample_save_raw_data() helper",
the kernel may generate sample records with unused space
for tracepoint events (when PERF_SAMPLE_RAW isn't set).
A fix patch was sent to upstream (in
https://lkml.org/lkml/2024/5/28/1224).
Before that is accepted, work around this problem in simpleperf.
Bug: 335563897
Test: run simpleperf_unit_test
Change-Id: Ie9d36d6d0c10582f191a63fcb898cd32095f630a
2 files changed