[lkml]   [2010]   [Mar]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH] perf_events: add sampling period randomization support (v2)

* <> 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

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



 \ /
  Last update: 2010-03-04 18:21    [W:0.054 / U:4.108 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site