From 7f14da76dbcb66da73de3fd2b0b04677b285c240 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 6e202b9e10..9f447d1407 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.