Re: [PATCH v2 bpf-next 2/2] selftests/bpf: add inline assembly helpers to access array elements

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

 



On 1/4/24 08:43, Jiri Olsa wrote:
I wonder we could use the existing RUN_TESTS macro and use tags
in programs like we do for example in progs/test_global_func1.c:

   SEC("tc")
   __failure __msg("combined stack size of 4 calls is 544")
   int global_func1(struct __sk_buff *skb)

This worked, thanks.

The style of test I have right now is that each test is a separate program, with all programs in the same skeleton. RUN_TESTS attempted to load the __failure programs, with the side-effect of loading all of the non-failures too.

Thanks,

Barret






[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