Message ID | 20220427183226.1ae6f8f6@gandalf.local.home (mailing list archive) |
---|---|
State | Accepted |
Commit | 2fe1b7438cdabe8e260f41a197a58bc8f112876d |
Headers | show |
Series | trace-cmd library: Have clock source TAI parse to seconds | expand |
diff --git a/lib/trace-cmd/trace-input.c b/lib/trace-cmd/trace-input.c index 90bfa0f32984..442b1c5a6724 100644 --- a/lib/trace-cmd/trace-input.c +++ b/lib/trace-cmd/trace-input.c @@ -3868,7 +3868,8 @@ static void extract_trace_clock(struct tracecmd_input *handle, char *line) /* Clear usecs if not one of the specified clocks */ if (strcmp(clock, "local") && strcmp(clock, "global") && strcmp(clock, "uptime") && strcmp(clock, "perf") && - strncmp(clock, "mono", 4) && strcmp(clock, TSCNSEC_CLOCK)) + strncmp(clock, "mono", 4) && strcmp(clock, TSCNSEC_CLOCK) && + strcmp(clock, "tai")) handle->flags &= ~TRACECMD_FL_IN_USECS; }