[lkml]   [2015]   [Feb]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH 0/4] perf: add support for profiling jitted code
On Wed, Feb 11, 2015 at 12:42:41AM +0100, Stephane Eranian wrote:
> To enable synchronization of the runtime MMAPs with those recorded by
> the kernel on behalf of the perf tool, the runtime needs to timestamp
> any record in the dump file using the same time source. The current
> patch series is relying on Sonny Rao's posix-clock patch series
> posted on LKML in 2013. The link to the patches is:

At least for x86 you could use something like this:

We can re-create the perf_clock() from the tsc with the mult, shift and
offset provided in the perf userpage.

 \ /
  Last update: 2015-02-11 13:01    [W:0.144 / U:5.780 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site