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 2/8/22 4:59 PM, Alexei Starovoitov wrote:
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.

Once all the debugging thing is done as in this patch,
iterators_bpf__open_and_load can make code more
concise. But I am okay either way.



[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