On 08/09/2010 11:41 AM, Kristen Walcott wrote:
 > Hi,
 >
 > I'm trying to modify the sample period during test execution (after
 > perf_event_open has been called) from code similar to pebs_smpl.  I
 > would like to do it based on certain conditions as the samples are read
 > in.  Is there a simple way to do this?
 > I saw in kernel/perf_event.c that there is a perf_adjust_period
 > function, but I couldn't find anything similar at the user level.

I believe the perf_adjust_period function is used only internally for 
regulating the counter overflow interrupt rate.

As far as I know, there's no way to change the period after the event 
has been opened.  You could close and reopen the event with the new 
period, but you probably thought of that already.

- Corey

------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
perfmon2-devel mailing list
perfmon2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/perfmon2-devel

Reply via email to