On Fri, Aug 26, 2011 at 5:05 PM, Stijn Polfliet
<stijn.polfl...@elis.ugent.be> wrote:
> On 08/26/2011 04:59 PM, stephane eranian wrote:
>>
>> On Fri, Aug 26, 2011 at 4:52 PM, Stijn Polfliet
>> <stijn.polfl...@elis.ugent.be>  wrote:
>>>
>>> Hi All,
>>>
>>> Is it possible using libpfm4-1 to get the register values belonging to a
>>> PEBS sample?
>>>
>> To do that you need kernel support. There is no patch for this just yet.
>> For now, the kernel only exports the PEBS IP (when requesting precise_ip).
>
> Is there any experimental work going on for this? Any pointers on how to
> implement this or who I should contact?
>
It's been on my list of things to do for a while. The issue is not that simple.
You have to look at the bigger picture. You may want to extract register
state from regular sampling as well. There must be only one framework
for both. The other aspect is that machine state is architecture specific
yet perf_event is generic, thus it's not so trivial.

I will propose something to solve the bigger picture next month.
Stay tuned. I will post the patch on LKML and cross post on this
list as well.


> Thanks!
> Stijn
>>
>>
>>> I have successfully extracted the instruction pointer (using the
>>> perf_util.c helper), but I would like to know the values of eax, ebx,
>>> etc...
>>> Is there any way to directly access the PEBS Buffer from userspace? I
>>> thought to find this in the mmapp'ed region but I must be
>>> misunderstanding something.
>>>
>>> Thanks for your help,
>>> Stijn
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> EMC VNX: the world's simplest storage, starting under $10K
>>> The only unified storage solution that offers unified management
>>> Up to 160% more powerful than alternatives and 25% more efficient.
>>> Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev
>>> _______________________________________________
>>> perfmon2-devel mailing list
>>> perfmon2-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/perfmon2-devel
>>>
>

------------------------------------------------------------------------------
EMC VNX: the world's simplest storage, starting under $10K
The only unified storage solution that offers unified management 
Up to 160% more powerful than alternatives and 25% more efficient. 
Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev
_______________________________________________
perfmon2-devel mailing list
perfmon2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/perfmon2-devel

Reply via email to