[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <35e656a9-91d1-203d-44d4-ea5f002ad232@fb.com>
Date: Fri, 8 May 2020 09:40:10 -0700
From: Alexei Starovoitov <ast@...com>
To: Andrii Nakryiko <andriin@...com>, <bpf@...r.kernel.org>,
<netdev@...r.kernel.org>, <daniel@...earbox.net>
CC: <andrii.nakryiko@...il.com>, <kernel-team@...com>
Subject: Re: [PATCH bpf-next 3/3] selftest/bpf: add BPF triggring benchmark
On 5/8/20 12:05 AM, Andrii Nakryiko wrote:
>
> base : 9.200 ± 0.319M/s
> fentry : 8.955 ± 0.241M/s
> +SEC("fentry/__x64_sys_getpgid")
> +int bench_trigger_fentry(void *ctx)
> +{
> + __sync_add_and_fetch(&hits, 1);
> + return 0;
> +}
adding 'lock xadd' is not cheap.
I wonder how much of the delta come from it and from the rest of
trampoline.
Powered by blists - more mailing lists