From 6acb86effa7a6e8029b68eccb805dd1ee60ecc5a Mon Sep 17 00:00:00 2001 From: Yonghong Song Date: Tue, 3 Sep 2024 18:25:51 -0700 Subject: [PATCH] Set cpu=v1 explicitly Upstream patch https://github.com/llvm/llvm-project/pull/107008 makes cpu=v3 as the default. Previously cpu=v1 as the default for bcc. Let us mark cpu=v1 explicitly for bcc for now to keep it backword compatible. --- src/cc/bpf_module.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/cc/bpf_module.cc b/src/cc/bpf_module.cc index c0dd0119c8e6..3872a7a8a035 100644 --- a/src/cc/bpf_module.cc +++ b/src/cc/bpf_module.cc @@ -574,6 +574,7 @@ int BPFModule::finalize() { builder.setMCJITMemoryManager( ebpf::make_unique(sections_p, &*prog_func_info_)); builder.setMArch("bpf"); + builder.setMCPU("v1"); #if LLVM_VERSION_MAJOR <= 11 builder.setUseOrcMCJITReplacement(false); #endif