Re: new seccomp mode aims to improve performance

2020-06-01 Thread Kees Cook
On Sun, May 31, 2020 at 10:19:15AM -0700, Alexei Starovoitov wrote: > Thank you for crafting a benchmark. > The only thing that it's not doing a fair comparison. > The problem with that patch [1] that is using: > > static noinline u32 __seccomp_benchmark(struct bpf_prog *prog, >

Re: new seccomp mode aims to improve performance

2020-05-31 Thread Alexei Starovoitov
On Fri, May 29, 2020 at 12:27:03PM -0700, Kees Cook wrote: > On Fri, May 29, 2020 at 09:09:28AM -0700, Kees Cook wrote: > > On Fri, May 29, 2020 at 08:43:56AM -0700, Alexei Starovoitov wrote: > > > I don't think your hunch at where cpu is spending cycles is correct. > > > Could you please do two ex