Re: [PATCH bpf-next v6 10/10] selftests/bpf: test case for register_bpf_struct_ops().

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

 



On Thu, 2023-10-26 at 21:55 -0700, Kui-Feng Lee wrote:
[...]
> 
> The test will pass even without this change.
> But, the test harness may complain by showing warnings.
> You may see an additional warning message without this change.

Understood, thank you for explanation.

> > Regarding assertion:
> > 
> > > +	ASSERT_EQ(skel->bss->test_2_result, 7, "test_2_result");
> > 
> > Could you please leave a comment explaining why the value is 7?
> > I don't understand what invokes 'test_2' but changing it to 8
> > forces test to fail, so something does call 'test_2' :)
> 
> It is called by bpf_dummy_reg() in bpf_testmod.c.
> I will add a comment here.

Oh, sorry, I did not notice, thank you.

[...]





[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