[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAADnVQLmPPBazEGn5bvg4MMYbxtj6xZu3zo-V3DoqVYqZWDt3g@mail.gmail.com>
Date: Fri, 30 Jan 2026 12:12:05 -0800
From: Alexei Starovoitov <alexei.starovoitov@...il.com>
To: Leon Hwang <leon.hwang@...ux.dev>
Cc: bpf <bpf@...r.kernel.org>, Alexei Starovoitov <ast@...nel.org>,
Daniel Borkmann <daniel@...earbox.net>, Andrii Nakryiko <andrii@...nel.org>,
Martin KaFai Lau <martin.lau@...ux.dev>, Eduard Zingerman <eddyz87@...il.com>, Song Liu <song@...nel.org>,
Yonghong Song <yonghong.song@...ux.dev>, John Fastabend <john.fastabend@...il.com>,
KP Singh <kpsingh@...nel.org>, Stanislav Fomichev <sdf@...ichev.me>, Hao Luo <haoluo@...gle.com>,
Jiri Olsa <jolsa@...nel.org>, Puranjay Mohan <puranjay@...nel.org>,
Xu Kuohai <xukuohai@...weicloud.com>, Catalin Marinas <catalin.marinas@....com>,
Will Deacon <will@...nel.org>, Shuah Khan <shuah@...nel.org>,
Menglong Dong <menglong8.dong@...il.com>,
linux-arm-kernel <linux-arm-kernel@...ts.infradead.org>, LKML <linux-kernel@...r.kernel.org>,
"open list:KERNEL SELFTEST FRAMEWORK" <linux-kselftest@...r.kernel.org>, kernel-patches-bot@...com
Subject: Re: [PATCH bpf-next v2 2/3] bpf, arm64: Add fsession support
On Wed, Jan 28, 2026 at 7:02 AM Leon Hwang <leon.hwang@...ux.dev> wrote:
>
> + cookie_bargs_off = (bargs_off - cookie_off) / 8;
> + for (i = 0; i < fentry->nr_links; i++) {
> + if (bpf_link_prog_session_cookie(fentry->links[i])) {
> + u64 meta = func_meta | (cookie_bargs_off << BPF_TRAMP_COOKIE_INDEX_SHIFT);
> +
> + store_func_meta(ctx, meta, func_meta_off);
> + cookie_bargs_off--;
> + }
I think the name could use an improvement.
> +static inline bool bpf_link_prog_session_cookie(struct bpf_tramp_link *link)
> +{
> + return link->link.prog->call_session_cookie;
> +}
reading the first hunk without looking at the body isn't trivial.
How about
bpf_prog_calls_session_cookie() ?
Then it's obvious that return is boolean.
pw-bot: cr
Powered by blists - more mailing lists