Re: [PATCH v3 bpf-next 2/5] libbpf: Prepare light skeleton for the kernel.

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

 



On Wed, Feb 9, 2022 at 8:49 AM Yonghong Song <yhs@xxxxxx> wrote:
> > +
> > +static inline __u64 skel_prep_init_value(void **addr, size_t mmap_sz, size_t val_sz)
> > +{
> > +     return (__u64) (long) *addr;
> > +}
>
> The above is user space lskel definition for skel_prep_init_value.
> Below the kernel space lskel definition:
>
> +static inline __u64 skel_prep_init_value(void **addr, size_t mmap_sz,
> size_t val_sz)
> +{
> +       return (__u64) (long) *addr;
> +}
>
> First they are identical and second this function is simple enough can
> we do actual inlining during lskel code generation?

Sure. Will do.



[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