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

2014-09-29 Thread Pawel Moll
On Mon, 2014-09-29 at 16:28 +0100, Peter Zijlstra wrote: > On Thu, Sep 18, 2014 at 03:34:32PM +0100, Pawel Moll wrote: > > @@ -4456,6 +4459,13 @@ static void __perf_event_header__init_id(struct > > perf_event_header *header, > > data->cpu_entry.cpu = raw_smp_processor_id(); > >

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

2014-09-29 Thread Peter Zijlstra
On Thu, Sep 18, 2014 at 03:34:32PM +0100, Pawel Moll wrote: > @@ -4456,6 +4459,13 @@ static void __perf_event_header__init_id(struct > perf_event_header *header, > data->cpu_entry.cpu = raw_smp_processor_id(); > data->cpu_entry.reserved = 0; > } > + > + i

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

2014-09-18 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