On Tue, Jul 14, 2009 at 6:02 PM, Tanima Dey<dey_tr...@yahoo.com> wrote:
> Hi,
>
> I am using perfmon on Intel Core 2 Quad CPU Q6600 and trying to read event
> counters for L2 cache, such as, L2_LINES_IN, L2_IFETCH etc. I found the
> names of the events using pfm_get_event_name() function. But when I specify
> "L2_ST" in the pfm_find_full_event() to initiate the counters, it shows the
> error message:
>  "event invalid or missing unit mask".
>
> How can I find the unit mask for an event? I have used the function
> pfm_find_event_mask(), but it is still showing the error message "event
> invalid".
>
You ca use pfm_get_num_event_masks(). If it's zero, then no unit masks
are necessary.

> Although the pfm_get_event_name() function tells that L2 caches events are
> supported, are there any reasons why it is showing the error message?
>
Yes, you need to specify at least one unit masks when the events has some.

------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
perfmon2-devel mailing list
perfmon2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/perfmon2-devel

Reply via email to