Re: [PATCH bpf-next] selftests/bpf: change llvm flag -mcpu=probe to -mcpu=v3

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

 



On Tue, Feb 18, 2020 at 4:44 PM Yonghong Song <yhs@xxxxxx> wrote:
>
> The latest llvm supports cpu version v3, which is cpu version v1
> plus some additional 64bit jmp insns and 32bit jmp insn support.
>
> In selftests/bpf Makefile, the llvm flag -mcpu=probe did runtime
> probe into the host system. Depending on compilation environments,
> it is possible that runtime probe may fail, e.g., due to
> memlock issue. This will cause generated code with cpu version v1.
> This may cause confusion as the same compiler and the same C code
> generates different byte codes in different environment.
>
> Let us change the llvm flag -mcpu=probe to -mcpu=v3 so the
> generated code will be the same regardless of the compilation
> environment.
>
> Signed-off-by: Yonghong Song <yhs@xxxxxx>
> ---

Acked-by: Andrii Nakryiko <andriin@xxxxxx>

>  tools/testing/selftests/bpf/Makefile | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>

[...]



[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