Re: [PATCH bpf-next v3 5/5] selftests/bpf: Add private stack tests

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

 



On Mon, Sep 30, 2024 at 6:40 AM Jiri Olsa <olsajiri@xxxxxxxxx> wrote:
>
> On Thu, Sep 26, 2024 at 04:45:31PM -0700, Yonghong Song wrote:
> > Some private stack tests are added including:
> >   - prog with stack size greater than BPF_PSTACK_MIN_SUBTREE_SIZE.
> >   - prog with stack size less than BPF_PSTACK_MIN_SUBTREE_SIZE.
> >   - prog with one subprog having MAX_BPF_STACK stack size and another
> >     subprog having non-zero stack size.
> >   - prog with callback function.
> >   - prog with exception in main prog or subprog.
> >
> > Signed-off-by: Yonghong Song <yonghong.song@xxxxxxxxx>
>
> hi,
> might be some fail on my side, but I had to include bpf_experimental.h to
> compile this.. ci seems ok
>
>   CLNG-BPF [test_progs-cpuv4] verifier_private_stack.bpf.o
> progs/verifier_private_stack.c:174:2: error: call to undeclared function 'bpf_throw'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
>   174 |         bpf_throw(0);

Yeah. Let's add bpf_experimental.h for folks like Jiri
who didn't upgrade their pahole for a long time :)

bpf_throw will be in vmlinux.h ;)





[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