From 630014a8612f87d8e835b82796c1476b38ec35e6 Mon Sep 17 00:00:00 2001 From: Lorenz Bauer Date: Tue, 12 Nov 2024 10:41:41 -0500 Subject: [PATCH] Address feedback from Dave Thaler --- tests/unit/libbpf_test.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/unit/libbpf_test.cpp b/tests/unit/libbpf_test.cpp index 1ee9d0bcc3..6219982da8 100644 --- a/tests/unit/libbpf_test.cpp +++ b/tests/unit/libbpf_test.cpp @@ -3294,8 +3294,8 @@ TEST_CASE("Map and program information", "[libbpf][bpf]") REQUIRE(strncmp(map_info.name, map_create.map_name, sizeof(map_info.name)) == 0); struct ebpf_inst instructions[] = { - {0xb7, R0_RETURN_VALUE, 0}, // r0 = 0 - {INST_OP_EXIT}, // return r0 + {INST_ALU_OP_MOV | INST_CLS_ALU64, R0_RETURN_VALUE, 0}, // r0 = 0 + {INST_OP_EXIT}, // return r0 }; // Load and verify the eBPF program.