Re: [PATCH bpf-next] bpf: Clarify return value of probe str helpers

From: KP Singh
Date: Tue Jan 12 2021 - 08:20:09 EST


On Tue, Jan 12, 2021 at 1:34 PM Brendan Jackman <jackmanb@xxxxxxxxxx> 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@xxxxxxxxxx>

Acked-by: KP Singh <kpsingh@xxxxxxxxxx>