[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CACYkzJ55cA5STdeeXuhNEAmNi3QzLznirm1onkXHQyAJqcL_-A@mail.gmail.com>
Date: Tue, 12 Jan 2021 14:18:48 +0100
From: KP Singh <kpsingh@...nel.org>
To: Brendan Jackman <jackmanb@...gle.com>
Cc: bpf <bpf@...r.kernel.org>, Alexei Starovoitov <ast@...nel.org>,
Daniel Borkmann <daniel@...earbox.net>,
Andrii Nakryiko <andrii.nakryiko@...il.com>,
Florent Revest <revest@...omium.org>,
open list <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH bpf-next] bpf: Clarify return value of probe str helpers
On Tue, Jan 12, 2021 at 1:34 PM Brendan Jackman <jackmanb@...gle.com> wrote:
>
> When the buffer is too small to contain the input string, these
> helpers return the length of the buffer, not the length of the
> original string. This tries to make the docs totally clear about
> that, since "the length of the [copied ]string" could also refer to
> the length of the input.
>
> Signed-off-by: Brendan Jackman <jackmanb@...gle.com>
Acked-by: KP Singh <kpsingh@...nel.org>
Powered by blists - more mailing lists