From a84bd85489aaf966145d2d887efbde9b166d9eb2 Mon Sep 17 00:00:00 2001 From: Heinrich Fink Date: Sat, 2 Jan 2021 17:11:42 +0100 Subject: [PATCH] trace-read: Fix high-prec vblank timestamps Do not subtract `min_file_ts` when assigning the high-prec vblank timestamp. This fixes a regression of high-prec vblank TS not showing up, introduced by 93f2f67f963e8ea8e42c2199fa43c97477d409fd trace-read: do not modify timestamps in ftrace events --- src/trace-cmd/trace-read.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/trace-cmd/trace-read.cpp b/src/trace-cmd/trace-read.cpp index c5170bf3..c82f1c0b 100644 --- a/src/trace-cmd/trace-read.cpp +++ b/src/trace-cmd/trace-read.cpp @@ -1739,7 +1739,7 @@ static int trace_enum_events( trace_data_t &trace_data, tracecmd_input_t *handle unsigned long long val = pevent_read_number( pevent, ( char * )record->data + format->offset, format->size ); - trace_event.vblank_ts = val - trace_data.trace_info.min_file_ts; + trace_event.vblank_ts = val; } else if ( trace_event.name == trace_data.drm_vblank_event_str && format_name == trace_data.high_prec_str &&