* eran...@google.com <eran...@google.com> wrote:

> This patch adds support for randomizing the sampling period.  Randomization 
> is very useful to mitigate the bias that exists with sampling. The random 
> number generator does not need to be sophisticated. This patch uses the 
> builtin random32() generator.

> +     if (width > 63 || attr->freq)
> +             return -EINVAL;

Why not for freq counters? Those are semi-randomized already, but it might 
make sense to make them 'more' randomized in special circumstances. That would 
also allow us to enable the randomization in perf top and perf record, by 
default.

Without that we'd have no immediate usecase and no way to ensure that this 
code works as intended.

Thanks,

        Ingo

------------------------------------------------------------------------------
Download Intel&#174; 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