Re: [PATCH bpf-next] bpf: add a few more options for GCC_BPF in selftests/bpf/Makefile

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

 



On Wed, 2024-04-24 at 10:41 +0200, Jose E. Marchesi wrote:
> This little patch modifies selftests/bpf/Makefile so it passes the
> following extra options when invoking gcc-bpf:
> 
>  -gbtf
>    This makes GCC to emit BTF debug info in .BTF and .BTF.ext.
> 
>  -mco-re
>    This tells GCC to generate CO-RE relocations in .BTF.ext.
> 
>  -masm=pseudoc
>    This tells GCC to emit BPF assembler using the pseudo-c syntax.
> 
> Tested in bpf-next master.
> No regressions.
> 
> Signed-off-by: Jose E. Marchesi <jose.marchesi@xxxxxxxxxx>
> Cc: Yonghong Song <yhs@xxxxxxxx>
> Cc: Eduard Zingerman <eddyz87@xxxxxxxxx>
> Cc: david.faust@xxxxxxxxxx
> Cc: cupertino.miranda@xxxxxxxxxx
> ---

I tried this patch with regular LLVM build and everything works as expected.
Unfortunately, can't test for GCC build.

Acked-by: Eduard Zingerman <eddyz87@xxxxxxxxx>






[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