lkml.org 
[lkml]   [2011]   [Oct]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH 07/12] perf_events: add LBR software filter support for Intel X86
    > Ah, nice. Maybe we need another test binary, since current one is
    > just ensuring the output of objdump and decoder is same.
    > anyway it's not so difficult if it feeds random binaries to
    > ensure the decoder doesn't access bad address.

    Pure /dev/urandom is not good because it cannot be ever reproduced.
    Better use a PRNG with random seed from urandom, but print the seed.

    In addition to random I would do fuzzing: take an existing stream
    and just corrupt some bits and groups of bits. This will exercise different
    paths. In fact fuzzing is probably better than random for most tests.

    Not sure it's needed to run on every build though, just checks
    now and then should be sufficient.

    -Andi


    \
     
     \ /
      Last update: 2011-10-10 16:47    [W:3.358 / U:1.568 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site