Calling PAPI C's interface[1] seems the easiest way to deal with this, since it would avoid having to deal with too many low level details.
On 25 December 2013 00:28, Elliot Saba <[email protected]> wrote: > I don't know about inline assembly, but worst-case scenario, you can write > whatever you need in C and call it via ccall. Making a dynamic library with > whatever primitive calls you need should be quite easy. > -E > > > On Tue, Dec 24, 2013 at 1:19 PM, Dan Luu <[email protected]> wrote: >> >> Is there way to write inline assembly or otherwise emit the rdpmc >> instruction? >> >> There are some simple TLB/cache performance experiments I want to run. >> Julia seems as good as C for this, except that I want to be able to >> look at perf counters and probably the TSC, too, and I can't find >> documentation on how to do this. >> >> >> Thanks, >> Dan > >
