On Tue, 2010-03-02 at 11:53 +0100, Robert Richter wrote:
> 
> Only adding the random value will lead to longer sample periods on
> average. To compensate this you could calculate something like:
> 
>          event->hw.sample_period = event->attr.sample_period + (new_seed & 
> mask) - (mask >> 1);

Or cheat and do something like:

  sample_period ^= (new_seed & mask);


------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
perfmon2-devel mailing list
perfmon2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/perfmon2-devel

Reply via email to