Windows 7 support for current PAPI

Open discussion of PAPI.

Windows 7 support for current PAPI

Postby Robert Bernecky » Thu May 01, 2014 11:35 am

Thanks to some pointers from Phil Mucci, I now have a Windows 7 KMDF
kernel driver that sets CR4[PCE], allowing access to performance counter
registers in user mode, and setting of MSRs to permit event

I am going to attempt to integrate this stuff into the current PAPI
(I'm running with papi-4.1.3, because it sort-of had Windows
support in it already). Any suggestions on things I should or should
not do with the current PAPI are very welcome.

Robert Bernecky
Posts: 1
Joined: Thu Mar 27, 2014 5:38 pm

Re: Windows 7 support for current PAPI

Postby James Ralph » Thu May 01, 2014 1:04 pm

Hi Bob,

I still need to finish digesting the email thread you and Phil had,
but can offer some general impressions.

I take it you're content with system-wide counts? IIRC there is no way
to save the performance registers at context switch.

At the time one of the biggest issues I had was the visual C compiler
didn't support a few C99 constructs that appear widely in the code.
I'm not sure if this has changed, but at the time it appeared Microsoft
had no plans to add support. I vaguely recall trying to compile
the code as C++ to get around this?

Any code under $(papi)/src/libpfm4 is an external library and we prefer
to keep that in sync with the upstream codebase.

James Ralph
Posts: 20
Joined: Tue Aug 25, 2009 2:43 pm

Re: Windows 7 support for current PAPI

Postby zinsavage123 » Fri Jun 13, 2014 3:55 am

I am curious about this one myself. Did you ever get it figured out or answered exactly?
Posts: 1
Joined: Fri Jun 13, 2014 3:51 am

Return to General discussion (read-only)

Who is online

Users browsing this forum: No registered users and 1 guest