Skip to content

Commit

Permalink
trace-read: Fix high-prec vblank timestamps
Browse files Browse the repository at this point in the history
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

    93f2f67
    trace-read: do not modify timestamps in ftrace events
  • Loading branch information
hfink authored and mikesart committed Jan 2, 2021
1 parent 33bc1c9 commit a84bd85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/trace-cmd/trace-read.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 &&
Expand Down

0 comments on commit a84bd85

Please sign in to comment.