[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <38abab69fb724ebb25715bd362b4d187ae37cdf2.camel@chromium.org>
Date: Wed, 09 Dec 2020 14:23:57 +0100
From: Florent Revest <revest@...omium.org>
To: KP Singh <kpsingh@...nel.org>
Cc: bpf@...r.kernel.org, ast@...nel.org, daniel@...earbox.net,
andrii@...nel.org, kpsingh@...omium.org,
Martin KaFai Lau <kafai@...com>, linux-kernel@...r.kernel.org
Subject: Re: [PATCH bpf-next v3 2/4] bpf: Expose bpf_get_socket_cookie to
tracing programs
On Tue, 2020-12-08 at 23:08 +0100, KP Singh wrote:
> My understanding is you can simply always call sock_gen_cookie and
> not have two protos.
>
> This will disable preemption in sleepable programs and not have any
> effect in non-sleepable programs since preemption will already be
> disabled.
Sure, that works. I thought that providing two helper implems would
slightly improve performances on non-sleepable programs but I can send
a v4 with only one helper that calls sock_gen_cookie.
Powered by blists - more mailing lists