Re: [PATCH v2 1/2] perf: Add sampling of the raw monotonic clock

2014-09-29 Thread Pawel Moll
On Fri, 2014-09-26 at 20:25 +0100, David Ahern wrote: > On 9/26/14, 9:05 AM, Pawel Moll wrote: > > To do the correlation you need both timestamps to be "taken" > > simultaneously: > > > > perf event user event > > -O--+-O--> t_mono > >

Re: [PATCH v2 1/2] perf: Add sampling of the raw monotonic clock

2014-09-26 Thread David Ahern
On 9/26/14, 9:05 AM, Pawel Moll wrote: To do the correlation you need both timestamps to be "taken" simultaneously: perf event user event -O--+-O--> t_mono : | : : V :

Re: [PATCH v2 1/2] perf: Add sampling of the raw monotonic clock

2014-09-26 Thread Pawel Moll
On Fri, 2014-09-26 at 15:38 +0100, Namhyung Kim wrote: > > Then I have loads of normal normal samples, timestamped with sched clock > > only, and every now and then one with both timestamps which then I can > > use for time correlation. The whole point is that the frequency of such > > "synchronisa

Re: [PATCH v2 1/2] perf: Add sampling of the raw monotonic clock

2014-09-26 Thread Namhyung Kim
2014-09-26 (금), 11:58 +0100, Pawel Moll: > On Fri, 2014-09-26 at 07:16 +0100, Namhyung Kim wrote: > > > It would be doable, I guess, but what > > > if someone *wants* to have sched clock as the timestamps source (because > > > it's cheap) but still be able to correlate them with userspace? In this

Re: [PATCH v2 1/2] perf: Add sampling of the raw monotonic clock

2014-09-26 Thread Pawel Moll
On Fri, 2014-09-26 at 07:16 +0100, Namhyung Kim wrote: > > It would be doable, I guess, but what > > if someone *wants* to have sched clock as the timestamps source (because > > it's cheap) but still be able to correlate them with userspace? In this > > case two separate timestamps are required to

Re: [PATCH v2 1/2] perf: Add sampling of the raw monotonic clock

2014-09-25 Thread Namhyung Kim
Hi Pawel, On Thu, 25 Sep 2014 11:49:58 +0100, Pawel Moll wrote: > On Wed, 2014-09-24 at 06:41 +0100, Namhyung Kim wrote: >> Hi Pawel, >> >> On Tue, 23 Sep 2014 18:03:06 +0100, Pawel Moll wrote: >> > This patch adds an option to sample raw monotonic clock >> > value with any perf event, with the

Re: [PATCH v2 1/2] perf: Add sampling of the raw monotonic clock

2014-09-25 Thread Pawel Moll
On Wed, 2014-09-24 at 06:41 +0100, Namhyung Kim wrote: > Hi Pawel, > > On Tue, 23 Sep 2014 18:03:06 +0100, Pawel Moll wrote: > > This patch adds an option to sample raw monotonic clock > > value with any perf event, with the the aim of allowing > > time correlation between data coming from perf an

Re: [PATCH v2 1/2] perf: Add sampling of the raw monotonic clock

2014-09-23 Thread Namhyung Kim
Hi Pawel, On Tue, 23 Sep 2014 18:03:06 +0100, Pawel Moll wrote: > This patch adds an option to sample raw monotonic clock > value with any perf event, with the the aim of allowing > time correlation between data coming from perf and > additional performance-related information generated in > users

[PATCH v2 1/2] perf: Add sampling of the raw monotonic clock

2014-09-23 Thread Pawel Moll
This patch adds an option to sample raw monotonic clock value with any perf event, with the the aim of allowing time correlation between data coming from perf and additional performance-related information generated in userspace. In order to correlate timestamps in perf data stream with events hap