Re: [PATCH 39/41] perf tools: Allow TSC conversion on any arch

From: Peter Zijlstra
Date: Tue Jul 15 2014 - 12:17:52 EST


On Tue, Jul 15, 2014 at 12:20:03PM -0300, Arnaldo Carvalho de Melo wrote:
> Em Mon, Jul 14, 2014 at 01:03:03PM +0300, Adrian Hunter escreveu:
> > It is possible to record a perf.data file on
> > one architecture and process it on another.
> > Consequently, TSC conversion functions need
> > to be moved out of the arch directory.
>
> Can you state where a TSC is stored in perf.data, and how in the !x86
> arch this will be detected so that those functions will be used?

So there's nothing intrinsically x86/tsc about the perf interface here,
although that's currently the only one implementing this thing.

Other archs could equally expose their 'cycle' counter etc..

Attachment: pgpwCpzp5OO9o.pgp
Description: PGP signature