perf report: Output non-zero offset for decompressed records

Print offset of PERF_RECORD_COMPRESSED record instead of zero for
decompressed records in raw trace dump (-D option of perf-report):

  0x17cf08 [0x28]: event: 9

instead of:

  0 [0x28]: event: 9

The fix is not critical, because currently file_pos for compressed
events is used in perf_session__process_event only to show offsets
in the raw dump.

This patch was separated from patchset:

and was already rewieved.

Reviewed-by: Riccardo Mancini <>
Signed-off-by: Alexey Bayduraev <>
Tested-by: Riccardo Mancini <>
Acked-by: Andi Kleen <>
Acked-by: Jiri Olsa <>
Acked-by: Namhyung Kim <>
Cc: Adrian Hunter <>
Cc: Alexander Antonov <>
Cc: Alexander Shishkin <>
Cc: Alexei Budankov <>
Cc: Ingo Molnar <>
Cc: Peter Zijlstra <>
Signed-off-by: Arnaldo Carvalho de Melo <>
1 file changed