Re: [PATCH v2 bpf-next 5/5] bpf: Convert bpf_preload.ko to use light skeleton.

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

 



On Tue, Feb 08, 2022 at 04:53:38PM -0800, Yonghong Song wrote:
> > -	err = fork_usermode_driver(&umd_ops.info);
> > +	skel = iterators_bpf__open();
> > +	if (!skel)
> > +		return -ENOMEM;
> > +	err = iterators_bpf__load(skel);
> >   	if (err)
> 
> We can do iterators_bpf__open_and_load here, right?

Right. It does __open and __load separately, so it's easier
to insert debug printk and adjust rodata for testing.



[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