[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20201105212410.pngxkh6yqhhg6syc@kafai-mbp.dhcp.thefacebook.com>
Date: Thu, 5 Nov 2020 13:24:10 -0800
From: Martin KaFai Lau <kafai@...com>
To: unlisted-recipients:; (no To-header on input)
CC: <linux-kernel@...r.kernel.org>, <bpf@...r.kernel.org>,
Song Liu <songliubraving@...com>,
Alexei Starovoitov <ast@...nel.org>,
Daniel Borkmann <daniel@...earbox.net>,
Paul Turner <pjt@...gle.com>, Jann Horn <jannh@...gle.com>,
Hao Luo <haoluo@...gle.com>
Subject: Re: [PATCH bpf-next v4 5/9] bpf: Implement get_current_task_btf and
RET_PTR_TO_BTF_ID
On Thu, Nov 05, 2020 at 03:47:51PM +0100, KP Singh wrote:
> From: KP Singh <kpsingh@...gle.com>
>
> The currently available bpf_get_current_task returns an unsigned integer
> which can be used along with BPF_CORE_READ to read data from
> the task_struct but still cannot be used as an input argument to a
> helper that accepts an ARG_PTR_TO_BTF_ID of type task_struct.
>
> In order to implement this helper a new return type, RET_PTR_TO_BTF_ID,
> is added. This is similar to RET_PTR_TO_BTF_ID_OR_NULL but does not
> require checking the nullness of returned pointer.
>
> Acked-by: Song Liu <songliubraving@...com>
> Signed-off-by: KP Singh <kpsingh@...gle.com>
Acked-by: Martin KaFai Lau <kafai@...com>
Powered by blists - more mailing lists