On Thu, May 21, 2020 at 6:21 PM Alexei Starovoitov
wrote:
>
> On Sun, May 17, 2020 at 12:57:26PM -0700, Andrii Nakryiko wrote:
> > +
> > +static inline int roundup_len(__u32 len)
> > +{
> > + /* clear out top 2 bits */
> > + len <<= 2;
> > + len >>= 2;
> > + /* add length prefix */
On Sun, May 17, 2020 at 12:57:26PM -0700, Andrii Nakryiko wrote:
> +
> +static inline int roundup_len(__u32 len)
> +{
> + /* clear out top 2 bits */
> + len <<= 2;
> + len >>= 2;
> + /* add length prefix */
> + len += RINGBUF_META_LEN;
> + /* round up to 8 byte alignment */
Extend bench framework with ability to have benchmark-provided child argument
parser for custom benchmark-specific parameters. This makes bench generic code
modular and independent from any specific benchmark.
Also implement a set of benchmarks for new BPF ring buffer and existing perf
buffer. 4 b