Skip to content

Fix overflow when applying tsc2nsec calculations

Tzvetomir Stoyanov (VMware) linux-trace-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 6 repliesIn review
  2. v13 patches 3 repliesSuperseded

Changes in v2 from the cover letter

- Optimize the logic for getting the timestamp of the first recorded event.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3trace-cmd library: Add new trace-cmd library APIs for guest ts correctionslib/trace-cmd/include/private/trace-cmd-private.h lib/trace-cmd/trace-input.c lib/trace-cmd/trace-timesync.c+116 -1210 replies
2/3trace-cmd library: Add check before applying tsc2nsec offsetlib/trace-cmd/trace-input.c+8 -25 replies
3/3trace-cmd: Get the timestamp of the first recorded event as TSC offsettracecmd/include/trace-local.h tracecmd/trace-record.c+122 -311 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/3] Fix overflow when applying tsc2nsec calculations

Verify that applying tsc2nsec corrections on the recorded timestamps will not cause an overflow. When recording the trace, in case of tsc2nsec clock, get the first TSC timestamp as offset to be used in tsc2nsec conversion.

v2 changes:
- Optimize the logic for getting the timestamp of the first recorded event.

Tzvetomir Stoyanov (VMware) (3):
trace-cmd library: Add new trace-cmd library APIs for guest ts
corrections
trace-cmd library: Add check before applying tsc2nsec offset
trace-cmd: Get the timestamp of the first recorded event as TSC offset

 .../include/private/trace-cmd-private.h       |  18 ++-
 lib/trace-cmd/trace-input.c                   | 116 ++-----------
 lib/trace-cmd/trace-timesync.c                | 113 ++++++++++---
 tracecmd/include/trace-local.h                |   1 +
 tracecmd/trace-record.c                       | 152 ++++++++++++++----
 5 files changed, 246 insertions(+), 154 deletions(-)
Signature · 1 line
2.30.2