Re: [PATCH 2/6] perf tools: Store clock references for -k/--clockid option

2020-08-03 Thread Jiri Olsa
On Mon, Aug 03, 2020 at 12:55:50PM +0900, Namhyung Kim wrote: SNIP > > diff --git a/tools/perf/Documentation/perf.data-file-format.txt > > b/tools/perf/Documentation/perf.data-file-format.txt > > index b6472e463284..c484e81987c7 100644 > > ---

Re: [PATCH 2/6] perf tools: Store clock references for -k/--clockid option

2020-08-02 Thread Namhyung Kim
On Thu, Jul 30, 2020 at 11:39:46PM +0200, Jiri Olsa wrote: > Adding new CLOCK_DATA feature that stores reference times > when -k/--clockid option is specified. > > It contains clock id and its reference time together with > wall clock time taken at the 'same time', both values are > in

Re: [PATCH 2/6] perf tools: Store clock references for -k/--clockid option

2020-07-31 Thread David Ahern
On 7/31/20 10:15 AM, Jiri Olsa wrote: >> It might also want to be implemented in a loop and iteration with minimal >> time delta is chosen to improve synchronization accuracy and also mitigate >> possible context switches between gettimeofday() and clock_gettime() calls. > right, we could make

Re: [PATCH 2/6] perf tools: Store clock references for -k/--clockid option

2020-07-31 Thread Jiri Olsa
On Fri, Jul 31, 2020 at 06:52:36PM +0300, Alexey Budankov wrote: > > On 31.07.2020 0:39, Jiri Olsa wrote: > > Adding new CLOCK_DATA feature that stores reference times > > when -k/--clockid option is specified. > > > > It contains clock id and its reference time together with > > wall clock time

Re: [PATCH 2/6] perf tools: Store clock references for -k/--clockid option

2020-07-31 Thread Alexey Budankov
On 31.07.2020 0:39, Jiri Olsa wrote: > Adding new CLOCK_DATA feature that stores reference times > when -k/--clockid option is specified. > > It contains clock id and its reference time together with > wall clock time taken at the 'same time', both values are > in nanoseconds. > > The format

[PATCH 2/6] perf tools: Store clock references for -k/--clockid option

2020-07-30 Thread Jiri Olsa
Adding new CLOCK_DATA feature that stores reference times when -k/--clockid option is specified. It contains clock id and its reference time together with wall clock time taken at the 'same time', both values are in nanoseconds. The format of data is as below: struct { u32 version; /*