Re: [PATCH bpf-next v7 20/26] bpf: Introduce single ownership BPF linked list API

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Nov 15, 2022 at 11:36 AM Kumar Kartikeya Dwivedi
<memxor@xxxxxxxxx> wrote:
>
> > It feels the users will be hitting this error case from time to time,
> > so the most verbose message is the best.
> > Both options above are a bit cryptic.
>
> How about something like this?
>
> operation on bpf_list_head expects node at offset=X in struct foo, but
> node is at offset=Y in struct bar

Excellent. That would be the most accurate error message.



[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux