Re: bpf_link_info: perf_event link info name_len field returning zero

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

 



On Sun, Sep 29, 2024 at 3:14 PM Tyrone Wu <wudevelops@xxxxxxxxx> wrote:
>
>
> > The reason name_len is 0 is that the user did not set both the buffer
> > and the length. IOW, this happens when the user buffer is NULL and the
> > input length is 0.
>
> Thank you both for the follow-up.
>
> > However, we should make this behavior consistent by
> > returning the actual size to the user if both the buffer and length
> > are unset.
> >
> > I will submit a fix.
>
> I actually made a small patch for this when I was initially exploring this behavior. If it's alright, I can submit this after some clean-up. :)

That's great.  Please do it.

-- 
Regards
Yafang





[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