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.