[15:45:57][root@168.mr1370_220926_1234.el9.ppc64le]# './test_progs -t core_reloc' test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/1 core_reloc/kernel:OK test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: prog 'test_core_module_probed': BPF program load failed: Invalid argument libbpf: prog 'test_core_module_probed': -- BEGIN PROG LOAD LOG -- R1 type=ctx expected=fp 0: R1=ctx(id=0,off=0,imm=0) R10=fp0 ; int BPF_PROG(test_core_module_probed, 0: (79) r7 = *(u64 *)(r1 +8) ; R1=ctx(id=0,off=0,imm=0) R7_w=inv(id=0) 1: (79) r6 = *(u64 *)(r1 +0) ; R1=ctx(id=0,off=0,imm=0) R6_w=inv(id=0) ; __u64 pid_tgid = bpf_get_current_pid_tgid(); 2: (85) call bpf_get_current_pid_tgid#14 ; R0_w=inv(id=0) 3: (bf) r8 = r0 ; R0_w=inv(id=1) R8_w=inv(id=1) ; if (data.my_pid_tgid != pid_tgid) 4: (18) r1 = 0xc008000004b00000 ; R1_w=map_value(id=0,off=0,ks=4,vs=528,imm=0) 6: (79) r1 = *(u64 *)(r1 +520) ; R1_w=inv(id=0) ; if (data.my_pid_tgid != pid_tgid) 7: (5d) if r1 != r8 goto pc+70 ; R1_w=inv(id=0) R8_w=inv(id=1) 8: (b7) r1 = 2296 ; R1_w=inv2296 9: (bf) r3 = r6 ; R3_w=inv(id=2) R6_w=inv(id=2) 10: (0f) r3 += r1 ; R1_w=inv2296 R3_w=inv(id=0) 11: (bf) r1 = r10 ; R1_w=fp0 R10=fp0 ; 12: (07) r1 += -8 ; R1_w=fp-8 ; if (BPF_CORE_READ(task, pid) != real_pid || BPF_CORE_READ(task, tgid) != real_tgid) 13: (b4) w2 = 4 ; R2_w=inv4 14: (85) call bpf_probe_read_kernel#113 ; R0=inv(id=0) fp-8=????mmmm ; if (BPF_CORE_READ(task, pid) != real_pid || BPF_CORE_READ(task, tgid) != real_tgid) 15: (61) r1 = *(u32 *)(r10 -8) ; R1_w=inv(id=0,umax_value=4294967295,var_off=(0x0; 0xffffffff)) R10=fp0 ; if (BPF_CORE_READ(task, pid) != real_pid || BPF_CORE_READ(task, tgid) != real_tgid) 16: (5e) if w1 != w8 goto pc+61 ; R1_w=inv(id=0,umax_value=4294967295,var_off=(0x0; 0xffffffff)) R8=inv(id=1) 17: (77) r8 >>= 32 ; R8_w=inv(id=0,umax_value=4294967295,var_off=(0x0; 0xffffffff)) 18: (b7) r1 = 2300 ; R1_w=inv2300 19: (bf) r3 = r6 ; R3_w=inv(id=2) R6=inv(id=2) 20: (0f) r3 += r1 ; R1_w=inv2300 R3_w=inv(id=0) 21: (bf) r1 = r10 ; R1_w=fp0 R10=fp0 ; 22: (07) r1 += -8 ; R1_w=fp-8 ; if (BPF_CORE_READ(task, pid) != real_pid || BPF_CORE_READ(task, tgid) != real_tgid) 23: (b4) w2 = 4 ; R2_w=inv4 24: (85) call bpf_probe_read_kernel#113 ; R0=inv(id=0) fp-8=????mmmm ; if (BPF_CORE_READ(task, pid) != real_pid || BPF_CORE_READ(task, tgid) != real_tgid) 25: (61) r1 = *(u32 *)(r10 -8) ; R1_w=inv(id=0,umax_value=4294967295,var_off=(0x0; 0xffffffff)) R10=fp0 ; if (BPF_CORE_READ(task, pid) != real_pid || BPF_CORE_READ(task, tgid) != real_tgid) 26: (5e) if w1 != w8 goto pc+51 ; R1_w=inv(id=0,umax_value=4294967295,var_off=(0x0; 0xffffffff)) R8=inv(id=0,umax_value=4294967295,var_off=(0x0; 0xffffffff)) 27: (85) call unknown#195896080 invalid func unknown#195896080 processed 27 insns (limit 1000000) max_states_per_insn 0 total_states 2 peak_states 2 mark_read 1 -- END PROG LOAD LOG -- libbpf: failed to load program 'test_core_module_probed' libbpf: failed to load object 'test_core_reloc_module.o' test_core_reloc:FAIL:obj_load unexpected error: -22 (errno 22) test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/1 core_reloc/kernel:OK test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: prog 'test_core_module_probed': BPF program load failed: Invalid argument libbpf: prog 'test_core_module_probed': -- BEGIN PROG LOAD LOG -- R1 type=ctx expected=fp 0: R1=ctx(id=0,off=0,imm=0) R10=fp0 ; int BPF_PROG(test_core_module_probed, 0: (79) r7 = *(u64 *)(r1 +8) ; R1=ctx(id=0,off=0,imm=0) R7_w=inv(id=0) 1: (79) r6 = *(u64 *)(r1 +0) ; R1=ctx(id=0,off=0,imm=0) R6_w=inv(id=0) ; __u64 pid_tgid = bpf_get_current_pid_tgid(); 2: (85) call bpf_get_current_pid_tgid#14 ; R0_w=inv(id=0) 3: (bf) r8 = r0 ; R0_w=inv(id=1) R8_w=inv(id=1) ; if (data.my_pid_tgid != pid_tgid) 4: (18) r1 = 0xc008000004b00000 ; R1_w=map_value(id=0,off=0,ks=4,vs=528,imm=0) 6: (79) r1 = *(u64 *)(r1 +520) ; R1_w=inv(id=0) ; if (data.my_pid_tgid != pid_tgid) 7: (5d) if r1 != r8 goto pc+70 ; R1_w=inv(id=0) R8_w=inv(id=1) 8: (b7) r1 = 2296 ; R1_w=inv2296 9: (bf) r3 = r6 ; R3_w=inv(id=2) R6_w=inv(id=2) 10: (0f) r3 += r1 ; R1_w=inv2296 R3_w=inv(id=0) 11: (bf) r1 = r10 ; R1_w=fp0 R10=fp0 ; 12: (07) r1 += -8 ; R1_w=fp-8 ; if (BPF_CORE_READ(task, pid) != real_pid || BPF_CORE_READ(task, tgid) != real_tgid) 13: (b4) w2 = 4 ; R2_w=inv4 14: (85) call bpf_probe_read_kernel#113 ; R0=inv(id=0) fp-8=????mmmm ; if (BPF_CORE_READ(task, pid) != real_pid || BPF_CORE_READ(task, tgid) != real_tgid) 15: (61) r1 = *(u32 *)(r10 -8) ; R1_w=inv(id=0,umax_value=4294967295,var_off=(0x0; 0xffffffff)) R10=fp0 ; if (BPF_CORE_READ(task, pid) != real_pid || BPF_CORE_READ(task, tgid) != real_tgid) 16: (5e) if w1 != w8 goto pc+61 ; R1_w=inv(id=0,umax_value=4294967295,var_off=(0x0; 0xffffffff)) R8=inv(id=1) 17: (77) r8 >>= 32 ; R8_w=inv(id=0,umax_value=4294967295,var_off=(0x0; 0xffffffff)) 18: (b7) r1 = 2300 ; R1_w=inv2300 19: (bf) r3 = r6 ; R3_w=inv(id=2) R6=inv(id=2) 20: (0f) r3 += r1 ; R1_w=inv2300 R3_w=inv(id=0) 21: (bf) r1 = r10 ; R1_w=fp0 R10=fp0 ; 22: (07) r1 += -8 ; R1_w=fp-8 ; if (BPF_CORE_READ(task, pid) != real_pid || BPF_CORE_READ(task, tgid) != real_tgid) 23: (b4) w2 = 4 ; R2_w=inv4 24: (85) call bpf_probe_read_kernel#113 ; R0=inv(id=0) fp-8=????mmmm ; if (BPF_CORE_READ(task, pid) != real_pid || BPF_CORE_READ(task, tgid) != real_tgid) 25: (61) r1 = *(u32 *)(r10 -8) ; R1_w=inv(id=0,umax_value=4294967295,var_off=(0x0; 0xffffffff)) R10=fp0 ; if (BPF_CORE_READ(task, pid) != real_pid || BPF_CORE_READ(task, tgid) != real_tgid) 26: (5e) if w1 != w8 goto pc+51 ; R1_w=inv(id=0,umax_value=4294967295,var_off=(0x0; 0xffffffff)) R8=inv(id=0,umax_value=4294967295,var_off=(0x0; 0xffffffff)) 27: (85) call unknown#195896080 invalid func unknown#195896080 processed 27 insns (limit 1000000) max_states_per_insn 0 total_states 2 peak_states 2 mark_read 1 -- END PROG LOAD LOG -- libbpf: failed to load program 'test_core_module_probed' libbpf: failed to load object 'test_core_reloc_module.o' test_core_reloc:FAIL:obj_load unexpected error: -22 (errno 22) #38/2 core_reloc/module_probed:FAIL test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: prog 'test_core_module_probed': BPF program load failed: Invalid argument libbpf: prog 'test_core_module_probed': -- BEGIN PROG LOAD LOG -- R1 type=ctx expected=fp 0: R1=ctx(id=0,off=0,imm=0) R10=fp0 ; int BPF_PROG(test_core_module_probed, 0: (79) r7 = *(u64 *)(r1 +8) ; R1=ctx(id=0,off=0,imm=0) R7_w=inv(id=0) 1: (79) r6 = *(u64 *)(r1 +0) ; R1=ctx(id=0,off=0,imm=0) R6_w=inv(id=0) ; __u64 pid_tgid = bpf_get_current_pid_tgid(); 2: (85) call bpf_get_current_pid_tgid#14 ; R0_w=inv(id=0) 3: (bf) r8 = r0 ; R0_w=inv(id=1) R8_w=inv(id=1) ; if (data.my_pid_tgid != pid_tgid) 4: (18) r1 = 0xc008000002970000 ; R1_w=map_value(id=0,off=0,ks=4,vs=528,imm=0) 6: (79) r1 = *(u64 *)(r1 +520) ; R1_w=inv(id=0) ; if (data.my_pid_tgid != pid_tgid) 7: (5d) if r1 != r8 goto pc+70 ; R1_w=inv(id=0) R8_w=inv(id=1) 8: (b7) r1 = 2296 ; R1_w=inv2296 9: (bf) r3 = r6 ; R3_w=inv(id=2) R6_w=inv(id=2) 10: (0f) r3 += r1 ; R1_w=inv2296 R3_w=inv(id=0) 11: (bf) r1 = r10 ; R1_w=fp0 R10=fp0 ; 12: (07) r1 += -8 ; R1_w=fp-8 ; if (BPF_CORE_READ(task, pid) != real_pid || BPF_CORE_READ(task, tgid) != real_tgid) 13: (b4) w2 = 4 ; R2_w=inv4 14: (85) call bpf_probe_read_kernel#113 ; R0=inv(id=0) fp-8=????mmmm ; if (BPF_CORE_READ(task, pid) != real_pid || BPF_CORE_READ(task, tgid) != real_tgid) 15: (61) r1 = *(u32 *)(r10 -8) ; R1_w=inv(id=0,umax_value=4294967295,var_off=(0x0; 0xffffffff)) R10=fp0 ; if (BPF_CORE_READ(task, pid) != real_pid || BPF_CORE_READ(task, tgid) != real_tgid) 16: (5e) if w1 != w8 goto pc+61 ; R1_w=inv(id=0,umax_value=4294967295,var_off=(0x0; 0xffffffff)) R8=inv(id=1) 17: (77) r8 >>= 32 ; R8_w=inv(id=0,umax_value=4294967295,var_off=(0x0; 0xffffffff)) 18: (b7) r1 = 2300 ; R1_w=inv2300 19: (bf) r3 = r6 ; R3_w=inv(id=2) R6=inv(id=2) 20: (0f) r3 += r1 ; R1_w=inv2300 R3_w=inv(id=0) 21: (bf) r1 = r10 ; R1_w=fp0 R10=fp0 ; 22: (07) r1 += -8 ; R1_w=fp-8 ; if (BPF_CORE_READ(task, pid) != real_pid || BPF_CORE_READ(task, tgid) != real_tgid) 23: (b4) w2 = 4 ; R2_w=inv4 24: (85) call bpf_probe_read_kernel#113 ; R0=inv(id=0) fp-8=????mmmm ; if (BPF_CORE_READ(task, pid) != real_pid || BPF_CORE_READ(task, tgid) != real_tgid) 25: (61) r1 = *(u32 *)(r10 -8) ; R1_w=inv(id=0,umax_value=4294967295,var_off=(0x0; 0xffffffff)) R10=fp0 ; if (BPF_CORE_READ(task, pid) != real_pid || BPF_CORE_READ(task, tgid) != real_tgid) 26: (5e) if w1 != w8 goto pc+51 ; R1_w=inv(id=0,umax_value=4294967295,var_off=(0x0; 0xffffffff)) R8=inv(id=0,umax_value=4294967295,var_off=(0x0; 0xffffffff)) 27: (85) call unknown#195896080 invalid func unknown#195896080 processed 27 insns (limit 1000000) max_states_per_insn 0 total_states 2 peak_states 2 mark_read 1 -- END PROG LOAD LOG -- libbpf: failed to load program 'test_core_module_probed' libbpf: failed to load object 'test_core_reloc_module.o' test_core_reloc:FAIL:obj_load unexpected error: -22 (errno 22) test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/1 core_reloc/kernel:OK test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: prog 'test_core_module_probed': BPF program load failed: Invalid argument libbpf: prog 'test_core_module_probed': -- BEGIN PROG LOAD LOG -- R1 type=ctx expected=fp 0: R1=ctx(id=0,off=0,imm=0) R10=fp0 ; int BPF_PROG(test_core_module_probed, 0: (79) r7 = *(u64 *)(r1 +8) ; R1=ctx(id=0,off=0,imm=0) R7_w=inv(id=0) 1: (79) r6 = *(u64 *)(r1 +0) ; R1=ctx(id=0,off=0,imm=0) R6_w=inv(id=0) ; __u64 pid_tgid = bpf_get_current_pid_tgid(); 2: (85) call bpf_get_current_pid_tgid#14 ; R0_w=inv(id=0) 3: (bf) r8 = r0 ; R0_w=inv(id=1) R8_w=inv(id=1) ; if (data.my_pid_tgid != pid_tgid) 4: (18) r1 = 0xc008000004b00000 ; R1_w=map_value(id=0,off=0,ks=4,vs=528,imm=0) 6: (79) r1 = *(u64 *)(r1 +520) ; R1_w=inv(id=0) ; if (data.my_pid_tgid != pid_tgid) 7: (5d) if r1 != r8 goto pc+70 ; R1_w=inv(id=0) R8_w=inv(id=1) 8: (b7) r1 = 2296 ; R1_w=inv2296 9: (bf) r3 = r6 ; R3_w=inv(id=2) R6_w=inv(id=2) 10: (0f) r3 += r1 ; R1_w=inv2296 R3_w=inv(id=0) 11: (bf) r1 = r10 ; R1_w=fp0 R10=fp0 ; 12: (07) r1 += -8 ; R1_w=fp-8 ; if (BPF_CORE_READ(task, pid) != real_pid || BPF_CORE_READ(task, tgid) != real_tgid) 13: (b4) w2 = 4 ; R2_w=inv4 14: (85) call bpf_probe_read_kernel#113 ; R0=inv(id=0) fp-8=????mmmm ; if (BPF_CORE_READ(task, pid) != real_pid || BPF_CORE_READ(task, tgid) != real_tgid) 15: (61) r1 = *(u32 *)(r10 -8) ; R1_w=inv(id=0,umax_value=4294967295,var_off=(0x0; 0xffffffff)) R10=fp0 ; if (BPF_CORE_READ(task, pid) != real_pid || BPF_CORE_READ(task, tgid) != real_tgid) 16: (5e) if w1 != w8 goto pc+61 ; R1_w=inv(id=0,umax_value=4294967295,var_off=(0x0; 0xffffffff)) R8=inv(id=1) 17: (77) r8 >>= 32 ; R8_w=inv(id=0,umax_value=4294967295,var_off=(0x0; 0xffffffff)) 18: (b7) r1 = 2300 ; R1_w=inv2300 19: (bf) r3 = r6 ; R3_w=inv(id=2) R6=inv(id=2) 20: (0f) r3 += r1 ; R1_w=inv2300 R3_w=inv(id=0) 21: (bf) r1 = r10 ; R1_w=fp0 R10=fp0 ; 22: (07) r1 += -8 ; R1_w=fp-8 ; if (BPF_CORE_READ(task, pid) != real_pid || BPF_CORE_READ(task, tgid) != real_tgid) 23: (b4) w2 = 4 ; R2_w=inv4 24: (85) call bpf_probe_read_kernel#113 ; R0=inv(id=0) fp-8=????mmmm ; if (BPF_CORE_READ(task, pid) != real_pid || BPF_CORE_READ(task, tgid) != real_tgid) 25: (61) r1 = *(u32 *)(r10 -8) ; R1_w=inv(id=0,umax_value=4294967295,var_off=(0x0; 0xffffffff)) R10=fp0 ; if (BPF_CORE_READ(task, pid) != real_pid || BPF_CORE_READ(task, tgid) != real_tgid) 26: (5e) if w1 != w8 goto pc+51 ; R1_w=inv(id=0,umax_value=4294967295,var_off=(0x0; 0xffffffff)) R8=inv(id=0,umax_value=4294967295,var_off=(0x0; 0xffffffff)) 27: (85) call unknown#195896080 invalid func unknown#195896080 processed 27 insns (limit 1000000) max_states_per_insn 0 total_states 2 peak_states 2 mark_read 1 -- END PROG LOAD LOG -- libbpf: failed to load program 'test_core_module_probed' libbpf: failed to load object 'test_core_reloc_module.o' test_core_reloc:FAIL:obj_load unexpected error: -22 (errno 22) #38/2 core_reloc/module_probed:FAIL test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: prog 'test_core_module_probed': BPF program load failed: Invalid argument libbpf: prog 'test_core_module_probed': -- BEGIN PROG LOAD LOG -- R1 type=ctx expected=fp 0: R1=ctx(id=0,off=0,imm=0) R10=fp0 ; int BPF_PROG(test_core_module_probed, 0: (79) r7 = *(u64 *)(r1 +8) ; R1=ctx(id=0,off=0,imm=0) R7_w=inv(id=0) 1: (79) r6 = *(u64 *)(r1 +0) ; R1=ctx(id=0,off=0,imm=0) R6_w=inv(id=0) ; __u64 pid_tgid = bpf_get_current_pid_tgid(); 2: (85) call bpf_get_current_pid_tgid#14 ; R0_w=inv(id=0) 3: (bf) r8 = r0 ; R0_w=inv(id=1) R8_w=inv(id=1) ; if (data.my_pid_tgid != pid_tgid) 4: (18) r1 = 0xc008000002970000 ; R1_w=map_value(id=0,off=0,ks=4,vs=528,imm=0) 6: (79) r1 = *(u64 *)(r1 +520) ; R1_w=inv(id=0) ; if (data.my_pid_tgid != pid_tgid) 7: (5d) if r1 != r8 goto pc+70 ; R1_w=inv(id=0) R8_w=inv(id=1) 8: (b7) r1 = 2296 ; R1_w=inv2296 9: (bf) r3 = r6 ; R3_w=inv(id=2) R6_w=inv(id=2) 10: (0f) r3 += r1 ; R1_w=inv2296 R3_w=inv(id=0) 11: (bf) r1 = r10 ; R1_w=fp0 R10=fp0 ; 12: (07) r1 += -8 ; R1_w=fp-8 ; if (BPF_CORE_READ(task, pid) != real_pid || BPF_CORE_READ(task, tgid) != real_tgid) 13: (b4) w2 = 4 ; R2_w=inv4 14: (85) call bpf_probe_read_kernel#113 ; R0=inv(id=0) fp-8=????mmmm ; if (BPF_CORE_READ(task, pid) != real_pid || BPF_CORE_READ(task, tgid) != real_tgid) 15: (61) r1 = *(u32 *)(r10 -8) ; R1_w=inv(id=0,umax_value=4294967295,var_off=(0x0; 0xffffffff)) R10=fp0 ; if (BPF_CORE_READ(task, pid) != real_pid || BPF_CORE_READ(task, tgid) != real_tgid) 16: (5e) if w1 != w8 goto pc+61 ; R1_w=inv(id=0,umax_value=4294967295,var_off=(0x0; 0xffffffff)) R8=inv(id=1) 17: (77) r8 >>= 32 ; R8_w=inv(id=0,umax_value=4294967295,var_off=(0x0; 0xffffffff)) 18: (b7) r1 = 2300 ; R1_w=inv2300 19: (bf) r3 = r6 ; R3_w=inv(id=2) R6=inv(id=2) 20: (0f) r3 += r1 ; R1_w=inv2300 R3_w=inv(id=0) 21: (bf) r1 = r10 ; R1_w=fp0 R10=fp0 ; 22: (07) r1 += -8 ; R1_w=fp-8 ; if (BPF_CORE_READ(task, pid) != real_pid || BPF_CORE_READ(task, tgid) != real_tgid) 23: (b4) w2 = 4 ; R2_w=inv4 24: (85) call bpf_probe_read_kernel#113 ; R0=inv(id=0) fp-8=????mmmm ; if (BPF_CORE_READ(task, pid) != real_pid || BPF_CORE_READ(task, tgid) != real_tgid) 25: (61) r1 = *(u32 *)(r10 -8) ; R1_w=inv(id=0,umax_value=4294967295,var_off=(0x0; 0xffffffff)) R10=fp0 ; if (BPF_CORE_READ(task, pid) != real_pid || BPF_CORE_READ(task, tgid) != real_tgid) 26: (5e) if w1 != w8 goto pc+51 ; R1_w=inv(id=0,umax_value=4294967295,var_off=(0x0; 0xffffffff)) R8=inv(id=0,umax_value=4294967295,var_off=(0x0; 0xffffffff)) 27: (85) call unknown#195896080 invalid func unknown#195896080 processed 27 insns (limit 1000000) max_states_per_insn 0 total_states 2 peak_states 2 mark_read 1 -- END PROG LOAD LOG -- libbpf: failed to load program 'test_core_module_probed' libbpf: failed to load object 'test_core_reloc_module.o' test_core_reloc:FAIL:obj_load unexpected error: -22 (errno 22) #38/3 core_reloc/module_direct:FAIL test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/4 core_reloc/flavors:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: prog 'test_core_flavors': BPF program load failed: Invalid argument libbpf: prog 'test_core_flavors': -- BEGIN PROG LOAD LOG -- arg#0 reference type('UNKNOWN ') size cannot be determined: -22 0: R1=ctx(id=0,off=0,imm=0) R10=fp0 ; int test_core_flavors(void *ctx) 0: (85) call unknown#195896080 invalid func unknown#195896080 processed 1 insns (limit 1000000) max_states_per_insn 0 total_states 0 peak_states 0 mark_read 0 -- END PROG LOAD LOG -- libbpf: failed to load program 'test_core_flavors' libbpf: failed to load object 'test_core_reloc_flavors.o' #38/5 core_reloc/flavors__err_wrong_name:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/6 core_reloc/nesting:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/7 core_reloc/nesting___anon_embed:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/8 core_reloc/nesting___struct_union_mixup:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/9 core_reloc/nesting___extra_nesting:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/10 core_reloc/nesting___dup_compat_types:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: prog 'test_core_nesting': BPF program load failed: Invalid argument libbpf: prog 'test_core_nesting': -- BEGIN PROG LOAD LOG -- arg#0 reference type('UNKNOWN ') size cannot be determined: -22 0: R1=ctx(id=0,off=0,imm=0) R10=fp0 ; int test_core_nesting(void *ctx) 0: (b7) r1 = 0 ; R1_w=inv0 1: (18) r6 = 0xc0080000028d0000 ; R6_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 3: (18) r3 = 0xc0080000028d0000 ; R3_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 5: (0f) r3 += r1 ; R1_w=invP0 R3_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) ; if (CORE_READ(&out->a.a.a, &in->a.a.a)) 6: (18) r1 = 0xc0080000028d0000 ; R1_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 8: (07) r1 += 256 ; R1_w=map_value(id=0,off=256,ks=4,vs=512,imm=0) 9: (b4) w2 = 4 ; R2_w=inv4 10: (85) call bpf_probe_read_kernel#113 ; R0_w=inv(id=0) 11: (bf) r1 = r0 ; R0_w=inv(id=1) R1_w=inv(id=1) 12: (b4) w0 = 1 ; R0_w=inv1 ; if (CORE_READ(&out->a.a.a, &in->a.a.a)) 13: (55) if r1 != 0x0 goto pc+12 ; R1_w=inv0 14: (85) call unknown#195896080 invalid func unknown#195896080 processed 12 insns (limit 1000000) max_states_per_insn 0 total_states 0 peak_states 0 mark_read 0 -- END PROG LOAD LOG -- libbpf: failed to load program 'test_core_nesting' libbpf: failed to load object 'test_core_reloc_nesting.o' #38/11 core_reloc/nesting___err_missing_field:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: prog 'test_core_nesting': BPF program load failed: Invalid argument libbpf: prog 'test_core_nesting': -- BEGIN PROG LOAD LOG -- arg#0 reference type('UNKNOWN ') size cannot be determined: -22 0: R1=ctx(id=0,off=0,imm=0) R10=fp0 ; int test_core_nesting(void *ctx) 0: (b7) r1 = 0 ; R1_w=inv0 1: (18) r6 = 0xc008000003c40000 ; R6_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 3: (18) r3 = 0xc008000003c40000 ; R3_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 5: (0f) r3 += r1 ; R1_w=invP0 R3_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) ; if (CORE_READ(&out->a.a.a, &in->a.a.a)) 6: (18) r1 = 0xc008000003c40000 ; R1_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 8: (07) r1 += 256 ; R1_w=map_value(id=0,off=256,ks=4,vs=512,imm=0) 9: (b4) w2 = 4 ; R2_w=inv4 10: (85) call bpf_probe_read_kernel#113 ; R0_w=inv(id=0) 11: (bf) r1 = r0 ; R0_w=inv(id=1) R1_w=inv(id=1) 12: (b4) w0 = 1 ; R0_w=inv1 ; if (CORE_READ(&out->a.a.a, &in->a.a.a)) 13: (55) if r1 != 0x0 goto pc+12 ; R1_w=inv0 14: (85) call unknown#195896080 invalid func unknown#195896080 processed 12 insns (limit 1000000) max_states_per_insn 0 total_states 0 peak_states 0 mark_read 0 -- END PROG LOAD LOG -- libbpf: failed to load program 'test_core_nesting' libbpf: failed to load object 'test_core_reloc_nesting.o' #38/12 core_reloc/nesting___err_array_field:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: prog 'test_core_nesting': BPF program load failed: Invalid argument libbpf: prog 'test_core_nesting': -- BEGIN PROG LOAD LOG -- arg#0 reference type('UNKNOWN ') size cannot be determined: -22 0: R1=ctx(id=0,off=0,imm=0) R10=fp0 ; int test_core_nesting(void *ctx) 0: (b7) r1 = 0 ; R1_w=inv0 1: (18) r6 = 0xc008000004070000 ; R6_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 3: (18) r3 = 0xc008000004070000 ; R3_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 5: (0f) r3 += r1 ; R1_w=invP0 R3_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) ; if (CORE_READ(&out->a.a.a, &in->a.a.a)) 6: (18) r1 = 0xc008000004070000 ; R1_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 8: (07) r1 += 256 ; R1_w=map_value(id=0,off=256,ks=4,vs=512,imm=0) 9: (b4) w2 = 4 ; R2_w=inv4 10: (85) call bpf_probe_read_kernel#113 ; R0_w=inv(id=0) 11: (bf) r1 = r0 ; R0_w=inv(id=1) R1_w=inv(id=1) 12: (b4) w0 = 1 ; R0_w=inv1 ; if (CORE_READ(&out->a.a.a, &in->a.a.a)) 13: (55) if r1 != 0x0 goto pc+12 ; R1_w=inv0 14: (85) call unknown#195896080 invalid func unknown#195896080 processed 12 insns (limit 1000000) max_states_per_insn 0 total_states 0 peak_states 0 mark_read 0 -- END PROG LOAD LOG -- libbpf: failed to load program 'test_core_nesting' libbpf: failed to load object 'test_core_reloc_nesting.o' #38/13 core_reloc/nesting___err_missing_container:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: prog 'test_core_nesting': BPF program load failed: Invalid argument libbpf: prog 'test_core_nesting': -- BEGIN PROG LOAD LOG -- arg#0 reference type('UNKNOWN ') size cannot be determined: -22 0: R1=ctx(id=0,off=0,imm=0) R10=fp0 ; int test_core_nesting(void *ctx) 0: (b7) r1 = 0 ; R1_w=inv0 1: (18) r6 = 0xc0080000041e0000 ; R6_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 3: (18) r3 = 0xc0080000041e0000 ; R3_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 5: (0f) r3 += r1 ; R1_w=invP0 R3_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) ; if (CORE_READ(&out->a.a.a, &in->a.a.a)) 6: (18) r1 = 0xc0080000041e0000 ; R1_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 8: (07) r1 += 256 ; R1_w=map_value(id=0,off=256,ks=4,vs=512,imm=0) 9: (b4) w2 = 4 ; R2_w=inv4 10: (85) call bpf_probe_read_kernel#113 ; R0_w=inv(id=0) 11: (bf) r1 = r0 ; R0_w=inv(id=1) R1_w=inv(id=1) 12: (b4) w0 = 1 ; R0_w=inv1 ; if (CORE_READ(&out->a.a.a, &in->a.a.a)) 13: (55) if r1 != 0x0 goto pc+12 ; R1_w=inv0 14: (85) call unknown#195896080 invalid func unknown#195896080 processed 12 insns (limit 1000000) max_states_per_insn 0 total_states 0 peak_states 0 mark_read 0 -- END PROG LOAD LOG -- libbpf: failed to load program 'test_core_nesting' libbpf: failed to load object 'test_core_reloc_nesting.o' #38/14 core_reloc/nesting___err_nonstruct_container:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: prog 'test_core_nesting': BPF program load failed: Invalid argument libbpf: prog 'test_core_nesting': -- BEGIN PROG LOAD LOG -- arg#0 reference type('UNKNOWN ') size cannot be determined: -22 0: R1=ctx(id=0,off=0,imm=0) R10=fp0 ; int test_core_nesting(void *ctx) 0: (b7) r1 = 0 ; R1_w=inv0 1: (18) r6 = 0xc008000004650000 ; R6_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 3: (18) r3 = 0xc008000004650000 ; R3_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 5: (0f) r3 += r1 ; R1_w=invP0 R3_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) ; if (CORE_READ(&out->a.a.a, &in->a.a.a)) 6: (18) r1 = 0xc008000004650000 ; R1_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 8: (07) r1 += 256 ; R1_w=map_value(id=0,off=256,ks=4,vs=512,imm=0) 9: (b4) w2 = 4 ; R2_w=inv4 10: (85) call bpf_probe_read_kernel#113 ; R0_w=inv(id=0) 11: (bf) r1 = r0 ; R0_w=inv(id=1) R1_w=inv(id=1) 12: (b4) w0 = 1 ; R0_w=inv1 ; if (CORE_READ(&out->a.a.a, &in->a.a.a)) 13: (55) if r1 != 0x0 goto pc+12 ; R1_w=inv0 14: (85) call unknown#195896080 invalid func unknown#195896080 processed 12 insns (limit 1000000) max_states_per_insn 0 total_states 0 peak_states 0 mark_read 0 -- END PROG LOAD LOG -- libbpf: failed to load program 'test_core_nesting' libbpf: failed to load object 'test_core_reloc_nesting.o' #38/15 core_reloc/nesting___err_array_container:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: prog 'test_core_nesting': relo #1: field offset ambiguity: 64 != 32 libbpf: prog 'test_core_nesting': relo #1: failed to relocate: -22 libbpf: failed to perform CO-RE relocations: -22 libbpf: failed to load object 'test_core_reloc_nesting.o' #38/16 core_reloc/nesting___err_dup_incompat_types:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: prog 'test_core_nesting': BPF program load failed: Invalid argument libbpf: prog 'test_core_nesting': -- BEGIN PROG LOAD LOG -- arg#0 reference type('UNKNOWN ') size cannot be determined: -22 0: R1=ctx(id=0,off=0,imm=0) R10=fp0 ; int test_core_nesting(void *ctx) 0: (b7) r1 = 0 ; R1_w=inv0 1: (18) r6 = 0xc0080000048a0000 ; R6_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 3: (18) r3 = 0xc0080000048a0000 ; R3_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 5: (0f) r3 += r1 ; R1_w=invP0 R3_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) ; if (CORE_READ(&out->a.a.a, &in->a.a.a)) 6: (18) r1 = 0xc0080000048a0000 ; R1_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 8: (07) r1 += 256 ; R1_w=map_value(id=0,off=256,ks=4,vs=512,imm=0) 9: (b4) w2 = 4 ; R2_w=inv4 10: (85) call bpf_probe_read_kernel#113 ; R0_w=inv(id=0) 11: (bf) r1 = r0 ; R0_w=inv(id=1) R1_w=inv(id=1) 12: (b4) w0 = 1 ; R0_w=inv1 ; if (CORE_READ(&out->a.a.a, &in->a.a.a)) 13: (55) if r1 != 0x0 goto pc+12 ; R1_w=inv0 14: (85) call unknown#195896080 invalid func unknown#195896080 processed 12 insns (limit 1000000) max_states_per_insn 0 total_states 0 peak_states 0 mark_read 0 -- END PROG LOAD LOG -- libbpf: failed to load program 'test_core_nesting' libbpf: failed to load object 'test_core_reloc_nesting.o' #38/17 core_reloc/nesting___err_partial_match_dups:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: prog 'test_core_nesting': relo #1: error matching candidate #0 [4] struct core_reloc_nesting___err_too_deep.b.b (0:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0 @ offset 4): -7 libbpf: prog 'test_core_nesting': relo #1: failed to relocate: -7 libbpf: failed to perform CO-RE relocations: -7 libbpf: failed to load object 'test_core_reloc_nesting.o' #38/18 core_reloc/nesting___err_too_deep:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/19 core_reloc/arrays:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/20 core_reloc/arrays___diff_arr_dim:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/21 core_reloc/arrays___diff_arr_val_sz:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/22 core_reloc/arrays___equiv_zero_sz_arr:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/23 core_reloc/arrays___fixed_arr:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: prog 'test_core_arrays': BPF program load failed: Invalid argument libbpf: prog 'test_core_arrays': -- BEGIN PROG LOAD LOG -- arg#0 reference type('UNKNOWN ') size cannot be determined: -22 0: R1=ctx(id=0,off=0,imm=0) R10=fp0 ; int test_core_arrays(void *ctx) 0: (85) call unknown#195896080 invalid func unknown#195896080 processed 1 insns (limit 1000000) max_states_per_insn 0 total_states 0 peak_states 0 mark_read 0 -- END PROG LOAD LOG -- libbpf: failed to load program 'test_core_arrays' libbpf: failed to load object 'test_core_reloc_arrays.o' #38/24 core_reloc/arrays___err_too_small:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: prog 'test_core_arrays': BPF program load failed: Invalid argument libbpf: prog 'test_core_arrays': -- BEGIN PROG LOAD LOG -- arg#0 reference type('UNKNOWN ') size cannot be determined: -22 0: R1=ctx(id=0,off=0,imm=0) R10=fp0 ; int test_core_arrays(void *ctx) 0: (b7) r1 = 8 ; R1_w=inv8 1: (18) r7 = 0xc008000003c70000 ; R7_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 3: (18) r3 = 0xc008000003c70000 ; R3_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 5: (0f) r3 += r1 ; R1_w=invP8 R3_w=map_value(id=0,off=8,ks=4,vs=512,imm=0) ; if (CORE_READ(&out->a2, &in->a[2])) 6: (18) r1 = 0xc008000003c70000 ; R1_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 8: (07) r1 += 256 ; R1_w=map_value(id=0,off=256,ks=4,vs=512,imm=0) 9: (b4) w2 = 4 ; R2_w=inv4 10: (85) call bpf_probe_read_kernel#113 ; R0_w=inv(id=0) 11: (b4) w6 = 1 ; R6_w=inv1 ; if (CORE_READ(&out->a2, &in->a[2])) 12: (55) if r0 != 0x0 goto pc+43 ; R0_w=inv0 13: (85) call unknown#195896080 invalid func unknown#195896080 processed 11 insns (limit 1000000) max_states_per_insn 0 total_states 0 peak_states 0 mark_read 0 -- END PROG LOAD LOG -- libbpf: failed to load program 'test_core_arrays' libbpf: failed to load object 'test_core_reloc_arrays.o' #38/25 core_reloc/arrays___err_too_shallow:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: prog 'test_core_arrays': BPF program load failed: Invalid argument libbpf: prog 'test_core_arrays': -- BEGIN PROG LOAD LOG -- arg#0 reference type('UNKNOWN ') size cannot be determined: -22 0: R1=ctx(id=0,off=0,imm=0) R10=fp0 ; int test_core_arrays(void *ctx) 0: (85) call unknown#195896080 invalid func unknown#195896080 processed 1 insns (limit 1000000) max_states_per_insn 0 total_states 0 peak_states 0 mark_read 0 -- END PROG LOAD LOG -- libbpf: failed to load program 'test_core_arrays' libbpf: failed to load object 'test_core_reloc_arrays.o' #38/26 core_reloc/arrays___err_non_array:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: prog 'test_core_arrays': BPF program load failed: Invalid argument libbpf: prog 'test_core_arrays': -- BEGIN PROG LOAD LOG -- arg#0 reference type('UNKNOWN ') size cannot be determined: -22 0: R1=ctx(id=0,off=0,imm=0) R10=fp0 ; int test_core_arrays(void *ctx) 0: (b7) r1 = 8 ; R1_w=inv8 1: (18) r7 = 0xc0080000041e0000 ; R7_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 3: (18) r3 = 0xc0080000041e0000 ; R3_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 5: (0f) r3 += r1 ; R1_w=invP8 R3_w=map_value(id=0,off=8,ks=4,vs=512,imm=0) ; if (CORE_READ(&out->a2, &in->a[2])) 6: (18) r1 = 0xc0080000041e0000 ; R1_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 8: (07) r1 += 256 ; R1_w=map_value(id=0,off=256,ks=4,vs=512,imm=0) 9: (b4) w2 = 4 ; R2_w=inv4 10: (85) call bpf_probe_read_kernel#113 ; R0_w=inv(id=0) 11: (b4) w6 = 1 ; R6_w=inv1 ; if (CORE_READ(&out->a2, &in->a[2])) 12: (55) if r0 != 0x0 goto pc+43 ; R0_w=inv0 13: (b7) r1 = 43 ; R1_w=inv43 14: (18) r3 = 0xc0080000041e0000 ; R3_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 16: (0f) r3 += r1 ; R1_w=invP43 R3_w=map_value(id=0,off=43,ks=4,vs=512,imm=0) ; if (CORE_READ(&out->b123, &in->b[1][2][3])) 17: (07) r7 += 260 ; R7_w=map_value(id=0,off=260,ks=4,vs=512,imm=0) 18: (b4) w6 = 1 ; R6_w=inv1 19: (bf) r1 = r7 ; R1_w=map_value(id=0,off=260,ks=4,vs=512,imm=0) R7_w=map_value(id=0,off=260,ks=4,vs=512,imm=0) 20: (b4) w2 = 1 ; R2_w=inv1 21: (85) call bpf_probe_read_kernel#113 ; R0=inv(id=0) ; if (CORE_READ(&out->b123, &in->b[1][2][3])) 22: (55) if r0 != 0x0 goto pc+33 ; R0=inv0 23: (85) call unknown#195896080 invalid func unknown#195896080 processed 20 insns (limit 1000000) max_states_per_insn 0 total_states 1 peak_states 1 mark_read 1 -- END PROG LOAD LOG -- libbpf: failed to load program 'test_core_arrays' libbpf: failed to load object 'test_core_reloc_arrays.o' #38/27 core_reloc/arrays___err_wrong_val_type:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: prog 'test_core_arrays': BPF program load failed: Invalid argument libbpf: prog 'test_core_arrays': -- BEGIN PROG LOAD LOG -- arg#0 reference type('UNKNOWN ') size cannot be determined: -22 0: R1=ctx(id=0,off=0,imm=0) R10=fp0 ; int test_core_arrays(void *ctx) 0: (b7) r1 = 8 ; R1_w=inv8 1: (18) r7 = 0xc008000004650000 ; R7_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 3: (18) r3 = 0xc008000004650000 ; R3_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 5: (0f) r3 += r1 ; R1_w=invP8 R3_w=map_value(id=0,off=8,ks=4,vs=512,imm=0) ; if (CORE_READ(&out->a2, &in->a[2])) 6: (18) r1 = 0xc008000004650000 ; R1_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 8: (07) r1 += 256 ; R1_w=map_value(id=0,off=256,ks=4,vs=512,imm=0) 9: (b4) w2 = 4 ; R2_w=inv4 10: (85) call bpf_probe_read_kernel#113 ; R0_w=inv(id=0) 11: (b4) w6 = 1 ; R6_w=inv1 ; if (CORE_READ(&out->a2, &in->a[2])) 12: (55) if r0 != 0x0 goto pc+43 ; R0_w=inv0 13: (b7) r1 = 43 ; R1_w=inv43 14: (18) r3 = 0xc008000004650000 ; R3_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 16: (0f) r3 += r1 ; R1_w=invP43 R3_w=map_value(id=0,off=43,ks=4,vs=512,imm=0) ; if (CORE_READ(&out->b123, &in->b[1][2][3])) 17: (07) r7 += 260 ; R7_w=map_value(id=0,off=260,ks=4,vs=512,imm=0) 18: (b4) w6 = 1 ; R6_w=inv1 19: (bf) r1 = r7 ; R1_w=map_value(id=0,off=260,ks=4,vs=512,imm=0) R7_w=map_value(id=0,off=260,ks=4,vs=512,imm=0) 20: (b4) w2 = 1 ; R2_w=inv1 21: (85) call bpf_probe_read_kernel#113 ; R0=inv(id=0) ; if (CORE_READ(&out->b123, &in->b[1][2][3])) 22: (55) if r0 != 0x0 goto pc+33 ; R0=inv0 23: (b7) r1 = 52 ; R1_w=inv52 24: (18) r7 = 0xc008000004650000 ; R7_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 26: (18) r3 = 0xc008000004650000 ; R3_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 28: (0f) r3 += r1 ; R1_w=invP52 R3_w=map_value(id=0,off=52,ks=4,vs=512,imm=0) ; if (CORE_READ(&out->c1c, &in->c[1].c)) 29: (18) r1 = 0xc008000004650000 ; R1_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 31: (07) r1 += 264 ; R1_w=map_value(id=0,off=264,ks=4,vs=512,imm=0) 32: (b4) w2 = 4 ; R2_w=inv4 33: (85) call bpf_probe_read_kernel#113 ; R0=inv(id=0) ; if (CORE_READ(&out->c1c, &in->c[1].c)) 34: (55) if r0 != 0x0 goto pc+21 ; R0=inv0 35: (b7) r1 = 72 ; R1_w=inv72 36: (18) r3 = 0xc008000004650000 ; R3_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 38: (0f) r3 += r1 ; R1_w=invP72 R3_w=map_value(id=0,off=72,ks=4,vs=512,imm=0) ; if (CORE_READ(&out->d00d, &in->d[0][0].d)) 39: (07) r7 += 268 ; R7_w=map_value(id=0,off=268,ks=4,vs=512,imm=0) 40: (bf) r1 = r7 ; R1_w=map_value(id=0,off=268,ks=4,vs=512,imm=0) R7_w=map_value(id=0,off=268,ks=4,vs=512,imm=0) 41: (b4) w2 = 4 ; R2_w=inv4 42: (85) call bpf_probe_read_kernel#113 ; R0=inv(id=0) ; if (CORE_READ(&out->d00d, &in->d[0][0].d)) 43: (55) if r0 != 0x0 goto pc+12 ; R0=inv0 44: (85) call unknown#195896080 invalid func unknown#195896080 processed 37 insns (limit 1000000) max_states_per_insn 0 total_states 3 peak_states 3 mark_read 1 -- END PROG LOAD LOG -- libbpf: failed to load program 'test_core_arrays' libbpf: failed to load object 'test_core_reloc_arrays.o' #38/28 core_reloc/arrays___err_bad_zero_sz_arr:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/29 core_reloc/primitives:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/30 core_reloc/primitives___diff_enum_def:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/31 core_reloc/primitives___diff_func_proto:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/32 core_reloc/primitives___diff_ptr_type:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: prog 'test_core_primitives': BPF program load failed: Invalid argument libbpf: prog 'test_core_primitives': -- BEGIN PROG LOAD LOG -- arg#0 reference type('UNKNOWN ') size cannot be determined: -22 0: R1=ctx(id=0,off=0,imm=0) R10=fp0 ; int test_core_primitives(void *ctx) 0: (85) call unknown#195896080 invalid func unknown#195896080 processed 1 insns (limit 1000000) max_states_per_insn 0 total_states 0 peak_states 0 mark_read 0 -- END PROG LOAD LOG -- libbpf: failed to load program 'test_core_primitives' libbpf: failed to load object 'test_core_reloc_primitives.o' #38/33 core_reloc/primitives___err_non_enum:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: prog 'test_core_primitives': BPF program load failed: Invalid argument libbpf: prog 'test_core_primitives': -- BEGIN PROG LOAD LOG -- arg#0 reference type('UNKNOWN ') size cannot be determined: -22 0: R1=ctx(id=0,off=0,imm=0) R10=fp0 ; int test_core_primitives(void *ctx) 0: (85) call unknown#195896080 invalid func unknown#195896080 processed 1 insns (limit 1000000) max_states_per_insn 0 total_states 0 peak_states 0 mark_read 0 -- END PROG LOAD LOG -- libbpf: failed to load program 'test_core_primitives' libbpf: failed to load object 'test_core_reloc_primitives.o' #38/34 core_reloc/primitives___err_non_int:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: prog 'test_core_primitives': BPF program load failed: Invalid argument libbpf: prog 'test_core_primitives': -- BEGIN PROG LOAD LOG -- arg#0 reference type('UNKNOWN ') size cannot be determined: -22 0: R1=ctx(id=0,off=0,imm=0) R10=fp0 ; int test_core_primitives(void *ctx) 0: (85) call unknown#195896080 invalid func unknown#195896080 processed 1 insns (limit 1000000) max_states_per_insn 0 total_states 0 peak_states 0 mark_read 0 -- END PROG LOAD LOG -- libbpf: failed to load program 'test_core_primitives' libbpf: failed to load object 'test_core_reloc_primitives.o' #38/35 core_reloc/primitives___err_non_ptr:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/36 core_reloc/mods:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/37 core_reloc/mods___mod_swap:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/38 core_reloc/mods___typedefs:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/39 core_reloc/ptr_as_arr:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/40 core_reloc/ptr_as_arr___diff_sz:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/41 core_reloc/ints:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/42 core_reloc/ints___bool:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/43 core_reloc/ints___reverse_sign:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/44 core_reloc/misc:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/45 core_reloc/existence:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/46 core_reloc/existence___minimal:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/47 core_reloc/existence___wrong_field_defs:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/48 core_reloc/probed:bitfields:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/49 core_reloc/direct:bitfields:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/50 core_reloc/probed:bitfields___bit_sz_change:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/51 core_reloc/direct:bitfields___bit_sz_change:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/52 core_reloc/probed:bitfields___bitfield_vs_int:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/53 core_reloc/direct:bitfields___bitfield_vs_int:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/54 core_reloc/probed:bitfields___just_big_enough:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/55 core_reloc/direct:bitfields___just_big_enough:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: prog 'test_core_bitfields': relo 0 at insn #22 can't be satisfied for bitfield libbpf: prog 'test_core_bitfields': relo #6: failed to relocate: -7 libbpf: failed to perform CO-RE relocations: -7 libbpf: failed to load object 'test_core_reloc_bitfields_probed.o' #38/56 core_reloc/probed:bitfields___err_too_big_bitfield:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: prog 'test_core_bitfields_direct': relo 0 at insn #28 can't be satisfied for bitfield libbpf: prog 'test_core_bitfields_direct': relo #6: failed to relocate: -7 libbpf: failed to perform CO-RE relocations: -7 libbpf: failed to load object 'test_core_reloc_bitfields_direct.o' #38/57 core_reloc/direct:bitfields___err_too_big_bitfield:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/58 core_reloc/size:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/59 core_reloc/size___diff_sz:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: prog 'test_core_size': relo #0: relocation decision ambiguity: success 1 != success 4 libbpf: prog 'test_core_size': relo #0: failed to relocate: -22 libbpf: failed to perform CO-RE relocations: -22 libbpf: failed to load object 'test_core_reloc_size.o' #38/60 core_reloc/size___err_ambiguous:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/61 core_reloc/type_based:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/62 core_reloc/type_based___all_missing:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/63 core_reloc/type_based___diff_sz:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/64 core_reloc/type_based___incompat:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/65 core_reloc/type_based___fn_wrong_args:OK setup_type_id_case_local:PASS:local_btf 0 nsec setup_type_id_case_local:PASS:targ_btf 0 nsec find_btf_type:PASS:find_type_id 0 nsec find_btf_type:PASS:find_type_id 0 nsec find_btf_type:PASS:find_type_id 0 nsec find_btf_type:PASS:find_type_id 0 nsec find_btf_type:PASS:find_type_id 0 nsec find_btf_type:PASS:find_type_id 0 nsec find_btf_type:PASS:find_type_id 0 nsec find_btf_type:PASS:find_type_id 0 nsec find_btf_type:PASS:find_type_id 0 nsec find_btf_type:PASS:find_type_id 0 nsec find_btf_type:PASS:find_type_id 0 nsec find_btf_type:PASS:find_type_id 0 nsec find_btf_type:PASS:find_type_id 0 nsec find_btf_type:PASS:find_type_id 0 nsec test_core_reloc:PASS:test_setup 0 nsec test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/66 core_reloc/type_id:OK setup_type_id_case_local:PASS:local_btf 0 nsec setup_type_id_case_local:PASS:targ_btf 0 nsec find_btf_type:PASS:find_type_id 0 nsec find_btf_type:PASS:find_type_id 0 nsec find_btf_type:PASS:find_type_id 0 nsec find_btf_type:PASS:find_type_id 0 nsec find_btf_type:PASS:find_type_id 0 nsec find_btf_type:PASS:find_type_id 0 nsec find_btf_type:PASS:find_type_id 0 nsec test_core_reloc:PASS:test_setup 0 nsec test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/67 core_reloc/type_id___missing_targets:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/68 core_reloc/enumval:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/69 core_reloc/enumval___diff:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/70 core_reloc/enumval___val3_missing:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: prog 'test_core_enumval': BPF program load failed: Invalid argument libbpf: prog 'test_core_enumval': -- BEGIN PROG LOAD LOG -- arg#0 reference type('UNKNOWN ') size cannot be determined: -22 0: R1=ctx(id=0,off=0,imm=0) R10=fp0 ; int test_core_enumval(void *ctx) 0: (18) r4 = 0x0 ; R4_w=inv0 2: (18) r3 = 0x1 ; R3_w=inv1 4: (b4) w2 = 1 ; R2_w=inv1 5: (b4) w1 = 1 ; R1_w=inv1 ; out->anon_val3_exists = bpf_core_enum_value_exists(anon_enum, ANON_ENUM_VAL3); 6: (55) if r3 != 0x0 goto pc+1 ; R3_w=invP1 8: (18) r5 = 0x1 ; R5_w=inv1 10: (b4) w3 = 1 ; R3_w=inv1 ; out->anon_val2_exists = bpf_core_enum_value_exists(anon_enum, ANON_ENUM_VAL2); 11: (55) if r4 != 0x0 goto pc+1 ; R4_w=invP0 12: (b4) w3 = 0 ; R3=inv0 13: (18) r0 = 0x1 ; R0_w=inv1 15: (b4) w4 = 1 ; R4_w=inv1 ; out->anon_val1_exists = bpf_core_enum_value_exists(anon, ANON_ENUM_VAL1); 16: (55) if r5 != 0x0 goto pc+1 ; R5=invP1 18: (18) r6 = 0x0 ; R6_w=inv0 20: (b4) w5 = 1 ; R5_w=inv1 ; out->named_val3_exists = bpf_core_enum_value_exists(enum named_enum, NAMED_ENUM_VAL3); 21: (55) if r0 != 0x0 goto pc+1 ; R0_w=invP1 23: (b4) w0 = 1 ; R0_w=inv1 ; out->named_val2_exists = bpf_core_enum_value_exists(enum named_enum, NAMED_ENUM_VAL2); 24: (55) if r6 != 0x0 goto pc+1 ; R6_w=invP0 25: (b4) w0 = 0 ; R0=inv0 26: (18) r6 = 0x1 ; R6_w=inv1 ; out->named_val1_exists = bpf_core_enum_value_exists(named, NAMED_ENUM_VAL1); 28: (55) if r6 != 0x0 goto pc+1 ; R6_w=invP1 ; out->named_val1_exists = bpf_core_enum_value_exists(named, NAMED_ENUM_VAL1); 30: (18) r6 = 0xc0080000023f0000 ; R6_w=map_value(id=0,off=0,ks=4,vs=513,imm=0) 32: (73) *(u8 *)(r6 +256) = r2 ; R2=inv1 R6_w=map_value(id=0,off=0,ks=4,vs=513,imm=0) ; out->named_val2_exists = bpf_core_enum_value_exists(enum named_enum, NAMED_ENUM_VAL2); 33: (73) *(u8 *)(r6 +257) = r0 ; R0=inv0 R6_w=map_value(id=0,off=0,ks=4,vs=513,imm=0) ; out->named_val3_exists = bpf_core_enum_value_exists(enum named_enum, NAMED_ENUM_VAL3); 34: (73) *(u8 *)(r6 +258) = r5 ; R5=inv1 R6_w=map_value(id=0,off=0,ks=4,vs=513,imm=0) ; out->anon_val1_exists = bpf_core_enum_value_exists(anon, ANON_ENUM_VAL1); 35: (73) *(u8 *)(r6 +259) = r4 ; R4=inv1 R6_w=map_value(id=0,off=0,ks=4,vs=513,imm=0) ; out->anon_val2_exists = bpf_core_enum_value_exists(anon_enum, ANON_ENUM_VAL2); 36: (73) *(u8 *)(r6 +260) = r3 ; R3=inv0 R6_w=map_value(id=0,off=0,ks=4,vs=513,imm=0) ; out->anon_val3_exists = bpf_core_enum_value_exists(anon_enum, ANON_ENUM_VAL3); 37: (73) *(u8 *)(r6 +261) = r1 ; R1=inv1 R6_w=map_value(id=0,off=0,ks=4,vs=513,imm=0) 38: (18) r1 = 0x1 ; R1_w=inv1 ; out->named_val1 = bpf_core_enum_value(named, NAMED_ENUM_VAL1); 40: (63) *(u32 *)(r6 +264) = r1 ; R1_w=inv1 R6_w=map_value(id=0,off=0,ks=4,vs=513,imm=0) 41: (85) call unknown#195896080 invalid func unknown#195896080 processed 30 insns (limit 1000000) max_states_per_insn 0 total_states 2 peak_states 2 mark_read 2 -- END PROG LOAD LOG -- libbpf: failed to load program 'test_core_enumval' libbpf: failed to load object 'test_core_reloc_enumval.o' #38/71 core_reloc/enumval___err_missing:OK #38 core_reloc:FAIL All error logs: #38 core_reloc:FAIL test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/1 core_reloc/kernel:OK test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: prog 'test_core_module_probed': BPF program load failed: Invalid argument libbpf: prog 'test_core_module_probed': -- BEGIN PROG LOAD LOG -- R1 type=ctx expected=fp 0: R1=ctx(id=0,off=0,imm=0) R10=fp0 ; int BPF_PROG(test_core_module_probed, 0: (79) r7 = *(u64 *)(r1 +8) ; R1=ctx(id=0,off=0,imm=0) R7_w=inv(id=0) 1: (79) r6 = *(u64 *)(r1 +0) ; R1=ctx(id=0,off=0,imm=0) R6_w=inv(id=0) ; __u64 pid_tgid = bpf_get_current_pid_tgid(); 2: (85) call bpf_get_current_pid_tgid#14 ; R0_w=inv(id=0) 3: (bf) r8 = r0 ; R0_w=inv(id=1) R8_w=inv(id=1) ; if (data.my_pid_tgid != pid_tgid) 4: (18) r1 = 0xc008000004b00000 ; R1_w=map_value(id=0,off=0,ks=4,vs=528,imm=0) 6: (79) r1 = *(u64 *)(r1 +520) ; R1_w=inv(id=0) ; if (data.my_pid_tgid != pid_tgid) 7: (5d) if r1 != r8 goto pc+70 ; R1_w=inv(id=0) R8_w=inv(id=1) 8: (b7) r1 = 2296 ; R1_w=inv2296 9: (bf) r3 = r6 ; R3_w=inv(id=2) R6_w=inv(id=2) 10: (0f) r3 += r1 ; R1_w=inv2296 R3_w=inv(id=0) 11: (bf) r1 = r10 ; R1_w=fp0 R10=fp0 ; 12: (07) r1 += -8 ; R1_w=fp-8 ; if (BPF_CORE_READ(task, pid) != real_pid || BPF_CORE_READ(task, tgid) != real_tgid) 13: (b4) w2 = 4 ; R2_w=inv4 14: (85) call bpf_probe_read_kernel#113 ; R0=inv(id=0) fp-8=????mmmm ; if (BPF_CORE_READ(task, pid) != real_pid || BPF_CORE_READ(task, tgid) != real_tgid) 15: (61) r1 = *(u32 *)(r10 -8) ; R1_w=inv(id=0,umax_value=4294967295,var_off=(0x0; 0xffffffff)) R10=fp0 ; if (BPF_CORE_READ(task, pid) != real_pid || BPF_CORE_READ(task, tgid) != real_tgid) 16: (5e) if w1 != w8 goto pc+61 ; R1_w=inv(id=0,umax_value=4294967295,var_off=(0x0; 0xffffffff)) R8=inv(id=1) 17: (77) r8 >>= 32 ; R8_w=inv(id=0,umax_value=4294967295,var_off=(0x0; 0xffffffff)) 18: (b7) r1 = 2300 ; R1_w=inv2300 19: (bf) r3 = r6 ; R3_w=inv(id=2) R6=inv(id=2) 20: (0f) r3 += r1 ; R1_w=inv2300 R3_w=inv(id=0) 21: (bf) r1 = r10 ; R1_w=fp0 R10=fp0 ; 22: (07) r1 += -8 ; R1_w=fp-8 ; if (BPF_CORE_READ(task, pid) != real_pid || BPF_CORE_READ(task, tgid) != real_tgid) 23: (b4) w2 = 4 ; R2_w=inv4 24: (85) call bpf_probe_read_kernel#113 ; R0=inv(id=0) fp-8=????mmmm ; if (BPF_CORE_READ(task, pid) != real_pid || BPF_CORE_READ(task, tgid) != real_tgid) 25: (61) r1 = *(u32 *)(r10 -8) ; R1_w=inv(id=0,umax_value=4294967295,var_off=(0x0; 0xffffffff)) R10=fp0 ; if (BPF_CORE_READ(task, pid) != real_pid || BPF_CORE_READ(task, tgid) != real_tgid) 26: (5e) if w1 != w8 goto pc+51 ; R1_w=inv(id=0,umax_value=4294967295,var_off=(0x0; 0xffffffff)) R8=inv(id=0,umax_value=4294967295,var_off=(0x0; 0xffffffff)) 27: (85) call unknown#195896080 invalid func unknown#195896080 processed 27 insns (limit 1000000) max_states_per_insn 0 total_states 2 peak_states 2 mark_read 1 -- END PROG LOAD LOG -- libbpf: failed to load program 'test_core_module_probed' libbpf: failed to load object 'test_core_reloc_module.o' test_core_reloc:FAIL:obj_load unexpected error: -22 (errno 22) #38/2 core_reloc/module_probed:FAIL test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: prog 'test_core_module_probed': BPF program load failed: Invalid argument libbpf: prog 'test_core_module_probed': -- BEGIN PROG LOAD LOG -- R1 type=ctx expected=fp 0: R1=ctx(id=0,off=0,imm=0) R10=fp0 ; int BPF_PROG(test_core_module_probed, 0: (79) r7 = *(u64 *)(r1 +8) ; R1=ctx(id=0,off=0,imm=0) R7_w=inv(id=0) 1: (79) r6 = *(u64 *)(r1 +0) ; R1=ctx(id=0,off=0,imm=0) R6_w=inv(id=0) ; __u64 pid_tgid = bpf_get_current_pid_tgid(); 2: (85) call bpf_get_current_pid_tgid#14 ; R0_w=inv(id=0) 3: (bf) r8 = r0 ; R0_w=inv(id=1) R8_w=inv(id=1) ; if (data.my_pid_tgid != pid_tgid) 4: (18) r1 = 0xc008000002970000 ; R1_w=map_value(id=0,off=0,ks=4,vs=528,imm=0) 6: (79) r1 = *(u64 *)(r1 +520) ; R1_w=inv(id=0) ; if (data.my_pid_tgid != pid_tgid) 7: (5d) if r1 != r8 goto pc+70 ; R1_w=inv(id=0) R8_w=inv(id=1) 8: (b7) r1 = 2296 ; R1_w=inv2296 9: (bf) r3 = r6 ; R3_w=inv(id=2) R6_w=inv(id=2) 10: (0f) r3 += r1 ; R1_w=inv2296 R3_w=inv(id=0) 11: (bf) r1 = r10 ; R1_w=fp0 R10=fp0 ; 12: (07) r1 += -8 ; R1_w=fp-8 ; if (BPF_CORE_READ(task, pid) != real_pid || BPF_CORE_READ(task, tgid) != real_tgid) 13: (b4) w2 = 4 ; R2_w=inv4 14: (85) call bpf_probe_read_kernel#113 ; R0=inv(id=0) fp-8=????mmmm ; if (BPF_CORE_READ(task, pid) != real_pid || BPF_CORE_READ(task, tgid) != real_tgid) 15: (61) r1 = *(u32 *)(r10 -8) ; R1_w=inv(id=0,umax_value=4294967295,var_off=(0x0; 0xffffffff)) R10=fp0 ; if (BPF_CORE_READ(task, pid) != real_pid || BPF_CORE_READ(task, tgid) != real_tgid) 16: (5e) if w1 != w8 goto pc+61 ; R1_w=inv(id=0,umax_value=4294967295,var_off=(0x0; 0xffffffff)) R8=inv(id=1) 17: (77) r8 >>= 32 ; R8_w=inv(id=0,umax_value=4294967295,var_off=(0x0; 0xffffffff)) 18: (b7) r1 = 2300 ; R1_w=inv2300 19: (bf) r3 = r6 ; R3_w=inv(id=2) R6=inv(id=2) 20: (0f) r3 += r1 ; R1_w=inv2300 R3_w=inv(id=0) 21: (bf) r1 = r10 ; R1_w=fp0 R10=fp0 ; 22: (07) r1 += -8 ; R1_w=fp-8 ; if (BPF_CORE_READ(task, pid) != real_pid || BPF_CORE_READ(task, tgid) != real_tgid) 23: (b4) w2 = 4 ; R2_w=inv4 24: (85) call bpf_probe_read_kernel#113 ; R0=inv(id=0) fp-8=????mmmm ; if (BPF_CORE_READ(task, pid) != real_pid || BPF_CORE_READ(task, tgid) != real_tgid) 25: (61) r1 = *(u32 *)(r10 -8) ; R1_w=inv(id=0,umax_value=4294967295,var_off=(0x0; 0xffffffff)) R10=fp0 ; if (BPF_CORE_READ(task, pid) != real_pid || BPF_CORE_READ(task, tgid) != real_tgid) 26: (5e) if w1 != w8 goto pc+51 ; R1_w=inv(id=0,umax_value=4294967295,var_off=(0x0; 0xffffffff)) R8=inv(id=0,umax_value=4294967295,var_off=(0x0; 0xffffffff)) 27: (85) call unknown#195896080 invalid func unknown#195896080 processed 27 insns (limit 1000000) max_states_per_insn 0 total_states 2 peak_states 2 mark_read 1 -- END PROG LOAD LOG -- libbpf: failed to load program 'test_core_module_probed' libbpf: failed to load object 'test_core_reloc_module.o' test_core_reloc:FAIL:obj_load unexpected error: -22 (errno 22) #38/3 core_reloc/module_direct:FAIL test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/4 core_reloc/flavors:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: prog 'test_core_flavors': BPF program load failed: Invalid argument libbpf: prog 'test_core_flavors': -- BEGIN PROG LOAD LOG -- arg#0 reference type('UNKNOWN ') size cannot be determined: -22 0: R1=ctx(id=0,off=0,imm=0) R10=fp0 ; int test_core_flavors(void *ctx) 0: (85) call unknown#195896080 invalid func unknown#195896080 processed 1 insns (limit 1000000) max_states_per_insn 0 total_states 0 peak_states 0 mark_read 0 -- END PROG LOAD LOG -- libbpf: failed to load program 'test_core_flavors' libbpf: failed to load object 'test_core_reloc_flavors.o' #38/5 core_reloc/flavors__err_wrong_name:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/6 core_reloc/nesting:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/7 core_reloc/nesting___anon_embed:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/8 core_reloc/nesting___struct_union_mixup:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/9 core_reloc/nesting___extra_nesting:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/10 core_reloc/nesting___dup_compat_types:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: prog 'test_core_nesting': BPF program load failed: Invalid argument libbpf: prog 'test_core_nesting': -- BEGIN PROG LOAD LOG -- arg#0 reference type('UNKNOWN ') size cannot be determined: -22 0: R1=ctx(id=0,off=0,imm=0) R10=fp0 ; int test_core_nesting(void *ctx) 0: (b7) r1 = 0 ; R1_w=inv0 1: (18) r6 = 0xc0080000028d0000 ; R6_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 3: (18) r3 = 0xc0080000028d0000 ; R3_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 5: (0f) r3 += r1 ; R1_w=invP0 R3_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) ; if (CORE_READ(&out->a.a.a, &in->a.a.a)) 6: (18) r1 = 0xc0080000028d0000 ; R1_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 8: (07) r1 += 256 ; R1_w=map_value(id=0,off=256,ks=4,vs=512,imm=0) 9: (b4) w2 = 4 ; R2_w=inv4 10: (85) call bpf_probe_read_kernel#113 ; R0_w=inv(id=0) 11: (bf) r1 = r0 ; R0_w=inv(id=1) R1_w=inv(id=1) 12: (b4) w0 = 1 ; R0_w=inv1 ; if (CORE_READ(&out->a.a.a, &in->a.a.a)) 13: (55) if r1 != 0x0 goto pc+12 ; R1_w=inv0 14: (85) call unknown#195896080 invalid func unknown#195896080 processed 12 insns (limit 1000000) max_states_per_insn 0 total_states 0 peak_states 0 mark_read 0 -- END PROG LOAD LOG -- libbpf: failed to load program 'test_core_nesting' libbpf: failed to load object 'test_core_reloc_nesting.o' #38/11 core_reloc/nesting___err_missing_field:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: prog 'test_core_nesting': BPF program load failed: Invalid argument libbpf: prog 'test_core_nesting': -- BEGIN PROG LOAD LOG -- arg#0 reference type('UNKNOWN ') size cannot be determined: -22 0: R1=ctx(id=0,off=0,imm=0) R10=fp0 ; int test_core_nesting(void *ctx) 0: (b7) r1 = 0 ; R1_w=inv0 1: (18) r6 = 0xc008000003c40000 ; R6_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 3: (18) r3 = 0xc008000003c40000 ; R3_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 5: (0f) r3 += r1 ; R1_w=invP0 R3_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) ; if (CORE_READ(&out->a.a.a, &in->a.a.a)) 6: (18) r1 = 0xc008000003c40000 ; R1_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 8: (07) r1 += 256 ; R1_w=map_value(id=0,off=256,ks=4,vs=512,imm=0) 9: (b4) w2 = 4 ; R2_w=inv4 10: (85) call bpf_probe_read_kernel#113 ; R0_w=inv(id=0) 11: (bf) r1 = r0 ; R0_w=inv(id=1) R1_w=inv(id=1) 12: (b4) w0 = 1 ; R0_w=inv1 ; if (CORE_READ(&out->a.a.a, &in->a.a.a)) 13: (55) if r1 != 0x0 goto pc+12 ; R1_w=inv0 14: (85) call unknown#195896080 invalid func unknown#195896080 processed 12 insns (limit 1000000) max_states_per_insn 0 total_states 0 peak_states 0 mark_read 0 -- END PROG LOAD LOG -- libbpf: failed to load program 'test_core_nesting' libbpf: failed to load object 'test_core_reloc_nesting.o' #38/12 core_reloc/nesting___err_array_field:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: prog 'test_core_nesting': BPF program load failed: Invalid argument libbpf: prog 'test_core_nesting': -- BEGIN PROG LOAD LOG -- arg#0 reference type('UNKNOWN ') size cannot be determined: -22 0: R1=ctx(id=0,off=0,imm=0) R10=fp0 ; int test_core_nesting(void *ctx) 0: (b7) r1 = 0 ; R1_w=inv0 1: (18) r6 = 0xc008000004070000 ; R6_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 3: (18) r3 = 0xc008000004070000 ; R3_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 5: (0f) r3 += r1 ; R1_w=invP0 R3_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) ; if (CORE_READ(&out->a.a.a, &in->a.a.a)) 6: (18) r1 = 0xc008000004070000 ; R1_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 8: (07) r1 += 256 ; R1_w=map_value(id=0,off=256,ks=4,vs=512,imm=0) 9: (b4) w2 = 4 ; R2_w=inv4 10: (85) call bpf_probe_read_kernel#113 ; R0_w=inv(id=0) 11: (bf) r1 = r0 ; R0_w=inv(id=1) R1_w=inv(id=1) 12: (b4) w0 = 1 ; R0_w=inv1 ; if (CORE_READ(&out->a.a.a, &in->a.a.a)) 13: (55) if r1 != 0x0 goto pc+12 ; R1_w=inv0 14: (85) call unknown#195896080 invalid func unknown#195896080 processed 12 insns (limit 1000000) max_states_per_insn 0 total_states 0 peak_states 0 mark_read 0 -- END PROG LOAD LOG -- libbpf: failed to load program 'test_core_nesting' libbpf: failed to load object 'test_core_reloc_nesting.o' #38/13 core_reloc/nesting___err_missing_container:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: prog 'test_core_nesting': BPF program load failed: Invalid argument libbpf: prog 'test_core_nesting': -- BEGIN PROG LOAD LOG -- arg#0 reference type('UNKNOWN ') size cannot be determined: -22 0: R1=ctx(id=0,off=0,imm=0) R10=fp0 ; int test_core_nesting(void *ctx) 0: (b7) r1 = 0 ; R1_w=inv0 1: (18) r6 = 0xc0080000041e0000 ; R6_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 3: (18) r3 = 0xc0080000041e0000 ; R3_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 5: (0f) r3 += r1 ; R1_w=invP0 R3_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) ; if (CORE_READ(&out->a.a.a, &in->a.a.a)) 6: (18) r1 = 0xc0080000041e0000 ; R1_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 8: (07) r1 += 256 ; R1_w=map_value(id=0,off=256,ks=4,vs=512,imm=0) 9: (b4) w2 = 4 ; R2_w=inv4 10: (85) call bpf_probe_read_kernel#113 ; R0_w=inv(id=0) 11: (bf) r1 = r0 ; R0_w=inv(id=1) R1_w=inv(id=1) 12: (b4) w0 = 1 ; R0_w=inv1 ; if (CORE_READ(&out->a.a.a, &in->a.a.a)) 13: (55) if r1 != 0x0 goto pc+12 ; R1_w=inv0 14: (85) call unknown#195896080 invalid func unknown#195896080 processed 12 insns (limit 1000000) max_states_per_insn 0 total_states 0 peak_states 0 mark_read 0 -- END PROG LOAD LOG -- libbpf: failed to load program 'test_core_nesting' libbpf: failed to load object 'test_core_reloc_nesting.o' #38/14 core_reloc/nesting___err_nonstruct_container:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: prog 'test_core_nesting': BPF program load failed: Invalid argument libbpf: prog 'test_core_nesting': -- BEGIN PROG LOAD LOG -- arg#0 reference type('UNKNOWN ') size cannot be determined: -22 0: R1=ctx(id=0,off=0,imm=0) R10=fp0 ; int test_core_nesting(void *ctx) 0: (b7) r1 = 0 ; R1_w=inv0 1: (18) r6 = 0xc008000004650000 ; R6_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 3: (18) r3 = 0xc008000004650000 ; R3_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 5: (0f) r3 += r1 ; R1_w=invP0 R3_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) ; if (CORE_READ(&out->a.a.a, &in->a.a.a)) 6: (18) r1 = 0xc008000004650000 ; R1_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 8: (07) r1 += 256 ; R1_w=map_value(id=0,off=256,ks=4,vs=512,imm=0) 9: (b4) w2 = 4 ; R2_w=inv4 10: (85) call bpf_probe_read_kernel#113 ; R0_w=inv(id=0) 11: (bf) r1 = r0 ; R0_w=inv(id=1) R1_w=inv(id=1) 12: (b4) w0 = 1 ; R0_w=inv1 ; if (CORE_READ(&out->a.a.a, &in->a.a.a)) 13: (55) if r1 != 0x0 goto pc+12 ; R1_w=inv0 14: (85) call unknown#195896080 invalid func unknown#195896080 processed 12 insns (limit 1000000) max_states_per_insn 0 total_states 0 peak_states 0 mark_read 0 -- END PROG LOAD LOG -- libbpf: failed to load program 'test_core_nesting' libbpf: failed to load object 'test_core_reloc_nesting.o' #38/15 core_reloc/nesting___err_array_container:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: prog 'test_core_nesting': relo #1: field offset ambiguity: 64 != 32 libbpf: prog 'test_core_nesting': relo #1: failed to relocate: -22 libbpf: failed to perform CO-RE relocations: -22 libbpf: failed to load object 'test_core_reloc_nesting.o' #38/16 core_reloc/nesting___err_dup_incompat_types:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: prog 'test_core_nesting': BPF program load failed: Invalid argument libbpf: prog 'test_core_nesting': -- BEGIN PROG LOAD LOG -- arg#0 reference type('UNKNOWN ') size cannot be determined: -22 0: R1=ctx(id=0,off=0,imm=0) R10=fp0 ; int test_core_nesting(void *ctx) 0: (b7) r1 = 0 ; R1_w=inv0 1: (18) r6 = 0xc0080000048a0000 ; R6_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 3: (18) r3 = 0xc0080000048a0000 ; R3_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 5: (0f) r3 += r1 ; R1_w=invP0 R3_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) ; if (CORE_READ(&out->a.a.a, &in->a.a.a)) 6: (18) r1 = 0xc0080000048a0000 ; R1_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 8: (07) r1 += 256 ; R1_w=map_value(id=0,off=256,ks=4,vs=512,imm=0) 9: (b4) w2 = 4 ; R2_w=inv4 10: (85) call bpf_probe_read_kernel#113 ; R0_w=inv(id=0) 11: (bf) r1 = r0 ; R0_w=inv(id=1) R1_w=inv(id=1) 12: (b4) w0 = 1 ; R0_w=inv1 ; if (CORE_READ(&out->a.a.a, &in->a.a.a)) 13: (55) if r1 != 0x0 goto pc+12 ; R1_w=inv0 14: (85) call unknown#195896080 invalid func unknown#195896080 processed 12 insns (limit 1000000) max_states_per_insn 0 total_states 0 peak_states 0 mark_read 0 -- END PROG LOAD LOG -- libbpf: failed to load program 'test_core_nesting' libbpf: failed to load object 'test_core_reloc_nesting.o' #38/17 core_reloc/nesting___err_partial_match_dups:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: prog 'test_core_nesting': relo #1: error matching candidate #0 [4] struct core_reloc_nesting___err_too_deep.b.b (0:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0 @ offset 4): -7 libbpf: prog 'test_core_nesting': relo #1: failed to relocate: -7 libbpf: failed to perform CO-RE relocations: -7 libbpf: failed to load object 'test_core_reloc_nesting.o' #38/18 core_reloc/nesting___err_too_deep:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/19 core_reloc/arrays:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/20 core_reloc/arrays___diff_arr_dim:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/21 core_reloc/arrays___diff_arr_val_sz:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/22 core_reloc/arrays___equiv_zero_sz_arr:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/23 core_reloc/arrays___fixed_arr:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: prog 'test_core_arrays': BPF program load failed: Invalid argument libbpf: prog 'test_core_arrays': -- BEGIN PROG LOAD LOG -- arg#0 reference type('UNKNOWN ') size cannot be determined: -22 0: R1=ctx(id=0,off=0,imm=0) R10=fp0 ; int test_core_arrays(void *ctx) 0: (85) call unknown#195896080 invalid func unknown#195896080 processed 1 insns (limit 1000000) max_states_per_insn 0 total_states 0 peak_states 0 mark_read 0 -- END PROG LOAD LOG -- libbpf: failed to load program 'test_core_arrays' libbpf: failed to load object 'test_core_reloc_arrays.o' #38/24 core_reloc/arrays___err_too_small:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: prog 'test_core_arrays': BPF program load failed: Invalid argument libbpf: prog 'test_core_arrays': -- BEGIN PROG LOAD LOG -- arg#0 reference type('UNKNOWN ') size cannot be determined: -22 0: R1=ctx(id=0,off=0,imm=0) R10=fp0 ; int test_core_arrays(void *ctx) 0: (b7) r1 = 8 ; R1_w=inv8 1: (18) r7 = 0xc008000003c70000 ; R7_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 3: (18) r3 = 0xc008000003c70000 ; R3_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 5: (0f) r3 += r1 ; R1_w=invP8 R3_w=map_value(id=0,off=8,ks=4,vs=512,imm=0) ; if (CORE_READ(&out->a2, &in->a[2])) 6: (18) r1 = 0xc008000003c70000 ; R1_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 8: (07) r1 += 256 ; R1_w=map_value(id=0,off=256,ks=4,vs=512,imm=0) 9: (b4) w2 = 4 ; R2_w=inv4 10: (85) call bpf_probe_read_kernel#113 ; R0_w=inv(id=0) 11: (b4) w6 = 1 ; R6_w=inv1 ; if (CORE_READ(&out->a2, &in->a[2])) 12: (55) if r0 != 0x0 goto pc+43 ; R0_w=inv0 13: (85) call unknown#195896080 invalid func unknown#195896080 processed 11 insns (limit 1000000) max_states_per_insn 0 total_states 0 peak_states 0 mark_read 0 -- END PROG LOAD LOG -- libbpf: failed to load program 'test_core_arrays' libbpf: failed to load object 'test_core_reloc_arrays.o' #38/25 core_reloc/arrays___err_too_shallow:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: prog 'test_core_arrays': BPF program load failed: Invalid argument libbpf: prog 'test_core_arrays': -- BEGIN PROG LOAD LOG -- arg#0 reference type('UNKNOWN ') size cannot be determined: -22 0: R1=ctx(id=0,off=0,imm=0) R10=fp0 ; int test_core_arrays(void *ctx) 0: (85) call unknown#195896080 invalid func unknown#195896080 processed 1 insns (limit 1000000) max_states_per_insn 0 total_states 0 peak_states 0 mark_read 0 -- END PROG LOAD LOG -- libbpf: failed to load program 'test_core_arrays' libbpf: failed to load object 'test_core_reloc_arrays.o' #38/26 core_reloc/arrays___err_non_array:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: prog 'test_core_arrays': BPF program load failed: Invalid argument libbpf: prog 'test_core_arrays': -- BEGIN PROG LOAD LOG -- arg#0 reference type('UNKNOWN ') size cannot be determined: -22 0: R1=ctx(id=0,off=0,imm=0) R10=fp0 ; int test_core_arrays(void *ctx) 0: (b7) r1 = 8 ; R1_w=inv8 1: (18) r7 = 0xc0080000041e0000 ; R7_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 3: (18) r3 = 0xc0080000041e0000 ; R3_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 5: (0f) r3 += r1 ; R1_w=invP8 R3_w=map_value(id=0,off=8,ks=4,vs=512,imm=0) ; if (CORE_READ(&out->a2, &in->a[2])) 6: (18) r1 = 0xc0080000041e0000 ; R1_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 8: (07) r1 += 256 ; R1_w=map_value(id=0,off=256,ks=4,vs=512,imm=0) 9: (b4) w2 = 4 ; R2_w=inv4 10: (85) call bpf_probe_read_kernel#113 ; R0_w=inv(id=0) 11: (b4) w6 = 1 ; R6_w=inv1 ; if (CORE_READ(&out->a2, &in->a[2])) 12: (55) if r0 != 0x0 goto pc+43 ; R0_w=inv0 13: (b7) r1 = 43 ; R1_w=inv43 14: (18) r3 = 0xc0080000041e0000 ; R3_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 16: (0f) r3 += r1 ; R1_w=invP43 R3_w=map_value(id=0,off=43,ks=4,vs=512,imm=0) ; if (CORE_READ(&out->b123, &in->b[1][2][3])) 17: (07) r7 += 260 ; R7_w=map_value(id=0,off=260,ks=4,vs=512,imm=0) 18: (b4) w6 = 1 ; R6_w=inv1 19: (bf) r1 = r7 ; R1_w=map_value(id=0,off=260,ks=4,vs=512,imm=0) R7_w=map_value(id=0,off=260,ks=4,vs=512,imm=0) 20: (b4) w2 = 1 ; R2_w=inv1 21: (85) call bpf_probe_read_kernel#113 ; R0=inv(id=0) ; if (CORE_READ(&out->b123, &in->b[1][2][3])) 22: (55) if r0 != 0x0 goto pc+33 ; R0=inv0 23: (85) call unknown#195896080 invalid func unknown#195896080 processed 20 insns (limit 1000000) max_states_per_insn 0 total_states 1 peak_states 1 mark_read 1 -- END PROG LOAD LOG -- libbpf: failed to load program 'test_core_arrays' libbpf: failed to load object 'test_core_reloc_arrays.o' #38/27 core_reloc/arrays___err_wrong_val_type:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: prog 'test_core_arrays': BPF program load failed: Invalid argument libbpf: prog 'test_core_arrays': -- BEGIN PROG LOAD LOG -- arg#0 reference type('UNKNOWN ') size cannot be determined: -22 0: R1=ctx(id=0,off=0,imm=0) R10=fp0 ; int test_core_arrays(void *ctx) 0: (b7) r1 = 8 ; R1_w=inv8 1: (18) r7 = 0xc008000004650000 ; R7_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 3: (18) r3 = 0xc008000004650000 ; R3_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 5: (0f) r3 += r1 ; R1_w=invP8 R3_w=map_value(id=0,off=8,ks=4,vs=512,imm=0) ; if (CORE_READ(&out->a2, &in->a[2])) 6: (18) r1 = 0xc008000004650000 ; R1_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 8: (07) r1 += 256 ; R1_w=map_value(id=0,off=256,ks=4,vs=512,imm=0) 9: (b4) w2 = 4 ; R2_w=inv4 10: (85) call bpf_probe_read_kernel#113 ; R0_w=inv(id=0) 11: (b4) w6 = 1 ; R6_w=inv1 ; if (CORE_READ(&out->a2, &in->a[2])) 12: (55) if r0 != 0x0 goto pc+43 ; R0_w=inv0 13: (b7) r1 = 43 ; R1_w=inv43 14: (18) r3 = 0xc008000004650000 ; R3_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 16: (0f) r3 += r1 ; R1_w=invP43 R3_w=map_value(id=0,off=43,ks=4,vs=512,imm=0) ; if (CORE_READ(&out->b123, &in->b[1][2][3])) 17: (07) r7 += 260 ; R7_w=map_value(id=0,off=260,ks=4,vs=512,imm=0) 18: (b4) w6 = 1 ; R6_w=inv1 19: (bf) r1 = r7 ; R1_w=map_value(id=0,off=260,ks=4,vs=512,imm=0) R7_w=map_value(id=0,off=260,ks=4,vs=512,imm=0) 20: (b4) w2 = 1 ; R2_w=inv1 21: (85) call bpf_probe_read_kernel#113 ; R0=inv(id=0) ; if (CORE_READ(&out->b123, &in->b[1][2][3])) 22: (55) if r0 != 0x0 goto pc+33 ; R0=inv0 23: (b7) r1 = 52 ; R1_w=inv52 24: (18) r7 = 0xc008000004650000 ; R7_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 26: (18) r3 = 0xc008000004650000 ; R3_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 28: (0f) r3 += r1 ; R1_w=invP52 R3_w=map_value(id=0,off=52,ks=4,vs=512,imm=0) ; if (CORE_READ(&out->c1c, &in->c[1].c)) 29: (18) r1 = 0xc008000004650000 ; R1_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 31: (07) r1 += 264 ; R1_w=map_value(id=0,off=264,ks=4,vs=512,imm=0) 32: (b4) w2 = 4 ; R2_w=inv4 33: (85) call bpf_probe_read_kernel#113 ; R0=inv(id=0) ; if (CORE_READ(&out->c1c, &in->c[1].c)) 34: (55) if r0 != 0x0 goto pc+21 ; R0=inv0 35: (b7) r1 = 72 ; R1_w=inv72 36: (18) r3 = 0xc008000004650000 ; R3_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 38: (0f) r3 += r1 ; R1_w=invP72 R3_w=map_value(id=0,off=72,ks=4,vs=512,imm=0) ; if (CORE_READ(&out->d00d, &in->d[0][0].d)) 39: (07) r7 += 268 ; R7_w=map_value(id=0,off=268,ks=4,vs=512,imm=0) 40: (bf) r1 = r7 ; R1_w=map_value(id=0,off=268,ks=4,vs=512,imm=0) R7_w=map_value(id=0,off=268,ks=4,vs=512,imm=0) 41: (b4) w2 = 4 ; R2_w=inv4 42: (85) call bpf_probe_read_kernel#113 ; R0=inv(id=0) ; if (CORE_READ(&out->d00d, &in->d[0][0].d)) 43: (55) if r0 != 0x0 goto pc+12 ; R0=inv0 44: (85) call unknown#195896080 invalid func unknown#195896080 processed 37 insns (limit 1000000) max_states_per_insn 0 total_states 3 peak_states 3 mark_read 1 -- END PROG LOAD LOG -- libbpf: failed to load program 'test_core_arrays' libbpf: failed to load object 'test_core_reloc_arrays.o' #38/28 core_reloc/arrays___err_bad_zero_sz_arr:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/29 core_reloc/primitives:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/30 core_reloc/primitives___diff_enum_def:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/31 core_reloc/primitives___diff_func_proto:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/32 core_reloc/primitives___diff_ptr_type:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: prog 'test_core_primitives': BPF program load failed: Invalid argument libbpf: prog 'test_core_primitives': -- BEGIN PROG LOAD LOG -- arg#0 reference type('UNKNOWN ') size cannot be determined: -22 0: R1=ctx(id=0,off=0,imm=0) R10=fp0 ; int test_core_primitives(void *ctx) 0: (85) call unknown#195896080 invalid func unknown#195896080 processed 1 insns (limit 1000000) max_states_per_insn 0 total_states 0 peak_states 0 mark_read 0 -- END PROG LOAD LOG -- libbpf: failed to load program 'test_core_primitives' libbpf: failed to load object 'test_core_reloc_primitives.o' #38/33 core_reloc/primitives___err_non_enum:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: prog 'test_core_primitives': BPF program load failed: Invalid argument libbpf: prog 'test_core_primitives': -- BEGIN PROG LOAD LOG -- arg#0 reference type('UNKNOWN ') size cannot be determined: -22 0: R1=ctx(id=0,off=0,imm=0) R10=fp0 ; int test_core_primitives(void *ctx) 0: (85) call unknown#195896080 invalid func unknown#195896080 processed 1 insns (limit 1000000) max_states_per_insn 0 total_states 0 peak_states 0 mark_read 0 -- END PROG LOAD LOG -- libbpf: failed to load program 'test_core_primitives' libbpf: failed to load object 'test_core_reloc_primitives.o' #38/34 core_reloc/primitives___err_non_int:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: prog 'test_core_primitives': BPF program load failed: Invalid argument libbpf: prog 'test_core_primitives': -- BEGIN PROG LOAD LOG -- arg#0 reference type('UNKNOWN ') size cannot be determined: -22 0: R1=ctx(id=0,off=0,imm=0) R10=fp0 ; int test_core_primitives(void *ctx) 0: (85) call unknown#195896080 invalid func unknown#195896080 processed 1 insns (limit 1000000) max_states_per_insn 0 total_states 0 peak_states 0 mark_read 0 -- END PROG LOAD LOG -- libbpf: failed to load program 'test_core_primitives' libbpf: failed to load object 'test_core_reloc_primitives.o' #38/35 core_reloc/primitives___err_non_ptr:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/36 core_reloc/mods:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/37 core_reloc/mods___mod_swap:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/38 core_reloc/mods___typedefs:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/39 core_reloc/ptr_as_arr:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/40 core_reloc/ptr_as_arr___diff_sz:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/41 core_reloc/ints:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/42 core_reloc/ints___bool:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/43 core_reloc/ints___reverse_sign:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/44 core_reloc/misc:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/45 core_reloc/existence:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/46 core_reloc/existence___minimal:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/47 core_reloc/existence___wrong_field_defs:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/48 core_reloc/probed:bitfields:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/49 core_reloc/direct:bitfields:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/50 core_reloc/probed:bitfields___bit_sz_change:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/51 core_reloc/direct:bitfields___bit_sz_change:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/52 core_reloc/probed:bitfields___bitfield_vs_int:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/53 core_reloc/direct:bitfields___bitfield_vs_int:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/54 core_reloc/probed:bitfields___just_big_enough:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/55 core_reloc/direct:bitfields___just_big_enough:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: prog 'test_core_bitfields': relo 0 at insn #22 can't be satisfied for bitfield libbpf: prog 'test_core_bitfields': relo #6: failed to relocate: -7 libbpf: failed to perform CO-RE relocations: -7 libbpf: failed to load object 'test_core_reloc_bitfields_probed.o' #38/56 core_reloc/probed:bitfields___err_too_big_bitfield:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: prog 'test_core_bitfields_direct': relo 0 at insn #28 can't be satisfied for bitfield libbpf: prog 'test_core_bitfields_direct': relo #6: failed to relocate: -7 libbpf: failed to perform CO-RE relocations: -7 libbpf: failed to load object 'test_core_reloc_bitfields_direct.o' #38/57 core_reloc/direct:bitfields___err_too_big_bitfield:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/58 core_reloc/size:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/59 core_reloc/size___diff_sz:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: prog 'test_core_size': relo #0: relocation decision ambiguity: success 1 != success 4 libbpf: prog 'test_core_size': relo #0: failed to relocate: -22 libbpf: failed to perform CO-RE relocations: -22 libbpf: failed to load object 'test_core_reloc_size.o' #38/60 core_reloc/size___err_ambiguous:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/61 core_reloc/type_based:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/62 core_reloc/type_based___all_missing:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/63 core_reloc/type_based___diff_sz:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/64 core_reloc/type_based___incompat:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/65 core_reloc/type_based___fn_wrong_args:OK setup_type_id_case_local:PASS:local_btf 0 nsec setup_type_id_case_local:PASS:targ_btf 0 nsec find_btf_type:PASS:find_type_id 0 nsec find_btf_type:PASS:find_type_id 0 nsec find_btf_type:PASS:find_type_id 0 nsec find_btf_type:PASS:find_type_id 0 nsec find_btf_type:PASS:find_type_id 0 nsec find_btf_type:PASS:find_type_id 0 nsec find_btf_type:PASS:find_type_id 0 nsec find_btf_type:PASS:find_type_id 0 nsec find_btf_type:PASS:find_type_id 0 nsec find_btf_type:PASS:find_type_id 0 nsec find_btf_type:PASS:find_type_id 0 nsec find_btf_type:PASS:find_type_id 0 nsec find_btf_type:PASS:find_type_id 0 nsec find_btf_type:PASS:find_type_id 0 nsec test_core_reloc:PASS:test_setup 0 nsec test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/66 core_reloc/type_id:OK setup_type_id_case_local:PASS:local_btf 0 nsec setup_type_id_case_local:PASS:targ_btf 0 nsec find_btf_type:PASS:find_type_id 0 nsec find_btf_type:PASS:find_type_id 0 nsec find_btf_type:PASS:find_type_id 0 nsec find_btf_type:PASS:find_type_id 0 nsec find_btf_type:PASS:find_type_id 0 nsec find_btf_type:PASS:find_type_id 0 nsec find_btf_type:PASS:find_type_id 0 nsec test_core_reloc:PASS:test_setup 0 nsec test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/67 core_reloc/type_id___missing_targets:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/68 core_reloc/enumval:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/69 core_reloc/enumval___diff:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/70 core_reloc/enumval___val3_missing:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: prog 'test_core_enumval': BPF program load failed: Invalid argument libbpf: prog 'test_core_enumval': -- BEGIN PROG LOAD LOG -- arg#0 reference type('UNKNOWN ') size cannot be determined: -22 0: R1=ctx(id=0,off=0,imm=0) R10=fp0 ; int test_core_enumval(void *ctx) 0: (18) r4 = 0x0 ; R4_w=inv0 2: (18) r3 = 0x1 ; R3_w=inv1 4: (b4) w2 = 1 ; R2_w=inv1 5: (b4) w1 = 1 ; R1_w=inv1 ; out->anon_val3_exists = bpf_core_enum_value_exists(anon_enum, ANON_ENUM_VAL3); 6: (55) if r3 != 0x0 goto pc+1 ; R3_w=invP1 8: (18) r5 = 0x1 ; R5_w=inv1 10: (b4) w3 = 1 ; R3_w=inv1 ; out->anon_val2_exists = bpf_core_enum_value_exists(anon_enum, ANON_ENUM_VAL2); 11: (55) if r4 != 0x0 goto pc+1 ; R4_w=invP0 12: (b4) w3 = 0 ; R3=inv0 13: (18) r0 = 0x1 ; R0_w=inv1 15: (b4) w4 = 1 ; R4_w=inv1 ; out->anon_val1_exists = bpf_core_enum_value_exists(anon, ANON_ENUM_VAL1); 16: (55) if r5 != 0x0 goto pc+1 ; R5=invP1 18: (18) r6 = 0x0 ; R6_w=inv0 20: (b4) w5 = 1 ; R5_w=inv1 ; out->named_val3_exists = bpf_core_enum_value_exists(enum named_enum, NAMED_ENUM_VAL3); 21: (55) if r0 != 0x0 goto pc+1 ; R0_w=invP1 23: (b4) w0 = 1 ; R0_w=inv1 ; out->named_val2_exists = bpf_core_enum_value_exists(enum named_enum, NAMED_ENUM_VAL2); 24: (55) if r6 != 0x0 goto pc+1 ; R6_w=invP0 25: (b4) w0 = 0 ; R0=inv0 26: (18) r6 = 0x1 ; R6_w=inv1 ; out->named_val1_exists = bpf_core_enum_value_exists(named, NAMED_ENUM_VAL1); 28: (55) if r6 != 0x0 goto pc+1 ; R6_w=invP1 ; out->named_val1_exists = bpf_core_enum_value_exists(named, NAMED_ENUM_VAL1); 30: (18) r6 = 0xc0080000023f0000 ; R6_w=map_value(id=0,off=0,ks=4,vs=513,imm=0) 32: (73) *(u8 *)(r6 +256) = r2 ; R2=inv1 R6_w=map_value(id=0,off=0,ks=4,vs=513,imm=0) ; out->named_val2_exists = bpf_core_enum_value_exists(enum named_enum, NAMED_ENUM_VAL2); 33: (73) *(u8 *)(r6 +257) = r0 ; R0=inv0 R6_w=map_value(id=0,off=0,ks=4,vs=513,imm=0) ; out->named_val3_exists = bpf_core_enum_value_exists(enum named_enum, NAMED_ENUM_VAL3); 34: (73) *(u8 *)(r6 +258) = r5 ; R5=inv1 R6_w=map_value(id=0,off=0,ks=4,vs=513,imm=0) ; out->anon_val1_exists = bpf_core_enum_value_exists(anon, ANON_ENUM_VAL1); 35: (73) *(u8 *)(r6 +259) = r4 ; R4=inv1 R6_w=map_value(id=0,off=0,ks=4,vs=513,imm=0) ; out->anon_val2_exists = bpf_core_enum_value_exists(anon_enum, ANON_ENUM_VAL2); 36: (73) *(u8 *)(r6 +260) = r3 ; R3=inv0 R6_w=map_value(id=0,off=0,ks=4,vs=513,imm=0) ; out->anon_val3_exists = bpf_core_enum_value_exists(anon_enum, ANON_ENUM_VAL3); 37: (73) *(u8 *)(r6 +261) = r1 ; R1=inv1 R6_w=map_value(id=0,off=0,ks=4,vs=513,imm=0) 38: (18) r1 = 0x1 ; R1_w=inv1 ; out->named_val1 = bpf_core_enum_value(named, NAMED_ENUM_VAL1); 40: (63) *(u32 *)(r6 +264) = r1 ; R1_w=inv1 R6_w=map_value(id=0,off=0,ks=4,vs=513,imm=0) 41: (85) call unknown#195896080 invalid func unknown#195896080 processed 30 insns (limit 1000000) max_states_per_insn 0 total_states 2 peak_states 2 mark_read 2 -- END PROG LOAD LOG -- libbpf: failed to load program 'test_core_enumval' libbpf: failed to load object 'test_core_reloc_enumval.o' #38/71 core_reloc/enumval___err_missing:OK Summary: 0/69 PASSED, 0 SKIPPED, 1 FAILED :: [ FAIL ] :: Command './test_progs -t core_reloc' (Expected 0, got 1, score 10) [15:45:59][root@168.mr1370_220926_1234.el9.ppc64le]# './test_progs -vv -t core_reloc' bpf_testmod.ko is already unloaded. Loading bpf_testmod.ko... Successfully loaded bpf_testmod.ko. libbpf: loading test_core_reloc_kernel.o libbpf: elf: section(2) raw_tracepoint/sys_enter, size 3360, link 0, flags 6, type=1 libbpf: sec 'raw_tracepoint/sys_enter': found program 'test_core_kernel' at insn offset 0 (0 bytes), code size 420 insns (3360 bytes) libbpf: elf: section(3) .relraw_tracepoint/sys_enter, size 160, link 11, flags 40, type=9 libbpf: elf: section(4) license, size 4, link 0, flags 3, type=1 libbpf: license of test_core_reloc_kernel.o is GPL libbpf: elf: section(5) .bss, size 528, link 0, flags 3, type=8 libbpf: elf: section(6) .BTF, size 1534, link 0, flags 0, type=1 libbpf: elf: section(8) .BTF.ext, size 1644, link 0, flags 0, type=1 libbpf: elf: section(11) .symtab, size 528, link 12, flags 0, type=2 libbpf: looking for externs among 22 symbols... libbpf: collected 0 externs total libbpf: map 'test_cor.bss' (global data): at sec_idx 5, offset 0, flags 400. libbpf: map 0 is "test_cor.bss" libbpf: sec '.relraw_tracepoint/sys_enter': collecting relocation for section(2) 'raw_tracepoint/sys_enter' libbpf: sec '.relraw_tracepoint/sys_enter': relo #0: insn #5 against 'data' libbpf: prog 'test_core_kernel': found data map 0 (test_cor.bss, sec 5, off 0) for insn 5 libbpf: sec '.relraw_tracepoint/sys_enter': relo #1: insn #36 against 'data' libbpf: prog 'test_core_kernel': found data map 0 (test_cor.bss, sec 5, off 0) for insn 36 libbpf: sec '.relraw_tracepoint/sys_enter': relo #2: insn #94 against 'data' libbpf: prog 'test_core_kernel': found data map 0 (test_cor.bss, sec 5, off 0) for insn 94 libbpf: sec '.relraw_tracepoint/sys_enter': relo #3: insn #129 against 'data' libbpf: prog 'test_core_kernel': found data map 0 (test_cor.bss, sec 5, off 0) for insn 129 libbpf: sec '.relraw_tracepoint/sys_enter': relo #4: insn #165 against 'data' libbpf: prog 'test_core_kernel': found data map 0 (test_cor.bss, sec 5, off 0) for insn 165 libbpf: sec '.relraw_tracepoint/sys_enter': relo #5: insn #208 against 'data' libbpf: prog 'test_core_kernel': found data map 0 (test_cor.bss, sec 5, off 0) for insn 208 libbpf: sec '.relraw_tracepoint/sys_enter': relo #6: insn #254 against 'data' libbpf: prog 'test_core_kernel': found data map 0 (test_cor.bss, sec 5, off 0) for insn 254 libbpf: sec '.relraw_tracepoint/sys_enter': relo #7: insn #307 against 'data' libbpf: prog 'test_core_kernel': found data map 0 (test_cor.bss, sec 5, off 0) for insn 307 libbpf: sec '.relraw_tracepoint/sys_enter': relo #8: insn #363 against 'data' libbpf: prog 'test_core_kernel': found data map 0 (test_cor.bss, sec 5, off 0) for insn 363 libbpf: sec '.relraw_tracepoint/sys_enter': relo #9: insn #412 against 'data' libbpf: prog 'test_core_kernel': found data map 0 (test_cor.bss, sec 5, off 0) for insn 412 test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: loading kernel BTF '/sys/kernel/btf/vmlinux': 0 libbpf: map 'test_cor.bss': created successfully, fd=5 libbpf: sec 'raw_tracepoint/sys_enter': found 23 CO-RE relocations libbpf: CO-RE relocating [5] struct task_struct: found target candidate [243] struct task_struct in [vmlinux] libbpf: prog 'test_core_kernel': relo #0: kind (0), spec is [5] struct task_struct.pid (0:0 @ offset 0) libbpf: prog 'test_core_kernel': relo #0: matching candidate #0 [243] struct task_struct.pid (0:73 @ offset 2296) libbpf: prog 'test_core_kernel': relo #0: patched insn #9 (ALU/ALU64) imm 0 -> 2296 libbpf: prog 'test_core_kernel': relo #1: kind (0), spec is [5] struct task_struct.tgid (0:1 @ offset 4) libbpf: prog 'test_core_kernel': relo #1: matching candidate #0 [243] struct task_struct.tgid (0:74 @ offset 2300) libbpf: prog 'test_core_kernel': relo #1: patched insn #18 (ALU/ALU64) imm 4 -> 2300 libbpf: prog 'test_core_kernel': relo #2: kind (0), spec is [5] struct task_struct.tgid (0:1 @ offset 4) libbpf: prog 'test_core_kernel': relo #2: matching candidate #0 [243] struct task_struct.tgid (0:74 @ offset 2300) libbpf: prog 'test_core_kernel': relo #2: patched insn #39 (ALU/ALU64) imm 4 -> 2300 libbpf: prog 'test_core_kernel': relo #3: kind (0), spec is [5] struct task_struct.group_leader (0:3 @ offset 24) libbpf: prog 'test_core_kernel': relo #3: matching candidate #0 [243] struct task_struct.group_leader (0:80 @ offset 2360) libbpf: prog 'test_core_kernel': relo #3: patched insn #51 (ALU/ALU64) imm 24 -> 2360 libbpf: prog 'test_core_kernel': relo #4: kind (0), spec is [5] struct task_struct.tgid (0:1 @ offset 4) libbpf: prog 'test_core_kernel': relo #4: matching candidate #0 [243] struct task_struct.tgid (0:74 @ offset 2300) libbpf: prog 'test_core_kernel': relo #4: patched insn #60 (ALU/ALU64) imm 4 -> 2300 libbpf: prog 'test_core_kernel': relo #5: kind (0), spec is [5] struct task_struct.group_leader (0:3 @ offset 24) libbpf: prog 'test_core_kernel': relo #5: matching candidate #0 [243] struct task_struct.group_leader (0:80 @ offset 2360) libbpf: prog 'test_core_kernel': relo #5: patched insn #78 (ALU/ALU64) imm 24 -> 2360 libbpf: prog 'test_core_kernel': relo #6: kind (0), spec is [5] struct task_struct.tgid (0:1 @ offset 4) libbpf: prog 'test_core_kernel': relo #6: matching candidate #0 [243] struct task_struct.tgid (0:74 @ offset 2300) libbpf: prog 'test_core_kernel': relo #6: patched insn #84 (ALU/ALU64) imm 4 -> 2300 libbpf: prog 'test_core_kernel': relo #7: kind (0), spec is [5] struct task_struct.group_leader (0:3 @ offset 24) libbpf: prog 'test_core_kernel': relo #7: matching candidate #0 [243] struct task_struct.group_leader (0:80 @ offset 2360) libbpf: prog 'test_core_kernel': relo #7: patched insn #98 (ALU/ALU64) imm 24 -> 2360 libbpf: prog 'test_core_kernel': relo #8: kind (0), spec is [5] struct task_struct.group_leader (0:3 @ offset 24) libbpf: prog 'test_core_kernel': relo #8: matching candidate #0 [243] struct task_struct.group_leader (0:80 @ offset 2360) libbpf: prog 'test_core_kernel': relo #8: patched insn #107 (ALU/ALU64) imm 24 -> 2360 libbpf: prog 'test_core_kernel': relo #9: kind (0), spec is [5] struct task_struct.group_leader (0:3 @ offset 24) libbpf: prog 'test_core_kernel': relo #9: matching candidate #0 [243] struct task_struct.group_leader (0:80 @ offset 2360) libbpf: prog 'test_core_kernel': relo #9: patched insn #113 (ALU/ALU64) imm 24 -> 2360 libbpf: prog 'test_core_kernel': relo #10: kind (0), spec is [5] struct task_struct.tgid (0:1 @ offset 4) libbpf: prog 'test_core_kernel': relo #10: matching candidate #0 [243] struct task_struct.tgid (0:74 @ offset 2300) libbpf: prog 'test_core_kernel': relo #10: patched insn #119 (ALU/ALU64) imm 4 -> 2300 libbpf: prog 'test_core_kernel': relo #11: kind (0), spec is [5] struct task_struct.group_leader (0:3 @ offset 24) libbpf: prog 'test_core_kernel': relo #11: matching candidate #0 [243] struct task_struct.group_leader (0:80 @ offset 2360) libbpf: prog 'test_core_kernel': relo #11: patched insn #139 (ALU/ALU64) imm 24 -> 2360 libbpf: prog 'test_core_kernel': relo #12: kind (0), spec is [5] struct task_struct.tgid (0:1 @ offset 4) libbpf: prog 'test_core_kernel': relo #12: matching candidate #0 [243] struct task_struct.tgid (0:74 @ offset 2300) libbpf: prog 'test_core_kernel': relo #12: patched insn #155 (ALU/ALU64) imm 4 -> 2300 libbpf: prog 'test_core_kernel': relo #13: kind (0), spec is [5] struct task_struct.group_leader (0:3 @ offset 24) libbpf: prog 'test_core_kernel': relo #13: matching candidate #0 [243] struct task_struct.group_leader (0:80 @ offset 2360) libbpf: prog 'test_core_kernel': relo #13: patched insn #169 (ALU/ALU64) imm 24 -> 2360 libbpf: prog 'test_core_kernel': relo #14: kind (0), spec is [5] struct task_struct.tgid (0:1 @ offset 4) libbpf: prog 'test_core_kernel': relo #14: matching candidate #0 [243] struct task_struct.tgid (0:74 @ offset 2300) libbpf: prog 'test_core_kernel': relo #14: patched insn #198 (ALU/ALU64) imm 4 -> 2300 libbpf: prog 'test_core_kernel': relo #15: kind (0), spec is [5] struct task_struct.group_leader (0:3 @ offset 24) libbpf: prog 'test_core_kernel': relo #15: matching candidate #0 [243] struct task_struct.group_leader (0:80 @ offset 2360) libbpf: prog 'test_core_kernel': relo #15: patched insn #218 (ALU/ALU64) imm 24 -> 2360 libbpf: prog 'test_core_kernel': relo #16: kind (0), spec is [5] struct task_struct.tgid (0:1 @ offset 4) libbpf: prog 'test_core_kernel': relo #16: matching candidate #0 [243] struct task_struct.tgid (0:74 @ offset 2300) libbpf: prog 'test_core_kernel': relo #16: patched insn #244 (ALU/ALU64) imm 4 -> 2300 libbpf: prog 'test_core_kernel': relo #17: kind (0), spec is [5] struct task_struct.group_leader (0:3 @ offset 24) libbpf: prog 'test_core_kernel': relo #17: matching candidate #0 [243] struct task_struct.group_leader (0:80 @ offset 2360) libbpf: prog 'test_core_kernel': relo #17: patched insn #258 (ALU/ALU64) imm 24 -> 2360 libbpf: prog 'test_core_kernel': relo #18: kind (0), spec is [5] struct task_struct.tgid (0:1 @ offset 4) libbpf: prog 'test_core_kernel': relo #18: matching candidate #0 [243] struct task_struct.tgid (0:74 @ offset 2300) libbpf: prog 'test_core_kernel': relo #18: patched insn #297 (ALU/ALU64) imm 4 -> 2300 libbpf: prog 'test_core_kernel': relo #19: kind (0), spec is [5] struct task_struct.group_leader (0:3 @ offset 24) libbpf: prog 'test_core_kernel': relo #19: matching candidate #0 [243] struct task_struct.group_leader (0:80 @ offset 2360) libbpf: prog 'test_core_kernel': relo #19: patched insn #317 (ALU/ALU64) imm 24 -> 2360 libbpf: prog 'test_core_kernel': relo #20: kind (0), spec is [5] struct task_struct.tgid (0:1 @ offset 4) libbpf: prog 'test_core_kernel': relo #20: matching candidate #0 [243] struct task_struct.tgid (0:74 @ offset 2300) libbpf: prog 'test_core_kernel': relo #20: patched insn #353 (ALU/ALU64) imm 4 -> 2300 libbpf: prog 'test_core_kernel': relo #21: kind (0), spec is [5] struct task_struct.group_leader (0:3 @ offset 24) libbpf: prog 'test_core_kernel': relo #21: matching candidate #0 [243] struct task_struct.group_leader (0:80 @ offset 2360) libbpf: prog 'test_core_kernel': relo #21: patched insn #367 (ALU/ALU64) imm 24 -> 2360 libbpf: prog 'test_core_kernel': relo #22: kind (0), spec is [5] struct task_struct.comm (0:2 @ offset 8) libbpf: prog 'test_core_kernel': relo #22: matching candidate #0 [243] struct task_struct.comm (0:108 @ offset 2800) libbpf: prog 'test_core_kernel': relo #22: patched insn #409 (ALU/ALU64) imm 8 -> 2800 test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/1 core_reloc/kernel:OK libbpf: loading test_core_reloc_module.o libbpf: elf: section(2) raw_tp/bpf_testmod_test_read, size 640, link 0, flags 6, type=1 libbpf: sec 'raw_tp/bpf_testmod_test_read': found program 'test_core_module_probed' at insn offset 0 (0 bytes), code size 80 insns (640 bytes) libbpf: elf: section(3) .relraw_tp/bpf_testmod_test_read, size 48, link 13, flags 40, type=9 libbpf: elf: section(4) tp_btf/bpf_testmod_test_read, size 408, link 0, flags 6, type=1 libbpf: sec 'tp_btf/bpf_testmod_test_read': found program 'test_core_module_direct' at insn offset 0 (0 bytes), code size 51 insns (408 bytes) libbpf: elf: section(5) .reltp_btf/bpf_testmod_test_read, size 48, link 13, flags 40, type=9 libbpf: elf: section(6) license, size 4, link 0, flags 3, type=1 libbpf: license of test_core_reloc_module.o is GPL libbpf: elf: section(7) .bss, size 528, link 0, flags 3, type=8 libbpf: elf: section(8) .BTF, size 27733, link 0, flags 0, type=1 libbpf: elf: section(10) .BTF.ext, size 1356, link 0, flags 0, type=1 libbpf: elf: section(13) .symtab, size 552, link 14, flags 0, type=2 libbpf: looking for externs among 23 symbols... libbpf: collected 0 externs total libbpf: map 'test_cor.bss' (global data): at sec_idx 7, offset 0, flags 400. libbpf: map 0 is "test_cor.bss" libbpf: sec '.relraw_tp/bpf_testmod_test_read': collecting relocation for section(2) 'raw_tp/bpf_testmod_test_read' libbpf: sec '.relraw_tp/bpf_testmod_test_read': relo #0: insn #4 against 'data' libbpf: prog 'test_core_module_probed': found data map 0 (test_cor.bss, sec 7, off 0) for insn 4 libbpf: sec '.relraw_tp/bpf_testmod_test_read': relo #1: insn #34 against 'data' libbpf: prog 'test_core_module_probed': found data map 0 (test_cor.bss, sec 7, off 0) for insn 34 libbpf: sec '.relraw_tp/bpf_testmod_test_read': relo #2: insn #71 against 'data' libbpf: prog 'test_core_module_probed': found data map 0 (test_cor.bss, sec 7, off 0) for insn 71 libbpf: sec '.reltp_btf/bpf_testmod_test_read': collecting relocation for section(4) 'tp_btf/bpf_testmod_test_read' libbpf: sec '.reltp_btf/bpf_testmod_test_read': relo #0: insn #3 against 'data' libbpf: prog 'test_core_module_direct': found data map 0 (test_cor.bss, sec 7, off 0) for insn 3 libbpf: sec '.reltp_btf/bpf_testmod_test_read': relo #1: insn #29 against 'data' libbpf: prog 'test_core_module_direct': found data map 0 (test_cor.bss, sec 7, off 0) for insn 29 libbpf: sec '.reltp_btf/bpf_testmod_test_read': relo #2: insn #42 against 'data' libbpf: prog 'test_core_module_direct': found data map 0 (test_cor.bss, sec 7, off 0) for insn 42 test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: loading kernel BTF '/sys/kernel/btf/vmlinux': 0 libbpf: map 'test_cor.bss': created successfully, fd=5 libbpf: sec 'raw_tp/bpf_testmod_test_read': found 10 CO-RE relocations libbpf: CO-RE relocating [6] struct task_struct: found target candidate [243] struct task_struct in [vmlinux] libbpf: prog 'test_core_module_probed': relo #0: kind (0), spec is [6] struct task_struct.pid (0:73 @ offset 2296) libbpf: prog 'test_core_module_probed': relo #0: matching candidate #0 [243] struct task_struct.pid (0:73 @ offset 2296) libbpf: prog 'test_core_module_probed': relo #0: patched insn #8 (ALU/ALU64) imm 2296 -> 2296 libbpf: prog 'test_core_module_probed': relo #1: kind (0), spec is [6] struct task_struct.tgid (0:74 @ offset 2300) libbpf: prog 'test_core_module_probed': relo #1: matching candidate #0 [243] struct task_struct.tgid (0:74 @ offset 2300) libbpf: prog 'test_core_module_probed': relo #1: patched insn #18 (ALU/ALU64) imm 2300 -> 2300 libbpf: prog 'test_core_module_probed': relo #2: kind (0), spec is [324] struct bpf_testmod_test_read_ctx.len (0:0 @ offset 0) libbpf: prog 'test_core_module_probed': relo #2: no matching targets found libbpf: prog 'test_core_module_probed': relo #2: substituting insn #27 w/ invalid insn libbpf: prog 'test_core_module_probed': relo #3: kind (0), spec is [324] struct bpf_testmod_test_read_ctx.off (0:2 @ offset 16) libbpf: prog 'test_core_module_probed': relo #3: no matching targets found libbpf: prog 'test_core_module_probed': relo #3: substituting insn #38 w/ invalid insn libbpf: prog 'test_core_module_probed': relo #4: kind (2), spec is [324] struct bpf_testmod_test_read_ctx.buf (0:1 @ offset 8) libbpf: prog 'test_core_module_probed': relo #4: no matching targets found libbpf: prog 'test_core_module_probed': relo #4: patched insn #45 (ALU/ALU64) imm 1 -> 0 libbpf: prog 'test_core_module_probed': relo #5: kind (2), spec is [324] struct bpf_testmod_test_read_ctx.off (0:2 @ offset 16) libbpf: prog 'test_core_module_probed': relo #5: no matching targets found libbpf: prog 'test_core_module_probed': relo #5: patched insn #46 (ALU/ALU64) imm 1 -> 0 libbpf: prog 'test_core_module_probed': relo #6: kind (2), spec is [324] struct bpf_testmod_test_read_ctx.len (0:0 @ offset 0) libbpf: prog 'test_core_module_probed': relo #6: no matching targets found libbpf: prog 'test_core_module_probed': relo #6: patched insn #47 (ALU/ALU64) imm 1 -> 0 libbpf: prog 'test_core_module_probed': relo #7: kind (8), spec is [324] struct bpf_testmod_test_read_ctx libbpf: prog 'test_core_module_probed': relo #7: no matching targets found libbpf: prog 'test_core_module_probed': relo #7: patched insn #52 (ALU/ALU64) imm 1 -> 0 libbpf: prog 'test_core_module_probed': relo #8: kind (9), spec is [324] struct bpf_testmod_test_read_ctx libbpf: prog 'test_core_module_probed': relo #8: no matching targets found libbpf: prog 'test_core_module_probed': relo #8: patched insn #63 (ALU/ALU64) imm 24 -> 0 libbpf: prog 'test_core_module_probed': relo #9: kind (0), spec is [6] struct task_struct.comm (0:108 @ offset 2800) libbpf: prog 'test_core_module_probed': relo #9: matching candidate #0 [243] struct task_struct.comm (0:108 @ offset 2800) libbpf: prog 'test_core_module_probed': relo #9: patched insn #69 (ALU/ALU64) imm 2800 -> 2800 libbpf: sec 'tp_btf/bpf_testmod_test_read': found 10 CO-RE relocations libbpf: prog 'test_core_module_direct': relo #0: kind (0), spec is [6] struct task_struct.pid (0:73 @ offset 2296) libbpf: prog 'test_core_module_direct': relo #0: matching candidate #0 [243] struct task_struct.pid (0:73 @ offset 2296) libbpf: prog 'test_core_module_direct': relo #0: patched insn #7 (LDX/ST/STX) off 2296 -> 2296 libbpf: prog 'test_core_module_direct': relo #1: kind (0), spec is [6] struct task_struct.tgid (0:74 @ offset 2300) libbpf: prog 'test_core_module_direct': relo #1: matching candidate #0 [243] struct task_struct.tgid (0:74 @ offset 2300) libbpf: prog 'test_core_module_direct': relo #1: patched insn #10 (LDX/ST/STX) off 2300 -> 2300 libbpf: prog 'test_core_module_direct': relo #2: kind (2), spec is [324] struct bpf_testmod_test_read_ctx.off (0:2 @ offset 16) libbpf: prog 'test_core_module_direct': relo #2: no matching targets found libbpf: prog 'test_core_module_direct': relo #2: patched insn #12 (ALU/ALU64) imm 1 -> 0 libbpf: prog 'test_core_module_direct': relo #3: kind (2), spec is [324] struct bpf_testmod_test_read_ctx.buf (0:1 @ offset 8) libbpf: prog 'test_core_module_direct': relo #3: no matching targets found libbpf: prog 'test_core_module_direct': relo #3: patched insn #13 (ALU/ALU64) imm 1 -> 0 libbpf: prog 'test_core_module_direct': relo #4: kind (8), spec is [324] struct bpf_testmod_test_read_ctx libbpf: prog 'test_core_module_direct': relo #4: no matching targets found libbpf: prog 'test_core_module_direct': relo #4: patched insn #14 (ALU/ALU64) imm 1 -> 0 libbpf: prog 'test_core_module_direct': relo #5: kind (2), spec is [324] struct bpf_testmod_test_read_ctx.len (0:0 @ offset 0) libbpf: prog 'test_core_module_direct': relo #5: no matching targets found libbpf: prog 'test_core_module_direct': relo #5: patched insn #19 (ALU/ALU64) imm 1 -> 0 libbpf: prog 'test_core_module_direct': relo #6: kind (0), spec is [324] struct bpf_testmod_test_read_ctx.len (0:0 @ offset 0) libbpf: prog 'test_core_module_direct': relo #6: no matching targets found libbpf: prog 'test_core_module_direct': relo #6: substituting insn #28 w/ invalid insn libbpf: prog 'test_core_module_direct': relo #7: kind (0), spec is [324] struct bpf_testmod_test_read_ctx.off (0:2 @ offset 16) libbpf: prog 'test_core_module_direct': relo #7: no matching targets found libbpf: prog 'test_core_module_direct': relo #7: substituting insn #32 w/ invalid insn libbpf: prog 'test_core_module_direct': relo #8: kind (9), spec is [324] struct bpf_testmod_test_read_ctx libbpf: prog 'test_core_module_direct': relo #8: no matching targets found libbpf: prog 'test_core_module_direct': relo #8: patched insn #38 (ALU/ALU64) imm 24 -> 0 libbpf: prog 'test_core_module_direct': relo #9: kind (0), spec is [6] struct task_struct.comm (0:108 @ offset 2800) libbpf: prog 'test_core_module_direct': relo #9: matching candidate #0 [243] struct task_struct.comm (0:108 @ offset 2800) libbpf: prog 'test_core_module_direct': relo #9: patched insn #40 (ALU/ALU64) imm 2800 -> 2800 libbpf: prog 'test_core_module_probed': BPF program load failed: Invalid argument libbpf: prog 'test_core_module_probed': -- BEGIN PROG LOAD LOG -- R1 type=ctx expected=fp 0: R1=ctx(id=0,off=0,imm=0) R10=fp0 ; int BPF_PROG(test_core_module_probed, 0: (79) r7 = *(u64 *)(r1 +8) ; R1=ctx(id=0,off=0,imm=0) R7_w=inv(id=0) 1: (79) r6 = *(u64 *)(r1 +0) ; R1=ctx(id=0,off=0,imm=0) R6_w=inv(id=0) ; __u64 pid_tgid = bpf_get_current_pid_tgid(); 2: (85) call bpf_get_current_pid_tgid#14 ; R0_w=inv(id=0) 3: (bf) r8 = r0 ; R0_w=inv(id=1) R8_w=inv(id=1) ; if (data.my_pid_tgid != pid_tgid) 4: (18) r1 = 0xc008000004b00000 ; R1_w=map_value(id=0,off=0,ks=4,vs=528,imm=0) 6: (79) r1 = *(u64 *)(r1 +520) ; R1_w=inv(id=0) ; if (data.my_pid_tgid != pid_tgid) 7: (5d) if r1 != r8 goto pc+70 ; R1_w=inv(id=0) R8_w=inv(id=1) 8: (b7) r1 = 2296 ; R1_w=inv2296 9: (bf) r3 = r6 ; R3_w=inv(id=2) R6_w=inv(id=2) 10: (0f) r3 += r1 ; R1_w=inv2296 R3_w=inv(id=0) 11: (bf) r1 = r10 ; R1_w=fp0 R10=fp0 ; 12: (07) r1 += -8 ; R1_w=fp-8 ; if (BPF_CORE_READ(task, pid) != real_pid || BPF_CORE_READ(task, tgid) != real_tgid) 13: (b4) w2 = 4 ; R2_w=inv4 14: (85) call bpf_probe_read_kernel#113 ; R0=inv(id=0) fp-8=????mmmm ; if (BPF_CORE_READ(task, pid) != real_pid || BPF_CORE_READ(task, tgid) != real_tgid) 15: (61) r1 = *(u32 *)(r10 -8) ; R1_w=inv(id=0,umax_value=4294967295,var_off=(0x0; 0xffffffff)) R10=fp0 ; if (BPF_CORE_READ(task, pid) != real_pid || BPF_CORE_READ(task, tgid) != real_tgid) 16: (5e) if w1 != w8 goto pc+61 ; R1_w=inv(id=0,umax_value=4294967295,var_off=(0x0; 0xffffffff)) R8=inv(id=1) 17: (77) r8 >>= 32 ; R8_w=inv(id=0,umax_value=4294967295,var_off=(0x0; 0xffffffff)) 18: (b7) r1 = 2300 ; R1_w=inv2300 19: (bf) r3 = r6 ; R3_w=inv(id=2) R6=inv(id=2) 20: (0f) r3 += r1 ; R1_w=inv2300 R3_w=inv(id=0) 21: (bf) r1 = r10 ; R1_w=fp0 R10=fp0 ; 22: (07) r1 += -8 ; R1_w=fp-8 ; if (BPF_CORE_READ(task, pid) != real_pid || BPF_CORE_READ(task, tgid) != real_tgid) 23: (b4) w2 = 4 ; R2_w=inv4 24: (85) call bpf_probe_read_kernel#113 ; R0=inv(id=0) fp-8=????mmmm ; if (BPF_CORE_READ(task, pid) != real_pid || BPF_CORE_READ(task, tgid) != real_tgid) 25: (61) r1 = *(u32 *)(r10 -8) ; R1_w=inv(id=0,umax_value=4294967295,var_off=(0x0; 0xffffffff)) R10=fp0 ; if (BPF_CORE_READ(task, pid) != real_pid || BPF_CORE_READ(task, tgid) != real_tgid) 26: (5e) if w1 != w8 goto pc+51 ; R1_w=inv(id=0,umax_value=4294967295,var_off=(0x0; 0xffffffff)) R8=inv(id=0,umax_value=4294967295,var_off=(0x0; 0xffffffff)) 27: (85) call unknown#195896080 invalid func unknown#195896080 processed 27 insns (limit 1000000) max_states_per_insn 0 total_states 2 peak_states 2 mark_read 1 -- END PROG LOAD LOG -- libbpf: failed to load program 'test_core_module_probed' libbpf: failed to load object 'test_core_reloc_module.o' test_core_reloc:FAIL:obj_load unexpected error: -22 (errno 22) #38/2 core_reloc/module_probed:FAIL libbpf: loading test_core_reloc_module.o libbpf: elf: section(2) raw_tp/bpf_testmod_test_read, size 640, link 0, flags 6, type=1 libbpf: sec 'raw_tp/bpf_testmod_test_read': found program 'test_core_module_probed' at insn offset 0 (0 bytes), code size 80 insns (640 bytes) libbpf: elf: section(3) .relraw_tp/bpf_testmod_test_read, size 48, link 13, flags 40, type=9 libbpf: elf: section(4) tp_btf/bpf_testmod_test_read, size 408, link 0, flags 6, type=1 libbpf: sec 'tp_btf/bpf_testmod_test_read': found program 'test_core_module_direct' at insn offset 0 (0 bytes), code size 51 insns (408 bytes) libbpf: elf: section(5) .reltp_btf/bpf_testmod_test_read, size 48, link 13, flags 40, type=9 libbpf: elf: section(6) license, size 4, link 0, flags 3, type=1 libbpf: license of test_core_reloc_module.o is GPL libbpf: elf: section(7) .bss, size 528, link 0, flags 3, type=8 libbpf: elf: section(8) .BTF, size 27733, link 0, flags 0, type=1 libbpf: elf: section(10) .BTF.ext, size 1356, link 0, flags 0, type=1 libbpf: elf: section(13) .symtab, size 552, link 14, flags 0, type=2 libbpf: looking for externs among 23 symbols... libbpf: collected 0 externs total libbpf: map 'test_cor.bss' (global data): at sec_idx 7, offset 0, flags 400. libbpf: map 0 is "test_cor.bss" libbpf: sec '.relraw_tp/bpf_testmod_test_read': collecting relocation for section(2) 'raw_tp/bpf_testmod_test_read' libbpf: sec '.relraw_tp/bpf_testmod_test_read': relo #0: insn #4 against 'data' libbpf: prog 'test_core_module_probed': found data map 0 (test_cor.bss, sec 7, off 0) for insn 4 libbpf: sec '.relraw_tp/bpf_testmod_test_read': relo #1: insn #34 against 'data' libbpf: prog 'test_core_module_probed': found data map 0 (test_cor.bss, sec 7, off 0) for insn 34 libbpf: sec '.relraw_tp/bpf_testmod_test_read': relo #2: insn #71 against 'data' libbpf: prog 'test_core_module_probed': found data map 0 (test_cor.bss, sec 7, off 0) for insn 71 libbpf: sec '.reltp_btf/bpf_testmod_test_read': collecting relocation for section(4) 'tp_btf/bpf_testmod_test_read' libbpf: sec '.reltp_btf/bpf_testmod_test_read': relo #0: insn #3 against 'data' libbpf: prog 'test_core_module_direct': found data map 0 (test_cor.bss, sec 7, off 0) for insn 3 libbpf: sec '.reltp_btf/bpf_testmod_test_read': relo #1: insn #29 against 'data' libbpf: prog 'test_core_module_direct': found data map 0 (test_cor.bss, sec 7, off 0) for insn 29 libbpf: sec '.reltp_btf/bpf_testmod_test_read': relo #2: insn #42 against 'data' libbpf: prog 'test_core_module_direct': found data map 0 (test_cor.bss, sec 7, off 0) for insn 42 test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: loading kernel BTF '/sys/kernel/btf/vmlinux': 0 libbpf: map 'test_cor.bss': created successfully, fd=5 libbpf: sec 'raw_tp/bpf_testmod_test_read': found 10 CO-RE relocations libbpf: CO-RE relocating [6] struct task_struct: found target candidate [243] struct task_struct in [vmlinux] libbpf: prog 'test_core_module_probed': relo #0: kind (0), spec is [6] struct task_struct.pid (0:73 @ offset 2296) libbpf: prog 'test_core_module_probed': relo #0: matching candidate #0 [243] struct task_struct.pid (0:73 @ offset 2296) libbpf: prog 'test_core_module_probed': relo #0: patched insn #8 (ALU/ALU64) imm 2296 -> 2296 libbpf: prog 'test_core_module_probed': relo #1: kind (0), spec is [6] struct task_struct.tgid (0:74 @ offset 2300) libbpf: prog 'test_core_module_probed': relo #1: matching candidate #0 [243] struct task_struct.tgid (0:74 @ offset 2300) libbpf: prog 'test_core_module_probed': relo #1: patched insn #18 (ALU/ALU64) imm 2300 -> 2300 libbpf: prog 'test_core_module_probed': relo #2: kind (0), spec is [324] struct bpf_testmod_test_read_ctx.len (0:0 @ offset 0) libbpf: prog 'test_core_module_probed': relo #2: no matching targets found libbpf: prog 'test_core_module_probed': relo #2: substituting insn #27 w/ invalid insn libbpf: prog 'test_core_module_probed': relo #3: kind (0), spec is [324] struct bpf_testmod_test_read_ctx.off (0:2 @ offset 16) libbpf: prog 'test_core_module_probed': relo #3: no matching targets found libbpf: prog 'test_core_module_probed': relo #3: substituting insn #38 w/ invalid insn libbpf: prog 'test_core_module_probed': relo #4: kind (2), spec is [324] struct bpf_testmod_test_read_ctx.buf (0:1 @ offset 8) libbpf: prog 'test_core_module_probed': relo #4: no matching targets found libbpf: prog 'test_core_module_probed': relo #4: patched insn #45 (ALU/ALU64) imm 1 -> 0 libbpf: prog 'test_core_module_probed': relo #5: kind (2), spec is [324] struct bpf_testmod_test_read_ctx.off (0:2 @ offset 16) libbpf: prog 'test_core_module_probed': relo #5: no matching targets found libbpf: prog 'test_core_module_probed': relo #5: patched insn #46 (ALU/ALU64) imm 1 -> 0 libbpf: prog 'test_core_module_probed': relo #6: kind (2), spec is [324] struct bpf_testmod_test_read_ctx.len (0:0 @ offset 0) libbpf: prog 'test_core_module_probed': relo #6: no matching targets found libbpf: prog 'test_core_module_probed': relo #6: patched insn #47 (ALU/ALU64) imm 1 -> 0 libbpf: prog 'test_core_module_probed': relo #7: kind (8), spec is [324] struct bpf_testmod_test_read_ctx libbpf: prog 'test_core_module_probed': relo #7: no matching targets found libbpf: prog 'test_core_module_probed': relo #7: patched insn #52 (ALU/ALU64) imm 1 -> 0 libbpf: prog 'test_core_module_probed': relo #8: kind (9), spec is [324] struct bpf_testmod_test_read_ctx libbpf: prog 'test_core_module_probed': relo #8: no matching targets found libbpf: prog 'test_core_module_probed': relo #8: patched insn #63 (ALU/ALU64) imm 24 -> 0 libbpf: prog 'test_core_module_probed': relo #9: kind (0), spec is [6] struct task_struct.comm (0:108 @ offset 2800) libbpf: prog 'test_core_module_probed': relo #9: matching candidate #0 [243] struct task_struct.comm (0:108 @ offset 2800) libbpf: prog 'test_core_module_probed': relo #9: patched insn #69 (ALU/ALU64) imm 2800 -> 2800 libbpf: sec 'tp_btf/bpf_testmod_test_read': found 10 CO-RE relocations libbpf: prog 'test_core_module_direct': relo #0: kind (0), spec is [6] struct task_struct.pid (0:73 @ offset 2296) libbpf: prog 'test_core_module_direct': relo #0: matching candidate #0 [243] struct task_struct.pid (0:73 @ offset 2296) libbpf: prog 'test_core_module_direct': relo #0: patched insn #7 (LDX/ST/STX) off 2296 -> 2296 libbpf: prog 'test_core_module_direct': relo #1: kind (0), spec is [6] struct task_struct.tgid (0:74 @ offset 2300) libbpf: prog 'test_core_module_direct': relo #1: matching candidate #0 [243] struct task_struct.tgid (0:74 @ offset 2300) libbpf: prog 'test_core_module_direct': relo #1: patched insn #10 (LDX/ST/STX) off 2300 -> 2300 libbpf: prog 'test_core_module_direct': relo #2: kind (2), spec is [324] struct bpf_testmod_test_read_ctx.off (0:2 @ offset 16) libbpf: prog 'test_core_module_direct': relo #2: no matching targets found libbpf: prog 'test_core_module_direct': relo #2: patched insn #12 (ALU/ALU64) imm 1 -> 0 libbpf: prog 'test_core_module_direct': relo #3: kind (2), spec is [324] struct bpf_testmod_test_read_ctx.buf (0:1 @ offset 8) libbpf: prog 'test_core_module_direct': relo #3: no matching targets found libbpf: prog 'test_core_module_direct': relo #3: patched insn #13 (ALU/ALU64) imm 1 -> 0 libbpf: prog 'test_core_module_direct': relo #4: kind (8), spec is [324] struct bpf_testmod_test_read_ctx libbpf: prog 'test_core_module_direct': relo #4: no matching targets found libbpf: prog 'test_core_module_direct': relo #4: patched insn #14 (ALU/ALU64) imm 1 -> 0 libbpf: prog 'test_core_module_direct': relo #5: kind (2), spec is [324] struct bpf_testmod_test_read_ctx.len (0:0 @ offset 0) libbpf: prog 'test_core_module_direct': relo #5: no matching targets found libbpf: prog 'test_core_module_direct': relo #5: patched insn #19 (ALU/ALU64) imm 1 -> 0 libbpf: prog 'test_core_module_direct': relo #6: kind (0), spec is [324] struct bpf_testmod_test_read_ctx.len (0:0 @ offset 0) libbpf: prog 'test_core_module_direct': relo #6: no matching targets found libbpf: prog 'test_core_module_direct': relo #6: substituting insn #28 w/ invalid insn libbpf: prog 'test_core_module_direct': relo #7: kind (0), spec is [324] struct bpf_testmod_test_read_ctx.off (0:2 @ offset 16) libbpf: prog 'test_core_module_direct': relo #7: no matching targets found libbpf: prog 'test_core_module_direct': relo #7: substituting insn #32 w/ invalid insn libbpf: prog 'test_core_module_direct': relo #8: kind (9), spec is [324] struct bpf_testmod_test_read_ctx libbpf: prog 'test_core_module_direct': relo #8: no matching targets found libbpf: prog 'test_core_module_direct': relo #8: patched insn #38 (ALU/ALU64) imm 24 -> 0 libbpf: prog 'test_core_module_direct': relo #9: kind (0), spec is [6] struct task_struct.comm (0:108 @ offset 2800) libbpf: prog 'test_core_module_direct': relo #9: matching candidate #0 [243] struct task_struct.comm (0:108 @ offset 2800) libbpf: prog 'test_core_module_direct': relo #9: patched insn #40 (ALU/ALU64) imm 2800 -> 2800 libbpf: prog 'test_core_module_probed': BPF program load failed: Invalid argument libbpf: prog 'test_core_module_probed': -- BEGIN PROG LOAD LOG -- R1 type=ctx expected=fp 0: R1=ctx(id=0,off=0,imm=0) R10=fp0 ; int BPF_PROG(test_core_module_probed, 0: (79) r7 = *(u64 *)(r1 +8) ; R1=ctx(id=0,off=0,imm=0) R7_w=inv(id=0) 1: (79) r6 = *(u64 *)(r1 +0) ; R1=ctx(id=0,off=0,imm=0) R6_w=inv(id=0) ; __u64 pid_tgid = bpf_get_current_pid_tgid(); 2: (85) call bpf_get_current_pid_tgid#14 ; R0_w=inv(id=0) 3: (bf) r8 = r0 ; R0_w=inv(id=1) R8_w=inv(id=1) ; if (data.my_pid_tgid != pid_tgid) 4: (18) r1 = 0xc008000002970000 ; R1_w=map_value(id=0,off=0,ks=4,vs=528,imm=0) 6: (79) r1 = *(u64 *)(r1 +520) ; R1_w=inv(id=0) ; if (data.my_pid_tgid != pid_tgid) 7: (5d) if r1 != r8 goto pc+70 ; R1_w=inv(id=0) R8_w=inv(id=1) 8: (b7) r1 = 2296 ; R1_w=inv2296 9: (bf) r3 = r6 ; R3_w=inv(id=2) R6_w=inv(id=2) 10: (0f) r3 += r1 ; R1_w=inv2296 R3_w=inv(id=0) 11: (bf) r1 = r10 ; R1_w=fp0 R10=fp0 ; 12: (07) r1 += -8 ; R1_w=fp-8 ; if (BPF_CORE_READ(task, pid) != real_pid || BPF_CORE_READ(task, tgid) != real_tgid) 13: (b4) w2 = 4 ; R2_w=inv4 14: (85) call bpf_probe_read_kernel#113 ; R0=inv(id=0) fp-8=????mmmm ; if (BPF_CORE_READ(task, pid) != real_pid || BPF_CORE_READ(task, tgid) != real_tgid) 15: (61) r1 = *(u32 *)(r10 -8) ; R1_w=inv(id=0,umax_value=4294967295,var_off=(0x0; 0xffffffff)) R10=fp0 ; if (BPF_CORE_READ(task, pid) != real_pid || BPF_CORE_READ(task, tgid) != real_tgid) 16: (5e) if w1 != w8 goto pc+61 ; R1_w=inv(id=0,umax_value=4294967295,var_off=(0x0; 0xffffffff)) R8=inv(id=1) 17: (77) r8 >>= 32 ; R8_w=inv(id=0,umax_value=4294967295,var_off=(0x0; 0xffffffff)) 18: (b7) r1 = 2300 ; R1_w=inv2300 19: (bf) r3 = r6 ; R3_w=inv(id=2) R6=inv(id=2) 20: (0f) r3 += r1 ; R1_w=inv2300 R3_w=inv(id=0) 21: (bf) r1 = r10 ; R1_w=fp0 R10=fp0 ; 22: (07) r1 += -8 ; R1_w=fp-8 ; if (BPF_CORE_READ(task, pid) != real_pid || BPF_CORE_READ(task, tgid) != real_tgid) 23: (b4) w2 = 4 ; R2_w=inv4 24: (85) call bpf_probe_read_kernel#113 ; R0=inv(id=0) fp-8=????mmmm ; if (BPF_CORE_READ(task, pid) != real_pid || BPF_CORE_READ(task, tgid) != real_tgid) 25: (61) r1 = *(u32 *)(r10 -8) ; R1_w=inv(id=0,umax_value=4294967295,var_off=(0x0; 0xffffffff)) R10=fp0 ; if (BPF_CORE_READ(task, pid) != real_pid || BPF_CORE_READ(task, tgid) != real_tgid) 26: (5e) if w1 != w8 goto pc+51 ; R1_w=inv(id=0,umax_value=4294967295,var_off=(0x0; 0xffffffff)) R8=inv(id=0,umax_value=4294967295,var_off=(0x0; 0xffffffff)) 27: (85) call unknown#195896080 invalid func unknown#195896080 processed 27 insns (limit 1000000) max_states_per_insn 0 total_states 2 peak_states 2 mark_read 1 -- END PROG LOAD LOG -- libbpf: failed to load program 'test_core_module_probed' libbpf: failed to load object 'test_core_reloc_module.o' test_core_reloc:FAIL:obj_load unexpected error: -22 (errno 22) #38/3 core_reloc/module_direct:FAIL test_core_reloc:PASS:btf_src_file 0 nsec libbpf: loading test_core_reloc_flavors.o libbpf: elf: section(2) raw_tracepoint/sys_enter, size 288, link 0, flags 6, type=1 libbpf: sec 'raw_tracepoint/sys_enter': found program 'test_core_flavors' at insn offset 0 (0 bytes), code size 36 insns (288 bytes) libbpf: elf: section(3) .relraw_tracepoint/sys_enter, size 96, link 11, flags 40, type=9 libbpf: elf: section(4) license, size 4, link 0, flags 3, type=1 libbpf: license of test_core_reloc_flavors.o is GPL libbpf: elf: section(5) .bss, size 512, link 0, flags 3, type=8 libbpf: elf: section(6) .BTF, size 997, link 0, flags 0, type=1 libbpf: elf: section(8) .BTF.ext, size 236, link 0, flags 0, type=1 libbpf: elf: section(11) .symtab, size 288, link 12, flags 0, type=2 libbpf: looking for externs among 12 symbols... libbpf: collected 0 externs total libbpf: map 'test_cor.bss' (global data): at sec_idx 5, offset 0, flags 400. libbpf: map 0 is "test_cor.bss" libbpf: sec '.relraw_tracepoint/sys_enter': collecting relocation for section(2) 'raw_tracepoint/sys_enter' libbpf: sec '.relraw_tracepoint/sys_enter': relo #0: insn #1 against 'data' libbpf: prog 'test_core_flavors': found data map 0 (test_cor.bss, sec 5, off 0) for insn 1 libbpf: sec '.relraw_tracepoint/sys_enter': relo #1: insn #3 against 'data' libbpf: prog 'test_core_flavors': found data map 0 (test_cor.bss, sec 5, off 0) for insn 3 libbpf: sec '.relraw_tracepoint/sys_enter': relo #2: insn #6 against 'data' libbpf: prog 'test_core_flavors': found data map 0 (test_cor.bss, sec 5, off 0) for insn 6 libbpf: sec '.relraw_tracepoint/sys_enter': relo #3: insn #14 against 'data' libbpf: prog 'test_core_flavors': found data map 0 (test_cor.bss, sec 5, off 0) for insn 14 libbpf: sec '.relraw_tracepoint/sys_enter': relo #4: insn #23 against 'data' libbpf: prog 'test_core_flavors': found data map 0 (test_cor.bss, sec 5, off 0) for insn 23 libbpf: sec '.relraw_tracepoint/sys_enter': relo #5: insn #25 against 'data' libbpf: prog 'test_core_flavors': found data map 0 (test_cor.bss, sec 5, off 0) for insn 25 test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: map 'test_cor.bss': created successfully, fd=5 libbpf: sec 'raw_tracepoint/sys_enter': found 3 CO-RE relocations libbpf: CO-RE relocating [5] struct core_reloc_flavors___weird: found target candidate [4] struct core_reloc_flavors in [vmlinux] libbpf: prog 'test_core_flavors': relo #0: kind (0), spec is [5] struct core_reloc_flavors___weird.a (0:1:0 @ offset 4) libbpf: prog 'test_core_flavors': relo #0: matching candidate #0 [4] struct core_reloc_flavors.a (0:0 @ offset 0) libbpf: prog 'test_core_flavors': relo #0: patched insn #0 (ALU/ALU64) imm 4 -> 0 libbpf: CO-RE relocating [8] struct core_reloc_flavors___reversed: found target candidate [4] struct core_reloc_flavors in [vmlinux] libbpf: prog 'test_core_flavors': relo #1: kind (0), spec is [8] struct core_reloc_flavors___reversed.b (0:1 @ offset 4) libbpf: prog 'test_core_flavors': relo #1: matching candidate #0 [4] struct core_reloc_flavors.b (0:1 @ offset 4) libbpf: prog 'test_core_flavors': relo #1: patched insn #13 (ALU/ALU64) imm 4 -> 4 libbpf: CO-RE relocating [9] struct core_reloc_flavors: found target candidate [4] struct core_reloc_flavors in [vmlinux] libbpf: prog 'test_core_flavors': relo #2: kind (0), spec is [9] struct core_reloc_flavors.c (0:2 @ offset 8) libbpf: prog 'test_core_flavors': relo #2: matching candidate #0 [4] struct core_reloc_flavors.c (0:2 @ offset 8) libbpf: prog 'test_core_flavors': relo #2: patched insn #22 (ALU/ALU64) imm 8 -> 8 test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/4 core_reloc/flavors:OK test_core_reloc:PASS:btf_src_file 0 nsec libbpf: loading test_core_reloc_flavors.o libbpf: elf: section(2) raw_tracepoint/sys_enter, size 288, link 0, flags 6, type=1 libbpf: sec 'raw_tracepoint/sys_enter': found program 'test_core_flavors' at insn offset 0 (0 bytes), code size 36 insns (288 bytes) libbpf: elf: section(3) .relraw_tracepoint/sys_enter, size 96, link 11, flags 40, type=9 libbpf: elf: section(4) license, size 4, link 0, flags 3, type=1 libbpf: license of test_core_reloc_flavors.o is GPL libbpf: elf: section(5) .bss, size 512, link 0, flags 3, type=8 libbpf: elf: section(6) .BTF, size 997, link 0, flags 0, type=1 libbpf: elf: section(8) .BTF.ext, size 236, link 0, flags 0, type=1 libbpf: elf: section(11) .symtab, size 288, link 12, flags 0, type=2 libbpf: looking for externs among 12 symbols... libbpf: collected 0 externs total libbpf: map 'test_cor.bss' (global data): at sec_idx 5, offset 0, flags 400. libbpf: map 0 is "test_cor.bss" libbpf: sec '.relraw_tracepoint/sys_enter': collecting relocation for section(2) 'raw_tracepoint/sys_enter' libbpf: sec '.relraw_tracepoint/sys_enter': relo #0: insn #1 against 'data' libbpf: prog 'test_core_flavors': found data map 0 (test_cor.bss, sec 5, off 0) for insn 1 libbpf: sec '.relraw_tracepoint/sys_enter': relo #1: insn #3 against 'data' libbpf: prog 'test_core_flavors': found data map 0 (test_cor.bss, sec 5, off 0) for insn 3 libbpf: sec '.relraw_tracepoint/sys_enter': relo #2: insn #6 against 'data' libbpf: prog 'test_core_flavors': found data map 0 (test_cor.bss, sec 5, off 0) for insn 6 libbpf: sec '.relraw_tracepoint/sys_enter': relo #3: insn #14 against 'data' libbpf: prog 'test_core_flavors': found data map 0 (test_cor.bss, sec 5, off 0) for insn 14 libbpf: sec '.relraw_tracepoint/sys_enter': relo #4: insn #23 against 'data' libbpf: prog 'test_core_flavors': found data map 0 (test_cor.bss, sec 5, off 0) for insn 23 libbpf: sec '.relraw_tracepoint/sys_enter': relo #5: insn #25 against 'data' libbpf: prog 'test_core_flavors': found data map 0 (test_cor.bss, sec 5, off 0) for insn 25 test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: map 'test_cor.bss': created successfully, fd=5 libbpf: sec 'raw_tracepoint/sys_enter': found 3 CO-RE relocations libbpf: prog 'test_core_flavors': relo #0: kind (0), spec is [5] struct core_reloc_flavors___weird.a (0:1:0 @ offset 4) libbpf: prog 'test_core_flavors': relo #0: no matching targets found libbpf: prog 'test_core_flavors': relo #0: substituting insn #0 w/ invalid insn libbpf: prog 'test_core_flavors': relo #1: kind (0), spec is [8] struct core_reloc_flavors___reversed.b (0:1 @ offset 4) libbpf: prog 'test_core_flavors': relo #1: no matching targets found libbpf: prog 'test_core_flavors': relo #1: substituting insn #13 w/ invalid insn libbpf: prog 'test_core_flavors': relo #2: kind (0), spec is [9] struct core_reloc_flavors.c (0:2 @ offset 8) libbpf: prog 'test_core_flavors': relo #2: no matching targets found libbpf: prog 'test_core_flavors': relo #2: substituting insn #22 w/ invalid insn libbpf: prog 'test_core_flavors': BPF program load failed: Invalid argument libbpf: prog 'test_core_flavors': -- BEGIN PROG LOAD LOG -- arg#0 reference type('UNKNOWN ') size cannot be determined: -22 0: R1=ctx(id=0,off=0,imm=0) R10=fp0 ; int test_core_flavors(void *ctx) 0: (85) call unknown#195896080 invalid func unknown#195896080 processed 1 insns (limit 1000000) max_states_per_insn 0 total_states 0 peak_states 0 mark_read 0 -- END PROG LOAD LOG -- libbpf: failed to load program 'test_core_flavors' libbpf: failed to load object 'test_core_reloc_flavors.o' #38/5 core_reloc/flavors__err_wrong_name:OK test_core_reloc:PASS:btf_src_file 0 nsec libbpf: loading test_core_reloc_nesting.o libbpf: elf: section(2) raw_tracepoint/sys_enter, size 216, link 0, flags 6, type=1 libbpf: sec 'raw_tracepoint/sys_enter': found program 'test_core_nesting' at insn offset 0 (0 bytes), code size 27 insns (216 bytes) libbpf: elf: section(3) .relraw_tracepoint/sys_enter, size 64, link 11, flags 40, type=9 libbpf: elf: section(4) license, size 4, link 0, flags 3, type=1 libbpf: license of test_core_reloc_nesting.o is GPL libbpf: elf: section(5) .bss, size 512, link 0, flags 3, type=8 libbpf: elf: section(6) .BTF, size 905, link 0, flags 0, type=1 libbpf: elf: section(8) .BTF.ext, size 188, link 0, flags 0, type=1 libbpf: elf: section(11) .symtab, size 288, link 12, flags 0, type=2 libbpf: looking for externs among 12 symbols... libbpf: collected 0 externs total libbpf: map 'test_cor.bss' (global data): at sec_idx 5, offset 0, flags 400. libbpf: map 0 is "test_cor.bss" libbpf: sec '.relraw_tracepoint/sys_enter': collecting relocation for section(2) 'raw_tracepoint/sys_enter' libbpf: sec '.relraw_tracepoint/sys_enter': relo #0: insn #1 against 'data' libbpf: prog 'test_core_nesting': found data map 0 (test_cor.bss, sec 5, off 0) for insn 1 libbpf: sec '.relraw_tracepoint/sys_enter': relo #1: insn #3 against 'data' libbpf: prog 'test_core_nesting': found data map 0 (test_cor.bss, sec 5, off 0) for insn 3 libbpf: sec '.relraw_tracepoint/sys_enter': relo #2: insn #6 against 'data' libbpf: prog 'test_core_nesting': found data map 0 (test_cor.bss, sec 5, off 0) for insn 6 libbpf: sec '.relraw_tracepoint/sys_enter': relo #3: insn #15 against 'data' libbpf: prog 'test_core_nesting': found data map 0 (test_cor.bss, sec 5, off 0) for insn 15 test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: map 'test_cor.bss': created successfully, fd=5 libbpf: sec 'raw_tracepoint/sys_enter': found 2 CO-RE relocations libbpf: CO-RE relocating [5] struct core_reloc_nesting: found target candidate [4] struct core_reloc_nesting in [vmlinux] libbpf: prog 'test_core_nesting': relo #0: kind (0), spec is [5] struct core_reloc_nesting.a.a.a (0:0:0:0 @ offset 0) libbpf: prog 'test_core_nesting': relo #0: matching candidate #0 [4] struct core_reloc_nesting.a.a.a (0:0:0:0 @ offset 0) libbpf: prog 'test_core_nesting': relo #0: patched insn #0 (ALU/ALU64) imm 0 -> 0 libbpf: prog 'test_core_nesting': relo #1: kind (0), spec is [5] struct core_reloc_nesting.b.b.b (0:1:0:0 @ offset 4) libbpf: prog 'test_core_nesting': relo #1: matching candidate #0 [4] struct core_reloc_nesting.b.b.b (0:1:0:0 @ offset 4) libbpf: prog 'test_core_nesting': relo #1: patched insn #14 (ALU/ALU64) imm 4 -> 4 test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/6 core_reloc/nesting:OK test_core_reloc:PASS:btf_src_file 0 nsec libbpf: loading test_core_reloc_nesting.o libbpf: elf: section(2) raw_tracepoint/sys_enter, size 216, link 0, flags 6, type=1 libbpf: sec 'raw_tracepoint/sys_enter': found program 'test_core_nesting' at insn offset 0 (0 bytes), code size 27 insns (216 bytes) libbpf: elf: section(3) .relraw_tracepoint/sys_enter, size 64, link 11, flags 40, type=9 libbpf: elf: section(4) license, size 4, link 0, flags 3, type=1 libbpf: license of test_core_reloc_nesting.o is GPL libbpf: elf: section(5) .bss, size 512, link 0, flags 3, type=8 libbpf: elf: section(6) .BTF, size 905, link 0, flags 0, type=1 libbpf: elf: section(8) .BTF.ext, size 188, link 0, flags 0, type=1 libbpf: elf: section(11) .symtab, size 288, link 12, flags 0, type=2 libbpf: looking for externs among 12 symbols... libbpf: collected 0 externs total libbpf: map 'test_cor.bss' (global data): at sec_idx 5, offset 0, flags 400. libbpf: map 0 is "test_cor.bss" libbpf: sec '.relraw_tracepoint/sys_enter': collecting relocation for section(2) 'raw_tracepoint/sys_enter' libbpf: sec '.relraw_tracepoint/sys_enter': relo #0: insn #1 against 'data' libbpf: prog 'test_core_nesting': found data map 0 (test_cor.bss, sec 5, off 0) for insn 1 libbpf: sec '.relraw_tracepoint/sys_enter': relo #1: insn #3 against 'data' libbpf: prog 'test_core_nesting': found data map 0 (test_cor.bss, sec 5, off 0) for insn 3 libbpf: sec '.relraw_tracepoint/sys_enter': relo #2: insn #6 against 'data' libbpf: prog 'test_core_nesting': found data map 0 (test_cor.bss, sec 5, off 0) for insn 6 libbpf: sec '.relraw_tracepoint/sys_enter': relo #3: insn #15 against 'data' libbpf: prog 'test_core_nesting': found data map 0 (test_cor.bss, sec 5, off 0) for insn 15 test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: map 'test_cor.bss': created successfully, fd=5 libbpf: sec 'raw_tracepoint/sys_enter': found 2 CO-RE relocations libbpf: CO-RE relocating [5] struct core_reloc_nesting: found target candidate [4] struct core_reloc_nesting___anon_embed in [vmlinux] libbpf: prog 'test_core_nesting': relo #0: kind (0), spec is [5] struct core_reloc_nesting.a.a.a (0:0:0:0 @ offset 0) libbpf: prog 'test_core_nesting': relo #0: matching candidate #0 [4] struct core_reloc_nesting___anon_embed.a.a.a (0:1:0:0 @ offset 4) libbpf: prog 'test_core_nesting': relo #0: patched insn #0 (ALU/ALU64) imm 0 -> 4 libbpf: prog 'test_core_nesting': relo #1: kind (0), spec is [5] struct core_reloc_nesting.b.b.b (0:1:0:0 @ offset 4) libbpf: prog 'test_core_nesting': relo #1: matching candidate #0 [4] struct core_reloc_nesting___anon_embed.b.b.b (0:2:0:0 @ offset 8) libbpf: prog 'test_core_nesting': relo #1: patched insn #14 (ALU/ALU64) imm 4 -> 8 test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/7 core_reloc/nesting___anon_embed:OK test_core_reloc:PASS:btf_src_file 0 nsec libbpf: loading test_core_reloc_nesting.o libbpf: elf: section(2) raw_tracepoint/sys_enter, size 216, link 0, flags 6, type=1 libbpf: sec 'raw_tracepoint/sys_enter': found program 'test_core_nesting' at insn offset 0 (0 bytes), code size 27 insns (216 bytes) libbpf: elf: section(3) .relraw_tracepoint/sys_enter, size 64, link 11, flags 40, type=9 libbpf: elf: section(4) license, size 4, link 0, flags 3, type=1 libbpf: license of test_core_reloc_nesting.o is GPL libbpf: elf: section(5) .bss, size 512, link 0, flags 3, type=8 libbpf: elf: section(6) .BTF, size 905, link 0, flags 0, type=1 libbpf: elf: section(8) .BTF.ext, size 188, link 0, flags 0, type=1 libbpf: elf: section(11) .symtab, size 288, link 12, flags 0, type=2 libbpf: looking for externs among 12 symbols... libbpf: collected 0 externs total libbpf: map 'test_cor.bss' (global data): at sec_idx 5, offset 0, flags 400. libbpf: map 0 is "test_cor.bss" libbpf: sec '.relraw_tracepoint/sys_enter': collecting relocation for section(2) 'raw_tracepoint/sys_enter' libbpf: sec '.relraw_tracepoint/sys_enter': relo #0: insn #1 against 'data' libbpf: prog 'test_core_nesting': found data map 0 (test_cor.bss, sec 5, off 0) for insn 1 libbpf: sec '.relraw_tracepoint/sys_enter': relo #1: insn #3 against 'data' libbpf: prog 'test_core_nesting': found data map 0 (test_cor.bss, sec 5, off 0) for insn 3 libbpf: sec '.relraw_tracepoint/sys_enter': relo #2: insn #6 against 'data' libbpf: prog 'test_core_nesting': found data map 0 (test_cor.bss, sec 5, off 0) for insn 6 libbpf: sec '.relraw_tracepoint/sys_enter': relo #3: insn #15 against 'data' libbpf: prog 'test_core_nesting': found data map 0 (test_cor.bss, sec 5, off 0) for insn 15 test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: map 'test_cor.bss': created successfully, fd=5 libbpf: sec 'raw_tracepoint/sys_enter': found 2 CO-RE relocations libbpf: CO-RE relocating [5] struct core_reloc_nesting: found target candidate [4] struct core_reloc_nesting___struct_union_mixup in [vmlinux] libbpf: prog 'test_core_nesting': relo #0: kind (0), spec is [5] struct core_reloc_nesting.a.a.a (0:0:0:0 @ offset 0) libbpf: prog 'test_core_nesting': relo #0: matching candidate #0 [4] struct core_reloc_nesting___struct_union_mixup.a.a.a (0:1:1:1 @ offset 8) libbpf: prog 'test_core_nesting': relo #0: patched insn #0 (ALU/ALU64) imm 0 -> 8 libbpf: prog 'test_core_nesting': relo #1: kind (0), spec is [5] struct core_reloc_nesting.b.b.b (0:1:0:0 @ offset 4) libbpf: prog 'test_core_nesting': relo #1: matching candidate #0 [4] struct core_reloc_nesting___struct_union_mixup.b.b.b (0:3:1:1 @ offset 16) libbpf: prog 'test_core_nesting': relo #1: patched insn #14 (ALU/ALU64) imm 4 -> 16 test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/8 core_reloc/nesting___struct_union_mixup:OK test_core_reloc:PASS:btf_src_file 0 nsec libbpf: loading test_core_reloc_nesting.o libbpf: elf: section(2) raw_tracepoint/sys_enter, size 216, link 0, flags 6, type=1 libbpf: sec 'raw_tracepoint/sys_enter': found program 'test_core_nesting' at insn offset 0 (0 bytes), code size 27 insns (216 bytes) libbpf: elf: section(3) .relraw_tracepoint/sys_enter, size 64, link 11, flags 40, type=9 libbpf: elf: section(4) license, size 4, link 0, flags 3, type=1 libbpf: license of test_core_reloc_nesting.o is GPL libbpf: elf: section(5) .bss, size 512, link 0, flags 3, type=8 libbpf: elf: section(6) .BTF, size 905, link 0, flags 0, type=1 libbpf: elf: section(8) .BTF.ext, size 188, link 0, flags 0, type=1 libbpf: elf: section(11) .symtab, size 288, link 12, flags 0, type=2 libbpf: looking for externs among 12 symbols... libbpf: collected 0 externs total libbpf: map 'test_cor.bss' (global data): at sec_idx 5, offset 0, flags 400. libbpf: map 0 is "test_cor.bss" libbpf: sec '.relraw_tracepoint/sys_enter': collecting relocation for section(2) 'raw_tracepoint/sys_enter' libbpf: sec '.relraw_tracepoint/sys_enter': relo #0: insn #1 against 'data' libbpf: prog 'test_core_nesting': found data map 0 (test_cor.bss, sec 5, off 0) for insn 1 libbpf: sec '.relraw_tracepoint/sys_enter': relo #1: insn #3 against 'data' libbpf: prog 'test_core_nesting': found data map 0 (test_cor.bss, sec 5, off 0) for insn 3 libbpf: sec '.relraw_tracepoint/sys_enter': relo #2: insn #6 against 'data' libbpf: prog 'test_core_nesting': found data map 0 (test_cor.bss, sec 5, off 0) for insn 6 libbpf: sec '.relraw_tracepoint/sys_enter': relo #3: insn #15 against 'data' libbpf: prog 'test_core_nesting': found data map 0 (test_cor.bss, sec 5, off 0) for insn 15 test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: map 'test_cor.bss': created successfully, fd=5 libbpf: sec 'raw_tracepoint/sys_enter': found 2 CO-RE relocations libbpf: CO-RE relocating [5] struct core_reloc_nesting: found target candidate [4] struct core_reloc_nesting___extra_nesting in [vmlinux] libbpf: prog 'test_core_nesting': relo #0: kind (0), spec is [5] struct core_reloc_nesting.a.a.a (0:0:0:0 @ offset 0) libbpf: prog 'test_core_nesting': relo #0: matching candidate #0 [4] struct core_reloc_nesting___extra_nesting.a.a.a (0:1:0:0:0:0:0 @ offset 4) libbpf: prog 'test_core_nesting': relo #0: patched insn #0 (ALU/ALU64) imm 0 -> 4 libbpf: prog 'test_core_nesting': relo #1: kind (0), spec is [5] struct core_reloc_nesting.b.b.b (0:1:0:0 @ offset 4) libbpf: prog 'test_core_nesting': relo #1: matching candidate #0 [4] struct core_reloc_nesting___extra_nesting.b.b.b (0:1:2:0:0:0:0:0 @ offset 12) libbpf: prog 'test_core_nesting': relo #1: patched insn #14 (ALU/ALU64) imm 4 -> 12 test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/9 core_reloc/nesting___extra_nesting:OK test_core_reloc:PASS:btf_src_file 0 nsec libbpf: loading test_core_reloc_nesting.o libbpf: elf: section(2) raw_tracepoint/sys_enter, size 216, link 0, flags 6, type=1 libbpf: sec 'raw_tracepoint/sys_enter': found program 'test_core_nesting' at insn offset 0 (0 bytes), code size 27 insns (216 bytes) libbpf: elf: section(3) .relraw_tracepoint/sys_enter, size 64, link 11, flags 40, type=9 libbpf: elf: section(4) license, size 4, link 0, flags 3, type=1 libbpf: license of test_core_reloc_nesting.o is GPL libbpf: elf: section(5) .bss, size 512, link 0, flags 3, type=8 libbpf: elf: section(6) .BTF, size 905, link 0, flags 0, type=1 libbpf: elf: section(8) .BTF.ext, size 188, link 0, flags 0, type=1 libbpf: elf: section(11) .symtab, size 288, link 12, flags 0, type=2 libbpf: looking for externs among 12 symbols... libbpf: collected 0 externs total libbpf: map 'test_cor.bss' (global data): at sec_idx 5, offset 0, flags 400. libbpf: map 0 is "test_cor.bss" libbpf: sec '.relraw_tracepoint/sys_enter': collecting relocation for section(2) 'raw_tracepoint/sys_enter' libbpf: sec '.relraw_tracepoint/sys_enter': relo #0: insn #1 against 'data' libbpf: prog 'test_core_nesting': found data map 0 (test_cor.bss, sec 5, off 0) for insn 1 libbpf: sec '.relraw_tracepoint/sys_enter': relo #1: insn #3 against 'data' libbpf: prog 'test_core_nesting': found data map 0 (test_cor.bss, sec 5, off 0) for insn 3 libbpf: sec '.relraw_tracepoint/sys_enter': relo #2: insn #6 against 'data' libbpf: prog 'test_core_nesting': found data map 0 (test_cor.bss, sec 5, off 0) for insn 6 libbpf: sec '.relraw_tracepoint/sys_enter': relo #3: insn #15 against 'data' libbpf: prog 'test_core_nesting': found data map 0 (test_cor.bss, sec 5, off 0) for insn 15 test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: map 'test_cor.bss': created successfully, fd=5 libbpf: sec 'raw_tracepoint/sys_enter': found 2 CO-RE relocations libbpf: CO-RE relocating [5] struct core_reloc_nesting: found target candidate [4] struct core_reloc_nesting___dup_compat_types in [vmlinux] libbpf: CO-RE relocating [5] struct core_reloc_nesting: found target candidate [14] struct core_reloc_nesting___dup_compat_types__2 in [vmlinux] libbpf: CO-RE relocating [5] struct core_reloc_nesting: found target candidate [25] struct core_reloc_nesting___dup_compat_types__3 in [vmlinux] libbpf: prog 'test_core_nesting': relo #0: kind (0), spec is [5] struct core_reloc_nesting.a.a.a (0:0:0:0 @ offset 0) libbpf: prog 'test_core_nesting': relo #0: matching candidate #0 [4] struct core_reloc_nesting___dup_compat_types.a.a.a (0:1:0:0 @ offset 4) libbpf: prog 'test_core_nesting': relo #0: matching candidate #1 [14] struct core_reloc_nesting___dup_compat_types__2.a.a.a (0:1:1:1 @ offset 4) libbpf: prog 'test_core_nesting': relo #0: matching candidate #2 [25] struct core_reloc_nesting___dup_compat_types__3.a.a.a (0:1:0:0 @ offset 4) libbpf: prog 'test_core_nesting': relo #0: patched insn #0 (ALU/ALU64) imm 0 -> 4 libbpf: prog 'test_core_nesting': relo #1: kind (0), spec is [5] struct core_reloc_nesting.b.b.b (0:1:0:0 @ offset 4) libbpf: prog 'test_core_nesting': relo #1: matching candidate #0 [4] struct core_reloc_nesting___dup_compat_types.b.b.b (0:3:0:0 @ offset 16) libbpf: prog 'test_core_nesting': relo #1: matching candidate #1 [14] struct core_reloc_nesting___dup_compat_types__2.b.b.b (0:3:0:0:1 @ offset 16) libbpf: prog 'test_core_nesting': relo #1: matching candidate #2 [25] struct core_reloc_nesting___dup_compat_types__3.b.b.b (0:2:0:0 @ offset 16) libbpf: prog 'test_core_nesting': relo #1: patched insn #14 (ALU/ALU64) imm 4 -> 16 test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/10 core_reloc/nesting___dup_compat_types:OK test_core_reloc:PASS:btf_src_file 0 nsec libbpf: loading test_core_reloc_nesting.o libbpf: elf: section(2) raw_tracepoint/sys_enter, size 216, link 0, flags 6, type=1 libbpf: sec 'raw_tracepoint/sys_enter': found program 'test_core_nesting' at insn offset 0 (0 bytes), code size 27 insns (216 bytes) libbpf: elf: section(3) .relraw_tracepoint/sys_enter, size 64, link 11, flags 40, type=9 libbpf: elf: section(4) license, size 4, link 0, flags 3, type=1 libbpf: license of test_core_reloc_nesting.o is GPL libbpf: elf: section(5) .bss, size 512, link 0, flags 3, type=8 libbpf: elf: section(6) .BTF, size 905, link 0, flags 0, type=1 libbpf: elf: section(8) .BTF.ext, size 188, link 0, flags 0, type=1 libbpf: elf: section(11) .symtab, size 288, link 12, flags 0, type=2 libbpf: looking for externs among 12 symbols... libbpf: collected 0 externs total libbpf: map 'test_cor.bss' (global data): at sec_idx 5, offset 0, flags 400. libbpf: map 0 is "test_cor.bss" libbpf: sec '.relraw_tracepoint/sys_enter': collecting relocation for section(2) 'raw_tracepoint/sys_enter' libbpf: sec '.relraw_tracepoint/sys_enter': relo #0: insn #1 against 'data' libbpf: prog 'test_core_nesting': found data map 0 (test_cor.bss, sec 5, off 0) for insn 1 libbpf: sec '.relraw_tracepoint/sys_enter': relo #1: insn #3 against 'data' libbpf: prog 'test_core_nesting': found data map 0 (test_cor.bss, sec 5, off 0) for insn 3 libbpf: sec '.relraw_tracepoint/sys_enter': relo #2: insn #6 against 'data' libbpf: prog 'test_core_nesting': found data map 0 (test_cor.bss, sec 5, off 0) for insn 6 libbpf: sec '.relraw_tracepoint/sys_enter': relo #3: insn #15 against 'data' libbpf: prog 'test_core_nesting': found data map 0 (test_cor.bss, sec 5, off 0) for insn 15 test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: map 'test_cor.bss': created successfully, fd=5 libbpf: sec 'raw_tracepoint/sys_enter': found 2 CO-RE relocations libbpf: CO-RE relocating [5] struct core_reloc_nesting: found target candidate [4] struct core_reloc_nesting___err_missing_field in [vmlinux] libbpf: prog 'test_core_nesting': relo #0: kind (0), spec is [5] struct core_reloc_nesting.a.a.a (0:0:0:0 @ offset 0) libbpf: prog 'test_core_nesting': relo #0: matching candidate #0 [4] struct core_reloc_nesting___err_missing_field.a.a.a (0:0:0:0 @ offset 0) libbpf: prog 'test_core_nesting': relo #0: patched insn #0 (ALU/ALU64) imm 0 -> 0 libbpf: prog 'test_core_nesting': relo #1: kind (0), spec is [5] struct core_reloc_nesting.b.b.b (0:1:0:0 @ offset 4) libbpf: prog 'test_core_nesting': relo #1: non-matching candidate #0 [4] struct core_reloc_nesting___err_missing_field.b.b (0:1:0 @ offset 4) libbpf: prog 'test_core_nesting': relo #1: no matching targets found libbpf: prog 'test_core_nesting': relo #1: substituting insn #14 w/ invalid insn libbpf: prog 'test_core_nesting': BPF program load failed: Invalid argument libbpf: prog 'test_core_nesting': -- BEGIN PROG LOAD LOG -- arg#0 reference type('UNKNOWN ') size cannot be determined: -22 0: R1=ctx(id=0,off=0,imm=0) R10=fp0 ; int test_core_nesting(void *ctx) 0: (b7) r1 = 0 ; R1_w=inv0 1: (18) r6 = 0xc0080000023f0000 ; R6_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 3: (18) r3 = 0xc0080000023f0000 ; R3_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 5: (0f) r3 += r1 ; R1_w=invP0 R3_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) ; if (CORE_READ(&out->a.a.a, &in->a.a.a)) 6: (18) r1 = 0xc0080000023f0000 ; R1_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 8: (07) r1 += 256 ; R1_w=map_value(id=0,off=256,ks=4,vs=512,imm=0) 9: (b4) w2 = 4 ; R2_w=inv4 10: (85) call bpf_probe_read_kernel#113 ; R0_w=inv(id=0) 11: (bf) r1 = r0 ; R0_w=inv(id=1) R1_w=inv(id=1) 12: (b4) w0 = 1 ; R0_w=inv1 ; if (CORE_READ(&out->a.a.a, &in->a.a.a)) 13: (55) if r1 != 0x0 goto pc+12 ; R1_w=inv0 14: (85) call unknown#195896080 invalid func unknown#195896080 processed 12 insns (limit 1000000) max_states_per_insn 0 total_states 0 peak_states 0 mark_read 0 -- END PROG LOAD LOG -- libbpf: failed to load program 'test_core_nesting' libbpf: failed to load object 'test_core_reloc_nesting.o' #38/11 core_reloc/nesting___err_missing_field:OK test_core_reloc:PASS:btf_src_file 0 nsec libbpf: loading test_core_reloc_nesting.o libbpf: elf: section(2) raw_tracepoint/sys_enter, size 216, link 0, flags 6, type=1 libbpf: sec 'raw_tracepoint/sys_enter': found program 'test_core_nesting' at insn offset 0 (0 bytes), code size 27 insns (216 bytes) libbpf: elf: section(3) .relraw_tracepoint/sys_enter, size 64, link 11, flags 40, type=9 libbpf: elf: section(4) license, size 4, link 0, flags 3, type=1 libbpf: license of test_core_reloc_nesting.o is GPL libbpf: elf: section(5) .bss, size 512, link 0, flags 3, type=8 libbpf: elf: section(6) .BTF, size 905, link 0, flags 0, type=1 libbpf: elf: section(8) .BTF.ext, size 188, link 0, flags 0, type=1 libbpf: elf: section(11) .symtab, size 288, link 12, flags 0, type=2 libbpf: looking for externs among 12 symbols... libbpf: collected 0 externs total libbpf: map 'test_cor.bss' (global data): at sec_idx 5, offset 0, flags 400. libbpf: map 0 is "test_cor.bss" libbpf: sec '.relraw_tracepoint/sys_enter': collecting relocation for section(2) 'raw_tracepoint/sys_enter' libbpf: sec '.relraw_tracepoint/sys_enter': relo #0: insn #1 against 'data' libbpf: prog 'test_core_nesting': found data map 0 (test_cor.bss, sec 5, off 0) for insn 1 libbpf: sec '.relraw_tracepoint/sys_enter': relo #1: insn #3 against 'data' libbpf: prog 'test_core_nesting': found data map 0 (test_cor.bss, sec 5, off 0) for insn 3 libbpf: sec '.relraw_tracepoint/sys_enter': relo #2: insn #6 against 'data' libbpf: prog 'test_core_nesting': found data map 0 (test_cor.bss, sec 5, off 0) for insn 6 libbpf: sec '.relraw_tracepoint/sys_enter': relo #3: insn #15 against 'data' libbpf: prog 'test_core_nesting': found data map 0 (test_cor.bss, sec 5, off 0) for insn 15 test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: map 'test_cor.bss': created successfully, fd=5 libbpf: sec 'raw_tracepoint/sys_enter': found 2 CO-RE relocations libbpf: CO-RE relocating [5] struct core_reloc_nesting: found target candidate [4] struct core_reloc_nesting___err_array_field in [vmlinux] libbpf: prog 'test_core_nesting': relo #0: kind (0), spec is [5] struct core_reloc_nesting.a.a.a (0:0:0:0 @ offset 0) libbpf: prog 'test_core_nesting': relo #0: matching candidate #0 [4] struct core_reloc_nesting___err_array_field.a.a.a (0:0:0:0 @ offset 0) libbpf: prog 'test_core_nesting': relo #0: patched insn #0 (ALU/ALU64) imm 0 -> 0 libbpf: prog 'test_core_nesting': relo #1: kind (0), spec is [5] struct core_reloc_nesting.b.b.b (0:1:0:0 @ offset 4) libbpf: prog 'test_core_nesting': relo #1: non-matching candidate #0 [4] struct core_reloc_nesting___err_array_field.b.b (0:1:0:0 @ offset 4) libbpf: prog 'test_core_nesting': relo #1: no matching targets found libbpf: prog 'test_core_nesting': relo #1: substituting insn #14 w/ invalid insn libbpf: prog 'test_core_nesting': BPF program load failed: Invalid argument libbpf: prog 'test_core_nesting': -- BEGIN PROG LOAD LOG -- arg#0 reference type('UNKNOWN ') size cannot be determined: -22 0: R1=ctx(id=0,off=0,imm=0) R10=fp0 ; int test_core_nesting(void *ctx) 0: (b7) r1 = 0 ; R1_w=inv0 1: (18) r6 = 0xc008000003c40000 ; R6_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 3: (18) r3 = 0xc008000003c40000 ; R3_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 5: (0f) r3 += r1 ; R1_w=invP0 R3_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) ; if (CORE_READ(&out->a.a.a, &in->a.a.a)) 6: (18) r1 = 0xc008000003c40000 ; R1_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 8: (07) r1 += 256 ; R1_w=map_value(id=0,off=256,ks=4,vs=512,imm=0) 9: (b4) w2 = 4 ; R2_w=inv4 10: (85) call bpf_probe_read_kernel#113 ; R0_w=inv(id=0) 11: (bf) r1 = r0 ; R0_w=inv(id=1) R1_w=inv(id=1) 12: (b4) w0 = 1 ; R0_w=inv1 ; if (CORE_READ(&out->a.a.a, &in->a.a.a)) 13: (55) if r1 != 0x0 goto pc+12 ; R1_w=inv0 14: (85) call unknown#195896080 invalid func unknown#195896080 processed 12 insns (limit 1000000) max_states_per_insn 0 total_states 0 peak_states 0 mark_read 0 -- END PROG LOAD LOG -- libbpf: failed to load program 'test_core_nesting' libbpf: failed to load object 'test_core_reloc_nesting.o' #38/12 core_reloc/nesting___err_array_field:OK test_core_reloc:PASS:btf_src_file 0 nsec libbpf: loading test_core_reloc_nesting.o libbpf: elf: section(2) raw_tracepoint/sys_enter, size 216, link 0, flags 6, type=1 libbpf: sec 'raw_tracepoint/sys_enter': found program 'test_core_nesting' at insn offset 0 (0 bytes), code size 27 insns (216 bytes) libbpf: elf: section(3) .relraw_tracepoint/sys_enter, size 64, link 11, flags 40, type=9 libbpf: elf: section(4) license, size 4, link 0, flags 3, type=1 libbpf: license of test_core_reloc_nesting.o is GPL libbpf: elf: section(5) .bss, size 512, link 0, flags 3, type=8 libbpf: elf: section(6) .BTF, size 905, link 0, flags 0, type=1 libbpf: elf: section(8) .BTF.ext, size 188, link 0, flags 0, type=1 libbpf: elf: section(11) .symtab, size 288, link 12, flags 0, type=2 libbpf: looking for externs among 12 symbols... libbpf: collected 0 externs total libbpf: map 'test_cor.bss' (global data): at sec_idx 5, offset 0, flags 400. libbpf: map 0 is "test_cor.bss" libbpf: sec '.relraw_tracepoint/sys_enter': collecting relocation for section(2) 'raw_tracepoint/sys_enter' libbpf: sec '.relraw_tracepoint/sys_enter': relo #0: insn #1 against 'data' libbpf: prog 'test_core_nesting': found data map 0 (test_cor.bss, sec 5, off 0) for insn 1 libbpf: sec '.relraw_tracepoint/sys_enter': relo #1: insn #3 against 'data' libbpf: prog 'test_core_nesting': found data map 0 (test_cor.bss, sec 5, off 0) for insn 3 libbpf: sec '.relraw_tracepoint/sys_enter': relo #2: insn #6 against 'data' libbpf: prog 'test_core_nesting': found data map 0 (test_cor.bss, sec 5, off 0) for insn 6 libbpf: sec '.relraw_tracepoint/sys_enter': relo #3: insn #15 against 'data' libbpf: prog 'test_core_nesting': found data map 0 (test_cor.bss, sec 5, off 0) for insn 15 test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: map 'test_cor.bss': created successfully, fd=5 libbpf: sec 'raw_tracepoint/sys_enter': found 2 CO-RE relocations libbpf: CO-RE relocating [5] struct core_reloc_nesting: found target candidate [4] struct core_reloc_nesting___err_missing_container in [vmlinux] libbpf: prog 'test_core_nesting': relo #0: kind (0), spec is [5] struct core_reloc_nesting.a.a.a (0:0:0:0 @ offset 0) libbpf: prog 'test_core_nesting': relo #0: matching candidate #0 [4] struct core_reloc_nesting___err_missing_container.a.a.a (0:0:0:0 @ offset 0) libbpf: prog 'test_core_nesting': relo #0: patched insn #0 (ALU/ALU64) imm 0 -> 0 libbpf: prog 'test_core_nesting': relo #1: kind (0), spec is [5] struct core_reloc_nesting.b.b.b (0:1:0:0 @ offset 4) libbpf: prog 'test_core_nesting': relo #1: non-matching candidate #0 [4] struct core_reloc_nesting___err_missing_container.b (0:1 @ offset 4) libbpf: prog 'test_core_nesting': relo #1: no matching targets found libbpf: prog 'test_core_nesting': relo #1: substituting insn #14 w/ invalid insn libbpf: prog 'test_core_nesting': BPF program load failed: Invalid argument libbpf: prog 'test_core_nesting': -- BEGIN PROG LOAD LOG -- arg#0 reference type('UNKNOWN ') size cannot be determined: -22 0: R1=ctx(id=0,off=0,imm=0) R10=fp0 ; int test_core_nesting(void *ctx) 0: (b7) r1 = 0 ; R1_w=inv0 1: (18) r6 = 0xc008000004030000 ; R6_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 3: (18) r3 = 0xc008000004030000 ; R3_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 5: (0f) r3 += r1 ; R1_w=invP0 R3_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) ; if (CORE_READ(&out->a.a.a, &in->a.a.a)) 6: (18) r1 = 0xc008000004030000 ; R1_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 8: (07) r1 += 256 ; R1_w=map_value(id=0,off=256,ks=4,vs=512,imm=0) 9: (b4) w2 = 4 ; R2_w=inv4 10: (85) call bpf_probe_read_kernel#113 ; R0_w=inv(id=0) 11: (bf) r1 = r0 ; R0_w=inv(id=1) R1_w=inv(id=1) 12: (b4) w0 = 1 ; R0_w=inv1 ; if (CORE_READ(&out->a.a.a, &in->a.a.a)) 13: (55) if r1 != 0x0 goto pc+12 ; R1_w=inv0 14: (85) call unknown#195896080 invalid func unknown#195896080 processed 12 insns (limit 1000000) max_states_per_insn 0 total_states 0 peak_states 0 mark_read 0 -- END PROG LOAD LOG -- libbpf: failed to load program 'test_core_nesting' libbpf: failed to load object 'test_core_reloc_nesting.o' #38/13 core_reloc/nesting___err_missing_container:OK test_core_reloc:PASS:btf_src_file 0 nsec libbpf: loading test_core_reloc_nesting.o libbpf: elf: section(2) raw_tracepoint/sys_enter, size 216, link 0, flags 6, type=1 libbpf: sec 'raw_tracepoint/sys_enter': found program 'test_core_nesting' at insn offset 0 (0 bytes), code size 27 insns (216 bytes) libbpf: elf: section(3) .relraw_tracepoint/sys_enter, size 64, link 11, flags 40, type=9 libbpf: elf: section(4) license, size 4, link 0, flags 3, type=1 libbpf: license of test_core_reloc_nesting.o is GPL libbpf: elf: section(5) .bss, size 512, link 0, flags 3, type=8 libbpf: elf: section(6) .BTF, size 905, link 0, flags 0, type=1 libbpf: elf: section(8) .BTF.ext, size 188, link 0, flags 0, type=1 libbpf: elf: section(11) .symtab, size 288, link 12, flags 0, type=2 libbpf: looking for externs among 12 symbols... libbpf: collected 0 externs total libbpf: map 'test_cor.bss' (global data): at sec_idx 5, offset 0, flags 400. libbpf: map 0 is "test_cor.bss" libbpf: sec '.relraw_tracepoint/sys_enter': collecting relocation for section(2) 'raw_tracepoint/sys_enter' libbpf: sec '.relraw_tracepoint/sys_enter': relo #0: insn #1 against 'data' libbpf: prog 'test_core_nesting': found data map 0 (test_cor.bss, sec 5, off 0) for insn 1 libbpf: sec '.relraw_tracepoint/sys_enter': relo #1: insn #3 against 'data' libbpf: prog 'test_core_nesting': found data map 0 (test_cor.bss, sec 5, off 0) for insn 3 libbpf: sec '.relraw_tracepoint/sys_enter': relo #2: insn #6 against 'data' libbpf: prog 'test_core_nesting': found data map 0 (test_cor.bss, sec 5, off 0) for insn 6 libbpf: sec '.relraw_tracepoint/sys_enter': relo #3: insn #15 against 'data' libbpf: prog 'test_core_nesting': found data map 0 (test_cor.bss, sec 5, off 0) for insn 15 test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: map 'test_cor.bss': created successfully, fd=5 libbpf: sec 'raw_tracepoint/sys_enter': found 2 CO-RE relocations libbpf: CO-RE relocating [5] struct core_reloc_nesting: found target candidate [4] struct core_reloc_nesting___err_nonstruct_container in [vmlinux] libbpf: prog 'test_core_nesting': relo #0: kind (0), spec is [5] struct core_reloc_nesting.a.a.a (0:0:0:0 @ offset 0) libbpf: prog 'test_core_nesting': relo #0: matching candidate #0 [4] struct core_reloc_nesting___err_nonstruct_container.a.a.a (0:0:0:0 @ offset 0) libbpf: prog 'test_core_nesting': relo #0: patched insn #0 (ALU/ALU64) imm 0 -> 0 libbpf: prog 'test_core_nesting': relo #1: kind (0), spec is [5] struct core_reloc_nesting.b.b.b (0:1:0:0 @ offset 4) libbpf: prog 'test_core_nesting': relo #1: non-matching candidate #0 [4] struct core_reloc_nesting___err_nonstruct_container.b (0:1:0 @ offset 8) libbpf: prog 'test_core_nesting': relo #1: no matching targets found libbpf: prog 'test_core_nesting': relo #1: substituting insn #14 w/ invalid insn libbpf: prog 'test_core_nesting': BPF program load failed: Invalid argument libbpf: prog 'test_core_nesting': -- BEGIN PROG LOAD LOG -- arg#0 reference type('UNKNOWN ') size cannot be determined: -22 0: R1=ctx(id=0,off=0,imm=0) R10=fp0 ; int test_core_nesting(void *ctx) 0: (b7) r1 = 0 ; R1_w=inv0 1: (18) r6 = 0xc0080000041a0000 ; R6_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 3: (18) r3 = 0xc0080000041a0000 ; R3_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 5: (0f) r3 += r1 ; R1_w=invP0 R3_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) ; if (CORE_READ(&out->a.a.a, &in->a.a.a)) 6: (18) r1 = 0xc0080000041a0000 ; R1_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 8: (07) r1 += 256 ; R1_w=map_value(id=0,off=256,ks=4,vs=512,imm=0) 9: (b4) w2 = 4 ; R2_w=inv4 10: (85) call bpf_probe_read_kernel#113 ; R0_w=inv(id=0) 11: (bf) r1 = r0 ; R0_w=inv(id=1) R1_w=inv(id=1) 12: (b4) w0 = 1 ; R0_w=inv1 ; if (CORE_READ(&out->a.a.a, &in->a.a.a)) 13: (55) if r1 != 0x0 goto pc+12 ; R1_w=inv0 14: (85) call unknown#195896080 invalid func unknown#195896080 processed 12 insns (limit 1000000) max_states_per_insn 0 total_states 0 peak_states 0 mark_read 0 -- END PROG LOAD LOG -- libbpf: failed to load program 'test_core_nesting' libbpf: failed to load object 'test_core_reloc_nesting.o' #38/14 core_reloc/nesting___err_nonstruct_container:OK test_core_reloc:PASS:btf_src_file 0 nsec libbpf: loading test_core_reloc_nesting.o libbpf: elf: section(2) raw_tracepoint/sys_enter, size 216, link 0, flags 6, type=1 libbpf: sec 'raw_tracepoint/sys_enter': found program 'test_core_nesting' at insn offset 0 (0 bytes), code size 27 insns (216 bytes) libbpf: elf: section(3) .relraw_tracepoint/sys_enter, size 64, link 11, flags 40, type=9 libbpf: elf: section(4) license, size 4, link 0, flags 3, type=1 libbpf: license of test_core_reloc_nesting.o is GPL libbpf: elf: section(5) .bss, size 512, link 0, flags 3, type=8 libbpf: elf: section(6) .BTF, size 905, link 0, flags 0, type=1 libbpf: elf: section(8) .BTF.ext, size 188, link 0, flags 0, type=1 libbpf: elf: section(11) .symtab, size 288, link 12, flags 0, type=2 libbpf: looking for externs among 12 symbols... libbpf: collected 0 externs total libbpf: map 'test_cor.bss' (global data): at sec_idx 5, offset 0, flags 400. libbpf: map 0 is "test_cor.bss" libbpf: sec '.relraw_tracepoint/sys_enter': collecting relocation for section(2) 'raw_tracepoint/sys_enter' libbpf: sec '.relraw_tracepoint/sys_enter': relo #0: insn #1 against 'data' libbpf: prog 'test_core_nesting': found data map 0 (test_cor.bss, sec 5, off 0) for insn 1 libbpf: sec '.relraw_tracepoint/sys_enter': relo #1: insn #3 against 'data' libbpf: prog 'test_core_nesting': found data map 0 (test_cor.bss, sec 5, off 0) for insn 3 libbpf: sec '.relraw_tracepoint/sys_enter': relo #2: insn #6 against 'data' libbpf: prog 'test_core_nesting': found data map 0 (test_cor.bss, sec 5, off 0) for insn 6 libbpf: sec '.relraw_tracepoint/sys_enter': relo #3: insn #15 against 'data' libbpf: prog 'test_core_nesting': found data map 0 (test_cor.bss, sec 5, off 0) for insn 15 test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: map 'test_cor.bss': created successfully, fd=5 libbpf: sec 'raw_tracepoint/sys_enter': found 2 CO-RE relocations libbpf: CO-RE relocating [5] struct core_reloc_nesting: found target candidate [4] struct core_reloc_nesting___err_array_container in [vmlinux] libbpf: prog 'test_core_nesting': relo #0: kind (0), spec is [5] struct core_reloc_nesting.a.a.a (0:0:0:0 @ offset 0) libbpf: prog 'test_core_nesting': relo #0: matching candidate #0 [4] struct core_reloc_nesting___err_array_container.a.a.a (0:0:0:0 @ offset 0) libbpf: prog 'test_core_nesting': relo #0: patched insn #0 (ALU/ALU64) imm 0 -> 0 libbpf: prog 'test_core_nesting': relo #1: kind (0), spec is [5] struct core_reloc_nesting.b.b.b (0:1:0:0 @ offset 4) libbpf: prog 'test_core_nesting': relo #1: non-matching candidate #0 [4] struct core_reloc_nesting___err_array_container.b (0:1:0 @ offset 4) libbpf: prog 'test_core_nesting': relo #1: no matching targets found libbpf: prog 'test_core_nesting': relo #1: substituting insn #14 w/ invalid insn libbpf: prog 'test_core_nesting': BPF program load failed: Invalid argument libbpf: prog 'test_core_nesting': -- BEGIN PROG LOAD LOG -- arg#0 reference type('UNKNOWN ') size cannot be determined: -22 0: R1=ctx(id=0,off=0,imm=0) R10=fp0 ; int test_core_nesting(void *ctx) 0: (b7) r1 = 0 ; R1_w=inv0 1: (18) r6 = 0xc008000004440000 ; R6_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 3: (18) r3 = 0xc008000004440000 ; R3_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 5: (0f) r3 += r1 ; R1_w=invP0 R3_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) ; if (CORE_READ(&out->a.a.a, &in->a.a.a)) 6: (18) r1 = 0xc008000004440000 ; R1_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 8: (07) r1 += 256 ; R1_w=map_value(id=0,off=256,ks=4,vs=512,imm=0) 9: (b4) w2 = 4 ; R2_w=inv4 10: (85) call bpf_probe_read_kernel#113 ; R0_w=inv(id=0) 11: (bf) r1 = r0 ; R0_w=inv(id=1) R1_w=inv(id=1) 12: (b4) w0 = 1 ; R0_w=inv1 ; if (CORE_READ(&out->a.a.a, &in->a.a.a)) 13: (55) if r1 != 0x0 goto pc+12 ; R1_w=inv0 14: (85) call unknown#195896080 invalid func unknown#195896080 processed 12 insns (limit 1000000) max_states_per_insn 0 total_states 0 peak_states 0 mark_read 0 -- END PROG LOAD LOG -- libbpf: failed to load program 'test_core_nesting' libbpf: failed to load object 'test_core_reloc_nesting.o' #38/15 core_reloc/nesting___err_array_container:OK test_core_reloc:PASS:btf_src_file 0 nsec libbpf: loading test_core_reloc_nesting.o libbpf: elf: section(2) raw_tracepoint/sys_enter, size 216, link 0, flags 6, type=1 libbpf: sec 'raw_tracepoint/sys_enter': found program 'test_core_nesting' at insn offset 0 (0 bytes), code size 27 insns (216 bytes) libbpf: elf: section(3) .relraw_tracepoint/sys_enter, size 64, link 11, flags 40, type=9 libbpf: elf: section(4) license, size 4, link 0, flags 3, type=1 libbpf: license of test_core_reloc_nesting.o is GPL libbpf: elf: section(5) .bss, size 512, link 0, flags 3, type=8 libbpf: elf: section(6) .BTF, size 905, link 0, flags 0, type=1 libbpf: elf: section(8) .BTF.ext, size 188, link 0, flags 0, type=1 libbpf: elf: section(11) .symtab, size 288, link 12, flags 0, type=2 libbpf: looking for externs among 12 symbols... libbpf: collected 0 externs total libbpf: map 'test_cor.bss' (global data): at sec_idx 5, offset 0, flags 400. libbpf: map 0 is "test_cor.bss" libbpf: sec '.relraw_tracepoint/sys_enter': collecting relocation for section(2) 'raw_tracepoint/sys_enter' libbpf: sec '.relraw_tracepoint/sys_enter': relo #0: insn #1 against 'data' libbpf: prog 'test_core_nesting': found data map 0 (test_cor.bss, sec 5, off 0) for insn 1 libbpf: sec '.relraw_tracepoint/sys_enter': relo #1: insn #3 against 'data' libbpf: prog 'test_core_nesting': found data map 0 (test_cor.bss, sec 5, off 0) for insn 3 libbpf: sec '.relraw_tracepoint/sys_enter': relo #2: insn #6 against 'data' libbpf: prog 'test_core_nesting': found data map 0 (test_cor.bss, sec 5, off 0) for insn 6 libbpf: sec '.relraw_tracepoint/sys_enter': relo #3: insn #15 against 'data' libbpf: prog 'test_core_nesting': found data map 0 (test_cor.bss, sec 5, off 0) for insn 15 test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: map 'test_cor.bss': created successfully, fd=5 libbpf: sec 'raw_tracepoint/sys_enter': found 2 CO-RE relocations libbpf: CO-RE relocating [5] struct core_reloc_nesting: found target candidate [4] struct core_reloc_nesting___err_dup_incompat_types__1 in [vmlinux] libbpf: CO-RE relocating [5] struct core_reloc_nesting: found target candidate [12] struct core_reloc_nesting___err_dup_incompat_types__2 in [vmlinux] libbpf: prog 'test_core_nesting': relo #0: kind (0), spec is [5] struct core_reloc_nesting.a.a.a (0:0:0:0 @ offset 0) libbpf: prog 'test_core_nesting': relo #0: matching candidate #0 [4] struct core_reloc_nesting___err_dup_incompat_types__1.a.a.a (0:0:0:0 @ offset 0) libbpf: prog 'test_core_nesting': relo #0: matching candidate #1 [12] struct core_reloc_nesting___err_dup_incompat_types__2.a.a.a (0:0:0:0 @ offset 0) libbpf: prog 'test_core_nesting': relo #0: patched insn #0 (ALU/ALU64) imm 0 -> 0 libbpf: prog 'test_core_nesting': relo #1: kind (0), spec is [5] struct core_reloc_nesting.b.b.b (0:1:0:0 @ offset 4) libbpf: prog 'test_core_nesting': relo #1: matching candidate #0 [4] struct core_reloc_nesting___err_dup_incompat_types__1.b.b.b (0:1:0:0 @ offset 4) libbpf: prog 'test_core_nesting': relo #1: matching candidate #1 [12] struct core_reloc_nesting___err_dup_incompat_types__2.b.b.b (0:2:0:0 @ offset 8) libbpf: prog 'test_core_nesting': relo #1: field offset ambiguity: 64 != 32 libbpf: prog 'test_core_nesting': relo #1: failed to relocate: -22 libbpf: failed to perform CO-RE relocations: -22 libbpf: failed to load object 'test_core_reloc_nesting.o' #38/16 core_reloc/nesting___err_dup_incompat_types:OK test_core_reloc:PASS:btf_src_file 0 nsec libbpf: loading test_core_reloc_nesting.o libbpf: elf: section(2) raw_tracepoint/sys_enter, size 216, link 0, flags 6, type=1 libbpf: sec 'raw_tracepoint/sys_enter': found program 'test_core_nesting' at insn offset 0 (0 bytes), code size 27 insns (216 bytes) libbpf: elf: section(3) .relraw_tracepoint/sys_enter, size 64, link 11, flags 40, type=9 libbpf: elf: section(4) license, size 4, link 0, flags 3, type=1 libbpf: license of test_core_reloc_nesting.o is GPL libbpf: elf: section(5) .bss, size 512, link 0, flags 3, type=8 libbpf: elf: section(6) .BTF, size 905, link 0, flags 0, type=1 libbpf: elf: section(8) .BTF.ext, size 188, link 0, flags 0, type=1 libbpf: elf: section(11) .symtab, size 288, link 12, flags 0, type=2 libbpf: looking for externs among 12 symbols... libbpf: collected 0 externs total libbpf: map 'test_cor.bss' (global data): at sec_idx 5, offset 0, flags 400. libbpf: map 0 is "test_cor.bss" libbpf: sec '.relraw_tracepoint/sys_enter': collecting relocation for section(2) 'raw_tracepoint/sys_enter' libbpf: sec '.relraw_tracepoint/sys_enter': relo #0: insn #1 against 'data' libbpf: prog 'test_core_nesting': found data map 0 (test_cor.bss, sec 5, off 0) for insn 1 libbpf: sec '.relraw_tracepoint/sys_enter': relo #1: insn #3 against 'data' libbpf: prog 'test_core_nesting': found data map 0 (test_cor.bss, sec 5, off 0) for insn 3 libbpf: sec '.relraw_tracepoint/sys_enter': relo #2: insn #6 against 'data' libbpf: prog 'test_core_nesting': found data map 0 (test_cor.bss, sec 5, off 0) for insn 6 libbpf: sec '.relraw_tracepoint/sys_enter': relo #3: insn #15 against 'data' libbpf: prog 'test_core_nesting': found data map 0 (test_cor.bss, sec 5, off 0) for insn 15 test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: map 'test_cor.bss': created successfully, fd=5 libbpf: sec 'raw_tracepoint/sys_enter': found 2 CO-RE relocations libbpf: CO-RE relocating [5] struct core_reloc_nesting: found target candidate [4] struct core_reloc_nesting___err_partial_match_dups__a in [vmlinux] libbpf: CO-RE relocating [5] struct core_reloc_nesting: found target candidate [10] struct core_reloc_nesting___err_partial_match_dups__b in [vmlinux] libbpf: prog 'test_core_nesting': relo #0: kind (0), spec is [5] struct core_reloc_nesting.a.a.a (0:0:0:0 @ offset 0) libbpf: prog 'test_core_nesting': relo #0: matching candidate #0 [4] struct core_reloc_nesting___err_partial_match_dups__a.a.a.a (0:0:0:0 @ offset 0) libbpf: prog 'test_core_nesting': relo #0: non-matching candidate #1 [10] struct core_reloc_nesting___err_partial_match_dups__b (0 @ offset 0) libbpf: prog 'test_core_nesting': relo #0: patched insn #0 (ALU/ALU64) imm 0 -> 0 libbpf: prog 'test_core_nesting': relo #1: kind (0), spec is [5] struct core_reloc_nesting.b.b.b (0:1:0:0 @ offset 4) libbpf: prog 'test_core_nesting': relo #1: non-matching candidate #0 [4] struct core_reloc_nesting___err_partial_match_dups__a (0 @ offset 0) libbpf: prog 'test_core_nesting': relo #1: no matching targets found libbpf: prog 'test_core_nesting': relo #1: substituting insn #14 w/ invalid insn libbpf: prog 'test_core_nesting': BPF program load failed: Invalid argument libbpf: prog 'test_core_nesting': -- BEGIN PROG LOAD LOG -- arg#0 reference type('UNKNOWN ') size cannot be determined: -22 0: R1=ctx(id=0,off=0,imm=0) R10=fp0 ; int test_core_nesting(void *ctx) 0: (b7) r1 = 0 ; R1_w=inv0 1: (18) r6 = 0xc008000004880000 ; R6_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 3: (18) r3 = 0xc008000004880000 ; R3_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 5: (0f) r3 += r1 ; R1_w=invP0 R3_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) ; if (CORE_READ(&out->a.a.a, &in->a.a.a)) 6: (18) r1 = 0xc008000004880000 ; R1_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 8: (07) r1 += 256 ; R1_w=map_value(id=0,off=256,ks=4,vs=512,imm=0) 9: (b4) w2 = 4 ; R2_w=inv4 10: (85) call bpf_probe_read_kernel#113 ; R0_w=inv(id=0) 11: (bf) r1 = r0 ; R0_w=inv(id=1) R1_w=inv(id=1) 12: (b4) w0 = 1 ; R0_w=inv1 ; if (CORE_READ(&out->a.a.a, &in->a.a.a)) 13: (55) if r1 != 0x0 goto pc+12 ; R1_w=inv0 14: (85) call unknown#195896080 invalid func unknown#195896080 processed 12 insns (limit 1000000) max_states_per_insn 0 total_states 0 peak_states 0 mark_read 0 -- END PROG LOAD LOG -- libbpf: failed to load program 'test_core_nesting' libbpf: failed to load object 'test_core_reloc_nesting.o' #38/17 core_reloc/nesting___err_partial_match_dups:OK test_core_reloc:PASS:btf_src_file 0 nsec libbpf: loading test_core_reloc_nesting.o libbpf: elf: section(2) raw_tracepoint/sys_enter, size 216, link 0, flags 6, type=1 libbpf: sec 'raw_tracepoint/sys_enter': found program 'test_core_nesting' at insn offset 0 (0 bytes), code size 27 insns (216 bytes) libbpf: elf: section(3) .relraw_tracepoint/sys_enter, size 64, link 11, flags 40, type=9 libbpf: elf: section(4) license, size 4, link 0, flags 3, type=1 libbpf: license of test_core_reloc_nesting.o is GPL libbpf: elf: section(5) .bss, size 512, link 0, flags 3, type=8 libbpf: elf: section(6) .BTF, size 905, link 0, flags 0, type=1 libbpf: elf: section(8) .BTF.ext, size 188, link 0, flags 0, type=1 libbpf: elf: section(11) .symtab, size 288, link 12, flags 0, type=2 libbpf: looking for externs among 12 symbols... libbpf: collected 0 externs total libbpf: map 'test_cor.bss' (global data): at sec_idx 5, offset 0, flags 400. libbpf: map 0 is "test_cor.bss" libbpf: sec '.relraw_tracepoint/sys_enter': collecting relocation for section(2) 'raw_tracepoint/sys_enter' libbpf: sec '.relraw_tracepoint/sys_enter': relo #0: insn #1 against 'data' libbpf: prog 'test_core_nesting': found data map 0 (test_cor.bss, sec 5, off 0) for insn 1 libbpf: sec '.relraw_tracepoint/sys_enter': relo #1: insn #3 against 'data' libbpf: prog 'test_core_nesting': found data map 0 (test_cor.bss, sec 5, off 0) for insn 3 libbpf: sec '.relraw_tracepoint/sys_enter': relo #2: insn #6 against 'data' libbpf: prog 'test_core_nesting': found data map 0 (test_cor.bss, sec 5, off 0) for insn 6 libbpf: sec '.relraw_tracepoint/sys_enter': relo #3: insn #15 against 'data' libbpf: prog 'test_core_nesting': found data map 0 (test_cor.bss, sec 5, off 0) for insn 15 test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: map 'test_cor.bss': created successfully, fd=5 libbpf: sec 'raw_tracepoint/sys_enter': found 2 CO-RE relocations libbpf: CO-RE relocating [5] struct core_reloc_nesting: found target candidate [4] struct core_reloc_nesting___err_too_deep in [vmlinux] libbpf: prog 'test_core_nesting': relo #0: kind (0), spec is [5] struct core_reloc_nesting.a.a.a (0:0:0:0 @ offset 0) libbpf: prog 'test_core_nesting': relo #0: matching candidate #0 [4] struct core_reloc_nesting___err_too_deep.a.a.a (0:0:0:0 @ offset 0) libbpf: prog 'test_core_nesting': relo #0: patched insn #0 (ALU/ALU64) imm 0 -> 0 libbpf: prog 'test_core_nesting': relo #1: kind (0), spec is [5] struct core_reloc_nesting.b.b.b (0:1:0:0 @ offset 4) libbpf: prog 'test_core_nesting': relo #1: error matching candidate #0 [4] struct core_reloc_nesting___err_too_deep.b.b (0:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0 @ offset 4): -7 libbpf: prog 'test_core_nesting': relo #1: failed to relocate: -7 libbpf: failed to perform CO-RE relocations: -7 libbpf: failed to load object 'test_core_reloc_nesting.o' #38/18 core_reloc/nesting___err_too_deep:OK test_core_reloc:PASS:btf_src_file 0 nsec libbpf: loading test_core_reloc_arrays.o libbpf: elf: section(2) raw_tracepoint/sys_enter, size 464, link 0, flags 6, type=1 libbpf: sec 'raw_tracepoint/sys_enter': found program 'test_core_arrays' at insn offset 0 (0 bytes), code size 58 insns (464 bytes) libbpf: elf: section(3) .relraw_tracepoint/sys_enter, size 160, link 11, flags 40, type=9 libbpf: elf: section(4) license, size 4, link 0, flags 3, type=1 libbpf: license of test_core_reloc_arrays.o is GPL libbpf: elf: section(5) .bss, size 512, link 0, flags 3, type=8 libbpf: elf: section(6) .BTF, size 1226, link 0, flags 0, type=1 libbpf: elf: section(8) .BTF.ext, size 332, link 0, flags 0, type=1 libbpf: elf: section(11) .symtab, size 288, link 12, flags 0, type=2 libbpf: looking for externs among 12 symbols... libbpf: collected 0 externs total libbpf: map 'test_cor.bss' (global data): at sec_idx 5, offset 0, flags 400. libbpf: map 0 is "test_cor.bss" libbpf: sec '.relraw_tracepoint/sys_enter': collecting relocation for section(2) 'raw_tracepoint/sys_enter' libbpf: sec '.relraw_tracepoint/sys_enter': relo #0: insn #1 against 'data' libbpf: prog 'test_core_arrays': found data map 0 (test_cor.bss, sec 5, off 0) for insn 1 libbpf: sec '.relraw_tracepoint/sys_enter': relo #1: insn #3 against 'data' libbpf: prog 'test_core_arrays': found data map 0 (test_cor.bss, sec 5, off 0) for insn 3 libbpf: sec '.relraw_tracepoint/sys_enter': relo #2: insn #6 against 'data' libbpf: prog 'test_core_arrays': found data map 0 (test_cor.bss, sec 5, off 0) for insn 6 libbpf: sec '.relraw_tracepoint/sys_enter': relo #3: insn #14 against 'data' libbpf: prog 'test_core_arrays': found data map 0 (test_cor.bss, sec 5, off 0) for insn 14 libbpf: sec '.relraw_tracepoint/sys_enter': relo #4: insn #24 against 'data' libbpf: prog 'test_core_arrays': found data map 0 (test_cor.bss, sec 5, off 0) for insn 24 libbpf: sec '.relraw_tracepoint/sys_enter': relo #5: insn #26 against 'data' libbpf: prog 'test_core_arrays': found data map 0 (test_cor.bss, sec 5, off 0) for insn 26 libbpf: sec '.relraw_tracepoint/sys_enter': relo #6: insn #29 against 'data' libbpf: prog 'test_core_arrays': found data map 0 (test_cor.bss, sec 5, off 0) for insn 29 libbpf: sec '.relraw_tracepoint/sys_enter': relo #7: insn #36 against 'data' libbpf: prog 'test_core_arrays': found data map 0 (test_cor.bss, sec 5, off 0) for insn 36 libbpf: sec '.relraw_tracepoint/sys_enter': relo #8: insn #45 against 'data' libbpf: prog 'test_core_arrays': found data map 0 (test_cor.bss, sec 5, off 0) for insn 45 libbpf: sec '.relraw_tracepoint/sys_enter': relo #9: insn #47 against 'data' libbpf: prog 'test_core_arrays': found data map 0 (test_cor.bss, sec 5, off 0) for insn 47 test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: map 'test_cor.bss': created successfully, fd=5 libbpf: sec 'raw_tracepoint/sys_enter': found 5 CO-RE relocations libbpf: CO-RE relocating [5] struct core_reloc_arrays: found target candidate [4] struct core_reloc_arrays in [vmlinux] libbpf: prog 'test_core_arrays': relo #0: kind (0), spec is [5] struct core_reloc_arrays.a[2] (0:0:2 @ offset 8) libbpf: prog 'test_core_arrays': relo #0: matching candidate #0 [4] struct core_reloc_arrays.a[2] (0:0:2 @ offset 8) libbpf: prog 'test_core_arrays': relo #0: patched insn #0 (ALU/ALU64) imm 8 -> 8 libbpf: prog 'test_core_arrays': relo #1: kind (0), spec is [5] struct core_reloc_arrays.b[1][2][3] (0:1:1:2:3 @ offset 43) libbpf: prog 'test_core_arrays': relo #1: matching candidate #0 [4] struct core_reloc_arrays.b[1][2][3] (0:1:1:2:3 @ offset 43) libbpf: prog 'test_core_arrays': relo #1: patched insn #13 (ALU/ALU64) imm 43 -> 43 libbpf: prog 'test_core_arrays': relo #2: kind (0), spec is [5] struct core_reloc_arrays.c[1].c (0:2:1:0 @ offset 52) libbpf: prog 'test_core_arrays': relo #2: matching candidate #0 [4] struct core_reloc_arrays.c[1].c (0:2:1:0 @ offset 52) libbpf: prog 'test_core_arrays': relo #2: patched insn #23 (ALU/ALU64) imm 52 -> 52 libbpf: prog 'test_core_arrays': relo #3: kind (0), spec is [5] struct core_reloc_arrays.d[0][0].d (0:3:0:0:1 @ offset 72) libbpf: prog 'test_core_arrays': relo #3: matching candidate #0 [4] struct core_reloc_arrays.d[0][0].d (0:3:0:0:1 @ offset 72) libbpf: prog 'test_core_arrays': relo #3: patched insn #35 (ALU/ALU64) imm 72 -> 72 libbpf: prog 'test_core_arrays': relo #4: kind (0), spec is [5] struct core_reloc_arrays.f[0][1].c (0:4:0:1:0 @ offset 92) libbpf: prog 'test_core_arrays': relo #4: matching candidate #0 [4] struct core_reloc_arrays.f[0][1].c (0:4:0:1:0 @ offset 92) libbpf: prog 'test_core_arrays': relo #4: patched insn #44 (ALU/ALU64) imm 92 -> 92 test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/19 core_reloc/arrays:OK test_core_reloc:PASS:btf_src_file 0 nsec libbpf: loading test_core_reloc_arrays.o libbpf: elf: section(2) raw_tracepoint/sys_enter, size 464, link 0, flags 6, type=1 libbpf: sec 'raw_tracepoint/sys_enter': found program 'test_core_arrays' at insn offset 0 (0 bytes), code size 58 insns (464 bytes) libbpf: elf: section(3) .relraw_tracepoint/sys_enter, size 160, link 11, flags 40, type=9 libbpf: elf: section(4) license, size 4, link 0, flags 3, type=1 libbpf: license of test_core_reloc_arrays.o is GPL libbpf: elf: section(5) .bss, size 512, link 0, flags 3, type=8 libbpf: elf: section(6) .BTF, size 1226, link 0, flags 0, type=1 libbpf: elf: section(8) .BTF.ext, size 332, link 0, flags 0, type=1 libbpf: elf: section(11) .symtab, size 288, link 12, flags 0, type=2 libbpf: looking for externs among 12 symbols... libbpf: collected 0 externs total libbpf: map 'test_cor.bss' (global data): at sec_idx 5, offset 0, flags 400. libbpf: map 0 is "test_cor.bss" libbpf: sec '.relraw_tracepoint/sys_enter': collecting relocation for section(2) 'raw_tracepoint/sys_enter' libbpf: sec '.relraw_tracepoint/sys_enter': relo #0: insn #1 against 'data' libbpf: prog 'test_core_arrays': found data map 0 (test_cor.bss, sec 5, off 0) for insn 1 libbpf: sec '.relraw_tracepoint/sys_enter': relo #1: insn #3 against 'data' libbpf: prog 'test_core_arrays': found data map 0 (test_cor.bss, sec 5, off 0) for insn 3 libbpf: sec '.relraw_tracepoint/sys_enter': relo #2: insn #6 against 'data' libbpf: prog 'test_core_arrays': found data map 0 (test_cor.bss, sec 5, off 0) for insn 6 libbpf: sec '.relraw_tracepoint/sys_enter': relo #3: insn #14 against 'data' libbpf: prog 'test_core_arrays': found data map 0 (test_cor.bss, sec 5, off 0) for insn 14 libbpf: sec '.relraw_tracepoint/sys_enter': relo #4: insn #24 against 'data' libbpf: prog 'test_core_arrays': found data map 0 (test_cor.bss, sec 5, off 0) for insn 24 libbpf: sec '.relraw_tracepoint/sys_enter': relo #5: insn #26 against 'data' libbpf: prog 'test_core_arrays': found data map 0 (test_cor.bss, sec 5, off 0) for insn 26 libbpf: sec '.relraw_tracepoint/sys_enter': relo #6: insn #29 against 'data' libbpf: prog 'test_core_arrays': found data map 0 (test_cor.bss, sec 5, off 0) for insn 29 libbpf: sec '.relraw_tracepoint/sys_enter': relo #7: insn #36 against 'data' libbpf: prog 'test_core_arrays': found data map 0 (test_cor.bss, sec 5, off 0) for insn 36 libbpf: sec '.relraw_tracepoint/sys_enter': relo #8: insn #45 against 'data' libbpf: prog 'test_core_arrays': found data map 0 (test_cor.bss, sec 5, off 0) for insn 45 libbpf: sec '.relraw_tracepoint/sys_enter': relo #9: insn #47 against 'data' libbpf: prog 'test_core_arrays': found data map 0 (test_cor.bss, sec 5, off 0) for insn 47 test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: map 'test_cor.bss': created successfully, fd=5 libbpf: sec 'raw_tracepoint/sys_enter': found 5 CO-RE relocations libbpf: CO-RE relocating [5] struct core_reloc_arrays: found target candidate [4] struct core_reloc_arrays___diff_arr_dim in [vmlinux] libbpf: prog 'test_core_arrays': relo #0: kind (0), spec is [5] struct core_reloc_arrays.a[2] (0:0:2 @ offset 8) libbpf: prog 'test_core_arrays': relo #0: matching candidate #0 [4] struct core_reloc_arrays___diff_arr_dim.a[2] (0:0:2 @ offset 8) libbpf: prog 'test_core_arrays': relo #0: patched insn #0 (ALU/ALU64) imm 8 -> 8 libbpf: prog 'test_core_arrays': relo #1: kind (0), spec is [5] struct core_reloc_arrays.b[1][2][3] (0:1:1:2:3 @ offset 43) libbpf: prog 'test_core_arrays': relo #1: matching candidate #0 [4] struct core_reloc_arrays___diff_arr_dim.b[1][2][3] (0:1:1:2:3 @ offset 61) libbpf: prog 'test_core_arrays': relo #1: patched insn #13 (ALU/ALU64) imm 43 -> 61 libbpf: prog 'test_core_arrays': relo #2: kind (0), spec is [5] struct core_reloc_arrays.c[1].c (0:2:1:0 @ offset 52) libbpf: prog 'test_core_arrays': relo #2: matching candidate #0 [4] struct core_reloc_arrays___diff_arr_dim.c[1].c (0:2:1:0 @ offset 96) libbpf: prog 'test_core_arrays': relo #2: patched insn #23 (ALU/ALU64) imm 52 -> 96 libbpf: prog 'test_core_arrays': relo #3: kind (0), spec is [5] struct core_reloc_arrays.d[0][0].d (0:3:0:0:1 @ offset 72) libbpf: prog 'test_core_arrays': relo #3: matching candidate #0 [4] struct core_reloc_arrays___diff_arr_dim.d[0][0].d (0:3:0:0:1 @ offset 124) libbpf: prog 'test_core_arrays': relo #3: patched insn #35 (ALU/ALU64) imm 72 -> 124 libbpf: prog 'test_core_arrays': relo #4: kind (0), spec is [5] struct core_reloc_arrays.f[0][1].c (0:4:0:1:0 @ offset 92) libbpf: prog 'test_core_arrays': relo #4: matching candidate #0 [4] struct core_reloc_arrays___diff_arr_dim.f[0][1].c (0:4:0:1:0 @ offset 176) libbpf: prog 'test_core_arrays': relo #4: patched insn #44 (ALU/ALU64) imm 92 -> 176 test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/20 core_reloc/arrays___diff_arr_dim:OK test_core_reloc:PASS:btf_src_file 0 nsec libbpf: loading test_core_reloc_arrays.o libbpf: elf: section(2) raw_tracepoint/sys_enter, size 464, link 0, flags 6, type=1 libbpf: sec 'raw_tracepoint/sys_enter': found program 'test_core_arrays' at insn offset 0 (0 bytes), code size 58 insns (464 bytes) libbpf: elf: section(3) .relraw_tracepoint/sys_enter, size 160, link 11, flags 40, type=9 libbpf: elf: section(4) license, size 4, link 0, flags 3, type=1 libbpf: license of test_core_reloc_arrays.o is GPL libbpf: elf: section(5) .bss, size 512, link 0, flags 3, type=8 libbpf: elf: section(6) .BTF, size 1226, link 0, flags 0, type=1 libbpf: elf: section(8) .BTF.ext, size 332, link 0, flags 0, type=1 libbpf: elf: section(11) .symtab, size 288, link 12, flags 0, type=2 libbpf: looking for externs among 12 symbols... libbpf: collected 0 externs total libbpf: map 'test_cor.bss' (global data): at sec_idx 5, offset 0, flags 400. libbpf: map 0 is "test_cor.bss" libbpf: sec '.relraw_tracepoint/sys_enter': collecting relocation for section(2) 'raw_tracepoint/sys_enter' libbpf: sec '.relraw_tracepoint/sys_enter': relo #0: insn #1 against 'data' libbpf: prog 'test_core_arrays': found data map 0 (test_cor.bss, sec 5, off 0) for insn 1 libbpf: sec '.relraw_tracepoint/sys_enter': relo #1: insn #3 against 'data' libbpf: prog 'test_core_arrays': found data map 0 (test_cor.bss, sec 5, off 0) for insn 3 libbpf: sec '.relraw_tracepoint/sys_enter': relo #2: insn #6 against 'data' libbpf: prog 'test_core_arrays': found data map 0 (test_cor.bss, sec 5, off 0) for insn 6 libbpf: sec '.relraw_tracepoint/sys_enter': relo #3: insn #14 against 'data' libbpf: prog 'test_core_arrays': found data map 0 (test_cor.bss, sec 5, off 0) for insn 14 libbpf: sec '.relraw_tracepoint/sys_enter': relo #4: insn #24 against 'data' libbpf: prog 'test_core_arrays': found data map 0 (test_cor.bss, sec 5, off 0) for insn 24 libbpf: sec '.relraw_tracepoint/sys_enter': relo #5: insn #26 against 'data' libbpf: prog 'test_core_arrays': found data map 0 (test_cor.bss, sec 5, off 0) for insn 26 libbpf: sec '.relraw_tracepoint/sys_enter': relo #6: insn #29 against 'data' libbpf: prog 'test_core_arrays': found data map 0 (test_cor.bss, sec 5, off 0) for insn 29 libbpf: sec '.relraw_tracepoint/sys_enter': relo #7: insn #36 against 'data' libbpf: prog 'test_core_arrays': found data map 0 (test_cor.bss, sec 5, off 0) for insn 36 libbpf: sec '.relraw_tracepoint/sys_enter': relo #8: insn #45 against 'data' libbpf: prog 'test_core_arrays': found data map 0 (test_cor.bss, sec 5, off 0) for insn 45 libbpf: sec '.relraw_tracepoint/sys_enter': relo #9: insn #47 against 'data' libbpf: prog 'test_core_arrays': found data map 0 (test_cor.bss, sec 5, off 0) for insn 47 test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: map 'test_cor.bss': created successfully, fd=5 libbpf: sec 'raw_tracepoint/sys_enter': found 5 CO-RE relocations libbpf: CO-RE relocating [5] struct core_reloc_arrays: found target candidate [4] struct core_reloc_arrays___diff_arr_val_sz in [vmlinux] libbpf: prog 'test_core_arrays': relo #0: kind (0), spec is [5] struct core_reloc_arrays.a[2] (0:0:2 @ offset 8) libbpf: prog 'test_core_arrays': relo #0: matching candidate #0 [4] struct core_reloc_arrays___diff_arr_val_sz.a[2] (0:0:2 @ offset 8) libbpf: prog 'test_core_arrays': relo #0: patched insn #0 (ALU/ALU64) imm 8 -> 8 libbpf: prog 'test_core_arrays': relo #1: kind (0), spec is [5] struct core_reloc_arrays.b[1][2][3] (0:1:1:2:3 @ offset 43) libbpf: prog 'test_core_arrays': relo #1: matching candidate #0 [4] struct core_reloc_arrays___diff_arr_val_sz.b[1][2][3] (0:1:1:2:3 @ offset 43) libbpf: prog 'test_core_arrays': relo #1: patched insn #13 (ALU/ALU64) imm 43 -> 43 libbpf: prog 'test_core_arrays': relo #2: kind (0), spec is [5] struct core_reloc_arrays.c[1].c (0:2:1:0 @ offset 52) libbpf: prog 'test_core_arrays': relo #2: matching candidate #0 [4] struct core_reloc_arrays___diff_arr_val_sz.c[1].c (0:2:1:1 @ offset 60) libbpf: prog 'test_core_arrays': relo #2: patched insn #23 (ALU/ALU64) imm 52 -> 60 libbpf: prog 'test_core_arrays': relo #3: kind (0), spec is [5] struct core_reloc_arrays.d[0][0].d (0:3:0:0:1 @ offset 72) libbpf: prog 'test_core_arrays': relo #3: matching candidate #0 [4] struct core_reloc_arrays___diff_arr_val_sz.d[0][0].d (0:3:0:0:1 @ offset 84) libbpf: prog 'test_core_arrays': relo #3: patched insn #35 (ALU/ALU64) imm 72 -> 84 libbpf: prog 'test_core_arrays': relo #4: kind (0), spec is [5] struct core_reloc_arrays.f[0][1].c (0:4:0:1:0 @ offset 92) libbpf: prog 'test_core_arrays': relo #4: matching candidate #0 [4] struct core_reloc_arrays___diff_arr_val_sz.f[0][1].c (0:4:0:1:1 @ offset 120) libbpf: prog 'test_core_arrays': relo #4: patched insn #44 (ALU/ALU64) imm 92 -> 120 test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/21 core_reloc/arrays___diff_arr_val_sz:OK test_core_reloc:PASS:btf_src_file 0 nsec libbpf: loading test_core_reloc_arrays.o libbpf: elf: section(2) raw_tracepoint/sys_enter, size 464, link 0, flags 6, type=1 libbpf: sec 'raw_tracepoint/sys_enter': found program 'test_core_arrays' at insn offset 0 (0 bytes), code size 58 insns (464 bytes) libbpf: elf: section(3) .relraw_tracepoint/sys_enter, size 160, link 11, flags 40, type=9 libbpf: elf: section(4) license, size 4, link 0, flags 3, type=1 libbpf: license of test_core_reloc_arrays.o is GPL libbpf: elf: section(5) .bss, size 512, link 0, flags 3, type=8 libbpf: elf: section(6) .BTF, size 1226, link 0, flags 0, type=1 libbpf: elf: section(8) .BTF.ext, size 332, link 0, flags 0, type=1 libbpf: elf: section(11) .symtab, size 288, link 12, flags 0, type=2 libbpf: looking for externs among 12 symbols... libbpf: collected 0 externs total libbpf: map 'test_cor.bss' (global data): at sec_idx 5, offset 0, flags 400. libbpf: map 0 is "test_cor.bss" libbpf: sec '.relraw_tracepoint/sys_enter': collecting relocation for section(2) 'raw_tracepoint/sys_enter' libbpf: sec '.relraw_tracepoint/sys_enter': relo #0: insn #1 against 'data' libbpf: prog 'test_core_arrays': found data map 0 (test_cor.bss, sec 5, off 0) for insn 1 libbpf: sec '.relraw_tracepoint/sys_enter': relo #1: insn #3 against 'data' libbpf: prog 'test_core_arrays': found data map 0 (test_cor.bss, sec 5, off 0) for insn 3 libbpf: sec '.relraw_tracepoint/sys_enter': relo #2: insn #6 against 'data' libbpf: prog 'test_core_arrays': found data map 0 (test_cor.bss, sec 5, off 0) for insn 6 libbpf: sec '.relraw_tracepoint/sys_enter': relo #3: insn #14 against 'data' libbpf: prog 'test_core_arrays': found data map 0 (test_cor.bss, sec 5, off 0) for insn 14 libbpf: sec '.relraw_tracepoint/sys_enter': relo #4: insn #24 against 'data' libbpf: prog 'test_core_arrays': found data map 0 (test_cor.bss, sec 5, off 0) for insn 24 libbpf: sec '.relraw_tracepoint/sys_enter': relo #5: insn #26 against 'data' libbpf: prog 'test_core_arrays': found data map 0 (test_cor.bss, sec 5, off 0) for insn 26 libbpf: sec '.relraw_tracepoint/sys_enter': relo #6: insn #29 against 'data' libbpf: prog 'test_core_arrays': found data map 0 (test_cor.bss, sec 5, off 0) for insn 29 libbpf: sec '.relraw_tracepoint/sys_enter': relo #7: insn #36 against 'data' libbpf: prog 'test_core_arrays': found data map 0 (test_cor.bss, sec 5, off 0) for insn 36 libbpf: sec '.relraw_tracepoint/sys_enter': relo #8: insn #45 against 'data' libbpf: prog 'test_core_arrays': found data map 0 (test_cor.bss, sec 5, off 0) for insn 45 libbpf: sec '.relraw_tracepoint/sys_enter': relo #9: insn #47 against 'data' libbpf: prog 'test_core_arrays': found data map 0 (test_cor.bss, sec 5, off 0) for insn 47 test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: map 'test_cor.bss': created successfully, fd=5 libbpf: sec 'raw_tracepoint/sys_enter': found 5 CO-RE relocations libbpf: CO-RE relocating [5] struct core_reloc_arrays: found target candidate [4] struct core_reloc_arrays___equiv_zero_sz_arr in [vmlinux] libbpf: prog 'test_core_arrays': relo #0: kind (0), spec is [5] struct core_reloc_arrays.a[2] (0:0:2 @ offset 8) libbpf: prog 'test_core_arrays': relo #0: matching candidate #0 [4] struct core_reloc_arrays___equiv_zero_sz_arr.a[2] (0:0:2 @ offset 8) libbpf: prog 'test_core_arrays': relo #0: patched insn #0 (ALU/ALU64) imm 8 -> 8 libbpf: prog 'test_core_arrays': relo #1: kind (0), spec is [5] struct core_reloc_arrays.b[1][2][3] (0:1:1:2:3 @ offset 43) libbpf: prog 'test_core_arrays': relo #1: matching candidate #0 [4] struct core_reloc_arrays___equiv_zero_sz_arr.b[1][2][3] (0:1:1:2:3 @ offset 43) libbpf: prog 'test_core_arrays': relo #1: patched insn #13 (ALU/ALU64) imm 43 -> 43 libbpf: prog 'test_core_arrays': relo #2: kind (0), spec is [5] struct core_reloc_arrays.c[1].c (0:2:1:0 @ offset 52) libbpf: prog 'test_core_arrays': relo #2: matching candidate #0 [4] struct core_reloc_arrays___equiv_zero_sz_arr.c[1].c (0:2:1:0 @ offset 52) libbpf: prog 'test_core_arrays': relo #2: patched insn #23 (ALU/ALU64) imm 52 -> 52 libbpf: prog 'test_core_arrays': relo #3: kind (0), spec is [5] struct core_reloc_arrays.d[0][0].d (0:3:0:0:1 @ offset 72) libbpf: prog 'test_core_arrays': relo #3: matching candidate #0 [4] struct core_reloc_arrays___equiv_zero_sz_arr.d[0][0].d (0:3:0:0:1 @ offset 72) libbpf: prog 'test_core_arrays': relo #3: patched insn #35 (ALU/ALU64) imm 72 -> 72 libbpf: prog 'test_core_arrays': relo #4: kind (0), spec is [5] struct core_reloc_arrays.f[0][1].c (0:4:0:1:0 @ offset 92) libbpf: prog 'test_core_arrays': relo #4: matching candidate #0 [4] struct core_reloc_arrays___equiv_zero_sz_arr.f[0][1].c (0:4:0:1:0 @ offset 92) libbpf: prog 'test_core_arrays': relo #4: patched insn #44 (ALU/ALU64) imm 92 -> 92 test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/22 core_reloc/arrays___equiv_zero_sz_arr:OK test_core_reloc:PASS:btf_src_file 0 nsec libbpf: loading test_core_reloc_arrays.o libbpf: elf: section(2) raw_tracepoint/sys_enter, size 464, link 0, flags 6, type=1 libbpf: sec 'raw_tracepoint/sys_enter': found program 'test_core_arrays' at insn offset 0 (0 bytes), code size 58 insns (464 bytes) libbpf: elf: section(3) .relraw_tracepoint/sys_enter, size 160, link 11, flags 40, type=9 libbpf: elf: section(4) license, size 4, link 0, flags 3, type=1 libbpf: license of test_core_reloc_arrays.o is GPL libbpf: elf: section(5) .bss, size 512, link 0, flags 3, type=8 libbpf: elf: section(6) .BTF, size 1226, link 0, flags 0, type=1 libbpf: elf: section(8) .BTF.ext, size 332, link 0, flags 0, type=1 libbpf: elf: section(11) .symtab, size 288, link 12, flags 0, type=2 libbpf: looking for externs among 12 symbols... libbpf: collected 0 externs total libbpf: map 'test_cor.bss' (global data): at sec_idx 5, offset 0, flags 400. libbpf: map 0 is "test_cor.bss" libbpf: sec '.relraw_tracepoint/sys_enter': collecting relocation for section(2) 'raw_tracepoint/sys_enter' libbpf: sec '.relraw_tracepoint/sys_enter': relo #0: insn #1 against 'data' libbpf: prog 'test_core_arrays': found data map 0 (test_cor.bss, sec 5, off 0) for insn 1 libbpf: sec '.relraw_tracepoint/sys_enter': relo #1: insn #3 against 'data' libbpf: prog 'test_core_arrays': found data map 0 (test_cor.bss, sec 5, off 0) for insn 3 libbpf: sec '.relraw_tracepoint/sys_enter': relo #2: insn #6 against 'data' libbpf: prog 'test_core_arrays': found data map 0 (test_cor.bss, sec 5, off 0) for insn 6 libbpf: sec '.relraw_tracepoint/sys_enter': relo #3: insn #14 against 'data' libbpf: prog 'test_core_arrays': found data map 0 (test_cor.bss, sec 5, off 0) for insn 14 libbpf: sec '.relraw_tracepoint/sys_enter': relo #4: insn #24 against 'data' libbpf: prog 'test_core_arrays': found data map 0 (test_cor.bss, sec 5, off 0) for insn 24 libbpf: sec '.relraw_tracepoint/sys_enter': relo #5: insn #26 against 'data' libbpf: prog 'test_core_arrays': found data map 0 (test_cor.bss, sec 5, off 0) for insn 26 libbpf: sec '.relraw_tracepoint/sys_enter': relo #6: insn #29 against 'data' libbpf: prog 'test_core_arrays': found data map 0 (test_cor.bss, sec 5, off 0) for insn 29 libbpf: sec '.relraw_tracepoint/sys_enter': relo #7: insn #36 against 'data' libbpf: prog 'test_core_arrays': found data map 0 (test_cor.bss, sec 5, off 0) for insn 36 libbpf: sec '.relraw_tracepoint/sys_enter': relo #8: insn #45 against 'data' libbpf: prog 'test_core_arrays': found data map 0 (test_cor.bss, sec 5, off 0) for insn 45 libbpf: sec '.relraw_tracepoint/sys_enter': relo #9: insn #47 against 'data' libbpf: prog 'test_core_arrays': found data map 0 (test_cor.bss, sec 5, off 0) for insn 47 test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: map 'test_cor.bss': created successfully, fd=5 libbpf: sec 'raw_tracepoint/sys_enter': found 5 CO-RE relocations libbpf: CO-RE relocating [5] struct core_reloc_arrays: found target candidate [4] struct core_reloc_arrays___fixed_arr in [vmlinux] libbpf: prog 'test_core_arrays': relo #0: kind (0), spec is [5] struct core_reloc_arrays.a[2] (0:0:2 @ offset 8) libbpf: prog 'test_core_arrays': relo #0: matching candidate #0 [4] struct core_reloc_arrays___fixed_arr.a[2] (0:0:2 @ offset 8) libbpf: prog 'test_core_arrays': relo #0: patched insn #0 (ALU/ALU64) imm 8 -> 8 libbpf: prog 'test_core_arrays': relo #1: kind (0), spec is [5] struct core_reloc_arrays.b[1][2][3] (0:1:1:2:3 @ offset 43) libbpf: prog 'test_core_arrays': relo #1: matching candidate #0 [4] struct core_reloc_arrays___fixed_arr.b[1][2][3] (0:1:1:2:3 @ offset 43) libbpf: prog 'test_core_arrays': relo #1: patched insn #13 (ALU/ALU64) imm 43 -> 43 libbpf: prog 'test_core_arrays': relo #2: kind (0), spec is [5] struct core_reloc_arrays.c[1].c (0:2:1:0 @ offset 52) libbpf: prog 'test_core_arrays': relo #2: matching candidate #0 [4] struct core_reloc_arrays___fixed_arr.c[1].c (0:2:1:0 @ offset 52) libbpf: prog 'test_core_arrays': relo #2: patched insn #23 (ALU/ALU64) imm 52 -> 52 libbpf: prog 'test_core_arrays': relo #3: kind (0), spec is [5] struct core_reloc_arrays.d[0][0].d (0:3:0:0:1 @ offset 72) libbpf: prog 'test_core_arrays': relo #3: matching candidate #0 [4] struct core_reloc_arrays___fixed_arr.d[0][0].d (0:3:0:0:1 @ offset 72) libbpf: prog 'test_core_arrays': relo #3: patched insn #35 (ALU/ALU64) imm 72 -> 72 libbpf: prog 'test_core_arrays': relo #4: kind (0), spec is [5] struct core_reloc_arrays.f[0][1].c (0:4:0:1:0 @ offset 92) libbpf: prog 'test_core_arrays': relo #4: matching candidate #0 [4] struct core_reloc_arrays___fixed_arr.f[0][1].c (0:4:0:1:0 @ offset 92) libbpf: prog 'test_core_arrays': relo #4: patched insn #44 (ALU/ALU64) imm 92 -> 92 test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/23 core_reloc/arrays___fixed_arr:OK test_core_reloc:PASS:btf_src_file 0 nsec libbpf: loading test_core_reloc_arrays.o libbpf: elf: section(2) raw_tracepoint/sys_enter, size 464, link 0, flags 6, type=1 libbpf: sec 'raw_tracepoint/sys_enter': found program 'test_core_arrays' at insn offset 0 (0 bytes), code size 58 insns (464 bytes) libbpf: elf: section(3) .relraw_tracepoint/sys_enter, size 160, link 11, flags 40, type=9 libbpf: elf: section(4) license, size 4, link 0, flags 3, type=1 libbpf: license of test_core_reloc_arrays.o is GPL libbpf: elf: section(5) .bss, size 512, link 0, flags 3, type=8 libbpf: elf: section(6) .BTF, size 1226, link 0, flags 0, type=1 libbpf: elf: section(8) .BTF.ext, size 332, link 0, flags 0, type=1 libbpf: elf: section(11) .symtab, size 288, link 12, flags 0, type=2 libbpf: looking for externs among 12 symbols... libbpf: collected 0 externs total libbpf: map 'test_cor.bss' (global data): at sec_idx 5, offset 0, flags 400. libbpf: map 0 is "test_cor.bss" libbpf: sec '.relraw_tracepoint/sys_enter': collecting relocation for section(2) 'raw_tracepoint/sys_enter' libbpf: sec '.relraw_tracepoint/sys_enter': relo #0: insn #1 against 'data' libbpf: prog 'test_core_arrays': found data map 0 (test_cor.bss, sec 5, off 0) for insn 1 libbpf: sec '.relraw_tracepoint/sys_enter': relo #1: insn #3 against 'data' libbpf: prog 'test_core_arrays': found data map 0 (test_cor.bss, sec 5, off 0) for insn 3 libbpf: sec '.relraw_tracepoint/sys_enter': relo #2: insn #6 against 'data' libbpf: prog 'test_core_arrays': found data map 0 (test_cor.bss, sec 5, off 0) for insn 6 libbpf: sec '.relraw_tracepoint/sys_enter': relo #3: insn #14 against 'data' libbpf: prog 'test_core_arrays': found data map 0 (test_cor.bss, sec 5, off 0) for insn 14 libbpf: sec '.relraw_tracepoint/sys_enter': relo #4: insn #24 against 'data' libbpf: prog 'test_core_arrays': found data map 0 (test_cor.bss, sec 5, off 0) for insn 24 libbpf: sec '.relraw_tracepoint/sys_enter': relo #5: insn #26 against 'data' libbpf: prog 'test_core_arrays': found data map 0 (test_cor.bss, sec 5, off 0) for insn 26 libbpf: sec '.relraw_tracepoint/sys_enter': relo #6: insn #29 against 'data' libbpf: prog 'test_core_arrays': found data map 0 (test_cor.bss, sec 5, off 0) for insn 29 libbpf: sec '.relraw_tracepoint/sys_enter': relo #7: insn #36 against 'data' libbpf: prog 'test_core_arrays': found data map 0 (test_cor.bss, sec 5, off 0) for insn 36 libbpf: sec '.relraw_tracepoint/sys_enter': relo #8: insn #45 against 'data' libbpf: prog 'test_core_arrays': found data map 0 (test_cor.bss, sec 5, off 0) for insn 45 libbpf: sec '.relraw_tracepoint/sys_enter': relo #9: insn #47 against 'data' libbpf: prog 'test_core_arrays': found data map 0 (test_cor.bss, sec 5, off 0) for insn 47 test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: map 'test_cor.bss': created successfully, fd=5 libbpf: sec 'raw_tracepoint/sys_enter': found 5 CO-RE relocations libbpf: CO-RE relocating [5] struct core_reloc_arrays: found target candidate [4] struct core_reloc_arrays___err_too_small in [vmlinux] libbpf: prog 'test_core_arrays': relo #0: kind (0), spec is [5] struct core_reloc_arrays.a[2] (0:0:2 @ offset 8) libbpf: prog 'test_core_arrays': relo #0: non-matching candidate #0 [4] struct core_reloc_arrays___err_too_small.a (0:0 @ offset 0) libbpf: prog 'test_core_arrays': relo #0: no matching targets found libbpf: prog 'test_core_arrays': relo #0: substituting insn #0 w/ invalid insn libbpf: prog 'test_core_arrays': relo #1: kind (0), spec is [5] struct core_reloc_arrays.b[1][2][3] (0:1:1:2:3 @ offset 43) libbpf: prog 'test_core_arrays': relo #1: matching candidate #0 [4] struct core_reloc_arrays___err_too_small.b[1][2][3] (0:1:1:2:3 @ offset 31) libbpf: prog 'test_core_arrays': relo #1: patched insn #13 (ALU/ALU64) imm 43 -> 31 libbpf: prog 'test_core_arrays': relo #2: kind (0), spec is [5] struct core_reloc_arrays.c[1].c (0:2:1:0 @ offset 52) libbpf: prog 'test_core_arrays': relo #2: matching candidate #0 [4] struct core_reloc_arrays___err_too_small.c[1].c (0:2:1:0 @ offset 40) libbpf: prog 'test_core_arrays': relo #2: patched insn #23 (ALU/ALU64) imm 52 -> 40 libbpf: prog 'test_core_arrays': relo #3: kind (0), spec is [5] struct core_reloc_arrays.d[0][0].d (0:3:0:0:1 @ offset 72) libbpf: prog 'test_core_arrays': relo #3: matching candidate #0 [4] struct core_reloc_arrays___err_too_small.d[0][0].d (0:3:0:0:1 @ offset 60) libbpf: prog 'test_core_arrays': relo #3: patched insn #35 (ALU/ALU64) imm 72 -> 60 libbpf: prog 'test_core_arrays': relo #4: kind (0), spec is [5] struct core_reloc_arrays.f[0][1].c (0:4:0:1:0 @ offset 92) libbpf: prog 'test_core_arrays': relo #4: matching candidate #0 [4] struct core_reloc_arrays___err_too_small.f[0][1].c (0:4:0:1:0 @ offset 80) libbpf: prog 'test_core_arrays': relo #4: patched insn #44 (ALU/ALU64) imm 92 -> 80 libbpf: prog 'test_core_arrays': BPF program load failed: Invalid argument libbpf: prog 'test_core_arrays': -- BEGIN PROG LOAD LOG -- arg#0 reference type('UNKNOWN ') size cannot be determined: -22 0: R1=ctx(id=0,off=0,imm=0) R10=fp0 ; int test_core_arrays(void *ctx) 0: (85) call unknown#195896080 invalid func unknown#195896080 processed 1 insns (limit 1000000) max_states_per_insn 0 total_states 0 peak_states 0 mark_read 0 -- END PROG LOAD LOG -- libbpf: failed to load program 'test_core_arrays' libbpf: failed to load object 'test_core_reloc_arrays.o' #38/24 core_reloc/arrays___err_too_small:OK test_core_reloc:PASS:btf_src_file 0 nsec libbpf: loading test_core_reloc_arrays.o libbpf: elf: section(2) raw_tracepoint/sys_enter, size 464, link 0, flags 6, type=1 libbpf: sec 'raw_tracepoint/sys_enter': found program 'test_core_arrays' at insn offset 0 (0 bytes), code size 58 insns (464 bytes) libbpf: elf: section(3) .relraw_tracepoint/sys_enter, size 160, link 11, flags 40, type=9 libbpf: elf: section(4) license, size 4, link 0, flags 3, type=1 libbpf: license of test_core_reloc_arrays.o is GPL libbpf: elf: section(5) .bss, size 512, link 0, flags 3, type=8 libbpf: elf: section(6) .BTF, size 1226, link 0, flags 0, type=1 libbpf: elf: section(8) .BTF.ext, size 332, link 0, flags 0, type=1 libbpf: elf: section(11) .symtab, size 288, link 12, flags 0, type=2 libbpf: looking for externs among 12 symbols... libbpf: collected 0 externs total libbpf: map 'test_cor.bss' (global data): at sec_idx 5, offset 0, flags 400. libbpf: map 0 is "test_cor.bss" libbpf: sec '.relraw_tracepoint/sys_enter': collecting relocation for section(2) 'raw_tracepoint/sys_enter' libbpf: sec '.relraw_tracepoint/sys_enter': relo #0: insn #1 against 'data' libbpf: prog 'test_core_arrays': found data map 0 (test_cor.bss, sec 5, off 0) for insn 1 libbpf: sec '.relraw_tracepoint/sys_enter': relo #1: insn #3 against 'data' libbpf: prog 'test_core_arrays': found data map 0 (test_cor.bss, sec 5, off 0) for insn 3 libbpf: sec '.relraw_tracepoint/sys_enter': relo #2: insn #6 against 'data' libbpf: prog 'test_core_arrays': found data map 0 (test_cor.bss, sec 5, off 0) for insn 6 libbpf: sec '.relraw_tracepoint/sys_enter': relo #3: insn #14 against 'data' libbpf: prog 'test_core_arrays': found data map 0 (test_cor.bss, sec 5, off 0) for insn 14 libbpf: sec '.relraw_tracepoint/sys_enter': relo #4: insn #24 against 'data' libbpf: prog 'test_core_arrays': found data map 0 (test_cor.bss, sec 5, off 0) for insn 24 libbpf: sec '.relraw_tracepoint/sys_enter': relo #5: insn #26 against 'data' libbpf: prog 'test_core_arrays': found data map 0 (test_cor.bss, sec 5, off 0) for insn 26 libbpf: sec '.relraw_tracepoint/sys_enter': relo #6: insn #29 against 'data' libbpf: prog 'test_core_arrays': found data map 0 (test_cor.bss, sec 5, off 0) for insn 29 libbpf: sec '.relraw_tracepoint/sys_enter': relo #7: insn #36 against 'data' libbpf: prog 'test_core_arrays': found data map 0 (test_cor.bss, sec 5, off 0) for insn 36 libbpf: sec '.relraw_tracepoint/sys_enter': relo #8: insn #45 against 'data' libbpf: prog 'test_core_arrays': found data map 0 (test_cor.bss, sec 5, off 0) for insn 45 libbpf: sec '.relraw_tracepoint/sys_enter': relo #9: insn #47 against 'data' libbpf: prog 'test_core_arrays': found data map 0 (test_cor.bss, sec 5, off 0) for insn 47 test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: map 'test_cor.bss': created successfully, fd=5 libbpf: sec 'raw_tracepoint/sys_enter': found 5 CO-RE relocations libbpf: CO-RE relocating [5] struct core_reloc_arrays: found target candidate [4] struct core_reloc_arrays___err_too_shallow in [vmlinux] libbpf: prog 'test_core_arrays': relo #0: kind (0), spec is [5] struct core_reloc_arrays.a[2] (0:0:2 @ offset 8) libbpf: prog 'test_core_arrays': relo #0: matching candidate #0 [4] struct core_reloc_arrays___err_too_shallow.a[2] (0:0:2 @ offset 8) libbpf: prog 'test_core_arrays': relo #0: patched insn #0 (ALU/ALU64) imm 8 -> 8 libbpf: prog 'test_core_arrays': relo #1: kind (0), spec is [5] struct core_reloc_arrays.b[1][2][3] (0:1:1:2:3 @ offset 43) libbpf: prog 'test_core_arrays': relo #1: non-matching candidate #0 [4] struct core_reloc_arrays___err_too_shallow (0:1 @ offset 20) libbpf: prog 'test_core_arrays': relo #1: no matching targets found libbpf: prog 'test_core_arrays': relo #1: substituting insn #13 w/ invalid insn libbpf: prog 'test_core_arrays': relo #2: kind (0), spec is [5] struct core_reloc_arrays.c[1].c (0:2:1:0 @ offset 52) libbpf: prog 'test_core_arrays': relo #2: matching candidate #0 [4] struct core_reloc_arrays___err_too_shallow.c[1].c (0:2:1:0 @ offset 36) libbpf: prog 'test_core_arrays': relo #2: patched insn #23 (ALU/ALU64) imm 52 -> 36 libbpf: prog 'test_core_arrays': relo #3: kind (0), spec is [5] struct core_reloc_arrays.d[0][0].d (0:3:0:0:1 @ offset 72) libbpf: prog 'test_core_arrays': relo #3: matching candidate #0 [4] struct core_reloc_arrays___err_too_shallow.d[0][0].d (0:3:0:0:1 @ offset 56) libbpf: prog 'test_core_arrays': relo #3: patched insn #35 (ALU/ALU64) imm 72 -> 56 libbpf: prog 'test_core_arrays': relo #4: kind (0), spec is [5] struct core_reloc_arrays.f[0][1].c (0:4:0:1:0 @ offset 92) libbpf: prog 'test_core_arrays': relo #4: matching candidate #0 [4] struct core_reloc_arrays___err_too_shallow.f[0][1].c (0:4:0:1:0 @ offset 76) libbpf: prog 'test_core_arrays': relo #4: patched insn #44 (ALU/ALU64) imm 92 -> 76 libbpf: prog 'test_core_arrays': BPF program load failed: Invalid argument libbpf: prog 'test_core_arrays': -- BEGIN PROG LOAD LOG -- arg#0 reference type('UNKNOWN ') size cannot be determined: -22 0: R1=ctx(id=0,off=0,imm=0) R10=fp0 ; int test_core_arrays(void *ctx) 0: (b7) r1 = 8 ; R1_w=inv8 1: (18) r7 = 0xc008000003c40000 ; R7_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 3: (18) r3 = 0xc008000003c40000 ; R3_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 5: (0f) r3 += r1 ; R1_w=invP8 R3_w=map_value(id=0,off=8,ks=4,vs=512,imm=0) ; if (CORE_READ(&out->a2, &in->a[2])) 6: (18) r1 = 0xc008000003c40000 ; R1_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 8: (07) r1 += 256 ; R1_w=map_value(id=0,off=256,ks=4,vs=512,imm=0) 9: (b4) w2 = 4 ; R2_w=inv4 10: (85) call bpf_probe_read_kernel#113 ; R0_w=inv(id=0) 11: (b4) w6 = 1 ; R6_w=inv1 ; if (CORE_READ(&out->a2, &in->a[2])) 12: (55) if r0 != 0x0 goto pc+43 ; R0_w=inv0 13: (85) call unknown#195896080 invalid func unknown#195896080 processed 11 insns (limit 1000000) max_states_per_insn 0 total_states 0 peak_states 0 mark_read 0 -- END PROG LOAD LOG -- libbpf: failed to load program 'test_core_arrays' libbpf: failed to load object 'test_core_reloc_arrays.o' #38/25 core_reloc/arrays___err_too_shallow:OK test_core_reloc:PASS:btf_src_file 0 nsec libbpf: loading test_core_reloc_arrays.o libbpf: elf: section(2) raw_tracepoint/sys_enter, size 464, link 0, flags 6, type=1 libbpf: sec 'raw_tracepoint/sys_enter': found program 'test_core_arrays' at insn offset 0 (0 bytes), code size 58 insns (464 bytes) libbpf: elf: section(3) .relraw_tracepoint/sys_enter, size 160, link 11, flags 40, type=9 libbpf: elf: section(4) license, size 4, link 0, flags 3, type=1 libbpf: license of test_core_reloc_arrays.o is GPL libbpf: elf: section(5) .bss, size 512, link 0, flags 3, type=8 libbpf: elf: section(6) .BTF, size 1226, link 0, flags 0, type=1 libbpf: elf: section(8) .BTF.ext, size 332, link 0, flags 0, type=1 libbpf: elf: section(11) .symtab, size 288, link 12, flags 0, type=2 libbpf: looking for externs among 12 symbols... libbpf: collected 0 externs total libbpf: map 'test_cor.bss' (global data): at sec_idx 5, offset 0, flags 400. libbpf: map 0 is "test_cor.bss" libbpf: sec '.relraw_tracepoint/sys_enter': collecting relocation for section(2) 'raw_tracepoint/sys_enter' libbpf: sec '.relraw_tracepoint/sys_enter': relo #0: insn #1 against 'data' libbpf: prog 'test_core_arrays': found data map 0 (test_cor.bss, sec 5, off 0) for insn 1 libbpf: sec '.relraw_tracepoint/sys_enter': relo #1: insn #3 against 'data' libbpf: prog 'test_core_arrays': found data map 0 (test_cor.bss, sec 5, off 0) for insn 3 libbpf: sec '.relraw_tracepoint/sys_enter': relo #2: insn #6 against 'data' libbpf: prog 'test_core_arrays': found data map 0 (test_cor.bss, sec 5, off 0) for insn 6 libbpf: sec '.relraw_tracepoint/sys_enter': relo #3: insn #14 against 'data' libbpf: prog 'test_core_arrays': found data map 0 (test_cor.bss, sec 5, off 0) for insn 14 libbpf: sec '.relraw_tracepoint/sys_enter': relo #4: insn #24 against 'data' libbpf: prog 'test_core_arrays': found data map 0 (test_cor.bss, sec 5, off 0) for insn 24 libbpf: sec '.relraw_tracepoint/sys_enter': relo #5: insn #26 against 'data' libbpf: prog 'test_core_arrays': found data map 0 (test_cor.bss, sec 5, off 0) for insn 26 libbpf: sec '.relraw_tracepoint/sys_enter': relo #6: insn #29 against 'data' libbpf: prog 'test_core_arrays': found data map 0 (test_cor.bss, sec 5, off 0) for insn 29 libbpf: sec '.relraw_tracepoint/sys_enter': relo #7: insn #36 against 'data' libbpf: prog 'test_core_arrays': found data map 0 (test_cor.bss, sec 5, off 0) for insn 36 libbpf: sec '.relraw_tracepoint/sys_enter': relo #8: insn #45 against 'data' libbpf: prog 'test_core_arrays': found data map 0 (test_cor.bss, sec 5, off 0) for insn 45 libbpf: sec '.relraw_tracepoint/sys_enter': relo #9: insn #47 against 'data' libbpf: prog 'test_core_arrays': found data map 0 (test_cor.bss, sec 5, off 0) for insn 47 test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: map 'test_cor.bss': created successfully, fd=5 libbpf: sec 'raw_tracepoint/sys_enter': found 5 CO-RE relocations libbpf: CO-RE relocating [5] struct core_reloc_arrays: found target candidate [4] struct core_reloc_arrays___err_non_array in [vmlinux] libbpf: prog 'test_core_arrays': relo #0: kind (0), spec is [5] struct core_reloc_arrays.a[2] (0:0:2 @ offset 8) libbpf: prog 'test_core_arrays': relo #0: non-matching candidate #0 [4] struct core_reloc_arrays___err_non_array (0:0 @ offset 0) libbpf: prog 'test_core_arrays': relo #0: no matching targets found libbpf: prog 'test_core_arrays': relo #0: substituting insn #0 w/ invalid insn libbpf: prog 'test_core_arrays': relo #1: kind (0), spec is [5] struct core_reloc_arrays.b[1][2][3] (0:1:1:2:3 @ offset 43) libbpf: prog 'test_core_arrays': relo #1: matching candidate #0 [4] struct core_reloc_arrays___err_non_array.b[1][2][3] (0:1:1:2:3 @ offset 27) libbpf: prog 'test_core_arrays': relo #1: patched insn #13 (ALU/ALU64) imm 43 -> 27 libbpf: prog 'test_core_arrays': relo #2: kind (0), spec is [5] struct core_reloc_arrays.c[1].c (0:2:1:0 @ offset 52) libbpf: prog 'test_core_arrays': relo #2: matching candidate #0 [4] struct core_reloc_arrays___err_non_array.c[1].c (0:2:1:0 @ offset 36) libbpf: prog 'test_core_arrays': relo #2: patched insn #23 (ALU/ALU64) imm 52 -> 36 libbpf: prog 'test_core_arrays': relo #3: kind (0), spec is [5] struct core_reloc_arrays.d[0][0].d (0:3:0:0:1 @ offset 72) libbpf: prog 'test_core_arrays': relo #3: matching candidate #0 [4] struct core_reloc_arrays___err_non_array.d[0][0].d (0:3:0:0:1 @ offset 56) libbpf: prog 'test_core_arrays': relo #3: patched insn #35 (ALU/ALU64) imm 72 -> 56 libbpf: prog 'test_core_arrays': relo #4: kind (0), spec is [5] struct core_reloc_arrays.f[0][1].c (0:4:0:1:0 @ offset 92) libbpf: prog 'test_core_arrays': relo #4: matching candidate #0 [4] struct core_reloc_arrays___err_non_array.f[0][1].c (0:4:0:1:0 @ offset 76) libbpf: prog 'test_core_arrays': relo #4: patched insn #44 (ALU/ALU64) imm 92 -> 76 libbpf: prog 'test_core_arrays': BPF program load failed: Invalid argument libbpf: prog 'test_core_arrays': -- BEGIN PROG LOAD LOG -- arg#0 reference type('UNKNOWN ') size cannot be determined: -22 0: R1=ctx(id=0,off=0,imm=0) R10=fp0 ; int test_core_arrays(void *ctx) 0: (85) call unknown#195896080 invalid func unknown#195896080 processed 1 insns (limit 1000000) max_states_per_insn 0 total_states 0 peak_states 0 mark_read 0 -- END PROG LOAD LOG -- libbpf: failed to load program 'test_core_arrays' libbpf: failed to load object 'test_core_reloc_arrays.o' #38/26 core_reloc/arrays___err_non_array:OK test_core_reloc:PASS:btf_src_file 0 nsec libbpf: loading test_core_reloc_arrays.o libbpf: elf: section(2) raw_tracepoint/sys_enter, size 464, link 0, flags 6, type=1 libbpf: sec 'raw_tracepoint/sys_enter': found program 'test_core_arrays' at insn offset 0 (0 bytes), code size 58 insns (464 bytes) libbpf: elf: section(3) .relraw_tracepoint/sys_enter, size 160, link 11, flags 40, type=9 libbpf: elf: section(4) license, size 4, link 0, flags 3, type=1 libbpf: license of test_core_reloc_arrays.o is GPL libbpf: elf: section(5) .bss, size 512, link 0, flags 3, type=8 libbpf: elf: section(6) .BTF, size 1226, link 0, flags 0, type=1 libbpf: elf: section(8) .BTF.ext, size 332, link 0, flags 0, type=1 libbpf: elf: section(11) .symtab, size 288, link 12, flags 0, type=2 libbpf: looking for externs among 12 symbols... libbpf: collected 0 externs total libbpf: map 'test_cor.bss' (global data): at sec_idx 5, offset 0, flags 400. libbpf: map 0 is "test_cor.bss" libbpf: sec '.relraw_tracepoint/sys_enter': collecting relocation for section(2) 'raw_tracepoint/sys_enter' libbpf: sec '.relraw_tracepoint/sys_enter': relo #0: insn #1 against 'data' libbpf: prog 'test_core_arrays': found data map 0 (test_cor.bss, sec 5, off 0) for insn 1 libbpf: sec '.relraw_tracepoint/sys_enter': relo #1: insn #3 against 'data' libbpf: prog 'test_core_arrays': found data map 0 (test_cor.bss, sec 5, off 0) for insn 3 libbpf: sec '.relraw_tracepoint/sys_enter': relo #2: insn #6 against 'data' libbpf: prog 'test_core_arrays': found data map 0 (test_cor.bss, sec 5, off 0) for insn 6 libbpf: sec '.relraw_tracepoint/sys_enter': relo #3: insn #14 against 'data' libbpf: prog 'test_core_arrays': found data map 0 (test_cor.bss, sec 5, off 0) for insn 14 libbpf: sec '.relraw_tracepoint/sys_enter': relo #4: insn #24 against 'data' libbpf: prog 'test_core_arrays': found data map 0 (test_cor.bss, sec 5, off 0) for insn 24 libbpf: sec '.relraw_tracepoint/sys_enter': relo #5: insn #26 against 'data' libbpf: prog 'test_core_arrays': found data map 0 (test_cor.bss, sec 5, off 0) for insn 26 libbpf: sec '.relraw_tracepoint/sys_enter': relo #6: insn #29 against 'data' libbpf: prog 'test_core_arrays': found data map 0 (test_cor.bss, sec 5, off 0) for insn 29 libbpf: sec '.relraw_tracepoint/sys_enter': relo #7: insn #36 against 'data' libbpf: prog 'test_core_arrays': found data map 0 (test_cor.bss, sec 5, off 0) for insn 36 libbpf: sec '.relraw_tracepoint/sys_enter': relo #8: insn #45 against 'data' libbpf: prog 'test_core_arrays': found data map 0 (test_cor.bss, sec 5, off 0) for insn 45 libbpf: sec '.relraw_tracepoint/sys_enter': relo #9: insn #47 against 'data' libbpf: prog 'test_core_arrays': found data map 0 (test_cor.bss, sec 5, off 0) for insn 47 test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: map 'test_cor.bss': created successfully, fd=5 libbpf: sec 'raw_tracepoint/sys_enter': found 5 CO-RE relocations libbpf: CO-RE relocating [5] struct core_reloc_arrays: found target candidate [4] struct core_reloc_arrays___err_wrong_val_type in [vmlinux] libbpf: prog 'test_core_arrays': relo #0: kind (0), spec is [5] struct core_reloc_arrays.a[2] (0:0:2 @ offset 8) libbpf: prog 'test_core_arrays': relo #0: matching candidate #0 [4] struct core_reloc_arrays___err_wrong_val_type.a[2] (0:0:2 @ offset 8) libbpf: prog 'test_core_arrays': relo #0: patched insn #0 (ALU/ALU64) imm 8 -> 8 libbpf: prog 'test_core_arrays': relo #1: kind (0), spec is [5] struct core_reloc_arrays.b[1][2][3] (0:1:1:2:3 @ offset 43) libbpf: prog 'test_core_arrays': relo #1: matching candidate #0 [4] struct core_reloc_arrays___err_wrong_val_type.b[1][2][3] (0:1:1:2:3 @ offset 43) libbpf: prog 'test_core_arrays': relo #1: patched insn #13 (ALU/ALU64) imm 43 -> 43 libbpf: prog 'test_core_arrays': relo #2: kind (0), spec is [5] struct core_reloc_arrays.c[1].c (0:2:1:0 @ offset 52) libbpf: prog 'test_core_arrays': relo #2: non-matching candidate #0 [4] struct core_reloc_arrays___err_wrong_val_type (0:2 @ offset 44) libbpf: prog 'test_core_arrays': relo #2: no matching targets found libbpf: prog 'test_core_arrays': relo #2: substituting insn #23 w/ invalid insn libbpf: prog 'test_core_arrays': relo #3: kind (0), spec is [5] struct core_reloc_arrays.d[0][0].d (0:3:0:0:1 @ offset 72) libbpf: prog 'test_core_arrays': relo #3: matching candidate #0 [4] struct core_reloc_arrays___err_wrong_val_type.d[0][0].d (0:3:0:0:1 @ offset 60) libbpf: prog 'test_core_arrays': relo #3: patched insn #35 (ALU/ALU64) imm 72 -> 60 libbpf: prog 'test_core_arrays': relo #4: kind (0), spec is [5] struct core_reloc_arrays.f[0][1].c (0:4:0:1:0 @ offset 92) libbpf: prog 'test_core_arrays': relo #4: matching candidate #0 [4] struct core_reloc_arrays___err_wrong_val_type.f[0][1].c (0:4:0:1:0 @ offset 80) libbpf: prog 'test_core_arrays': relo #4: patched insn #44 (ALU/ALU64) imm 92 -> 80 libbpf: prog 'test_core_arrays': BPF program load failed: Invalid argument libbpf: prog 'test_core_arrays': -- BEGIN PROG LOAD LOG -- arg#0 reference type('UNKNOWN ') size cannot be determined: -22 0: R1=ctx(id=0,off=0,imm=0) R10=fp0 ; int test_core_arrays(void *ctx) 0: (b7) r1 = 8 ; R1_w=inv8 1: (18) r7 = 0xc0080000041a0000 ; R7_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 3: (18) r3 = 0xc0080000041a0000 ; R3_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 5: (0f) r3 += r1 ; R1_w=invP8 R3_w=map_value(id=0,off=8,ks=4,vs=512,imm=0) ; if (CORE_READ(&out->a2, &in->a[2])) 6: (18) r1 = 0xc0080000041a0000 ; R1_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 8: (07) r1 += 256 ; R1_w=map_value(id=0,off=256,ks=4,vs=512,imm=0) 9: (b4) w2 = 4 ; R2_w=inv4 10: (85) call bpf_probe_read_kernel#113 ; R0_w=inv(id=0) 11: (b4) w6 = 1 ; R6_w=inv1 ; if (CORE_READ(&out->a2, &in->a[2])) 12: (55) if r0 != 0x0 goto pc+43 ; R0_w=inv0 13: (b7) r1 = 43 ; R1_w=inv43 14: (18) r3 = 0xc0080000041a0000 ; R3_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 16: (0f) r3 += r1 ; R1_w=invP43 R3_w=map_value(id=0,off=43,ks=4,vs=512,imm=0) ; if (CORE_READ(&out->b123, &in->b[1][2][3])) 17: (07) r7 += 260 ; R7_w=map_value(id=0,off=260,ks=4,vs=512,imm=0) 18: (b4) w6 = 1 ; R6_w=inv1 19: (bf) r1 = r7 ; R1_w=map_value(id=0,off=260,ks=4,vs=512,imm=0) R7_w=map_value(id=0,off=260,ks=4,vs=512,imm=0) 20: (b4) w2 = 1 ; R2_w=inv1 21: (85) call bpf_probe_read_kernel#113 ; R0=inv(id=0) ; if (CORE_READ(&out->b123, &in->b[1][2][3])) 22: (55) if r0 != 0x0 goto pc+33 ; R0=inv0 23: (85) call unknown#195896080 invalid func unknown#195896080 processed 20 insns (limit 1000000) max_states_per_insn 0 total_states 1 peak_states 1 mark_read 1 -- END PROG LOAD LOG -- libbpf: failed to load program 'test_core_arrays' libbpf: failed to load object 'test_core_reloc_arrays.o' #38/27 core_reloc/arrays___err_wrong_val_type:OK test_core_reloc:PASS:btf_src_file 0 nsec libbpf: loading test_core_reloc_arrays.o libbpf: elf: section(2) raw_tracepoint/sys_enter, size 464, link 0, flags 6, type=1 libbpf: sec 'raw_tracepoint/sys_enter': found program 'test_core_arrays' at insn offset 0 (0 bytes), code size 58 insns (464 bytes) libbpf: elf: section(3) .relraw_tracepoint/sys_enter, size 160, link 11, flags 40, type=9 libbpf: elf: section(4) license, size 4, link 0, flags 3, type=1 libbpf: license of test_core_reloc_arrays.o is GPL libbpf: elf: section(5) .bss, size 512, link 0, flags 3, type=8 libbpf: elf: section(6) .BTF, size 1226, link 0, flags 0, type=1 libbpf: elf: section(8) .BTF.ext, size 332, link 0, flags 0, type=1 libbpf: elf: section(11) .symtab, size 288, link 12, flags 0, type=2 libbpf: looking for externs among 12 symbols... libbpf: collected 0 externs total libbpf: map 'test_cor.bss' (global data): at sec_idx 5, offset 0, flags 400. libbpf: map 0 is "test_cor.bss" libbpf: sec '.relraw_tracepoint/sys_enter': collecting relocation for section(2) 'raw_tracepoint/sys_enter' libbpf: sec '.relraw_tracepoint/sys_enter': relo #0: insn #1 against 'data' libbpf: prog 'test_core_arrays': found data map 0 (test_cor.bss, sec 5, off 0) for insn 1 libbpf: sec '.relraw_tracepoint/sys_enter': relo #1: insn #3 against 'data' libbpf: prog 'test_core_arrays': found data map 0 (test_cor.bss, sec 5, off 0) for insn 3 libbpf: sec '.relraw_tracepoint/sys_enter': relo #2: insn #6 against 'data' libbpf: prog 'test_core_arrays': found data map 0 (test_cor.bss, sec 5, off 0) for insn 6 libbpf: sec '.relraw_tracepoint/sys_enter': relo #3: insn #14 against 'data' libbpf: prog 'test_core_arrays': found data map 0 (test_cor.bss, sec 5, off 0) for insn 14 libbpf: sec '.relraw_tracepoint/sys_enter': relo #4: insn #24 against 'data' libbpf: prog 'test_core_arrays': found data map 0 (test_cor.bss, sec 5, off 0) for insn 24 libbpf: sec '.relraw_tracepoint/sys_enter': relo #5: insn #26 against 'data' libbpf: prog 'test_core_arrays': found data map 0 (test_cor.bss, sec 5, off 0) for insn 26 libbpf: sec '.relraw_tracepoint/sys_enter': relo #6: insn #29 against 'data' libbpf: prog 'test_core_arrays': found data map 0 (test_cor.bss, sec 5, off 0) for insn 29 libbpf: sec '.relraw_tracepoint/sys_enter': relo #7: insn #36 against 'data' libbpf: prog 'test_core_arrays': found data map 0 (test_cor.bss, sec 5, off 0) for insn 36 libbpf: sec '.relraw_tracepoint/sys_enter': relo #8: insn #45 against 'data' libbpf: prog 'test_core_arrays': found data map 0 (test_cor.bss, sec 5, off 0) for insn 45 libbpf: sec '.relraw_tracepoint/sys_enter': relo #9: insn #47 against 'data' libbpf: prog 'test_core_arrays': found data map 0 (test_cor.bss, sec 5, off 0) for insn 47 test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: map 'test_cor.bss': created successfully, fd=5 libbpf: sec 'raw_tracepoint/sys_enter': found 5 CO-RE relocations libbpf: CO-RE relocating [5] struct core_reloc_arrays: found target candidate [4] struct core_reloc_arrays___err_bad_zero_sz_arr in [vmlinux] libbpf: prog 'test_core_arrays': relo #0: kind (0), spec is [5] struct core_reloc_arrays.a[2] (0:0:2 @ offset 8) libbpf: prog 'test_core_arrays': relo #0: matching candidate #0 [4] struct core_reloc_arrays___err_bad_zero_sz_arr.a[2] (0:1:2 @ offset 8) libbpf: prog 'test_core_arrays': relo #0: patched insn #0 (ALU/ALU64) imm 8 -> 8 libbpf: prog 'test_core_arrays': relo #1: kind (0), spec is [5] struct core_reloc_arrays.b[1][2][3] (0:1:1:2:3 @ offset 43) libbpf: prog 'test_core_arrays': relo #1: matching candidate #0 [4] struct core_reloc_arrays___err_bad_zero_sz_arr.b[1][2][3] (0:2:1:2:3 @ offset 43) libbpf: prog 'test_core_arrays': relo #1: patched insn #13 (ALU/ALU64) imm 43 -> 43 libbpf: prog 'test_core_arrays': relo #2: kind (0), spec is [5] struct core_reloc_arrays.c[1].c (0:2:1:0 @ offset 52) libbpf: prog 'test_core_arrays': relo #2: matching candidate #0 [4] struct core_reloc_arrays___err_bad_zero_sz_arr.c[1].c (0:3:1:0 @ offset 52) libbpf: prog 'test_core_arrays': relo #2: patched insn #23 (ALU/ALU64) imm 52 -> 52 libbpf: prog 'test_core_arrays': relo #3: kind (0), spec is [5] struct core_reloc_arrays.d[0][0].d (0:3:0:0:1 @ offset 72) libbpf: prog 'test_core_arrays': relo #3: matching candidate #0 [4] struct core_reloc_arrays___err_bad_zero_sz_arr.d[0][0].d (0:4:0:0:1 @ offset 72) libbpf: prog 'test_core_arrays': relo #3: patched insn #35 (ALU/ALU64) imm 72 -> 72 libbpf: prog 'test_core_arrays': relo #4: kind (0), spec is [5] struct core_reloc_arrays.f[0][1].c (0:4:0:1:0 @ offset 92) libbpf: prog 'test_core_arrays': relo #4: non-matching candidate #0 [4] struct core_reloc_arrays___err_bad_zero_sz_arr.f (0:0 @ offset 0) libbpf: prog 'test_core_arrays': relo #4: no matching targets found libbpf: prog 'test_core_arrays': relo #4: substituting insn #44 w/ invalid insn libbpf: prog 'test_core_arrays': BPF program load failed: Invalid argument libbpf: prog 'test_core_arrays': -- BEGIN PROG LOAD LOG -- arg#0 reference type('UNKNOWN ') size cannot be determined: -22 0: R1=ctx(id=0,off=0,imm=0) R10=fp0 ; int test_core_arrays(void *ctx) 0: (b7) r1 = 8 ; R1_w=inv8 1: (18) r7 = 0xc008000004440000 ; R7_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 3: (18) r3 = 0xc008000004440000 ; R3_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 5: (0f) r3 += r1 ; R1_w=invP8 R3_w=map_value(id=0,off=8,ks=4,vs=512,imm=0) ; if (CORE_READ(&out->a2, &in->a[2])) 6: (18) r1 = 0xc008000004440000 ; R1_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 8: (07) r1 += 256 ; R1_w=map_value(id=0,off=256,ks=4,vs=512,imm=0) 9: (b4) w2 = 4 ; R2_w=inv4 10: (85) call bpf_probe_read_kernel#113 ; R0_w=inv(id=0) 11: (b4) w6 = 1 ; R6_w=inv1 ; if (CORE_READ(&out->a2, &in->a[2])) 12: (55) if r0 != 0x0 goto pc+43 ; R0_w=inv0 13: (b7) r1 = 43 ; R1_w=inv43 14: (18) r3 = 0xc008000004440000 ; R3_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 16: (0f) r3 += r1 ; R1_w=invP43 R3_w=map_value(id=0,off=43,ks=4,vs=512,imm=0) ; if (CORE_READ(&out->b123, &in->b[1][2][3])) 17: (07) r7 += 260 ; R7_w=map_value(id=0,off=260,ks=4,vs=512,imm=0) 18: (b4) w6 = 1 ; R6_w=inv1 19: (bf) r1 = r7 ; R1_w=map_value(id=0,off=260,ks=4,vs=512,imm=0) R7_w=map_value(id=0,off=260,ks=4,vs=512,imm=0) 20: (b4) w2 = 1 ; R2_w=inv1 21: (85) call bpf_probe_read_kernel#113 ; R0=inv(id=0) ; if (CORE_READ(&out->b123, &in->b[1][2][3])) 22: (55) if r0 != 0x0 goto pc+33 ; R0=inv0 23: (b7) r1 = 52 ; R1_w=inv52 24: (18) r7 = 0xc008000004440000 ; R7_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 26: (18) r3 = 0xc008000004440000 ; R3_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 28: (0f) r3 += r1 ; R1_w=invP52 R3_w=map_value(id=0,off=52,ks=4,vs=512,imm=0) ; if (CORE_READ(&out->c1c, &in->c[1].c)) 29: (18) r1 = 0xc008000004440000 ; R1_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 31: (07) r1 += 264 ; R1_w=map_value(id=0,off=264,ks=4,vs=512,imm=0) 32: (b4) w2 = 4 ; R2_w=inv4 33: (85) call bpf_probe_read_kernel#113 ; R0=inv(id=0) ; if (CORE_READ(&out->c1c, &in->c[1].c)) 34: (55) if r0 != 0x0 goto pc+21 ; R0=inv0 35: (b7) r1 = 72 ; R1_w=inv72 36: (18) r3 = 0xc008000004440000 ; R3_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 38: (0f) r3 += r1 ; R1_w=invP72 R3_w=map_value(id=0,off=72,ks=4,vs=512,imm=0) ; if (CORE_READ(&out->d00d, &in->d[0][0].d)) 39: (07) r7 += 268 ; R7_w=map_value(id=0,off=268,ks=4,vs=512,imm=0) 40: (bf) r1 = r7 ; R1_w=map_value(id=0,off=268,ks=4,vs=512,imm=0) R7_w=map_value(id=0,off=268,ks=4,vs=512,imm=0) 41: (b4) w2 = 4 ; R2_w=inv4 42: (85) call bpf_probe_read_kernel#113 ; R0=inv(id=0) ; if (CORE_READ(&out->d00d, &in->d[0][0].d)) 43: (55) if r0 != 0x0 goto pc+12 ; R0=inv0 44: (85) call unknown#195896080 invalid func unknown#195896080 processed 37 insns (limit 1000000) max_states_per_insn 0 total_states 3 peak_states 3 mark_read 1 -- END PROG LOAD LOG -- libbpf: failed to load program 'test_core_arrays' libbpf: failed to load object 'test_core_reloc_arrays.o' #38/28 core_reloc/arrays___err_bad_zero_sz_arr:OK test_core_reloc:PASS:btf_src_file 0 nsec libbpf: loading test_core_reloc_primitives.o libbpf: elf: section(2) raw_tracepoint/sys_enter, size 448, link 0, flags 6, type=1 libbpf: sec 'raw_tracepoint/sys_enter': found program 'test_core_primitives' at insn offset 0 (0 bytes), code size 56 insns (448 bytes) libbpf: elf: section(3) .relraw_tracepoint/sys_enter, size 160, link 11, flags 40, type=9 libbpf: elf: section(4) license, size 4, link 0, flags 3, type=1 libbpf: license of test_core_reloc_primitives.o is GPL libbpf: elf: section(5) .bss, size 512, link 0, flags 3, type=8 libbpf: elf: section(6) .BTF, size 1016, link 0, flags 0, type=1 libbpf: elf: section(8) .BTF.ext, size 348, link 0, flags 0, type=1 libbpf: elf: section(11) .symtab, size 288, link 12, flags 0, type=2 libbpf: looking for externs among 12 symbols... libbpf: collected 0 externs total libbpf: map 'test_cor.bss' (global data): at sec_idx 5, offset 0, flags 400. libbpf: map 0 is "test_cor.bss" libbpf: sec '.relraw_tracepoint/sys_enter': collecting relocation for section(2) 'raw_tracepoint/sys_enter' libbpf: sec '.relraw_tracepoint/sys_enter': relo #0: insn #1 against 'data' libbpf: prog 'test_core_primitives': found data map 0 (test_cor.bss, sec 5, off 0) for insn 1 libbpf: sec '.relraw_tracepoint/sys_enter': relo #1: insn #3 against 'data' libbpf: prog 'test_core_primitives': found data map 0 (test_cor.bss, sec 5, off 0) for insn 3 libbpf: sec '.relraw_tracepoint/sys_enter': relo #2: insn #6 against 'data' libbpf: prog 'test_core_primitives': found data map 0 (test_cor.bss, sec 5, off 0) for insn 6 libbpf: sec '.relraw_tracepoint/sys_enter': relo #3: insn #14 against 'data' libbpf: prog 'test_core_primitives': found data map 0 (test_cor.bss, sec 5, off 0) for insn 14 libbpf: sec '.relraw_tracepoint/sys_enter': relo #4: insn #23 against 'data' libbpf: prog 'test_core_primitives': found data map 0 (test_cor.bss, sec 5, off 0) for insn 23 libbpf: sec '.relraw_tracepoint/sys_enter': relo #5: insn #25 against 'data' libbpf: prog 'test_core_primitives': found data map 0 (test_cor.bss, sec 5, off 0) for insn 25 libbpf: sec '.relraw_tracepoint/sys_enter': relo #6: insn #28 against 'data' libbpf: prog 'test_core_primitives': found data map 0 (test_cor.bss, sec 5, off 0) for insn 28 libbpf: sec '.relraw_tracepoint/sys_enter': relo #7: insn #35 against 'data' libbpf: prog 'test_core_primitives': found data map 0 (test_cor.bss, sec 5, off 0) for insn 35 libbpf: sec '.relraw_tracepoint/sys_enter': relo #8: insn #44 against 'data' libbpf: prog 'test_core_primitives': found data map 0 (test_cor.bss, sec 5, off 0) for insn 44 libbpf: sec '.relraw_tracepoint/sys_enter': relo #9: insn #46 against 'data' libbpf: prog 'test_core_primitives': found data map 0 (test_cor.bss, sec 5, off 0) for insn 46 test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: map 'test_cor.bss': created successfully, fd=5 libbpf: sec 'raw_tracepoint/sys_enter': found 5 CO-RE relocations libbpf: CO-RE relocating [5] struct core_reloc_primitives: found target candidate [4] struct core_reloc_primitives in [vmlinux] libbpf: prog 'test_core_primitives': relo #0: kind (0), spec is [5] struct core_reloc_primitives.a (0:0 @ offset 0) libbpf: prog 'test_core_primitives': relo #0: matching candidate #0 [4] struct core_reloc_primitives.a (0:0 @ offset 0) libbpf: prog 'test_core_primitives': relo #0: patched insn #0 (ALU/ALU64) imm 0 -> 0 libbpf: prog 'test_core_primitives': relo #1: kind (0), spec is [5] struct core_reloc_primitives.b (0:1 @ offset 4) libbpf: prog 'test_core_primitives': relo #1: matching candidate #0 [4] struct core_reloc_primitives.b (0:1 @ offset 4) libbpf: prog 'test_core_primitives': relo #1: patched insn #13 (ALU/ALU64) imm 4 -> 4 libbpf: prog 'test_core_primitives': relo #2: kind (0), spec is [5] struct core_reloc_primitives.c (0:2 @ offset 8) libbpf: prog 'test_core_primitives': relo #2: matching candidate #0 [4] struct core_reloc_primitives.c (0:2 @ offset 8) libbpf: prog 'test_core_primitives': relo #2: patched insn #22 (ALU/ALU64) imm 8 -> 8 libbpf: prog 'test_core_primitives': relo #3: kind (0), spec is [5] struct core_reloc_primitives.d (0:3 @ offset 16) libbpf: prog 'test_core_primitives': relo #3: matching candidate #0 [4] struct core_reloc_primitives.d (0:3 @ offset 16) libbpf: prog 'test_core_primitives': relo #3: patched insn #34 (ALU/ALU64) imm 16 -> 16 libbpf: prog 'test_core_primitives': relo #4: kind (0), spec is [5] struct core_reloc_primitives.f (0:4 @ offset 24) libbpf: prog 'test_core_primitives': relo #4: matching candidate #0 [4] struct core_reloc_primitives.f (0:4 @ offset 24) libbpf: prog 'test_core_primitives': relo #4: patched insn #43 (ALU/ALU64) imm 24 -> 24 test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/29 core_reloc/primitives:OK test_core_reloc:PASS:btf_src_file 0 nsec libbpf: loading test_core_reloc_primitives.o libbpf: elf: section(2) raw_tracepoint/sys_enter, size 448, link 0, flags 6, type=1 libbpf: sec 'raw_tracepoint/sys_enter': found program 'test_core_primitives' at insn offset 0 (0 bytes), code size 56 insns (448 bytes) libbpf: elf: section(3) .relraw_tracepoint/sys_enter, size 160, link 11, flags 40, type=9 libbpf: elf: section(4) license, size 4, link 0, flags 3, type=1 libbpf: license of test_core_reloc_primitives.o is GPL libbpf: elf: section(5) .bss, size 512, link 0, flags 3, type=8 libbpf: elf: section(6) .BTF, size 1016, link 0, flags 0, type=1 libbpf: elf: section(8) .BTF.ext, size 348, link 0, flags 0, type=1 libbpf: elf: section(11) .symtab, size 288, link 12, flags 0, type=2 libbpf: looking for externs among 12 symbols... libbpf: collected 0 externs total libbpf: map 'test_cor.bss' (global data): at sec_idx 5, offset 0, flags 400. libbpf: map 0 is "test_cor.bss" libbpf: sec '.relraw_tracepoint/sys_enter': collecting relocation for section(2) 'raw_tracepoint/sys_enter' libbpf: sec '.relraw_tracepoint/sys_enter': relo #0: insn #1 against 'data' libbpf: prog 'test_core_primitives': found data map 0 (test_cor.bss, sec 5, off 0) for insn 1 libbpf: sec '.relraw_tracepoint/sys_enter': relo #1: insn #3 against 'data' libbpf: prog 'test_core_primitives': found data map 0 (test_cor.bss, sec 5, off 0) for insn 3 libbpf: sec '.relraw_tracepoint/sys_enter': relo #2: insn #6 against 'data' libbpf: prog 'test_core_primitives': found data map 0 (test_cor.bss, sec 5, off 0) for insn 6 libbpf: sec '.relraw_tracepoint/sys_enter': relo #3: insn #14 against 'data' libbpf: prog 'test_core_primitives': found data map 0 (test_cor.bss, sec 5, off 0) for insn 14 libbpf: sec '.relraw_tracepoint/sys_enter': relo #4: insn #23 against 'data' libbpf: prog 'test_core_primitives': found data map 0 (test_cor.bss, sec 5, off 0) for insn 23 libbpf: sec '.relraw_tracepoint/sys_enter': relo #5: insn #25 against 'data' libbpf: prog 'test_core_primitives': found data map 0 (test_cor.bss, sec 5, off 0) for insn 25 libbpf: sec '.relraw_tracepoint/sys_enter': relo #6: insn #28 against 'data' libbpf: prog 'test_core_primitives': found data map 0 (test_cor.bss, sec 5, off 0) for insn 28 libbpf: sec '.relraw_tracepoint/sys_enter': relo #7: insn #35 against 'data' libbpf: prog 'test_core_primitives': found data map 0 (test_cor.bss, sec 5, off 0) for insn 35 libbpf: sec '.relraw_tracepoint/sys_enter': relo #8: insn #44 against 'data' libbpf: prog 'test_core_primitives': found data map 0 (test_cor.bss, sec 5, off 0) for insn 44 libbpf: sec '.relraw_tracepoint/sys_enter': relo #9: insn #46 against 'data' libbpf: prog 'test_core_primitives': found data map 0 (test_cor.bss, sec 5, off 0) for insn 46 test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: map 'test_cor.bss': created successfully, fd=5 libbpf: sec 'raw_tracepoint/sys_enter': found 5 CO-RE relocations libbpf: CO-RE relocating [5] struct core_reloc_primitives: found target candidate [4] struct core_reloc_primitives___diff_enum_def in [vmlinux] libbpf: prog 'test_core_primitives': relo #0: kind (0), spec is [5] struct core_reloc_primitives.a (0:0 @ offset 0) libbpf: prog 'test_core_primitives': relo #0: matching candidate #0 [4] struct core_reloc_primitives___diff_enum_def.a (0:0 @ offset 0) libbpf: prog 'test_core_primitives': relo #0: patched insn #0 (ALU/ALU64) imm 0 -> 0 libbpf: prog 'test_core_primitives': relo #1: kind (0), spec is [5] struct core_reloc_primitives.b (0:1 @ offset 4) libbpf: prog 'test_core_primitives': relo #1: matching candidate #0 [4] struct core_reloc_primitives___diff_enum_def.b (0:1 @ offset 4) libbpf: prog 'test_core_primitives': relo #1: patched insn #13 (ALU/ALU64) imm 4 -> 4 libbpf: prog 'test_core_primitives': relo #2: kind (0), spec is [5] struct core_reloc_primitives.c (0:2 @ offset 8) libbpf: prog 'test_core_primitives': relo #2: matching candidate #0 [4] struct core_reloc_primitives___diff_enum_def.c (0:4 @ offset 24) libbpf: prog 'test_core_primitives': relo #2: patched insn #22 (ALU/ALU64) imm 8 -> 24 libbpf: prog 'test_core_primitives': relo #3: kind (0), spec is [5] struct core_reloc_primitives.d (0:3 @ offset 16) libbpf: prog 'test_core_primitives': relo #3: matching candidate #0 [4] struct core_reloc_primitives___diff_enum_def.d (0:2 @ offset 8) libbpf: prog 'test_core_primitives': relo #3: patched insn #34 (ALU/ALU64) imm 16 -> 8 libbpf: prog 'test_core_primitives': relo #4: kind (0), spec is [5] struct core_reloc_primitives.f (0:4 @ offset 24) libbpf: prog 'test_core_primitives': relo #4: matching candidate #0 [4] struct core_reloc_primitives___diff_enum_def.f (0:3 @ offset 16) libbpf: prog 'test_core_primitives': relo #4: patched insn #43 (ALU/ALU64) imm 24 -> 16 test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/30 core_reloc/primitives___diff_enum_def:OK test_core_reloc:PASS:btf_src_file 0 nsec libbpf: loading test_core_reloc_primitives.o libbpf: elf: section(2) raw_tracepoint/sys_enter, size 448, link 0, flags 6, type=1 libbpf: sec 'raw_tracepoint/sys_enter': found program 'test_core_primitives' at insn offset 0 (0 bytes), code size 56 insns (448 bytes) libbpf: elf: section(3) .relraw_tracepoint/sys_enter, size 160, link 11, flags 40, type=9 libbpf: elf: section(4) license, size 4, link 0, flags 3, type=1 libbpf: license of test_core_reloc_primitives.o is GPL libbpf: elf: section(5) .bss, size 512, link 0, flags 3, type=8 libbpf: elf: section(6) .BTF, size 1016, link 0, flags 0, type=1 libbpf: elf: section(8) .BTF.ext, size 348, link 0, flags 0, type=1 libbpf: elf: section(11) .symtab, size 288, link 12, flags 0, type=2 libbpf: looking for externs among 12 symbols... libbpf: collected 0 externs total libbpf: map 'test_cor.bss' (global data): at sec_idx 5, offset 0, flags 400. libbpf: map 0 is "test_cor.bss" libbpf: sec '.relraw_tracepoint/sys_enter': collecting relocation for section(2) 'raw_tracepoint/sys_enter' libbpf: sec '.relraw_tracepoint/sys_enter': relo #0: insn #1 against 'data' libbpf: prog 'test_core_primitives': found data map 0 (test_cor.bss, sec 5, off 0) for insn 1 libbpf: sec '.relraw_tracepoint/sys_enter': relo #1: insn #3 against 'data' libbpf: prog 'test_core_primitives': found data map 0 (test_cor.bss, sec 5, off 0) for insn 3 libbpf: sec '.relraw_tracepoint/sys_enter': relo #2: insn #6 against 'data' libbpf: prog 'test_core_primitives': found data map 0 (test_cor.bss, sec 5, off 0) for insn 6 libbpf: sec '.relraw_tracepoint/sys_enter': relo #3: insn #14 against 'data' libbpf: prog 'test_core_primitives': found data map 0 (test_cor.bss, sec 5, off 0) for insn 14 libbpf: sec '.relraw_tracepoint/sys_enter': relo #4: insn #23 against 'data' libbpf: prog 'test_core_primitives': found data map 0 (test_cor.bss, sec 5, off 0) for insn 23 libbpf: sec '.relraw_tracepoint/sys_enter': relo #5: insn #25 against 'data' libbpf: prog 'test_core_primitives': found data map 0 (test_cor.bss, sec 5, off 0) for insn 25 libbpf: sec '.relraw_tracepoint/sys_enter': relo #6: insn #28 against 'data' libbpf: prog 'test_core_primitives': found data map 0 (test_cor.bss, sec 5, off 0) for insn 28 libbpf: sec '.relraw_tracepoint/sys_enter': relo #7: insn #35 against 'data' libbpf: prog 'test_core_primitives': found data map 0 (test_cor.bss, sec 5, off 0) for insn 35 libbpf: sec '.relraw_tracepoint/sys_enter': relo #8: insn #44 against 'data' libbpf: prog 'test_core_primitives': found data map 0 (test_cor.bss, sec 5, off 0) for insn 44 libbpf: sec '.relraw_tracepoint/sys_enter': relo #9: insn #46 against 'data' libbpf: prog 'test_core_primitives': found data map 0 (test_cor.bss, sec 5, off 0) for insn 46 test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: map 'test_cor.bss': created successfully, fd=5 libbpf: sec 'raw_tracepoint/sys_enter': found 5 CO-RE relocations libbpf: CO-RE relocating [5] struct core_reloc_primitives: found target candidate [4] struct core_reloc_primitives___diff_func_proto in [vmlinux] libbpf: prog 'test_core_primitives': relo #0: kind (0), spec is [5] struct core_reloc_primitives.a (0:0 @ offset 0) libbpf: prog 'test_core_primitives': relo #0: matching candidate #0 [4] struct core_reloc_primitives___diff_func_proto.a (0:4 @ offset 24) libbpf: prog 'test_core_primitives': relo #0: patched insn #0 (ALU/ALU64) imm 0 -> 24 libbpf: prog 'test_core_primitives': relo #1: kind (0), spec is [5] struct core_reloc_primitives.b (0:1 @ offset 4) libbpf: prog 'test_core_primitives': relo #1: matching candidate #0 [4] struct core_reloc_primitives___diff_func_proto.b (0:3 @ offset 20) libbpf: prog 'test_core_primitives': relo #1: patched insn #13 (ALU/ALU64) imm 4 -> 20 libbpf: prog 'test_core_primitives': relo #2: kind (0), spec is [5] struct core_reloc_primitives.c (0:2 @ offset 8) libbpf: prog 'test_core_primitives': relo #2: matching candidate #0 [4] struct core_reloc_primitives___diff_func_proto.c (0:2 @ offset 16) libbpf: prog 'test_core_primitives': relo #2: patched insn #22 (ALU/ALU64) imm 8 -> 16 libbpf: prog 'test_core_primitives': relo #3: kind (0), spec is [5] struct core_reloc_primitives.d (0:3 @ offset 16) libbpf: prog 'test_core_primitives': relo #3: matching candidate #0 [4] struct core_reloc_primitives___diff_func_proto.d (0:1 @ offset 8) libbpf: prog 'test_core_primitives': relo #3: patched insn #34 (ALU/ALU64) imm 16 -> 8 libbpf: prog 'test_core_primitives': relo #4: kind (0), spec is [5] struct core_reloc_primitives.f (0:4 @ offset 24) libbpf: prog 'test_core_primitives': relo #4: matching candidate #0 [4] struct core_reloc_primitives___diff_func_proto.f (0:0 @ offset 0) libbpf: prog 'test_core_primitives': relo #4: patched insn #43 (ALU/ALU64) imm 24 -> 0 test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/31 core_reloc/primitives___diff_func_proto:OK test_core_reloc:PASS:btf_src_file 0 nsec libbpf: loading test_core_reloc_primitives.o libbpf: elf: section(2) raw_tracepoint/sys_enter, size 448, link 0, flags 6, type=1 libbpf: sec 'raw_tracepoint/sys_enter': found program 'test_core_primitives' at insn offset 0 (0 bytes), code size 56 insns (448 bytes) libbpf: elf: section(3) .relraw_tracepoint/sys_enter, size 160, link 11, flags 40, type=9 libbpf: elf: section(4) license, size 4, link 0, flags 3, type=1 libbpf: license of test_core_reloc_primitives.o is GPL libbpf: elf: section(5) .bss, size 512, link 0, flags 3, type=8 libbpf: elf: section(6) .BTF, size 1016, link 0, flags 0, type=1 libbpf: elf: section(8) .BTF.ext, size 348, link 0, flags 0, type=1 libbpf: elf: section(11) .symtab, size 288, link 12, flags 0, type=2 libbpf: looking for externs among 12 symbols... libbpf: collected 0 externs total libbpf: map 'test_cor.bss' (global data): at sec_idx 5, offset 0, flags 400. libbpf: map 0 is "test_cor.bss" libbpf: sec '.relraw_tracepoint/sys_enter': collecting relocation for section(2) 'raw_tracepoint/sys_enter' libbpf: sec '.relraw_tracepoint/sys_enter': relo #0: insn #1 against 'data' libbpf: prog 'test_core_primitives': found data map 0 (test_cor.bss, sec 5, off 0) for insn 1 libbpf: sec '.relraw_tracepoint/sys_enter': relo #1: insn #3 against 'data' libbpf: prog 'test_core_primitives': found data map 0 (test_cor.bss, sec 5, off 0) for insn 3 libbpf: sec '.relraw_tracepoint/sys_enter': relo #2: insn #6 against 'data' libbpf: prog 'test_core_primitives': found data map 0 (test_cor.bss, sec 5, off 0) for insn 6 libbpf: sec '.relraw_tracepoint/sys_enter': relo #3: insn #14 against 'data' libbpf: prog 'test_core_primitives': found data map 0 (test_cor.bss, sec 5, off 0) for insn 14 libbpf: sec '.relraw_tracepoint/sys_enter': relo #4: insn #23 against 'data' libbpf: prog 'test_core_primitives': found data map 0 (test_cor.bss, sec 5, off 0) for insn 23 libbpf: sec '.relraw_tracepoint/sys_enter': relo #5: insn #25 against 'data' libbpf: prog 'test_core_primitives': found data map 0 (test_cor.bss, sec 5, off 0) for insn 25 libbpf: sec '.relraw_tracepoint/sys_enter': relo #6: insn #28 against 'data' libbpf: prog 'test_core_primitives': found data map 0 (test_cor.bss, sec 5, off 0) for insn 28 libbpf: sec '.relraw_tracepoint/sys_enter': relo #7: insn #35 against 'data' libbpf: prog 'test_core_primitives': found data map 0 (test_cor.bss, sec 5, off 0) for insn 35 libbpf: sec '.relraw_tracepoint/sys_enter': relo #8: insn #44 against 'data' libbpf: prog 'test_core_primitives': found data map 0 (test_cor.bss, sec 5, off 0) for insn 44 libbpf: sec '.relraw_tracepoint/sys_enter': relo #9: insn #46 against 'data' libbpf: prog 'test_core_primitives': found data map 0 (test_cor.bss, sec 5, off 0) for insn 46 test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: map 'test_cor.bss': created successfully, fd=5 libbpf: sec 'raw_tracepoint/sys_enter': found 5 CO-RE relocations libbpf: CO-RE relocating [5] struct core_reloc_primitives: found target candidate [4] struct core_reloc_primitives___diff_ptr_type in [vmlinux] libbpf: prog 'test_core_primitives': relo #0: kind (0), spec is [5] struct core_reloc_primitives.a (0:0 @ offset 0) libbpf: prog 'test_core_primitives': relo #0: matching candidate #0 [4] struct core_reloc_primitives___diff_ptr_type.a (0:1 @ offset 8) libbpf: prog 'test_core_primitives': relo #0: patched insn #0 (ALU/ALU64) imm 0 -> 8 libbpf: prog 'test_core_primitives': relo #1: kind (0), spec is [5] struct core_reloc_primitives.b (0:1 @ offset 4) libbpf: prog 'test_core_primitives': relo #1: matching candidate #0 [4] struct core_reloc_primitives___diff_ptr_type.b (0:2 @ offset 12) libbpf: prog 'test_core_primitives': relo #1: patched insn #13 (ALU/ALU64) imm 4 -> 12 libbpf: prog 'test_core_primitives': relo #2: kind (0), spec is [5] struct core_reloc_primitives.c (0:2 @ offset 8) libbpf: prog 'test_core_primitives': relo #2: matching candidate #0 [4] struct core_reloc_primitives___diff_ptr_type.c (0:3 @ offset 16) libbpf: prog 'test_core_primitives': relo #2: patched insn #22 (ALU/ALU64) imm 8 -> 16 libbpf: prog 'test_core_primitives': relo #3: kind (0), spec is [5] struct core_reloc_primitives.d (0:3 @ offset 16) libbpf: prog 'test_core_primitives': relo #3: matching candidate #0 [4] struct core_reloc_primitives___diff_ptr_type.d (0:0 @ offset 0) libbpf: prog 'test_core_primitives': relo #3: patched insn #34 (ALU/ALU64) imm 16 -> 0 libbpf: prog 'test_core_primitives': relo #4: kind (0), spec is [5] struct core_reloc_primitives.f (0:4 @ offset 24) libbpf: prog 'test_core_primitives': relo #4: matching candidate #0 [4] struct core_reloc_primitives___diff_ptr_type.f (0:4 @ offset 24) libbpf: prog 'test_core_primitives': relo #4: patched insn #43 (ALU/ALU64) imm 24 -> 24 test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/32 core_reloc/primitives___diff_ptr_type:OK test_core_reloc:PASS:btf_src_file 0 nsec libbpf: loading test_core_reloc_primitives.o libbpf: elf: section(2) raw_tracepoint/sys_enter, size 448, link 0, flags 6, type=1 libbpf: sec 'raw_tracepoint/sys_enter': found program 'test_core_primitives' at insn offset 0 (0 bytes), code size 56 insns (448 bytes) libbpf: elf: section(3) .relraw_tracepoint/sys_enter, size 160, link 11, flags 40, type=9 libbpf: elf: section(4) license, size 4, link 0, flags 3, type=1 libbpf: license of test_core_reloc_primitives.o is GPL libbpf: elf: section(5) .bss, size 512, link 0, flags 3, type=8 libbpf: elf: section(6) .BTF, size 1016, link 0, flags 0, type=1 libbpf: elf: section(8) .BTF.ext, size 348, link 0, flags 0, type=1 libbpf: elf: section(11) .symtab, size 288, link 12, flags 0, type=2 libbpf: looking for externs among 12 symbols... libbpf: collected 0 externs total libbpf: map 'test_cor.bss' (global data): at sec_idx 5, offset 0, flags 400. libbpf: map 0 is "test_cor.bss" libbpf: sec '.relraw_tracepoint/sys_enter': collecting relocation for section(2) 'raw_tracepoint/sys_enter' libbpf: sec '.relraw_tracepoint/sys_enter': relo #0: insn #1 against 'data' libbpf: prog 'test_core_primitives': found data map 0 (test_cor.bss, sec 5, off 0) for insn 1 libbpf: sec '.relraw_tracepoint/sys_enter': relo #1: insn #3 against 'data' libbpf: prog 'test_core_primitives': found data map 0 (test_cor.bss, sec 5, off 0) for insn 3 libbpf: sec '.relraw_tracepoint/sys_enter': relo #2: insn #6 against 'data' libbpf: prog 'test_core_primitives': found data map 0 (test_cor.bss, sec 5, off 0) for insn 6 libbpf: sec '.relraw_tracepoint/sys_enter': relo #3: insn #14 against 'data' libbpf: prog 'test_core_primitives': found data map 0 (test_cor.bss, sec 5, off 0) for insn 14 libbpf: sec '.relraw_tracepoint/sys_enter': relo #4: insn #23 against 'data' libbpf: prog 'test_core_primitives': found data map 0 (test_cor.bss, sec 5, off 0) for insn 23 libbpf: sec '.relraw_tracepoint/sys_enter': relo #5: insn #25 against 'data' libbpf: prog 'test_core_primitives': found data map 0 (test_cor.bss, sec 5, off 0) for insn 25 libbpf: sec '.relraw_tracepoint/sys_enter': relo #6: insn #28 against 'data' libbpf: prog 'test_core_primitives': found data map 0 (test_cor.bss, sec 5, off 0) for insn 28 libbpf: sec '.relraw_tracepoint/sys_enter': relo #7: insn #35 against 'data' libbpf: prog 'test_core_primitives': found data map 0 (test_cor.bss, sec 5, off 0) for insn 35 libbpf: sec '.relraw_tracepoint/sys_enter': relo #8: insn #44 against 'data' libbpf: prog 'test_core_primitives': found data map 0 (test_cor.bss, sec 5, off 0) for insn 44 libbpf: sec '.relraw_tracepoint/sys_enter': relo #9: insn #46 against 'data' libbpf: prog 'test_core_primitives': found data map 0 (test_cor.bss, sec 5, off 0) for insn 46 test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: map 'test_cor.bss': created successfully, fd=5 libbpf: sec 'raw_tracepoint/sys_enter': found 5 CO-RE relocations libbpf: CO-RE relocating [5] struct core_reloc_primitives: found target candidate [4] struct core_reloc_primitives___err_non_enum in [vmlinux] libbpf: prog 'test_core_primitives': relo #0: kind (0), spec is [5] struct core_reloc_primitives.a (0:0 @ offset 0) libbpf: prog 'test_core_primitives': relo #0: non-matching candidate #0 [4] struct core_reloc_primitives___err_non_enum (0:0 @ offset 0) libbpf: prog 'test_core_primitives': relo #0: no matching targets found libbpf: prog 'test_core_primitives': relo #0: substituting insn #0 w/ invalid insn libbpf: prog 'test_core_primitives': relo #1: kind (0), spec is [5] struct core_reloc_primitives.b (0:1 @ offset 4) libbpf: prog 'test_core_primitives': relo #1: matching candidate #0 [4] struct core_reloc_primitives___err_non_enum.b (0:1 @ offset 4) libbpf: prog 'test_core_primitives': relo #1: patched insn #13 (ALU/ALU64) imm 4 -> 4 libbpf: prog 'test_core_primitives': relo #2: kind (0), spec is [5] struct core_reloc_primitives.c (0:2 @ offset 8) libbpf: prog 'test_core_primitives': relo #2: non-matching candidate #0 [4] struct core_reloc_primitives___err_non_enum (0:2 @ offset 8) libbpf: prog 'test_core_primitives': relo #2: no matching targets found libbpf: prog 'test_core_primitives': relo #2: substituting insn #22 w/ invalid insn libbpf: prog 'test_core_primitives': relo #3: kind (0), spec is [5] struct core_reloc_primitives.d (0:3 @ offset 16) libbpf: prog 'test_core_primitives': relo #3: matching candidate #0 [4] struct core_reloc_primitives___err_non_enum.d (0:3 @ offset 16) libbpf: prog 'test_core_primitives': relo #3: patched insn #34 (ALU/ALU64) imm 16 -> 16 libbpf: prog 'test_core_primitives': relo #4: kind (0), spec is [5] struct core_reloc_primitives.f (0:4 @ offset 24) libbpf: prog 'test_core_primitives': relo #4: matching candidate #0 [4] struct core_reloc_primitives___err_non_enum.f (0:4 @ offset 24) libbpf: prog 'test_core_primitives': relo #4: patched insn #43 (ALU/ALU64) imm 24 -> 24 libbpf: prog 'test_core_primitives': BPF program load failed: Invalid argument libbpf: prog 'test_core_primitives': -- BEGIN PROG LOAD LOG -- arg#0 reference type('UNKNOWN ') size cannot be determined: -22 0: R1=ctx(id=0,off=0,imm=0) R10=fp0 ; int test_core_primitives(void *ctx) 0: (85) call unknown#195896080 invalid func unknown#195896080 processed 1 insns (limit 1000000) max_states_per_insn 0 total_states 0 peak_states 0 mark_read 0 -- END PROG LOAD LOG -- libbpf: failed to load program 'test_core_primitives' libbpf: failed to load object 'test_core_reloc_primitives.o' #38/33 core_reloc/primitives___err_non_enum:OK test_core_reloc:PASS:btf_src_file 0 nsec libbpf: loading test_core_reloc_primitives.o libbpf: elf: section(2) raw_tracepoint/sys_enter, size 448, link 0, flags 6, type=1 libbpf: sec 'raw_tracepoint/sys_enter': found program 'test_core_primitives' at insn offset 0 (0 bytes), code size 56 insns (448 bytes) libbpf: elf: section(3) .relraw_tracepoint/sys_enter, size 160, link 11, flags 40, type=9 libbpf: elf: section(4) license, size 4, link 0, flags 3, type=1 libbpf: license of test_core_reloc_primitives.o is GPL libbpf: elf: section(5) .bss, size 512, link 0, flags 3, type=8 libbpf: elf: section(6) .BTF, size 1016, link 0, flags 0, type=1 libbpf: elf: section(8) .BTF.ext, size 348, link 0, flags 0, type=1 libbpf: elf: section(11) .symtab, size 288, link 12, flags 0, type=2 libbpf: looking for externs among 12 symbols... libbpf: collected 0 externs total libbpf: map 'test_cor.bss' (global data): at sec_idx 5, offset 0, flags 400. libbpf: map 0 is "test_cor.bss" libbpf: sec '.relraw_tracepoint/sys_enter': collecting relocation for section(2) 'raw_tracepoint/sys_enter' libbpf: sec '.relraw_tracepoint/sys_enter': relo #0: insn #1 against 'data' libbpf: prog 'test_core_primitives': found data map 0 (test_cor.bss, sec 5, off 0) for insn 1 libbpf: sec '.relraw_tracepoint/sys_enter': relo #1: insn #3 against 'data' libbpf: prog 'test_core_primitives': found data map 0 (test_cor.bss, sec 5, off 0) for insn 3 libbpf: sec '.relraw_tracepoint/sys_enter': relo #2: insn #6 against 'data' libbpf: prog 'test_core_primitives': found data map 0 (test_cor.bss, sec 5, off 0) for insn 6 libbpf: sec '.relraw_tracepoint/sys_enter': relo #3: insn #14 against 'data' libbpf: prog 'test_core_primitives': found data map 0 (test_cor.bss, sec 5, off 0) for insn 14 libbpf: sec '.relraw_tracepoint/sys_enter': relo #4: insn #23 against 'data' libbpf: prog 'test_core_primitives': found data map 0 (test_cor.bss, sec 5, off 0) for insn 23 libbpf: sec '.relraw_tracepoint/sys_enter': relo #5: insn #25 against 'data' libbpf: prog 'test_core_primitives': found data map 0 (test_cor.bss, sec 5, off 0) for insn 25 libbpf: sec '.relraw_tracepoint/sys_enter': relo #6: insn #28 against 'data' libbpf: prog 'test_core_primitives': found data map 0 (test_cor.bss, sec 5, off 0) for insn 28 libbpf: sec '.relraw_tracepoint/sys_enter': relo #7: insn #35 against 'data' libbpf: prog 'test_core_primitives': found data map 0 (test_cor.bss, sec 5, off 0) for insn 35 libbpf: sec '.relraw_tracepoint/sys_enter': relo #8: insn #44 against 'data' libbpf: prog 'test_core_primitives': found data map 0 (test_cor.bss, sec 5, off 0) for insn 44 libbpf: sec '.relraw_tracepoint/sys_enter': relo #9: insn #46 against 'data' libbpf: prog 'test_core_primitives': found data map 0 (test_cor.bss, sec 5, off 0) for insn 46 test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: map 'test_cor.bss': created successfully, fd=5 libbpf: sec 'raw_tracepoint/sys_enter': found 5 CO-RE relocations libbpf: CO-RE relocating [5] struct core_reloc_primitives: found target candidate [4] struct core_reloc_primitives___err_non_int in [vmlinux] libbpf: prog 'test_core_primitives': relo #0: kind (0), spec is [5] struct core_reloc_primitives.a (0:0 @ offset 0) libbpf: prog 'test_core_primitives': relo #0: non-matching candidate #0 [4] struct core_reloc_primitives___err_non_int (0:0 @ offset 0) libbpf: prog 'test_core_primitives': relo #0: no matching targets found libbpf: prog 'test_core_primitives': relo #0: substituting insn #0 w/ invalid insn libbpf: prog 'test_core_primitives': relo #1: kind (0), spec is [5] struct core_reloc_primitives.b (0:1 @ offset 4) libbpf: prog 'test_core_primitives': relo #1: non-matching candidate #0 [4] struct core_reloc_primitives___err_non_int (0:1 @ offset 8) libbpf: prog 'test_core_primitives': relo #1: no matching targets found libbpf: prog 'test_core_primitives': relo #1: substituting insn #13 w/ invalid insn libbpf: prog 'test_core_primitives': relo #2: kind (0), spec is [5] struct core_reloc_primitives.c (0:2 @ offset 8) libbpf: prog 'test_core_primitives': relo #2: matching candidate #0 [4] struct core_reloc_primitives___err_non_int.c (0:2 @ offset 16) libbpf: prog 'test_core_primitives': relo #2: patched insn #22 (ALU/ALU64) imm 8 -> 16 libbpf: prog 'test_core_primitives': relo #3: kind (0), spec is [5] struct core_reloc_primitives.d (0:3 @ offset 16) libbpf: prog 'test_core_primitives': relo #3: matching candidate #0 [4] struct core_reloc_primitives___err_non_int.d (0:3 @ offset 24) libbpf: prog 'test_core_primitives': relo #3: patched insn #34 (ALU/ALU64) imm 16 -> 24 libbpf: prog 'test_core_primitives': relo #4: kind (0), spec is [5] struct core_reloc_primitives.f (0:4 @ offset 24) libbpf: prog 'test_core_primitives': relo #4: matching candidate #0 [4] struct core_reloc_primitives___err_non_int.f (0:4 @ offset 32) libbpf: prog 'test_core_primitives': relo #4: patched insn #43 (ALU/ALU64) imm 24 -> 32 libbpf: prog 'test_core_primitives': BPF program load failed: Invalid argument libbpf: prog 'test_core_primitives': -- BEGIN PROG LOAD LOG -- arg#0 reference type('UNKNOWN ') size cannot be determined: -22 0: R1=ctx(id=0,off=0,imm=0) R10=fp0 ; int test_core_primitives(void *ctx) 0: (85) call unknown#195896080 invalid func unknown#195896080 processed 1 insns (limit 1000000) max_states_per_insn 0 total_states 0 peak_states 0 mark_read 0 -- END PROG LOAD LOG -- libbpf: failed to load program 'test_core_primitives' libbpf: failed to load object 'test_core_reloc_primitives.o' #38/34 core_reloc/primitives___err_non_int:OK test_core_reloc:PASS:btf_src_file 0 nsec libbpf: loading test_core_reloc_primitives.o libbpf: elf: section(2) raw_tracepoint/sys_enter, size 448, link 0, flags 6, type=1 libbpf: sec 'raw_tracepoint/sys_enter': found program 'test_core_primitives' at insn offset 0 (0 bytes), code size 56 insns (448 bytes) libbpf: elf: section(3) .relraw_tracepoint/sys_enter, size 160, link 11, flags 40, type=9 libbpf: elf: section(4) license, size 4, link 0, flags 3, type=1 libbpf: license of test_core_reloc_primitives.o is GPL libbpf: elf: section(5) .bss, size 512, link 0, flags 3, type=8 libbpf: elf: section(6) .BTF, size 1016, link 0, flags 0, type=1 libbpf: elf: section(8) .BTF.ext, size 348, link 0, flags 0, type=1 libbpf: elf: section(11) .symtab, size 288, link 12, flags 0, type=2 libbpf: looking for externs among 12 symbols... libbpf: collected 0 externs total libbpf: map 'test_cor.bss' (global data): at sec_idx 5, offset 0, flags 400. libbpf: map 0 is "test_cor.bss" libbpf: sec '.relraw_tracepoint/sys_enter': collecting relocation for section(2) 'raw_tracepoint/sys_enter' libbpf: sec '.relraw_tracepoint/sys_enter': relo #0: insn #1 against 'data' libbpf: prog 'test_core_primitives': found data map 0 (test_cor.bss, sec 5, off 0) for insn 1 libbpf: sec '.relraw_tracepoint/sys_enter': relo #1: insn #3 against 'data' libbpf: prog 'test_core_primitives': found data map 0 (test_cor.bss, sec 5, off 0) for insn 3 libbpf: sec '.relraw_tracepoint/sys_enter': relo #2: insn #6 against 'data' libbpf: prog 'test_core_primitives': found data map 0 (test_cor.bss, sec 5, off 0) for insn 6 libbpf: sec '.relraw_tracepoint/sys_enter': relo #3: insn #14 against 'data' libbpf: prog 'test_core_primitives': found data map 0 (test_cor.bss, sec 5, off 0) for insn 14 libbpf: sec '.relraw_tracepoint/sys_enter': relo #4: insn #23 against 'data' libbpf: prog 'test_core_primitives': found data map 0 (test_cor.bss, sec 5, off 0) for insn 23 libbpf: sec '.relraw_tracepoint/sys_enter': relo #5: insn #25 against 'data' libbpf: prog 'test_core_primitives': found data map 0 (test_cor.bss, sec 5, off 0) for insn 25 libbpf: sec '.relraw_tracepoint/sys_enter': relo #6: insn #28 against 'data' libbpf: prog 'test_core_primitives': found data map 0 (test_cor.bss, sec 5, off 0) for insn 28 libbpf: sec '.relraw_tracepoint/sys_enter': relo #7: insn #35 against 'data' libbpf: prog 'test_core_primitives': found data map 0 (test_cor.bss, sec 5, off 0) for insn 35 libbpf: sec '.relraw_tracepoint/sys_enter': relo #8: insn #44 against 'data' libbpf: prog 'test_core_primitives': found data map 0 (test_cor.bss, sec 5, off 0) for insn 44 libbpf: sec '.relraw_tracepoint/sys_enter': relo #9: insn #46 against 'data' libbpf: prog 'test_core_primitives': found data map 0 (test_cor.bss, sec 5, off 0) for insn 46 test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: map 'test_cor.bss': created successfully, fd=5 libbpf: sec 'raw_tracepoint/sys_enter': found 5 CO-RE relocations libbpf: CO-RE relocating [5] struct core_reloc_primitives: found target candidate [4] struct core_reloc_primitives___err_non_ptr in [vmlinux] libbpf: prog 'test_core_primitives': relo #0: kind (0), spec is [5] struct core_reloc_primitives.a (0:0 @ offset 0) libbpf: prog 'test_core_primitives': relo #0: non-matching candidate #0 [4] struct core_reloc_primitives___err_non_ptr (0:0 @ offset 0) libbpf: prog 'test_core_primitives': relo #0: no matching targets found libbpf: prog 'test_core_primitives': relo #0: substituting insn #0 w/ invalid insn libbpf: prog 'test_core_primitives': relo #1: kind (0), spec is [5] struct core_reloc_primitives.b (0:1 @ offset 4) libbpf: prog 'test_core_primitives': relo #1: matching candidate #0 [4] struct core_reloc_primitives___err_non_ptr.b (0:1 @ offset 4) libbpf: prog 'test_core_primitives': relo #1: patched insn #13 (ALU/ALU64) imm 4 -> 4 libbpf: prog 'test_core_primitives': relo #2: kind (0), spec is [5] struct core_reloc_primitives.c (0:2 @ offset 8) libbpf: prog 'test_core_primitives': relo #2: matching candidate #0 [4] struct core_reloc_primitives___err_non_ptr.c (0:2 @ offset 8) libbpf: prog 'test_core_primitives': relo #2: patched insn #22 (ALU/ALU64) imm 8 -> 8 libbpf: prog 'test_core_primitives': relo #3: kind (0), spec is [5] struct core_reloc_primitives.d (0:3 @ offset 16) libbpf: prog 'test_core_primitives': relo #3: non-matching candidate #0 [4] struct core_reloc_primitives___err_non_ptr (0:3 @ offset 12) libbpf: prog 'test_core_primitives': relo #3: no matching targets found libbpf: prog 'test_core_primitives': relo #3: substituting insn #34 w/ invalid insn libbpf: prog 'test_core_primitives': relo #4: kind (0), spec is [5] struct core_reloc_primitives.f (0:4 @ offset 24) libbpf: prog 'test_core_primitives': relo #4: matching candidate #0 [4] struct core_reloc_primitives___err_non_ptr.f (0:4 @ offset 16) libbpf: prog 'test_core_primitives': relo #4: patched insn #43 (ALU/ALU64) imm 24 -> 16 libbpf: prog 'test_core_primitives': BPF program load failed: Invalid argument libbpf: prog 'test_core_primitives': -- BEGIN PROG LOAD LOG -- arg#0 reference type('UNKNOWN ') size cannot be determined: -22 0: R1=ctx(id=0,off=0,imm=0) R10=fp0 ; int test_core_primitives(void *ctx) 0: (85) call unknown#195896080 invalid func unknown#195896080 processed 1 insns (limit 1000000) max_states_per_insn 0 total_states 0 peak_states 0 mark_read 0 -- END PROG LOAD LOG -- libbpf: failed to load program 'test_core_primitives' libbpf: failed to load object 'test_core_reloc_primitives.o' #38/35 core_reloc/primitives___err_non_ptr:OK test_core_reloc:PASS:btf_src_file 0 nsec libbpf: loading test_core_reloc_mods.o libbpf: elf: section(2) raw_tracepoint/sys_enter, size 704, link 0, flags 6, type=1 libbpf: sec 'raw_tracepoint/sys_enter': found program 'test_core_mods' at insn offset 0 (0 bytes), code size 88 insns (704 bytes) libbpf: elf: section(3) .relraw_tracepoint/sys_enter, size 256, link 11, flags 40, type=9 libbpf: elf: section(4) license, size 4, link 0, flags 3, type=1 libbpf: license of test_core_reloc_mods.o is GPL libbpf: elf: section(5) .bss, size 512, link 0, flags 3, type=8 libbpf: elf: section(6) .BTF, size 1351, link 0, flags 0, type=1 libbpf: elf: section(8) .BTF.ext, size 492, link 0, flags 0, type=1 libbpf: elf: section(11) .symtab, size 288, link 12, flags 0, type=2 libbpf: looking for externs among 12 symbols... libbpf: collected 0 externs total libbpf: map 'test_cor.bss' (global data): at sec_idx 5, offset 0, flags 400. libbpf: map 0 is "test_cor.bss" libbpf: sec '.relraw_tracepoint/sys_enter': collecting relocation for section(2) 'raw_tracepoint/sys_enter' libbpf: sec '.relraw_tracepoint/sys_enter': relo #0: insn #1 against 'data' libbpf: prog 'test_core_mods': found data map 0 (test_cor.bss, sec 5, off 0) for insn 1 libbpf: sec '.relraw_tracepoint/sys_enter': relo #1: insn #3 against 'data' libbpf: prog 'test_core_mods': found data map 0 (test_cor.bss, sec 5, off 0) for insn 3 libbpf: sec '.relraw_tracepoint/sys_enter': relo #2: insn #6 against 'data' libbpf: prog 'test_core_mods': found data map 0 (test_cor.bss, sec 5, off 0) for insn 6 libbpf: sec '.relraw_tracepoint/sys_enter': relo #3: insn #14 against 'data' libbpf: prog 'test_core_mods': found data map 0 (test_cor.bss, sec 5, off 0) for insn 14 libbpf: sec '.relraw_tracepoint/sys_enter': relo #4: insn #23 against 'data' libbpf: prog 'test_core_mods': found data map 0 (test_cor.bss, sec 5, off 0) for insn 23 libbpf: sec '.relraw_tracepoint/sys_enter': relo #5: insn #25 against 'data' libbpf: prog 'test_core_mods': found data map 0 (test_cor.bss, sec 5, off 0) for insn 25 libbpf: sec '.relraw_tracepoint/sys_enter': relo #6: insn #28 against 'data' libbpf: prog 'test_core_mods': found data map 0 (test_cor.bss, sec 5, off 0) for insn 28 libbpf: sec '.relraw_tracepoint/sys_enter': relo #7: insn #35 against 'data' libbpf: prog 'test_core_mods': found data map 0 (test_cor.bss, sec 5, off 0) for insn 35 libbpf: sec '.relraw_tracepoint/sys_enter': relo #8: insn #44 against 'data' libbpf: prog 'test_core_mods': found data map 0 (test_cor.bss, sec 5, off 0) for insn 44 libbpf: sec '.relraw_tracepoint/sys_enter': relo #9: insn #46 against 'data' libbpf: prog 'test_core_mods': found data map 0 (test_cor.bss, sec 5, off 0) for insn 46 libbpf: sec '.relraw_tracepoint/sys_enter': relo #10: insn #49 against 'data' libbpf: prog 'test_core_mods': found data map 0 (test_cor.bss, sec 5, off 0) for insn 49 libbpf: sec '.relraw_tracepoint/sys_enter': relo #11: insn #56 against 'data' libbpf: prog 'test_core_mods': found data map 0 (test_cor.bss, sec 5, off 0) for insn 56 libbpf: sec '.relraw_tracepoint/sys_enter': relo #12: insn #65 against 'data' libbpf: prog 'test_core_mods': found data map 0 (test_cor.bss, sec 5, off 0) for insn 65 libbpf: sec '.relraw_tracepoint/sys_enter': relo #13: insn #67 against 'data' libbpf: prog 'test_core_mods': found data map 0 (test_cor.bss, sec 5, off 0) for insn 67 libbpf: sec '.relraw_tracepoint/sys_enter': relo #14: insn #70 against 'data' libbpf: prog 'test_core_mods': found data map 0 (test_cor.bss, sec 5, off 0) for insn 70 libbpf: sec '.relraw_tracepoint/sys_enter': relo #15: insn #77 against 'data' libbpf: prog 'test_core_mods': found data map 0 (test_cor.bss, sec 5, off 0) for insn 77 test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: map 'test_cor.bss': created successfully, fd=5 libbpf: sec 'raw_tracepoint/sys_enter': found 8 CO-RE relocations libbpf: CO-RE relocating [5] struct core_reloc_mods: found target candidate [4] struct core_reloc_mods in [vmlinux] libbpf: prog 'test_core_mods': relo #0: kind (0), spec is [5] struct core_reloc_mods.a (0:0 @ offset 0) libbpf: prog 'test_core_mods': relo #0: matching candidate #0 [4] struct core_reloc_mods.a (0:0 @ offset 0) libbpf: prog 'test_core_mods': relo #0: patched insn #0 (ALU/ALU64) imm 0 -> 0 libbpf: prog 'test_core_mods': relo #1: kind (0), spec is [5] struct core_reloc_mods.b (0:1 @ offset 4) libbpf: prog 'test_core_mods': relo #1: matching candidate #0 [4] struct core_reloc_mods.b (0:1 @ offset 4) libbpf: prog 'test_core_mods': relo #1: patched insn #13 (ALU/ALU64) imm 4 -> 4 libbpf: prog 'test_core_mods': relo #2: kind (0), spec is [5] struct core_reloc_mods.c (0:2 @ offset 8) libbpf: prog 'test_core_mods': relo #2: matching candidate #0 [4] struct core_reloc_mods.c (0:2 @ offset 8) libbpf: prog 'test_core_mods': relo #2: patched insn #22 (ALU/ALU64) imm 8 -> 8 libbpf: prog 'test_core_mods': relo #3: kind (0), spec is [5] struct core_reloc_mods.d (0:3 @ offset 16) libbpf: prog 'test_core_mods': relo #3: matching candidate #0 [4] struct core_reloc_mods.d (0:3 @ offset 16) libbpf: prog 'test_core_mods': relo #3: patched insn #34 (ALU/ALU64) imm 16 -> 16 libbpf: prog 'test_core_mods': relo #4: kind (0), spec is [5] struct core_reloc_mods.e[2] (0:4:2 @ offset 32) libbpf: prog 'test_core_mods': relo #4: matching candidate #0 [4] struct core_reloc_mods.e[2] (0:4:2 @ offset 32) libbpf: prog 'test_core_mods': relo #4: patched insn #43 (ALU/ALU64) imm 32 -> 32 libbpf: prog 'test_core_mods': relo #5: kind (0), spec is [5] struct core_reloc_mods.f[1] (0:5:1 @ offset 40) libbpf: prog 'test_core_mods': relo #5: matching candidate #0 [4] struct core_reloc_mods.f[1] (0:5:1 @ offset 40) libbpf: prog 'test_core_mods': relo #5: patched insn #55 (ALU/ALU64) imm 40 -> 40 libbpf: prog 'test_core_mods': relo #6: kind (0), spec is [5] struct core_reloc_mods.g.x (0:6:0 @ offset 64) libbpf: prog 'test_core_mods': relo #6: matching candidate #0 [4] struct core_reloc_mods.g.x (0:6:0 @ offset 64) libbpf: prog 'test_core_mods': relo #6: patched insn #64 (ALU/ALU64) imm 64 -> 64 libbpf: prog 'test_core_mods': relo #7: kind (0), spec is [5] struct core_reloc_mods.h.y (0:7:1 @ offset 76) libbpf: prog 'test_core_mods': relo #7: matching candidate #0 [4] struct core_reloc_mods.h.y (0:7:1 @ offset 76) libbpf: prog 'test_core_mods': relo #7: patched insn #76 (ALU/ALU64) imm 76 -> 76 test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/36 core_reloc/mods:OK test_core_reloc:PASS:btf_src_file 0 nsec libbpf: loading test_core_reloc_mods.o libbpf: elf: section(2) raw_tracepoint/sys_enter, size 704, link 0, flags 6, type=1 libbpf: sec 'raw_tracepoint/sys_enter': found program 'test_core_mods' at insn offset 0 (0 bytes), code size 88 insns (704 bytes) libbpf: elf: section(3) .relraw_tracepoint/sys_enter, size 256, link 11, flags 40, type=9 libbpf: elf: section(4) license, size 4, link 0, flags 3, type=1 libbpf: license of test_core_reloc_mods.o is GPL libbpf: elf: section(5) .bss, size 512, link 0, flags 3, type=8 libbpf: elf: section(6) .BTF, size 1351, link 0, flags 0, type=1 libbpf: elf: section(8) .BTF.ext, size 492, link 0, flags 0, type=1 libbpf: elf: section(11) .symtab, size 288, link 12, flags 0, type=2 libbpf: looking for externs among 12 symbols... libbpf: collected 0 externs total libbpf: map 'test_cor.bss' (global data): at sec_idx 5, offset 0, flags 400. libbpf: map 0 is "test_cor.bss" libbpf: sec '.relraw_tracepoint/sys_enter': collecting relocation for section(2) 'raw_tracepoint/sys_enter' libbpf: sec '.relraw_tracepoint/sys_enter': relo #0: insn #1 against 'data' libbpf: prog 'test_core_mods': found data map 0 (test_cor.bss, sec 5, off 0) for insn 1 libbpf: sec '.relraw_tracepoint/sys_enter': relo #1: insn #3 against 'data' libbpf: prog 'test_core_mods': found data map 0 (test_cor.bss, sec 5, off 0) for insn 3 libbpf: sec '.relraw_tracepoint/sys_enter': relo #2: insn #6 against 'data' libbpf: prog 'test_core_mods': found data map 0 (test_cor.bss, sec 5, off 0) for insn 6 libbpf: sec '.relraw_tracepoint/sys_enter': relo #3: insn #14 against 'data' libbpf: prog 'test_core_mods': found data map 0 (test_cor.bss, sec 5, off 0) for insn 14 libbpf: sec '.relraw_tracepoint/sys_enter': relo #4: insn #23 against 'data' libbpf: prog 'test_core_mods': found data map 0 (test_cor.bss, sec 5, off 0) for insn 23 libbpf: sec '.relraw_tracepoint/sys_enter': relo #5: insn #25 against 'data' libbpf: prog 'test_core_mods': found data map 0 (test_cor.bss, sec 5, off 0) for insn 25 libbpf: sec '.relraw_tracepoint/sys_enter': relo #6: insn #28 against 'data' libbpf: prog 'test_core_mods': found data map 0 (test_cor.bss, sec 5, off 0) for insn 28 libbpf: sec '.relraw_tracepoint/sys_enter': relo #7: insn #35 against 'data' libbpf: prog 'test_core_mods': found data map 0 (test_cor.bss, sec 5, off 0) for insn 35 libbpf: sec '.relraw_tracepoint/sys_enter': relo #8: insn #44 against 'data' libbpf: prog 'test_core_mods': found data map 0 (test_cor.bss, sec 5, off 0) for insn 44 libbpf: sec '.relraw_tracepoint/sys_enter': relo #9: insn #46 against 'data' libbpf: prog 'test_core_mods': found data map 0 (test_cor.bss, sec 5, off 0) for insn 46 libbpf: sec '.relraw_tracepoint/sys_enter': relo #10: insn #49 against 'data' libbpf: prog 'test_core_mods': found data map 0 (test_cor.bss, sec 5, off 0) for insn 49 libbpf: sec '.relraw_tracepoint/sys_enter': relo #11: insn #56 against 'data' libbpf: prog 'test_core_mods': found data map 0 (test_cor.bss, sec 5, off 0) for insn 56 libbpf: sec '.relraw_tracepoint/sys_enter': relo #12: insn #65 against 'data' libbpf: prog 'test_core_mods': found data map 0 (test_cor.bss, sec 5, off 0) for insn 65 libbpf: sec '.relraw_tracepoint/sys_enter': relo #13: insn #67 against 'data' libbpf: prog 'test_core_mods': found data map 0 (test_cor.bss, sec 5, off 0) for insn 67 libbpf: sec '.relraw_tracepoint/sys_enter': relo #14: insn #70 against 'data' libbpf: prog 'test_core_mods': found data map 0 (test_cor.bss, sec 5, off 0) for insn 70 libbpf: sec '.relraw_tracepoint/sys_enter': relo #15: insn #77 against 'data' libbpf: prog 'test_core_mods': found data map 0 (test_cor.bss, sec 5, off 0) for insn 77 test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: map 'test_cor.bss': created successfully, fd=5 libbpf: sec 'raw_tracepoint/sys_enter': found 8 CO-RE relocations libbpf: CO-RE relocating [5] struct core_reloc_mods: found target candidate [4] struct core_reloc_mods___mod_swap in [vmlinux] libbpf: prog 'test_core_mods': relo #0: kind (0), spec is [5] struct core_reloc_mods.a (0:0 @ offset 0) libbpf: prog 'test_core_mods': relo #0: matching candidate #0 [4] struct core_reloc_mods___mod_swap.a (0:1 @ offset 4) libbpf: prog 'test_core_mods': relo #0: patched insn #0 (ALU/ALU64) imm 0 -> 4 libbpf: prog 'test_core_mods': relo #1: kind (0), spec is [5] struct core_reloc_mods.b (0:1 @ offset 4) libbpf: prog 'test_core_mods': relo #1: matching candidate #0 [4] struct core_reloc_mods___mod_swap.b (0:0 @ offset 0) libbpf: prog 'test_core_mods': relo #1: patched insn #13 (ALU/ALU64) imm 4 -> 0 libbpf: prog 'test_core_mods': relo #2: kind (0), spec is [5] struct core_reloc_mods.c (0:2 @ offset 8) libbpf: prog 'test_core_mods': relo #2: matching candidate #0 [4] struct core_reloc_mods___mod_swap.c (0:3 @ offset 16) libbpf: prog 'test_core_mods': relo #2: patched insn #22 (ALU/ALU64) imm 8 -> 16 libbpf: prog 'test_core_mods': relo #3: kind (0), spec is [5] struct core_reloc_mods.d (0:3 @ offset 16) libbpf: prog 'test_core_mods': relo #3: matching candidate #0 [4] struct core_reloc_mods___mod_swap.d (0:2 @ offset 8) libbpf: prog 'test_core_mods': relo #3: patched insn #34 (ALU/ALU64) imm 16 -> 8 libbpf: prog 'test_core_mods': relo #4: kind (0), spec is [5] struct core_reloc_mods.e[2] (0:4:2 @ offset 32) libbpf: prog 'test_core_mods': relo #4: matching candidate #0 [4] struct core_reloc_mods___mod_swap.e[2] (0:5:2 @ offset 44) libbpf: prog 'test_core_mods': relo #4: patched insn #43 (ALU/ALU64) imm 32 -> 44 libbpf: prog 'test_core_mods': relo #5: kind (0), spec is [5] struct core_reloc_mods.f[1] (0:5:1 @ offset 40) libbpf: prog 'test_core_mods': relo #5: matching candidate #0 [4] struct core_reloc_mods___mod_swap.f[1] (0:4:1 @ offset 28) libbpf: prog 'test_core_mods': relo #5: patched insn #55 (ALU/ALU64) imm 40 -> 28 libbpf: prog 'test_core_mods': relo #6: kind (0), spec is [5] struct core_reloc_mods.g.x (0:6:0 @ offset 64) libbpf: prog 'test_core_mods': relo #6: matching candidate #0 [4] struct core_reloc_mods___mod_swap.g.x (0:7:0 @ offset 72) libbpf: prog 'test_core_mods': relo #6: patched insn #64 (ALU/ALU64) imm 64 -> 72 libbpf: prog 'test_core_mods': relo #7: kind (0), spec is [5] struct core_reloc_mods.h.y (0:7:1 @ offset 76) libbpf: prog 'test_core_mods': relo #7: matching candidate #0 [4] struct core_reloc_mods___mod_swap.h.y (0:6:0 @ offset 64) libbpf: prog 'test_core_mods': relo #7: patched insn #76 (ALU/ALU64) imm 76 -> 64 test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/37 core_reloc/mods___mod_swap:OK test_core_reloc:PASS:btf_src_file 0 nsec libbpf: loading test_core_reloc_mods.o libbpf: elf: section(2) raw_tracepoint/sys_enter, size 704, link 0, flags 6, type=1 libbpf: sec 'raw_tracepoint/sys_enter': found program 'test_core_mods' at insn offset 0 (0 bytes), code size 88 insns (704 bytes) libbpf: elf: section(3) .relraw_tracepoint/sys_enter, size 256, link 11, flags 40, type=9 libbpf: elf: section(4) license, size 4, link 0, flags 3, type=1 libbpf: license of test_core_reloc_mods.o is GPL libbpf: elf: section(5) .bss, size 512, link 0, flags 3, type=8 libbpf: elf: section(6) .BTF, size 1351, link 0, flags 0, type=1 libbpf: elf: section(8) .BTF.ext, size 492, link 0, flags 0, type=1 libbpf: elf: section(11) .symtab, size 288, link 12, flags 0, type=2 libbpf: looking for externs among 12 symbols... libbpf: collected 0 externs total libbpf: map 'test_cor.bss' (global data): at sec_idx 5, offset 0, flags 400. libbpf: map 0 is "test_cor.bss" libbpf: sec '.relraw_tracepoint/sys_enter': collecting relocation for section(2) 'raw_tracepoint/sys_enter' libbpf: sec '.relraw_tracepoint/sys_enter': relo #0: insn #1 against 'data' libbpf: prog 'test_core_mods': found data map 0 (test_cor.bss, sec 5, off 0) for insn 1 libbpf: sec '.relraw_tracepoint/sys_enter': relo #1: insn #3 against 'data' libbpf: prog 'test_core_mods': found data map 0 (test_cor.bss, sec 5, off 0) for insn 3 libbpf: sec '.relraw_tracepoint/sys_enter': relo #2: insn #6 against 'data' libbpf: prog 'test_core_mods': found data map 0 (test_cor.bss, sec 5, off 0) for insn 6 libbpf: sec '.relraw_tracepoint/sys_enter': relo #3: insn #14 against 'data' libbpf: prog 'test_core_mods': found data map 0 (test_cor.bss, sec 5, off 0) for insn 14 libbpf: sec '.relraw_tracepoint/sys_enter': relo #4: insn #23 against 'data' libbpf: prog 'test_core_mods': found data map 0 (test_cor.bss, sec 5, off 0) for insn 23 libbpf: sec '.relraw_tracepoint/sys_enter': relo #5: insn #25 against 'data' libbpf: prog 'test_core_mods': found data map 0 (test_cor.bss, sec 5, off 0) for insn 25 libbpf: sec '.relraw_tracepoint/sys_enter': relo #6: insn #28 against 'data' libbpf: prog 'test_core_mods': found data map 0 (test_cor.bss, sec 5, off 0) for insn 28 libbpf: sec '.relraw_tracepoint/sys_enter': relo #7: insn #35 against 'data' libbpf: prog 'test_core_mods': found data map 0 (test_cor.bss, sec 5, off 0) for insn 35 libbpf: sec '.relraw_tracepoint/sys_enter': relo #8: insn #44 against 'data' libbpf: prog 'test_core_mods': found data map 0 (test_cor.bss, sec 5, off 0) for insn 44 libbpf: sec '.relraw_tracepoint/sys_enter': relo #9: insn #46 against 'data' libbpf: prog 'test_core_mods': found data map 0 (test_cor.bss, sec 5, off 0) for insn 46 libbpf: sec '.relraw_tracepoint/sys_enter': relo #10: insn #49 against 'data' libbpf: prog 'test_core_mods': found data map 0 (test_cor.bss, sec 5, off 0) for insn 49 libbpf: sec '.relraw_tracepoint/sys_enter': relo #11: insn #56 against 'data' libbpf: prog 'test_core_mods': found data map 0 (test_cor.bss, sec 5, off 0) for insn 56 libbpf: sec '.relraw_tracepoint/sys_enter': relo #12: insn #65 against 'data' libbpf: prog 'test_core_mods': found data map 0 (test_cor.bss, sec 5, off 0) for insn 65 libbpf: sec '.relraw_tracepoint/sys_enter': relo #13: insn #67 against 'data' libbpf: prog 'test_core_mods': found data map 0 (test_cor.bss, sec 5, off 0) for insn 67 libbpf: sec '.relraw_tracepoint/sys_enter': relo #14: insn #70 against 'data' libbpf: prog 'test_core_mods': found data map 0 (test_cor.bss, sec 5, off 0) for insn 70 libbpf: sec '.relraw_tracepoint/sys_enter': relo #15: insn #77 against 'data' libbpf: prog 'test_core_mods': found data map 0 (test_cor.bss, sec 5, off 0) for insn 77 test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: map 'test_cor.bss': created successfully, fd=5 libbpf: sec 'raw_tracepoint/sys_enter': found 8 CO-RE relocations libbpf: CO-RE relocating [5] struct core_reloc_mods: found target candidate [4] struct core_reloc_mods___typedefs in [vmlinux] libbpf: prog 'test_core_mods': relo #0: kind (0), spec is [5] struct core_reloc_mods.a (0:0 @ offset 0) libbpf: prog 'test_core_mods': relo #0: matching candidate #0 [4] struct core_reloc_mods___typedefs.a (0:7 @ offset 76) libbpf: prog 'test_core_mods': relo #0: patched insn #0 (ALU/ALU64) imm 0 -> 76 libbpf: prog 'test_core_mods': relo #1: kind (0), spec is [5] struct core_reloc_mods.b (0:1 @ offset 4) libbpf: prog 'test_core_mods': relo #1: matching candidate #0 [4] struct core_reloc_mods___typedefs.b (0:6 @ offset 72) libbpf: prog 'test_core_mods': relo #1: patched insn #13 (ALU/ALU64) imm 4 -> 72 libbpf: prog 'test_core_mods': relo #2: kind (0), spec is [5] struct core_reloc_mods.c (0:2 @ offset 8) libbpf: prog 'test_core_mods': relo #2: matching candidate #0 [4] struct core_reloc_mods___typedefs.c (0:5 @ offset 64) libbpf: prog 'test_core_mods': relo #2: patched insn #22 (ALU/ALU64) imm 8 -> 64 libbpf: prog 'test_core_mods': relo #3: kind (0), spec is [5] struct core_reloc_mods.d (0:3 @ offset 16) libbpf: prog 'test_core_mods': relo #3: matching candidate #0 [4] struct core_reloc_mods___typedefs.d (0:4 @ offset 56) libbpf: prog 'test_core_mods': relo #3: patched insn #34 (ALU/ALU64) imm 16 -> 56 libbpf: prog 'test_core_mods': relo #4: kind (0), spec is [5] struct core_reloc_mods.e[2] (0:4:2 @ offset 32) libbpf: prog 'test_core_mods': relo #4: matching candidate #0 [4] struct core_reloc_mods___typedefs.e[2] (0:3:2 @ offset 44) libbpf: prog 'test_core_mods': relo #4: patched insn #43 (ALU/ALU64) imm 32 -> 44 libbpf: prog 'test_core_mods': relo #5: kind (0), spec is [5] struct core_reloc_mods.f[1] (0:5:1 @ offset 40) libbpf: prog 'test_core_mods': relo #5: matching candidate #0 [4] struct core_reloc_mods___typedefs.f[1] (0:2:1 @ offset 20) libbpf: prog 'test_core_mods': relo #5: patched insn #55 (ALU/ALU64) imm 40 -> 20 libbpf: prog 'test_core_mods': relo #6: kind (0), spec is [5] struct core_reloc_mods.g.x (0:6:0 @ offset 64) libbpf: prog 'test_core_mods': relo #6: matching candidate #0 [4] struct core_reloc_mods___typedefs.g.x (0:0:0 @ offset 0) libbpf: prog 'test_core_mods': relo #6: patched insn #64 (ALU/ALU64) imm 64 -> 0 libbpf: prog 'test_core_mods': relo #7: kind (0), spec is [5] struct core_reloc_mods.h.y (0:7:1 @ offset 76) libbpf: prog 'test_core_mods': relo #7: matching candidate #0 [4] struct core_reloc_mods___typedefs.h.y (0:1:1 @ offset 12) libbpf: prog 'test_core_mods': relo #7: patched insn #76 (ALU/ALU64) imm 76 -> 12 test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/38 core_reloc/mods___typedefs:OK test_core_reloc:PASS:btf_src_file 0 nsec libbpf: loading test_core_reloc_ptr_as_arr.o libbpf: elf: section(2) raw_tracepoint/sys_enter, size 112, link 0, flags 6, type=1 libbpf: sec 'raw_tracepoint/sys_enter': found program 'test_core_ptr_as_arr' at insn offset 0 (0 bytes), code size 14 insns (112 bytes) libbpf: elf: section(3) .relraw_tracepoint/sys_enter, size 32, link 11, flags 40, type=9 libbpf: elf: section(4) license, size 4, link 0, flags 3, type=1 libbpf: license of test_core_reloc_ptr_as_arr.o is GPL libbpf: elf: section(5) .bss, size 512, link 0, flags 3, type=8 libbpf: elf: section(6) .BTF, size 691, link 0, flags 0, type=1 libbpf: elf: section(8) .BTF.ext, size 140, link 0, flags 0, type=1 libbpf: elf: section(11) .symtab, size 288, link 12, flags 0, type=2 libbpf: looking for externs among 12 symbols... libbpf: collected 0 externs total libbpf: map 'test_cor.bss' (global data): at sec_idx 5, offset 0, flags 400. libbpf: map 0 is "test_cor.bss" libbpf: sec '.relraw_tracepoint/sys_enter': collecting relocation for section(2) 'raw_tracepoint/sys_enter' libbpf: sec '.relraw_tracepoint/sys_enter': relo #0: insn #1 against 'data' libbpf: prog 'test_core_ptr_as_arr': found data map 0 (test_cor.bss, sec 5, off 0) for insn 1 libbpf: sec '.relraw_tracepoint/sys_enter': relo #1: insn #3 against 'data' libbpf: prog 'test_core_ptr_as_arr': found data map 0 (test_cor.bss, sec 5, off 0) for insn 3 test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: map 'test_cor.bss': created successfully, fd=5 libbpf: sec 'raw_tracepoint/sys_enter': found 1 CO-RE relocations libbpf: CO-RE relocating [5] struct core_reloc_ptr_as_arr: found target candidate [4] struct core_reloc_ptr_as_arr in [vmlinux] libbpf: prog 'test_core_ptr_as_arr': relo #0: kind (0), spec is [5] struct core_reloc_ptr_as_arr[2].a (2:0 @ offset 8) libbpf: prog 'test_core_ptr_as_arr': relo #0: matching candidate #0 [4] struct core_reloc_ptr_as_arr[2].a (2:0 @ offset 8) libbpf: prog 'test_core_ptr_as_arr': relo #0: patched insn #0 (ALU/ALU64) imm 8 -> 8 test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/39 core_reloc/ptr_as_arr:OK test_core_reloc:PASS:btf_src_file 0 nsec libbpf: loading test_core_reloc_ptr_as_arr.o libbpf: elf: section(2) raw_tracepoint/sys_enter, size 112, link 0, flags 6, type=1 libbpf: sec 'raw_tracepoint/sys_enter': found program 'test_core_ptr_as_arr' at insn offset 0 (0 bytes), code size 14 insns (112 bytes) libbpf: elf: section(3) .relraw_tracepoint/sys_enter, size 32, link 11, flags 40, type=9 libbpf: elf: section(4) license, size 4, link 0, flags 3, type=1 libbpf: license of test_core_reloc_ptr_as_arr.o is GPL libbpf: elf: section(5) .bss, size 512, link 0, flags 3, type=8 libbpf: elf: section(6) .BTF, size 691, link 0, flags 0, type=1 libbpf: elf: section(8) .BTF.ext, size 140, link 0, flags 0, type=1 libbpf: elf: section(11) .symtab, size 288, link 12, flags 0, type=2 libbpf: looking for externs among 12 symbols... libbpf: collected 0 externs total libbpf: map 'test_cor.bss' (global data): at sec_idx 5, offset 0, flags 400. libbpf: map 0 is "test_cor.bss" libbpf: sec '.relraw_tracepoint/sys_enter': collecting relocation for section(2) 'raw_tracepoint/sys_enter' libbpf: sec '.relraw_tracepoint/sys_enter': relo #0: insn #1 against 'data' libbpf: prog 'test_core_ptr_as_arr': found data map 0 (test_cor.bss, sec 5, off 0) for insn 1 libbpf: sec '.relraw_tracepoint/sys_enter': relo #1: insn #3 against 'data' libbpf: prog 'test_core_ptr_as_arr': found data map 0 (test_cor.bss, sec 5, off 0) for insn 3 test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: map 'test_cor.bss': created successfully, fd=5 libbpf: sec 'raw_tracepoint/sys_enter': found 1 CO-RE relocations libbpf: CO-RE relocating [5] struct core_reloc_ptr_as_arr: found target candidate [4] struct core_reloc_ptr_as_arr___diff_sz in [vmlinux] libbpf: prog 'test_core_ptr_as_arr': relo #0: kind (0), spec is [5] struct core_reloc_ptr_as_arr[2].a (2:0 @ offset 8) libbpf: prog 'test_core_ptr_as_arr': relo #0: matching candidate #0 [4] struct core_reloc_ptr_as_arr___diff_sz[2].a (2:1 @ offset 32) libbpf: prog 'test_core_ptr_as_arr': relo #0: patched insn #0 (ALU/ALU64) imm 8 -> 32 test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/40 core_reloc/ptr_as_arr___diff_sz:OK test_core_reloc:PASS:btf_src_file 0 nsec libbpf: loading test_core_reloc_ints.o libbpf: elf: section(2) raw_tracepoint/sys_enter, size 712, link 0, flags 6, type=1 libbpf: sec 'raw_tracepoint/sys_enter': found program 'test_core_ints' at insn offset 0 (0 bytes), code size 89 insns (712 bytes) libbpf: elf: section(3) .relraw_tracepoint/sys_enter, size 256, link 11, flags 40, type=9 libbpf: elf: section(4) license, size 4, link 0, flags 3, type=1 libbpf: license of test_core_reloc_ints.o is GPL libbpf: elf: section(5) .bss, size 512, link 0, flags 3, type=8 libbpf: elf: section(6) .BTF, size 1763, link 0, flags 0, type=1 libbpf: elf: section(8) .BTF.ext, size 492, link 0, flags 0, type=1 libbpf: elf: section(11) .symtab, size 288, link 12, flags 0, type=2 libbpf: looking for externs among 12 symbols... libbpf: collected 0 externs total libbpf: map 'test_cor.bss' (global data): at sec_idx 5, offset 0, flags 400. libbpf: map 0 is "test_cor.bss" libbpf: sec '.relraw_tracepoint/sys_enter': collecting relocation for section(2) 'raw_tracepoint/sys_enter' libbpf: sec '.relraw_tracepoint/sys_enter': relo #0: insn #1 against 'data' libbpf: prog 'test_core_ints': found data map 0 (test_cor.bss, sec 5, off 0) for insn 1 libbpf: sec '.relraw_tracepoint/sys_enter': relo #1: insn #3 against 'data' libbpf: prog 'test_core_ints': found data map 0 (test_cor.bss, sec 5, off 0) for insn 3 libbpf: sec '.relraw_tracepoint/sys_enter': relo #2: insn #6 against 'data' libbpf: prog 'test_core_ints': found data map 0 (test_cor.bss, sec 5, off 0) for insn 6 libbpf: sec '.relraw_tracepoint/sys_enter': relo #3: insn #14 against 'data' libbpf: prog 'test_core_ints': found data map 0 (test_cor.bss, sec 5, off 0) for insn 14 libbpf: sec '.relraw_tracepoint/sys_enter': relo #4: insn #24 against 'data' libbpf: prog 'test_core_ints': found data map 0 (test_cor.bss, sec 5, off 0) for insn 24 libbpf: sec '.relraw_tracepoint/sys_enter': relo #5: insn #26 against 'data' libbpf: prog 'test_core_ints': found data map 0 (test_cor.bss, sec 5, off 0) for insn 26 libbpf: sec '.relraw_tracepoint/sys_enter': relo #6: insn #29 against 'data' libbpf: prog 'test_core_ints': found data map 0 (test_cor.bss, sec 5, off 0) for insn 29 libbpf: sec '.relraw_tracepoint/sys_enter': relo #7: insn #36 against 'data' libbpf: prog 'test_core_ints': found data map 0 (test_cor.bss, sec 5, off 0) for insn 36 libbpf: sec '.relraw_tracepoint/sys_enter': relo #8: insn #45 against 'data' libbpf: prog 'test_core_ints': found data map 0 (test_cor.bss, sec 5, off 0) for insn 45 libbpf: sec '.relraw_tracepoint/sys_enter': relo #9: insn #47 against 'data' libbpf: prog 'test_core_ints': found data map 0 (test_cor.bss, sec 5, off 0) for insn 47 libbpf: sec '.relraw_tracepoint/sys_enter': relo #10: insn #50 against 'data' libbpf: prog 'test_core_ints': found data map 0 (test_cor.bss, sec 5, off 0) for insn 50 libbpf: sec '.relraw_tracepoint/sys_enter': relo #11: insn #57 against 'data' libbpf: prog 'test_core_ints': found data map 0 (test_cor.bss, sec 5, off 0) for insn 57 libbpf: sec '.relraw_tracepoint/sys_enter': relo #12: insn #66 against 'data' libbpf: prog 'test_core_ints': found data map 0 (test_cor.bss, sec 5, off 0) for insn 66 libbpf: sec '.relraw_tracepoint/sys_enter': relo #13: insn #68 against 'data' libbpf: prog 'test_core_ints': found data map 0 (test_cor.bss, sec 5, off 0) for insn 68 libbpf: sec '.relraw_tracepoint/sys_enter': relo #14: insn #71 against 'data' libbpf: prog 'test_core_ints': found data map 0 (test_cor.bss, sec 5, off 0) for insn 71 libbpf: sec '.relraw_tracepoint/sys_enter': relo #15: insn #78 against 'data' libbpf: prog 'test_core_ints': found data map 0 (test_cor.bss, sec 5, off 0) for insn 78 test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: map 'test_cor.bss': created successfully, fd=5 libbpf: sec 'raw_tracepoint/sys_enter': found 8 CO-RE relocations libbpf: CO-RE relocating [5] struct core_reloc_ints: found target candidate [4] struct core_reloc_ints in [vmlinux] libbpf: prog 'test_core_ints': relo #0: kind (0), spec is [5] struct core_reloc_ints.u8_field (0:0 @ offset 0) libbpf: prog 'test_core_ints': relo #0: matching candidate #0 [4] struct core_reloc_ints.u8_field (0:0 @ offset 0) libbpf: prog 'test_core_ints': relo #0: patched insn #0 (ALU/ALU64) imm 0 -> 0 libbpf: prog 'test_core_ints': relo #1: kind (0), spec is [5] struct core_reloc_ints.s8_field (0:1 @ offset 1) libbpf: prog 'test_core_ints': relo #1: matching candidate #0 [4] struct core_reloc_ints.s8_field (0:1 @ offset 1) libbpf: prog 'test_core_ints': relo #1: patched insn #13 (ALU/ALU64) imm 1 -> 1 libbpf: prog 'test_core_ints': relo #2: kind (0), spec is [5] struct core_reloc_ints.u16_field (0:2 @ offset 2) libbpf: prog 'test_core_ints': relo #2: matching candidate #0 [4] struct core_reloc_ints.u16_field (0:2 @ offset 2) libbpf: prog 'test_core_ints': relo #2: patched insn #23 (ALU/ALU64) imm 2 -> 2 libbpf: prog 'test_core_ints': relo #3: kind (0), spec is [5] struct core_reloc_ints.s16_field (0:3 @ offset 4) libbpf: prog 'test_core_ints': relo #3: matching candidate #0 [4] struct core_reloc_ints.s16_field (0:3 @ offset 4) libbpf: prog 'test_core_ints': relo #3: patched insn #35 (ALU/ALU64) imm 4 -> 4 libbpf: prog 'test_core_ints': relo #4: kind (0), spec is [5] struct core_reloc_ints.u32_field (0:4 @ offset 8) libbpf: prog 'test_core_ints': relo #4: matching candidate #0 [4] struct core_reloc_ints.u32_field (0:4 @ offset 8) libbpf: prog 'test_core_ints': relo #4: patched insn #44 (ALU/ALU64) imm 8 -> 8 libbpf: prog 'test_core_ints': relo #5: kind (0), spec is [5] struct core_reloc_ints.s32_field (0:5 @ offset 12) libbpf: prog 'test_core_ints': relo #5: matching candidate #0 [4] struct core_reloc_ints.s32_field (0:5 @ offset 12) libbpf: prog 'test_core_ints': relo #5: patched insn #56 (ALU/ALU64) imm 12 -> 12 libbpf: prog 'test_core_ints': relo #6: kind (0), spec is [5] struct core_reloc_ints.u64_field (0:6 @ offset 16) libbpf: prog 'test_core_ints': relo #6: matching candidate #0 [4] struct core_reloc_ints.u64_field (0:6 @ offset 16) libbpf: prog 'test_core_ints': relo #6: patched insn #65 (ALU/ALU64) imm 16 -> 16 libbpf: prog 'test_core_ints': relo #7: kind (0), spec is [5] struct core_reloc_ints.s64_field (0:7 @ offset 24) libbpf: prog 'test_core_ints': relo #7: matching candidate #0 [4] struct core_reloc_ints.s64_field (0:7 @ offset 24) libbpf: prog 'test_core_ints': relo #7: patched insn #77 (ALU/ALU64) imm 24 -> 24 test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/41 core_reloc/ints:OK test_core_reloc:PASS:btf_src_file 0 nsec libbpf: loading test_core_reloc_ints.o libbpf: elf: section(2) raw_tracepoint/sys_enter, size 712, link 0, flags 6, type=1 libbpf: sec 'raw_tracepoint/sys_enter': found program 'test_core_ints' at insn offset 0 (0 bytes), code size 89 insns (712 bytes) libbpf: elf: section(3) .relraw_tracepoint/sys_enter, size 256, link 11, flags 40, type=9 libbpf: elf: section(4) license, size 4, link 0, flags 3, type=1 libbpf: license of test_core_reloc_ints.o is GPL libbpf: elf: section(5) .bss, size 512, link 0, flags 3, type=8 libbpf: elf: section(6) .BTF, size 1763, link 0, flags 0, type=1 libbpf: elf: section(8) .BTF.ext, size 492, link 0, flags 0, type=1 libbpf: elf: section(11) .symtab, size 288, link 12, flags 0, type=2 libbpf: looking for externs among 12 symbols... libbpf: collected 0 externs total libbpf: map 'test_cor.bss' (global data): at sec_idx 5, offset 0, flags 400. libbpf: map 0 is "test_cor.bss" libbpf: sec '.relraw_tracepoint/sys_enter': collecting relocation for section(2) 'raw_tracepoint/sys_enter' libbpf: sec '.relraw_tracepoint/sys_enter': relo #0: insn #1 against 'data' libbpf: prog 'test_core_ints': found data map 0 (test_cor.bss, sec 5, off 0) for insn 1 libbpf: sec '.relraw_tracepoint/sys_enter': relo #1: insn #3 against 'data' libbpf: prog 'test_core_ints': found data map 0 (test_cor.bss, sec 5, off 0) for insn 3 libbpf: sec '.relraw_tracepoint/sys_enter': relo #2: insn #6 against 'data' libbpf: prog 'test_core_ints': found data map 0 (test_cor.bss, sec 5, off 0) for insn 6 libbpf: sec '.relraw_tracepoint/sys_enter': relo #3: insn #14 against 'data' libbpf: prog 'test_core_ints': found data map 0 (test_cor.bss, sec 5, off 0) for insn 14 libbpf: sec '.relraw_tracepoint/sys_enter': relo #4: insn #24 against 'data' libbpf: prog 'test_core_ints': found data map 0 (test_cor.bss, sec 5, off 0) for insn 24 libbpf: sec '.relraw_tracepoint/sys_enter': relo #5: insn #26 against 'data' libbpf: prog 'test_core_ints': found data map 0 (test_cor.bss, sec 5, off 0) for insn 26 libbpf: sec '.relraw_tracepoint/sys_enter': relo #6: insn #29 against 'data' libbpf: prog 'test_core_ints': found data map 0 (test_cor.bss, sec 5, off 0) for insn 29 libbpf: sec '.relraw_tracepoint/sys_enter': relo #7: insn #36 against 'data' libbpf: prog 'test_core_ints': found data map 0 (test_cor.bss, sec 5, off 0) for insn 36 libbpf: sec '.relraw_tracepoint/sys_enter': relo #8: insn #45 against 'data' libbpf: prog 'test_core_ints': found data map 0 (test_cor.bss, sec 5, off 0) for insn 45 libbpf: sec '.relraw_tracepoint/sys_enter': relo #9: insn #47 against 'data' libbpf: prog 'test_core_ints': found data map 0 (test_cor.bss, sec 5, off 0) for insn 47 libbpf: sec '.relraw_tracepoint/sys_enter': relo #10: insn #50 against 'data' libbpf: prog 'test_core_ints': found data map 0 (test_cor.bss, sec 5, off 0) for insn 50 libbpf: sec '.relraw_tracepoint/sys_enter': relo #11: insn #57 against 'data' libbpf: prog 'test_core_ints': found data map 0 (test_cor.bss, sec 5, off 0) for insn 57 libbpf: sec '.relraw_tracepoint/sys_enter': relo #12: insn #66 against 'data' libbpf: prog 'test_core_ints': found data map 0 (test_cor.bss, sec 5, off 0) for insn 66 libbpf: sec '.relraw_tracepoint/sys_enter': relo #13: insn #68 against 'data' libbpf: prog 'test_core_ints': found data map 0 (test_cor.bss, sec 5, off 0) for insn 68 libbpf: sec '.relraw_tracepoint/sys_enter': relo #14: insn #71 against 'data' libbpf: prog 'test_core_ints': found data map 0 (test_cor.bss, sec 5, off 0) for insn 71 libbpf: sec '.relraw_tracepoint/sys_enter': relo #15: insn #78 against 'data' libbpf: prog 'test_core_ints': found data map 0 (test_cor.bss, sec 5, off 0) for insn 78 test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: map 'test_cor.bss': created successfully, fd=5 libbpf: sec 'raw_tracepoint/sys_enter': found 8 CO-RE relocations libbpf: CO-RE relocating [5] struct core_reloc_ints: found target candidate [4] struct core_reloc_ints___bool in [vmlinux] libbpf: prog 'test_core_ints': relo #0: kind (0), spec is [5] struct core_reloc_ints.u8_field (0:0 @ offset 0) libbpf: prog 'test_core_ints': relo #0: matching candidate #0 [4] struct core_reloc_ints___bool.u8_field (0:0 @ offset 0) libbpf: prog 'test_core_ints': relo #0: patched insn #0 (ALU/ALU64) imm 0 -> 0 libbpf: prog 'test_core_ints': relo #1: kind (0), spec is [5] struct core_reloc_ints.s8_field (0:1 @ offset 1) libbpf: prog 'test_core_ints': relo #1: matching candidate #0 [4] struct core_reloc_ints___bool.s8_field (0:1 @ offset 1) libbpf: prog 'test_core_ints': relo #1: patched insn #13 (ALU/ALU64) imm 1 -> 1 libbpf: prog 'test_core_ints': relo #2: kind (0), spec is [5] struct core_reloc_ints.u16_field (0:2 @ offset 2) libbpf: prog 'test_core_ints': relo #2: matching candidate #0 [4] struct core_reloc_ints___bool.u16_field (0:2 @ offset 2) libbpf: prog 'test_core_ints': relo #2: patched insn #23 (ALU/ALU64) imm 2 -> 2 libbpf: prog 'test_core_ints': relo #3: kind (0), spec is [5] struct core_reloc_ints.s16_field (0:3 @ offset 4) libbpf: prog 'test_core_ints': relo #3: matching candidate #0 [4] struct core_reloc_ints___bool.s16_field (0:3 @ offset 4) libbpf: prog 'test_core_ints': relo #3: patched insn #35 (ALU/ALU64) imm 4 -> 4 libbpf: prog 'test_core_ints': relo #4: kind (0), spec is [5] struct core_reloc_ints.u32_field (0:4 @ offset 8) libbpf: prog 'test_core_ints': relo #4: matching candidate #0 [4] struct core_reloc_ints___bool.u32_field (0:4 @ offset 8) libbpf: prog 'test_core_ints': relo #4: patched insn #44 (ALU/ALU64) imm 8 -> 8 libbpf: prog 'test_core_ints': relo #5: kind (0), spec is [5] struct core_reloc_ints.s32_field (0:5 @ offset 12) libbpf: prog 'test_core_ints': relo #5: matching candidate #0 [4] struct core_reloc_ints___bool.s32_field (0:5 @ offset 12) libbpf: prog 'test_core_ints': relo #5: patched insn #56 (ALU/ALU64) imm 12 -> 12 libbpf: prog 'test_core_ints': relo #6: kind (0), spec is [5] struct core_reloc_ints.u64_field (0:6 @ offset 16) libbpf: prog 'test_core_ints': relo #6: matching candidate #0 [4] struct core_reloc_ints___bool.u64_field (0:6 @ offset 16) libbpf: prog 'test_core_ints': relo #6: patched insn #65 (ALU/ALU64) imm 16 -> 16 libbpf: prog 'test_core_ints': relo #7: kind (0), spec is [5] struct core_reloc_ints.s64_field (0:7 @ offset 24) libbpf: prog 'test_core_ints': relo #7: matching candidate #0 [4] struct core_reloc_ints___bool.s64_field (0:7 @ offset 24) libbpf: prog 'test_core_ints': relo #7: patched insn #77 (ALU/ALU64) imm 24 -> 24 test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/42 core_reloc/ints___bool:OK test_core_reloc:PASS:btf_src_file 0 nsec libbpf: loading test_core_reloc_ints.o libbpf: elf: section(2) raw_tracepoint/sys_enter, size 712, link 0, flags 6, type=1 libbpf: sec 'raw_tracepoint/sys_enter': found program 'test_core_ints' at insn offset 0 (0 bytes), code size 89 insns (712 bytes) libbpf: elf: section(3) .relraw_tracepoint/sys_enter, size 256, link 11, flags 40, type=9 libbpf: elf: section(4) license, size 4, link 0, flags 3, type=1 libbpf: license of test_core_reloc_ints.o is GPL libbpf: elf: section(5) .bss, size 512, link 0, flags 3, type=8 libbpf: elf: section(6) .BTF, size 1763, link 0, flags 0, type=1 libbpf: elf: section(8) .BTF.ext, size 492, link 0, flags 0, type=1 libbpf: elf: section(11) .symtab, size 288, link 12, flags 0, type=2 libbpf: looking for externs among 12 symbols... libbpf: collected 0 externs total libbpf: map 'test_cor.bss' (global data): at sec_idx 5, offset 0, flags 400. libbpf: map 0 is "test_cor.bss" libbpf: sec '.relraw_tracepoint/sys_enter': collecting relocation for section(2) 'raw_tracepoint/sys_enter' libbpf: sec '.relraw_tracepoint/sys_enter': relo #0: insn #1 against 'data' libbpf: prog 'test_core_ints': found data map 0 (test_cor.bss, sec 5, off 0) for insn 1 libbpf: sec '.relraw_tracepoint/sys_enter': relo #1: insn #3 against 'data' libbpf: prog 'test_core_ints': found data map 0 (test_cor.bss, sec 5, off 0) for insn 3 libbpf: sec '.relraw_tracepoint/sys_enter': relo #2: insn #6 against 'data' libbpf: prog 'test_core_ints': found data map 0 (test_cor.bss, sec 5, off 0) for insn 6 libbpf: sec '.relraw_tracepoint/sys_enter': relo #3: insn #14 against 'data' libbpf: prog 'test_core_ints': found data map 0 (test_cor.bss, sec 5, off 0) for insn 14 libbpf: sec '.relraw_tracepoint/sys_enter': relo #4: insn #24 against 'data' libbpf: prog 'test_core_ints': found data map 0 (test_cor.bss, sec 5, off 0) for insn 24 libbpf: sec '.relraw_tracepoint/sys_enter': relo #5: insn #26 against 'data' libbpf: prog 'test_core_ints': found data map 0 (test_cor.bss, sec 5, off 0) for insn 26 libbpf: sec '.relraw_tracepoint/sys_enter': relo #6: insn #29 against 'data' libbpf: prog 'test_core_ints': found data map 0 (test_cor.bss, sec 5, off 0) for insn 29 libbpf: sec '.relraw_tracepoint/sys_enter': relo #7: insn #36 against 'data' libbpf: prog 'test_core_ints': found data map 0 (test_cor.bss, sec 5, off 0) for insn 36 libbpf: sec '.relraw_tracepoint/sys_enter': relo #8: insn #45 against 'data' libbpf: prog 'test_core_ints': found data map 0 (test_cor.bss, sec 5, off 0) for insn 45 libbpf: sec '.relraw_tracepoint/sys_enter': relo #9: insn #47 against 'data' libbpf: prog 'test_core_ints': found data map 0 (test_cor.bss, sec 5, off 0) for insn 47 libbpf: sec '.relraw_tracepoint/sys_enter': relo #10: insn #50 against 'data' libbpf: prog 'test_core_ints': found data map 0 (test_cor.bss, sec 5, off 0) for insn 50 libbpf: sec '.relraw_tracepoint/sys_enter': relo #11: insn #57 against 'data' libbpf: prog 'test_core_ints': found data map 0 (test_cor.bss, sec 5, off 0) for insn 57 libbpf: sec '.relraw_tracepoint/sys_enter': relo #12: insn #66 against 'data' libbpf: prog 'test_core_ints': found data map 0 (test_cor.bss, sec 5, off 0) for insn 66 libbpf: sec '.relraw_tracepoint/sys_enter': relo #13: insn #68 against 'data' libbpf: prog 'test_core_ints': found data map 0 (test_cor.bss, sec 5, off 0) for insn 68 libbpf: sec '.relraw_tracepoint/sys_enter': relo #14: insn #71 against 'data' libbpf: prog 'test_core_ints': found data map 0 (test_cor.bss, sec 5, off 0) for insn 71 libbpf: sec '.relraw_tracepoint/sys_enter': relo #15: insn #78 against 'data' libbpf: prog 'test_core_ints': found data map 0 (test_cor.bss, sec 5, off 0) for insn 78 test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: map 'test_cor.bss': created successfully, fd=5 libbpf: sec 'raw_tracepoint/sys_enter': found 8 CO-RE relocations libbpf: CO-RE relocating [5] struct core_reloc_ints: found target candidate [4] struct core_reloc_ints___reverse_sign in [vmlinux] libbpf: prog 'test_core_ints': relo #0: kind (0), spec is [5] struct core_reloc_ints.u8_field (0:0 @ offset 0) libbpf: prog 'test_core_ints': relo #0: matching candidate #0 [4] struct core_reloc_ints___reverse_sign.u8_field (0:0 @ offset 0) libbpf: prog 'test_core_ints': relo #0: patched insn #0 (ALU/ALU64) imm 0 -> 0 libbpf: prog 'test_core_ints': relo #1: kind (0), spec is [5] struct core_reloc_ints.s8_field (0:1 @ offset 1) libbpf: prog 'test_core_ints': relo #1: matching candidate #0 [4] struct core_reloc_ints___reverse_sign.s8_field (0:1 @ offset 1) libbpf: prog 'test_core_ints': relo #1: patched insn #13 (ALU/ALU64) imm 1 -> 1 libbpf: prog 'test_core_ints': relo #2: kind (0), spec is [5] struct core_reloc_ints.u16_field (0:2 @ offset 2) libbpf: prog 'test_core_ints': relo #2: matching candidate #0 [4] struct core_reloc_ints___reverse_sign.u16_field (0:2 @ offset 2) libbpf: prog 'test_core_ints': relo #2: patched insn #23 (ALU/ALU64) imm 2 -> 2 libbpf: prog 'test_core_ints': relo #3: kind (0), spec is [5] struct core_reloc_ints.s16_field (0:3 @ offset 4) libbpf: prog 'test_core_ints': relo #3: matching candidate #0 [4] struct core_reloc_ints___reverse_sign.s16_field (0:3 @ offset 4) libbpf: prog 'test_core_ints': relo #3: patched insn #35 (ALU/ALU64) imm 4 -> 4 libbpf: prog 'test_core_ints': relo #4: kind (0), spec is [5] struct core_reloc_ints.u32_field (0:4 @ offset 8) libbpf: prog 'test_core_ints': relo #4: matching candidate #0 [4] struct core_reloc_ints___reverse_sign.u32_field (0:4 @ offset 8) libbpf: prog 'test_core_ints': relo #4: patched insn #44 (ALU/ALU64) imm 8 -> 8 libbpf: prog 'test_core_ints': relo #5: kind (0), spec is [5] struct core_reloc_ints.s32_field (0:5 @ offset 12) libbpf: prog 'test_core_ints': relo #5: matching candidate #0 [4] struct core_reloc_ints___reverse_sign.s32_field (0:5 @ offset 12) libbpf: prog 'test_core_ints': relo #5: patched insn #56 (ALU/ALU64) imm 12 -> 12 libbpf: prog 'test_core_ints': relo #6: kind (0), spec is [5] struct core_reloc_ints.u64_field (0:6 @ offset 16) libbpf: prog 'test_core_ints': relo #6: matching candidate #0 [4] struct core_reloc_ints___reverse_sign.u64_field (0:6 @ offset 16) libbpf: prog 'test_core_ints': relo #6: patched insn #65 (ALU/ALU64) imm 16 -> 16 libbpf: prog 'test_core_ints': relo #7: kind (0), spec is [5] struct core_reloc_ints.s64_field (0:7 @ offset 24) libbpf: prog 'test_core_ints': relo #7: matching candidate #0 [4] struct core_reloc_ints___reverse_sign.s64_field (0:7 @ offset 24) libbpf: prog 'test_core_ints': relo #7: patched insn #77 (ALU/ALU64) imm 24 -> 24 test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/43 core_reloc/ints___reverse_sign:OK test_core_reloc:PASS:btf_src_file 0 nsec libbpf: loading test_core_reloc_misc.o libbpf: elf: section(2) raw_tracepoint/sys_enter, size 288, link 0, flags 6, type=1 libbpf: sec 'raw_tracepoint/sys_enter': found program 'test_core_misc' at insn offset 0 (0 bytes), code size 36 insns (288 bytes) libbpf: elf: section(3) .relraw_tracepoint/sys_enter, size 96, link 11, flags 40, type=9 libbpf: elf: section(4) license, size 4, link 0, flags 3, type=1 libbpf: license of test_core_reloc_misc.o is GPL libbpf: elf: section(5) .bss, size 512, link 0, flags 3, type=8 libbpf: elf: section(6) .BTF, size 955, link 0, flags 0, type=1 libbpf: elf: section(8) .BTF.ext, size 236, link 0, flags 0, type=1 libbpf: elf: section(11) .symtab, size 288, link 12, flags 0, type=2 libbpf: looking for externs among 12 symbols... libbpf: collected 0 externs total libbpf: map 'test_cor.bss' (global data): at sec_idx 5, offset 0, flags 400. libbpf: map 0 is "test_cor.bss" libbpf: sec '.relraw_tracepoint/sys_enter': collecting relocation for section(2) 'raw_tracepoint/sys_enter' libbpf: sec '.relraw_tracepoint/sys_enter': relo #0: insn #1 against 'data' libbpf: prog 'test_core_misc': found data map 0 (test_cor.bss, sec 5, off 0) for insn 1 libbpf: sec '.relraw_tracepoint/sys_enter': relo #1: insn #3 against 'data' libbpf: prog 'test_core_misc': found data map 0 (test_cor.bss, sec 5, off 0) for insn 3 libbpf: sec '.relraw_tracepoint/sys_enter': relo #2: insn #6 against 'data' libbpf: prog 'test_core_misc': found data map 0 (test_cor.bss, sec 5, off 0) for insn 6 libbpf: sec '.relraw_tracepoint/sys_enter': relo #3: insn #14 against 'data' libbpf: prog 'test_core_misc': found data map 0 (test_cor.bss, sec 5, off 0) for insn 14 libbpf: sec '.relraw_tracepoint/sys_enter': relo #4: insn #23 against 'data' libbpf: prog 'test_core_misc': found data map 0 (test_cor.bss, sec 5, off 0) for insn 23 libbpf: sec '.relraw_tracepoint/sys_enter': relo #5: insn #25 against 'data' libbpf: prog 'test_core_misc': found data map 0 (test_cor.bss, sec 5, off 0) for insn 25 test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: map 'test_cor.bss': created successfully, fd=5 libbpf: sec 'raw_tracepoint/sys_enter': found 3 CO-RE relocations libbpf: CO-RE relocating [5] struct core_reloc_misc___a: found target candidate [4] struct core_reloc_misc___a in [vmlinux] libbpf: CO-RE relocating [5] struct core_reloc_misc___a: found target candidate [8] struct core_reloc_misc___b in [vmlinux] libbpf: prog 'test_core_misc': relo #0: kind (0), spec is [5] struct core_reloc_misc___a.a1 (0:0 @ offset 0) libbpf: prog 'test_core_misc': relo #0: matching candidate #0 [4] struct core_reloc_misc___a.a1 (0:0 @ offset 0) libbpf: prog 'test_core_misc': relo #0: non-matching candidate #1 [8] struct core_reloc_misc___b (0 @ offset 0) libbpf: prog 'test_core_misc': relo #0: patched insn #0 (ALU/ALU64) imm 0 -> 0 libbpf: CO-RE relocating [6] struct core_reloc_misc___b: found target candidate [4] struct core_reloc_misc___a in [vmlinux] libbpf: CO-RE relocating [6] struct core_reloc_misc___b: found target candidate [8] struct core_reloc_misc___b in [vmlinux] libbpf: prog 'test_core_misc': relo #1: kind (0), spec is [6] struct core_reloc_misc___b.b1 (0:0 @ offset 0) libbpf: prog 'test_core_misc': relo #1: non-matching candidate #0 [4] struct core_reloc_misc___a (0 @ offset 0) libbpf: prog 'test_core_misc': relo #1: matching candidate #1 [8] struct core_reloc_misc___b.b1 (0:0 @ offset 0) libbpf: prog 'test_core_misc': relo #1: patched insn #13 (ALU/ALU64) imm 0 -> 0 libbpf: CO-RE relocating [7] struct core_reloc_misc_extensible: found target candidate [11] struct core_reloc_misc_extensible in [vmlinux] libbpf: prog 'test_core_misc': relo #2: kind (0), spec is [7] struct core_reloc_misc_extensible[2] (2 @ offset 16) libbpf: prog 'test_core_misc': relo #2: matching candidate #0 [11] struct core_reloc_misc_extensible[2] (2 @ offset 32) libbpf: prog 'test_core_misc': relo #2: patched insn #22 (ALU/ALU64) imm 16 -> 32 test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/44 core_reloc/misc:OK test_core_reloc:PASS:btf_src_file 0 nsec libbpf: loading test_core_reloc_existence.o libbpf: elf: section(2) raw_tracepoint/sys_enter, size 624, link 0, flags 6, type=1 libbpf: sec 'raw_tracepoint/sys_enter': found program 'test_core_existence' at insn offset 0 (0 bytes), code size 78 insns (624 bytes) libbpf: elf: section(3) .relraw_tracepoint/sys_enter, size 128, link 11, flags 40, type=9 libbpf: elf: section(4) license, size 4, link 0, flags 3, type=1 libbpf: license of test_core_reloc_existence.o is GPL libbpf: elf: section(5) .bss, size 512, link 0, flags 3, type=8 libbpf: elf: section(6) .BTF, size 1443, link 0, flags 0, type=1 libbpf: elf: section(8) .BTF.ext, size 748, link 0, flags 0, type=1 libbpf: elf: section(11) .symtab, size 384, link 12, flags 0, type=2 libbpf: looking for externs among 16 symbols... libbpf: collected 0 externs total libbpf: map 'test_cor.bss' (global data): at sec_idx 5, offset 0, flags 400. libbpf: map 0 is "test_cor.bss" libbpf: sec '.relraw_tracepoint/sys_enter': collecting relocation for section(2) 'raw_tracepoint/sys_enter' libbpf: sec '.relraw_tracepoint/sys_enter': relo #0: insn #1 against 'data' libbpf: prog 'test_core_existence': found data map 0 (test_cor.bss, sec 5, off 0) for insn 1 libbpf: sec '.relraw_tracepoint/sys_enter': relo #1: insn #7 against 'data' libbpf: prog 'test_core_existence': found data map 0 (test_cor.bss, sec 5, off 0) for insn 7 libbpf: sec '.relraw_tracepoint/sys_enter': relo #2: insn #21 against 'data' libbpf: prog 'test_core_existence': found data map 0 (test_cor.bss, sec 5, off 0) for insn 21 libbpf: sec '.relraw_tracepoint/sys_enter': relo #3: insn #29 against 'data' libbpf: prog 'test_core_existence': found data map 0 (test_cor.bss, sec 5, off 0) for insn 29 libbpf: sec '.relraw_tracepoint/sys_enter': relo #4: insn #37 against 'data' libbpf: prog 'test_core_existence': found data map 0 (test_cor.bss, sec 5, off 0) for insn 37 libbpf: sec '.relraw_tracepoint/sys_enter': relo #5: insn #51 against 'data' libbpf: prog 'test_core_existence': found data map 0 (test_cor.bss, sec 5, off 0) for insn 51 libbpf: sec '.relraw_tracepoint/sys_enter': relo #6: insn #59 against 'data' libbpf: prog 'test_core_existence': found data map 0 (test_cor.bss, sec 5, off 0) for insn 59 libbpf: sec '.relraw_tracepoint/sys_enter': relo #7: insn #67 against 'data' libbpf: prog 'test_core_existence': found data map 0 (test_cor.bss, sec 5, off 0) for insn 67 test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: map 'test_cor.bss': created successfully, fd=5 libbpf: sec 'raw_tracepoint/sys_enter': found 10 CO-RE relocations libbpf: CO-RE relocating [5] struct core_reloc_existence: found target candidate [4] struct core_reloc_existence in [vmlinux] libbpf: prog 'test_core_existence': relo #0: kind (2), spec is [5] struct core_reloc_existence.a (0:2 @ offset 8) libbpf: prog 'test_core_existence': relo #0: matching candidate #0 [4] struct core_reloc_existence.a (0:0 @ offset 0) libbpf: prog 'test_core_existence': relo #0: patched insn #0 (ALU/ALU64) imm 1 -> 1 libbpf: prog 'test_core_existence': relo #1: kind (0), spec is [5] struct core_reloc_existence.a (0:2 @ offset 8) libbpf: prog 'test_core_existence': relo #1: matching candidate #0 [4] struct core_reloc_existence.a (0:0 @ offset 0) libbpf: prog 'test_core_existence': relo #1: patched insn #6 (ALU/ALU64) imm 8 -> 0 libbpf: prog 'test_core_existence': relo #2: kind (2), spec is [5] struct core_reloc_existence.b (0:3:0 @ offset 12) libbpf: prog 'test_core_existence': relo #2: matching candidate #0 [4] struct core_reloc_existence.b (0:1:0 @ offset 4) libbpf: prog 'test_core_existence': relo #2: patched insn #16 (ALU/ALU64) imm 1 -> 1 libbpf: prog 'test_core_existence': relo #3: kind (0), spec is [5] struct core_reloc_existence.b (0:3:0 @ offset 12) libbpf: prog 'test_core_existence': relo #3: matching candidate #0 [4] struct core_reloc_existence.b (0:1:0 @ offset 4) libbpf: prog 'test_core_existence': relo #3: patched insn #20 (ALU/ALU64) imm 12 -> 4 libbpf: prog 'test_core_existence': relo #4: kind (2), spec is [5] struct core_reloc_existence.c (0:4 @ offset 16) libbpf: prog 'test_core_existence': relo #4: matching candidate #0 [4] struct core_reloc_existence.c (0:2 @ offset 8) libbpf: prog 'test_core_existence': relo #4: patched insn #32 (ALU/ALU64) imm 1 -> 1 libbpf: prog 'test_core_existence': relo #5: kind (0), spec is [5] struct core_reloc_existence.c (0:4 @ offset 16) libbpf: prog 'test_core_existence': relo #5: matching candidate #0 [4] struct core_reloc_existence.c (0:2 @ offset 8) libbpf: prog 'test_core_existence': relo #5: patched insn #36 (ALU/ALU64) imm 16 -> 8 libbpf: prog 'test_core_existence': relo #6: kind (2), spec is [5] struct core_reloc_existence.arr (0:1 @ offset 4) libbpf: prog 'test_core_existence': relo #6: matching candidate #0 [4] struct core_reloc_existence.arr (0:3 @ offset 12) libbpf: prog 'test_core_existence': relo #6: patched insn #46 (ALU/ALU64) imm 1 -> 1 libbpf: prog 'test_core_existence': relo #7: kind (0), spec is [5] struct core_reloc_existence.arr[0] (0:1:0 @ offset 4) libbpf: prog 'test_core_existence': relo #7: matching candidate #0 [4] struct core_reloc_existence.arr[0] (0:3:0 @ offset 12) libbpf: prog 'test_core_existence': relo #7: patched insn #50 (ALU/ALU64) imm 4 -> 12 libbpf: prog 'test_core_existence': relo #8: kind (2), spec is [5] struct core_reloc_existence.s (0:0 @ offset 0) libbpf: prog 'test_core_existence': relo #8: matching candidate #0 [4] struct core_reloc_existence.s (0:4 @ offset 16) libbpf: prog 'test_core_existence': relo #8: patched insn #62 (ALU/ALU64) imm 1 -> 1 libbpf: prog 'test_core_existence': relo #9: kind (0), spec is [5] struct core_reloc_existence.s.x (0:0:0 @ offset 0) libbpf: prog 'test_core_existence': relo #9: matching candidate #0 [4] struct core_reloc_existence.s.x (0:4:0 @ offset 16) libbpf: prog 'test_core_existence': relo #9: patched insn #66 (ALU/ALU64) imm 0 -> 16 test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/45 core_reloc/existence:OK test_core_reloc:PASS:btf_src_file 0 nsec libbpf: loading test_core_reloc_existence.o libbpf: elf: section(2) raw_tracepoint/sys_enter, size 624, link 0, flags 6, type=1 libbpf: sec 'raw_tracepoint/sys_enter': found program 'test_core_existence' at insn offset 0 (0 bytes), code size 78 insns (624 bytes) libbpf: elf: section(3) .relraw_tracepoint/sys_enter, size 128, link 11, flags 40, type=9 libbpf: elf: section(4) license, size 4, link 0, flags 3, type=1 libbpf: license of test_core_reloc_existence.o is GPL libbpf: elf: section(5) .bss, size 512, link 0, flags 3, type=8 libbpf: elf: section(6) .BTF, size 1443, link 0, flags 0, type=1 libbpf: elf: section(8) .BTF.ext, size 748, link 0, flags 0, type=1 libbpf: elf: section(11) .symtab, size 384, link 12, flags 0, type=2 libbpf: looking for externs among 16 symbols... libbpf: collected 0 externs total libbpf: map 'test_cor.bss' (global data): at sec_idx 5, offset 0, flags 400. libbpf: map 0 is "test_cor.bss" libbpf: sec '.relraw_tracepoint/sys_enter': collecting relocation for section(2) 'raw_tracepoint/sys_enter' libbpf: sec '.relraw_tracepoint/sys_enter': relo #0: insn #1 against 'data' libbpf: prog 'test_core_existence': found data map 0 (test_cor.bss, sec 5, off 0) for insn 1 libbpf: sec '.relraw_tracepoint/sys_enter': relo #1: insn #7 against 'data' libbpf: prog 'test_core_existence': found data map 0 (test_cor.bss, sec 5, off 0) for insn 7 libbpf: sec '.relraw_tracepoint/sys_enter': relo #2: insn #21 against 'data' libbpf: prog 'test_core_existence': found data map 0 (test_cor.bss, sec 5, off 0) for insn 21 libbpf: sec '.relraw_tracepoint/sys_enter': relo #3: insn #29 against 'data' libbpf: prog 'test_core_existence': found data map 0 (test_cor.bss, sec 5, off 0) for insn 29 libbpf: sec '.relraw_tracepoint/sys_enter': relo #4: insn #37 against 'data' libbpf: prog 'test_core_existence': found data map 0 (test_cor.bss, sec 5, off 0) for insn 37 libbpf: sec '.relraw_tracepoint/sys_enter': relo #5: insn #51 against 'data' libbpf: prog 'test_core_existence': found data map 0 (test_cor.bss, sec 5, off 0) for insn 51 libbpf: sec '.relraw_tracepoint/sys_enter': relo #6: insn #59 against 'data' libbpf: prog 'test_core_existence': found data map 0 (test_cor.bss, sec 5, off 0) for insn 59 libbpf: sec '.relraw_tracepoint/sys_enter': relo #7: insn #67 against 'data' libbpf: prog 'test_core_existence': found data map 0 (test_cor.bss, sec 5, off 0) for insn 67 test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: map 'test_cor.bss': created successfully, fd=5 libbpf: sec 'raw_tracepoint/sys_enter': found 10 CO-RE relocations libbpf: CO-RE relocating [5] struct core_reloc_existence: found target candidate [4] struct core_reloc_existence___minimal in [vmlinux] libbpf: prog 'test_core_existence': relo #0: kind (2), spec is [5] struct core_reloc_existence.a (0:2 @ offset 8) libbpf: prog 'test_core_existence': relo #0: matching candidate #0 [4] struct core_reloc_existence___minimal.a (0:0 @ offset 0) libbpf: prog 'test_core_existence': relo #0: patched insn #0 (ALU/ALU64) imm 1 -> 1 libbpf: prog 'test_core_existence': relo #1: kind (0), spec is [5] struct core_reloc_existence.a (0:2 @ offset 8) libbpf: prog 'test_core_existence': relo #1: matching candidate #0 [4] struct core_reloc_existence___minimal.a (0:0 @ offset 0) libbpf: prog 'test_core_existence': relo #1: patched insn #6 (ALU/ALU64) imm 8 -> 0 libbpf: prog 'test_core_existence': relo #2: kind (2), spec is [5] struct core_reloc_existence.b (0:3:0 @ offset 12) libbpf: prog 'test_core_existence': relo #2: non-matching candidate #0 [4] struct core_reloc_existence___minimal (0 @ offset 0) libbpf: prog 'test_core_existence': relo #2: no matching targets found libbpf: prog 'test_core_existence': relo #2: patched insn #16 (ALU/ALU64) imm 1 -> 0 libbpf: prog 'test_core_existence': relo #3: kind (0), spec is [5] struct core_reloc_existence.b (0:3:0 @ offset 12) libbpf: prog 'test_core_existence': relo #3: non-matching candidate #0 [4] struct core_reloc_existence___minimal (0 @ offset 0) libbpf: prog 'test_core_existence': relo #3: no matching targets found libbpf: prog 'test_core_existence': relo #3: substituting insn #20 w/ invalid insn libbpf: prog 'test_core_existence': relo #4: kind (2), spec is [5] struct core_reloc_existence.c (0:4 @ offset 16) libbpf: prog 'test_core_existence': relo #4: non-matching candidate #0 [4] struct core_reloc_existence___minimal (0 @ offset 0) libbpf: prog 'test_core_existence': relo #4: no matching targets found libbpf: prog 'test_core_existence': relo #4: patched insn #32 (ALU/ALU64) imm 1 -> 0 libbpf: prog 'test_core_existence': relo #5: kind (0), spec is [5] struct core_reloc_existence.c (0:4 @ offset 16) libbpf: prog 'test_core_existence': relo #5: non-matching candidate #0 [4] struct core_reloc_existence___minimal (0 @ offset 0) libbpf: prog 'test_core_existence': relo #5: no matching targets found libbpf: prog 'test_core_existence': relo #5: substituting insn #36 w/ invalid insn libbpf: prog 'test_core_existence': relo #6: kind (2), spec is [5] struct core_reloc_existence.arr (0:1 @ offset 4) libbpf: prog 'test_core_existence': relo #6: non-matching candidate #0 [4] struct core_reloc_existence___minimal (0 @ offset 0) libbpf: prog 'test_core_existence': relo #6: no matching targets found libbpf: prog 'test_core_existence': relo #6: patched insn #46 (ALU/ALU64) imm 1 -> 0 libbpf: prog 'test_core_existence': relo #7: kind (0), spec is [5] struct core_reloc_existence.arr[0] (0:1:0 @ offset 4) libbpf: prog 'test_core_existence': relo #7: non-matching candidate #0 [4] struct core_reloc_existence___minimal (0 @ offset 0) libbpf: prog 'test_core_existence': relo #7: no matching targets found libbpf: prog 'test_core_existence': relo #7: substituting insn #50 w/ invalid insn libbpf: prog 'test_core_existence': relo #8: kind (2), spec is [5] struct core_reloc_existence.s (0:0 @ offset 0) libbpf: prog 'test_core_existence': relo #8: non-matching candidate #0 [4] struct core_reloc_existence___minimal (0 @ offset 0) libbpf: prog 'test_core_existence': relo #8: no matching targets found libbpf: prog 'test_core_existence': relo #8: patched insn #62 (ALU/ALU64) imm 1 -> 0 libbpf: prog 'test_core_existence': relo #9: kind (0), spec is [5] struct core_reloc_existence.s.x (0:0:0 @ offset 0) libbpf: prog 'test_core_existence': relo #9: non-matching candidate #0 [4] struct core_reloc_existence___minimal (0 @ offset 0) libbpf: prog 'test_core_existence': relo #9: no matching targets found libbpf: prog 'test_core_existence': relo #9: substituting insn #66 w/ invalid insn test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/46 core_reloc/existence___minimal:OK test_core_reloc:PASS:btf_src_file 0 nsec libbpf: loading test_core_reloc_existence.o libbpf: elf: section(2) raw_tracepoint/sys_enter, size 624, link 0, flags 6, type=1 libbpf: sec 'raw_tracepoint/sys_enter': found program 'test_core_existence' at insn offset 0 (0 bytes), code size 78 insns (624 bytes) libbpf: elf: section(3) .relraw_tracepoint/sys_enter, size 128, link 11, flags 40, type=9 libbpf: elf: section(4) license, size 4, link 0, flags 3, type=1 libbpf: license of test_core_reloc_existence.o is GPL libbpf: elf: section(5) .bss, size 512, link 0, flags 3, type=8 libbpf: elf: section(6) .BTF, size 1443, link 0, flags 0, type=1 libbpf: elf: section(8) .BTF.ext, size 748, link 0, flags 0, type=1 libbpf: elf: section(11) .symtab, size 384, link 12, flags 0, type=2 libbpf: looking for externs among 16 symbols... libbpf: collected 0 externs total libbpf: map 'test_cor.bss' (global data): at sec_idx 5, offset 0, flags 400. libbpf: map 0 is "test_cor.bss" libbpf: sec '.relraw_tracepoint/sys_enter': collecting relocation for section(2) 'raw_tracepoint/sys_enter' libbpf: sec '.relraw_tracepoint/sys_enter': relo #0: insn #1 against 'data' libbpf: prog 'test_core_existence': found data map 0 (test_cor.bss, sec 5, off 0) for insn 1 libbpf: sec '.relraw_tracepoint/sys_enter': relo #1: insn #7 against 'data' libbpf: prog 'test_core_existence': found data map 0 (test_cor.bss, sec 5, off 0) for insn 7 libbpf: sec '.relraw_tracepoint/sys_enter': relo #2: insn #21 against 'data' libbpf: prog 'test_core_existence': found data map 0 (test_cor.bss, sec 5, off 0) for insn 21 libbpf: sec '.relraw_tracepoint/sys_enter': relo #3: insn #29 against 'data' libbpf: prog 'test_core_existence': found data map 0 (test_cor.bss, sec 5, off 0) for insn 29 libbpf: sec '.relraw_tracepoint/sys_enter': relo #4: insn #37 against 'data' libbpf: prog 'test_core_existence': found data map 0 (test_cor.bss, sec 5, off 0) for insn 37 libbpf: sec '.relraw_tracepoint/sys_enter': relo #5: insn #51 against 'data' libbpf: prog 'test_core_existence': found data map 0 (test_cor.bss, sec 5, off 0) for insn 51 libbpf: sec '.relraw_tracepoint/sys_enter': relo #6: insn #59 against 'data' libbpf: prog 'test_core_existence': found data map 0 (test_cor.bss, sec 5, off 0) for insn 59 libbpf: sec '.relraw_tracepoint/sys_enter': relo #7: insn #67 against 'data' libbpf: prog 'test_core_existence': found data map 0 (test_cor.bss, sec 5, off 0) for insn 67 test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: map 'test_cor.bss': created successfully, fd=5 libbpf: sec 'raw_tracepoint/sys_enter': found 10 CO-RE relocations libbpf: CO-RE relocating [5] struct core_reloc_existence: found target candidate [4] struct core_reloc_existence___wrong_field_defs in [vmlinux] libbpf: prog 'test_core_existence': relo #0: kind (2), spec is [5] struct core_reloc_existence.a (0:2 @ offset 8) libbpf: prog 'test_core_existence': relo #0: non-matching candidate #0 [4] struct core_reloc_existence___wrong_field_defs (0:0 @ offset 0) libbpf: prog 'test_core_existence': relo #0: no matching targets found libbpf: prog 'test_core_existence': relo #0: patched insn #0 (ALU/ALU64) imm 1 -> 0 libbpf: prog 'test_core_existence': relo #1: kind (0), spec is [5] struct core_reloc_existence.a (0:2 @ offset 8) libbpf: prog 'test_core_existence': relo #1: non-matching candidate #0 [4] struct core_reloc_existence___wrong_field_defs (0:0 @ offset 0) libbpf: prog 'test_core_existence': relo #1: no matching targets found libbpf: prog 'test_core_existence': relo #1: substituting insn #6 w/ invalid insn libbpf: prog 'test_core_existence': relo #2: kind (2), spec is [5] struct core_reloc_existence.b (0:3:0 @ offset 12) libbpf: prog 'test_core_existence': relo #2: non-matching candidate #0 [4] struct core_reloc_existence___wrong_field_defs (0:1 @ offset 8) libbpf: prog 'test_core_existence': relo #2: no matching targets found libbpf: prog 'test_core_existence': relo #2: patched insn #16 (ALU/ALU64) imm 1 -> 0 libbpf: prog 'test_core_existence': relo #3: kind (0), spec is [5] struct core_reloc_existence.b (0:3:0 @ offset 12) libbpf: prog 'test_core_existence': relo #3: non-matching candidate #0 [4] struct core_reloc_existence___wrong_field_defs (0:1 @ offset 8) libbpf: prog 'test_core_existence': relo #3: no matching targets found libbpf: prog 'test_core_existence': relo #3: substituting insn #20 w/ invalid insn libbpf: prog 'test_core_existence': relo #4: kind (2), spec is [5] struct core_reloc_existence.c (0:4 @ offset 16) libbpf: prog 'test_core_existence': relo #4: non-matching candidate #0 [4] struct core_reloc_existence___wrong_field_defs (0:2 @ offset 12) libbpf: prog 'test_core_existence': relo #4: no matching targets found libbpf: prog 'test_core_existence': relo #4: patched insn #32 (ALU/ALU64) imm 1 -> 0 libbpf: prog 'test_core_existence': relo #5: kind (0), spec is [5] struct core_reloc_existence.c (0:4 @ offset 16) libbpf: prog 'test_core_existence': relo #5: non-matching candidate #0 [4] struct core_reloc_existence___wrong_field_defs (0:2 @ offset 12) libbpf: prog 'test_core_existence': relo #5: no matching targets found libbpf: prog 'test_core_existence': relo #5: substituting insn #36 w/ invalid insn libbpf: prog 'test_core_existence': relo #6: kind (2), spec is [5] struct core_reloc_existence.arr (0:1 @ offset 4) libbpf: prog 'test_core_existence': relo #6: non-matching candidate #0 [4] struct core_reloc_existence___wrong_field_defs (0:3 @ offset 16) libbpf: prog 'test_core_existence': relo #6: no matching targets found libbpf: prog 'test_core_existence': relo #6: patched insn #46 (ALU/ALU64) imm 1 -> 0 libbpf: prog 'test_core_existence': relo #7: kind (0), spec is [5] struct core_reloc_existence.arr[0] (0:1:0 @ offset 4) libbpf: prog 'test_core_existence': relo #7: non-matching candidate #0 [4] struct core_reloc_existence___wrong_field_defs (0:3 @ offset 16) libbpf: prog 'test_core_existence': relo #7: no matching targets found libbpf: prog 'test_core_existence': relo #7: substituting insn #50 w/ invalid insn libbpf: prog 'test_core_existence': relo #8: kind (2), spec is [5] struct core_reloc_existence.s (0:0 @ offset 0) libbpf: prog 'test_core_existence': relo #8: non-matching candidate #0 [4] struct core_reloc_existence___wrong_field_defs (0:4 @ offset 20) libbpf: prog 'test_core_existence': relo #8: no matching targets found libbpf: prog 'test_core_existence': relo #8: patched insn #62 (ALU/ALU64) imm 1 -> 0 libbpf: prog 'test_core_existence': relo #9: kind (0), spec is [5] struct core_reloc_existence.s.x (0:0:0 @ offset 0) libbpf: prog 'test_core_existence': relo #9: non-matching candidate #0 [4] struct core_reloc_existence___wrong_field_defs (0:4 @ offset 20) libbpf: prog 'test_core_existence': relo #9: no matching targets found libbpf: prog 'test_core_existence': relo #9: substituting insn #66 w/ invalid insn test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/47 core_reloc/existence___wrong_field_defs:OK test_core_reloc:PASS:btf_src_file 0 nsec libbpf: loading test_core_reloc_bitfields_probed.o libbpf: elf: section(2) raw_tracepoint/sys_enter, size 1040, link 0, flags 6, type=1 libbpf: sec 'raw_tracepoint/sys_enter': found program 'test_core_bitfields' at insn offset 0 (0 bytes), code size 130 insns (1040 bytes) libbpf: elf: section(3) .relraw_tracepoint/sys_enter, size 128, link 11, flags 40, type=9 libbpf: elf: section(4) license, size 4, link 0, flags 3, type=1 libbpf: license of test_core_reloc_bitfields_probed.o is GPL libbpf: elf: section(5) .bss, size 512, link 0, flags 3, type=8 libbpf: elf: section(6) .BTF, size 1412, link 0, flags 0, type=1 libbpf: elf: section(8) .BTF.ext, size 1340, link 0, flags 0, type=1 libbpf: elf: section(11) .symtab, size 600, link 12, flags 0, type=2 libbpf: looking for externs among 25 symbols... libbpf: collected 0 externs total libbpf: map 'test_cor.bss' (global data): at sec_idx 5, offset 0, flags 400. libbpf: map 0 is "test_cor.bss" libbpf: sec '.relraw_tracepoint/sys_enter': collecting relocation for section(2) 'raw_tracepoint/sys_enter' libbpf: sec '.relraw_tracepoint/sys_enter': relo #0: insn #3 against 'data' libbpf: prog 'test_core_bitfields': found data map 0 (test_cor.bss, sec 5, off 0) for insn 3 libbpf: sec '.relraw_tracepoint/sys_enter': relo #1: insn #17 against 'data' libbpf: prog 'test_core_bitfields': found data map 0 (test_cor.bss, sec 5, off 0) for insn 17 libbpf: sec '.relraw_tracepoint/sys_enter': relo #2: insn #35 against 'data' libbpf: prog 'test_core_bitfields': found data map 0 (test_cor.bss, sec 5, off 0) for insn 35 libbpf: sec '.relraw_tracepoint/sys_enter': relo #3: insn #53 against 'data' libbpf: prog 'test_core_bitfields': found data map 0 (test_cor.bss, sec 5, off 0) for insn 53 libbpf: sec '.relraw_tracepoint/sys_enter': relo #4: insn #71 against 'data' libbpf: prog 'test_core_bitfields': found data map 0 (test_cor.bss, sec 5, off 0) for insn 71 libbpf: sec '.relraw_tracepoint/sys_enter': relo #5: insn #89 against 'data' libbpf: prog 'test_core_bitfields': found data map 0 (test_cor.bss, sec 5, off 0) for insn 89 libbpf: sec '.relraw_tracepoint/sys_enter': relo #6: insn #107 against 'data' libbpf: prog 'test_core_bitfields': found data map 0 (test_cor.bss, sec 5, off 0) for insn 107 libbpf: sec '.relraw_tracepoint/sys_enter': relo #7: insn #125 against 'data' libbpf: prog 'test_core_bitfields': found data map 0 (test_cor.bss, sec 5, off 0) for insn 125 test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: map 'test_cor.bss': created successfully, fd=5 libbpf: sec 'raw_tracepoint/sys_enter': found 42 CO-RE relocations libbpf: CO-RE relocating [5] struct core_reloc_bitfields: found target candidate [4] struct core_reloc_bitfields in [vmlinux] libbpf: prog 'test_core_bitfields': relo #0: kind (0), spec is [5] struct core_reloc_bitfields.ub1 (0:0 @ offset 0) libbpf: prog 'test_core_bitfields': relo #0: matching candidate #0 [4] struct core_reloc_bitfields.ub1 (0:0 @ offset 0) libbpf: prog 'test_core_bitfields': relo #0: patched insn #2 (ALU/ALU64) imm 0 -> 0 libbpf: prog 'test_core_bitfields': relo #1: kind (1), spec is [5] struct core_reloc_bitfields.ub1 (0:0 @ offset 0) libbpf: prog 'test_core_bitfields': relo #1: matching candidate #0 [4] struct core_reloc_bitfields.ub1 (0:0 @ offset 0) libbpf: prog 'test_core_bitfields': relo #1: patched insn #8 (ALU/ALU64) imm 4 -> 1 libbpf: prog 'test_core_bitfields': relo #2: kind (4), spec is [5] struct core_reloc_bitfields.ub1 (0:0 @ offset 0) libbpf: prog 'test_core_bitfields': relo #2: matching candidate #0 [4] struct core_reloc_bitfields.ub1 (0:0 @ offset 0) libbpf: prog 'test_core_bitfields': relo #2: patched insn #11 (ALU/ALU64) imm 63 -> 63 libbpf: prog 'test_core_bitfields': relo #3: kind (3), spec is [5] struct core_reloc_bitfields.ub1 (0:0 @ offset 0) libbpf: prog 'test_core_bitfields': relo #3: matching candidate #0 [4] struct core_reloc_bitfields.ub1 (0:0 @ offset 0) libbpf: prog 'test_core_bitfields': relo #3: patched insn #12 (ALU/ALU64) imm 0 -> 0 libbpf: prog 'test_core_bitfields': relo #4: kind (5), spec is [5] struct core_reloc_bitfields.ub1 (0:0 @ offset 0) libbpf: prog 'test_core_bitfields': relo #4: matching candidate #0 [4] struct core_reloc_bitfields.ub1 (0:0 @ offset 0) libbpf: prog 'test_core_bitfields': relo #4: patched insn #14 (ALU/ALU64) imm 63 -> 63 libbpf: prog 'test_core_bitfields': relo #5: kind (5), spec is [5] struct core_reloc_bitfields.ub1 (0:0 @ offset 0) libbpf: prog 'test_core_bitfields': relo #5: matching candidate #0 [4] struct core_reloc_bitfields.ub1 (0:0 @ offset 0) libbpf: prog 'test_core_bitfields': relo #5: patched insn #16 (ALU/ALU64) imm 63 -> 63 libbpf: prog 'test_core_bitfields': relo #6: kind (0), spec is [5] struct core_reloc_bitfields.ub2 (0:1 @ offset 0.1) libbpf: prog 'test_core_bitfields': relo #6: matching candidate #0 [4] struct core_reloc_bitfields.ub2 (0:1 @ offset 0.1) libbpf: prog 'test_core_bitfields': relo #6: patched insn #22 (ALU/ALU64) imm 0 -> 0 libbpf: prog 'test_core_bitfields': relo #7: kind (1), spec is [5] struct core_reloc_bitfields.ub2 (0:1 @ offset 0.1) libbpf: prog 'test_core_bitfields': relo #7: matching candidate #0 [4] struct core_reloc_bitfields.ub2 (0:1 @ offset 0.1) libbpf: prog 'test_core_bitfields': relo #7: patched insn #26 (ALU/ALU64) imm 4 -> 1 libbpf: prog 'test_core_bitfields': relo #8: kind (4), spec is [5] struct core_reloc_bitfields.ub2 (0:1 @ offset 0.1) libbpf: prog 'test_core_bitfields': relo #8: matching candidate #0 [4] struct core_reloc_bitfields.ub2 (0:1 @ offset 0.1) libbpf: prog 'test_core_bitfields': relo #8: patched insn #29 (ALU/ALU64) imm 61 -> 61 libbpf: prog 'test_core_bitfields': relo #9: kind (3), spec is [5] struct core_reloc_bitfields.ub2 (0:1 @ offset 0.1) libbpf: prog 'test_core_bitfields': relo #9: matching candidate #0 [4] struct core_reloc_bitfields.ub2 (0:1 @ offset 0.1) libbpf: prog 'test_core_bitfields': relo #9: patched insn #30 (ALU/ALU64) imm 0 -> 0 libbpf: prog 'test_core_bitfields': relo #10: kind (5), spec is [5] struct core_reloc_bitfields.ub2 (0:1 @ offset 0.1) libbpf: prog 'test_core_bitfields': relo #10: matching candidate #0 [4] struct core_reloc_bitfields.ub2 (0:1 @ offset 0.1) libbpf: prog 'test_core_bitfields': relo #10: patched insn #32 (ALU/ALU64) imm 62 -> 62 libbpf: prog 'test_core_bitfields': relo #11: kind (5), spec is [5] struct core_reloc_bitfields.ub2 (0:1 @ offset 0.1) libbpf: prog 'test_core_bitfields': relo #11: matching candidate #0 [4] struct core_reloc_bitfields.ub2 (0:1 @ offset 0.1) libbpf: prog 'test_core_bitfields': relo #11: patched insn #34 (ALU/ALU64) imm 62 -> 62 libbpf: prog 'test_core_bitfields': relo #12: kind (0), spec is [5] struct core_reloc_bitfields.ub7 (0:2 @ offset 0.3) libbpf: prog 'test_core_bitfields': relo #12: matching candidate #0 [4] struct core_reloc_bitfields.ub7 (0:2 @ offset 0.3) libbpf: prog 'test_core_bitfields': relo #12: patched insn #40 (ALU/ALU64) imm 0 -> 0 libbpf: prog 'test_core_bitfields': relo #13: kind (1), spec is [5] struct core_reloc_bitfields.ub7 (0:2 @ offset 0.3) libbpf: prog 'test_core_bitfields': relo #13: matching candidate #0 [4] struct core_reloc_bitfields.ub7 (0:2 @ offset 0.3) libbpf: prog 'test_core_bitfields': relo #13: patched insn #44 (ALU/ALU64) imm 4 -> 4 libbpf: prog 'test_core_bitfields': relo #14: kind (4), spec is [5] struct core_reloc_bitfields.ub7 (0:2 @ offset 0.3) libbpf: prog 'test_core_bitfields': relo #14: matching candidate #0 [4] struct core_reloc_bitfields.ub7 (0:2 @ offset 0.3) libbpf: prog 'test_core_bitfields': relo #14: patched insn #47 (ALU/ALU64) imm 54 -> 54 libbpf: prog 'test_core_bitfields': relo #15: kind (3), spec is [5] struct core_reloc_bitfields.ub7 (0:2 @ offset 0.3) libbpf: prog 'test_core_bitfields': relo #15: matching candidate #0 [4] struct core_reloc_bitfields.ub7 (0:2 @ offset 0.3) libbpf: prog 'test_core_bitfields': relo #15: patched insn #48 (ALU/ALU64) imm 0 -> 0 libbpf: prog 'test_core_bitfields': relo #16: kind (5), spec is [5] struct core_reloc_bitfields.ub7 (0:2 @ offset 0.3) libbpf: prog 'test_core_bitfields': relo #16: matching candidate #0 [4] struct core_reloc_bitfields.ub7 (0:2 @ offset 0.3) libbpf: prog 'test_core_bitfields': relo #16: patched insn #50 (ALU/ALU64) imm 57 -> 57 libbpf: prog 'test_core_bitfields': relo #17: kind (5), spec is [5] struct core_reloc_bitfields.ub7 (0:2 @ offset 0.3) libbpf: prog 'test_core_bitfields': relo #17: matching candidate #0 [4] struct core_reloc_bitfields.ub7 (0:2 @ offset 0.3) libbpf: prog 'test_core_bitfields': relo #17: patched insn #52 (ALU/ALU64) imm 57 -> 57 libbpf: prog 'test_core_bitfields': relo #18: kind (0), spec is [5] struct core_reloc_bitfields.sb4 (0:3 @ offset 1.2) libbpf: prog 'test_core_bitfields': relo #18: matching candidate #0 [4] struct core_reloc_bitfields.sb4 (0:3 @ offset 1.2) libbpf: prog 'test_core_bitfields': relo #18: patched insn #58 (ALU/ALU64) imm 0 -> 1 libbpf: prog 'test_core_bitfields': relo #19: kind (1), spec is [5] struct core_reloc_bitfields.sb4 (0:3 @ offset 1.2) libbpf: prog 'test_core_bitfields': relo #19: matching candidate #0 [4] struct core_reloc_bitfields.sb4 (0:3 @ offset 1.2) libbpf: prog 'test_core_bitfields': relo #19: patched insn #62 (ALU/ALU64) imm 4 -> 1 libbpf: prog 'test_core_bitfields': relo #20: kind (4), spec is [5] struct core_reloc_bitfields.sb4 (0:3 @ offset 1.2) libbpf: prog 'test_core_bitfields': relo #20: matching candidate #0 [4] struct core_reloc_bitfields.sb4 (0:3 @ offset 1.2) libbpf: prog 'test_core_bitfields': relo #20: patched insn #65 (ALU/ALU64) imm 50 -> 58 libbpf: prog 'test_core_bitfields': relo #21: kind (3), spec is [5] struct core_reloc_bitfields.sb4 (0:3 @ offset 1.2) libbpf: prog 'test_core_bitfields': relo #21: matching candidate #0 [4] struct core_reloc_bitfields.sb4 (0:3 @ offset 1.2) libbpf: prog 'test_core_bitfields': relo #21: patched insn #66 (ALU/ALU64) imm 1 -> 1 libbpf: prog 'test_core_bitfields': relo #22: kind (5), spec is [5] struct core_reloc_bitfields.sb4 (0:3 @ offset 1.2) libbpf: prog 'test_core_bitfields': relo #22: matching candidate #0 [4] struct core_reloc_bitfields.sb4 (0:3 @ offset 1.2) libbpf: prog 'test_core_bitfields': relo #22: patched insn #68 (ALU/ALU64) imm 60 -> 60 libbpf: prog 'test_core_bitfields': relo #23: kind (5), spec is [5] struct core_reloc_bitfields.sb4 (0:3 @ offset 1.2) libbpf: prog 'test_core_bitfields': relo #23: matching candidate #0 [4] struct core_reloc_bitfields.sb4 (0:3 @ offset 1.2) libbpf: prog 'test_core_bitfields': relo #23: patched insn #70 (ALU/ALU64) imm 60 -> 60 libbpf: prog 'test_core_bitfields': relo #24: kind (0), spec is [5] struct core_reloc_bitfields.sb20 (0:4 @ offset 4) libbpf: prog 'test_core_bitfields': relo #24: matching candidate #0 [4] struct core_reloc_bitfields.sb20 (0:4 @ offset 4) libbpf: prog 'test_core_bitfields': relo #24: patched insn #76 (ALU/ALU64) imm 4 -> 4 libbpf: prog 'test_core_bitfields': relo #25: kind (1), spec is [5] struct core_reloc_bitfields.sb20 (0:4 @ offset 4) libbpf: prog 'test_core_bitfields': relo #25: matching candidate #0 [4] struct core_reloc_bitfields.sb20 (0:4 @ offset 4) libbpf: prog 'test_core_bitfields': relo #25: patched insn #80 (ALU/ALU64) imm 4 -> 4 libbpf: prog 'test_core_bitfields': relo #26: kind (4), spec is [5] struct core_reloc_bitfields.sb20 (0:4 @ offset 4) libbpf: prog 'test_core_bitfields': relo #26: matching candidate #0 [4] struct core_reloc_bitfields.sb20 (0:4 @ offset 4) libbpf: prog 'test_core_bitfields': relo #26: patched insn #83 (ALU/ALU64) imm 44 -> 44 libbpf: prog 'test_core_bitfields': relo #27: kind (3), spec is [5] struct core_reloc_bitfields.sb20 (0:4 @ offset 4) libbpf: prog 'test_core_bitfields': relo #27: matching candidate #0 [4] struct core_reloc_bitfields.sb20 (0:4 @ offset 4) libbpf: prog 'test_core_bitfields': relo #27: patched insn #84 (ALU/ALU64) imm 1 -> 1 libbpf: prog 'test_core_bitfields': relo #28: kind (5), spec is [5] struct core_reloc_bitfields.sb20 (0:4 @ offset 4) libbpf: prog 'test_core_bitfields': relo #28: matching candidate #0 [4] struct core_reloc_bitfields.sb20 (0:4 @ offset 4) libbpf: prog 'test_core_bitfields': relo #28: patched insn #86 (ALU/ALU64) imm 44 -> 44 libbpf: prog 'test_core_bitfields': relo #29: kind (5), spec is [5] struct core_reloc_bitfields.sb20 (0:4 @ offset 4) libbpf: prog 'test_core_bitfields': relo #29: matching candidate #0 [4] struct core_reloc_bitfields.sb20 (0:4 @ offset 4) libbpf: prog 'test_core_bitfields': relo #29: patched insn #88 (ALU/ALU64) imm 44 -> 44 libbpf: prog 'test_core_bitfields': relo #30: kind (0), spec is [5] struct core_reloc_bitfields.u32 (0:5 @ offset 8) libbpf: prog 'test_core_bitfields': relo #30: matching candidate #0 [4] struct core_reloc_bitfields.u32 (0:5 @ offset 8) libbpf: prog 'test_core_bitfields': relo #30: patched insn #94 (ALU/ALU64) imm 8 -> 8 libbpf: prog 'test_core_bitfields': relo #31: kind (1), spec is [5] struct core_reloc_bitfields.u32 (0:5 @ offset 8) libbpf: prog 'test_core_bitfields': relo #31: matching candidate #0 [4] struct core_reloc_bitfields.u32 (0:5 @ offset 8) libbpf: prog 'test_core_bitfields': relo #31: patched insn #98 (ALU/ALU64) imm 4 -> 4 libbpf: prog 'test_core_bitfields': relo #32: kind (4), spec is [5] struct core_reloc_bitfields.u32 (0:5 @ offset 8) libbpf: prog 'test_core_bitfields': relo #32: matching candidate #0 [4] struct core_reloc_bitfields.u32 (0:5 @ offset 8) libbpf: prog 'test_core_bitfields': relo #32: patched insn #101 (ALU/ALU64) imm 32 -> 32 libbpf: prog 'test_core_bitfields': relo #33: kind (3), spec is [5] struct core_reloc_bitfields.u32 (0:5 @ offset 8) libbpf: prog 'test_core_bitfields': relo #33: matching candidate #0 [4] struct core_reloc_bitfields.u32 (0:5 @ offset 8) libbpf: prog 'test_core_bitfields': relo #33: patched insn #102 (ALU/ALU64) imm 0 -> 0 libbpf: prog 'test_core_bitfields': relo #34: kind (5), spec is [5] struct core_reloc_bitfields.u32 (0:5 @ offset 8) libbpf: prog 'test_core_bitfields': relo #34: matching candidate #0 [4] struct core_reloc_bitfields.u32 (0:5 @ offset 8) libbpf: prog 'test_core_bitfields': relo #34: patched insn #104 (ALU/ALU64) imm 32 -> 32 libbpf: prog 'test_core_bitfields': relo #35: kind (5), spec is [5] struct core_reloc_bitfields.u32 (0:5 @ offset 8) libbpf: prog 'test_core_bitfields': relo #35: matching candidate #0 [4] struct core_reloc_bitfields.u32 (0:5 @ offset 8) libbpf: prog 'test_core_bitfields': relo #35: patched insn #106 (ALU/ALU64) imm 32 -> 32 libbpf: prog 'test_core_bitfields': relo #36: kind (0), spec is [5] struct core_reloc_bitfields.s32 (0:6 @ offset 12) libbpf: prog 'test_core_bitfields': relo #36: matching candidate #0 [4] struct core_reloc_bitfields.s32 (0:6 @ offset 12) libbpf: prog 'test_core_bitfields': relo #36: patched insn #112 (ALU/ALU64) imm 12 -> 12 libbpf: prog 'test_core_bitfields': relo #37: kind (1), spec is [5] struct core_reloc_bitfields.s32 (0:6 @ offset 12) libbpf: prog 'test_core_bitfields': relo #37: matching candidate #0 [4] struct core_reloc_bitfields.s32 (0:6 @ offset 12) libbpf: prog 'test_core_bitfields': relo #37: patched insn #116 (ALU/ALU64) imm 4 -> 4 libbpf: prog 'test_core_bitfields': relo #38: kind (4), spec is [5] struct core_reloc_bitfields.s32 (0:6 @ offset 12) libbpf: prog 'test_core_bitfields': relo #38: matching candidate #0 [4] struct core_reloc_bitfields.s32 (0:6 @ offset 12) libbpf: prog 'test_core_bitfields': relo #38: patched insn #119 (ALU/ALU64) imm 32 -> 32 libbpf: prog 'test_core_bitfields': relo #39: kind (3), spec is [5] struct core_reloc_bitfields.s32 (0:6 @ offset 12) libbpf: prog 'test_core_bitfields': relo #39: matching candidate #0 [4] struct core_reloc_bitfields.s32 (0:6 @ offset 12) libbpf: prog 'test_core_bitfields': relo #39: patched insn #120 (ALU/ALU64) imm 1 -> 1 libbpf: prog 'test_core_bitfields': relo #40: kind (5), spec is [5] struct core_reloc_bitfields.s32 (0:6 @ offset 12) libbpf: prog 'test_core_bitfields': relo #40: matching candidate #0 [4] struct core_reloc_bitfields.s32 (0:6 @ offset 12) libbpf: prog 'test_core_bitfields': relo #40: patched insn #122 (ALU/ALU64) imm 32 -> 32 libbpf: prog 'test_core_bitfields': relo #41: kind (5), spec is [5] struct core_reloc_bitfields.s32 (0:6 @ offset 12) libbpf: prog 'test_core_bitfields': relo #41: matching candidate #0 [4] struct core_reloc_bitfields.s32 (0:6 @ offset 12) libbpf: prog 'test_core_bitfields': relo #41: patched insn #124 (ALU/ALU64) imm 32 -> 32 test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/48 core_reloc/probed:bitfields:OK test_core_reloc:PASS:btf_src_file 0 nsec libbpf: loading test_core_reloc_bitfields_direct.o libbpf: elf: section(2) tp_btf/sys_enter, size 1488, link 0, flags 6, type=1 libbpf: sec 'tp_btf/sys_enter': found program 'test_core_bitfields_direct' at insn offset 0 (0 bytes), code size 186 insns (1488 bytes) libbpf: elf: section(3) .reltp_btf/sys_enter, size 128, link 11, flags 40, type=9 libbpf: elf: section(4) license, size 4, link 0, flags 3, type=1 libbpf: license of test_core_reloc_bitfields_direct.o is GPL libbpf: elf: section(5) .bss, size 512, link 0, flags 3, type=8 libbpf: elf: section(6) .BTF, size 1369, link 0, flags 0, type=1 libbpf: elf: section(8) .BTF.ext, size 1564, link 0, flags 0, type=1 libbpf: elf: section(11) .symtab, size 1608, link 12, flags 0, type=2 libbpf: looking for externs among 67 symbols... libbpf: collected 0 externs total libbpf: map 'test_cor.bss' (global data): at sec_idx 5, offset 0, flags 400. libbpf: map 0 is "test_cor.bss" libbpf: sec '.reltp_btf/sys_enter': collecting relocation for section(2) 'tp_btf/sys_enter' libbpf: sec '.reltp_btf/sys_enter': relo #0: insn #1 against 'data' libbpf: prog 'test_core_bitfields_direct': found data map 0 (test_cor.bss, sec 5, off 0) for insn 1 libbpf: sec '.reltp_btf/sys_enter': relo #1: insn #25 against 'data' libbpf: prog 'test_core_bitfields_direct': found data map 0 (test_cor.bss, sec 5, off 0) for insn 25 libbpf: sec '.reltp_btf/sys_enter': relo #2: insn #51 against 'data' libbpf: prog 'test_core_bitfields_direct': found data map 0 (test_cor.bss, sec 5, off 0) for insn 51 libbpf: sec '.reltp_btf/sys_enter': relo #3: insn #77 against 'data' libbpf: prog 'test_core_bitfields_direct': found data map 0 (test_cor.bss, sec 5, off 0) for insn 77 libbpf: sec '.reltp_btf/sys_enter': relo #4: insn #103 against 'data' libbpf: prog 'test_core_bitfields_direct': found data map 0 (test_cor.bss, sec 5, off 0) for insn 103 libbpf: sec '.reltp_btf/sys_enter': relo #5: insn #129 against 'data' libbpf: prog 'test_core_bitfields_direct': found data map 0 (test_cor.bss, sec 5, off 0) for insn 129 libbpf: sec '.reltp_btf/sys_enter': relo #6: insn #155 against 'data' libbpf: prog 'test_core_bitfields_direct': found data map 0 (test_cor.bss, sec 5, off 0) for insn 155 libbpf: sec '.reltp_btf/sys_enter': relo #7: insn #181 against 'data' libbpf: prog 'test_core_bitfields_direct': found data map 0 (test_cor.bss, sec 5, off 0) for insn 181 test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: loading kernel BTF '/sys/kernel/btf/vmlinux': 0 libbpf: map 'test_cor.bss': created successfully, fd=5 libbpf: sec 'tp_btf/sys_enter': found 42 CO-RE relocations libbpf: CO-RE relocating [5] struct core_reloc_bitfields: found target candidate [4] struct core_reloc_bitfields in [vmlinux] libbpf: prog 'test_core_bitfields_direct': relo #0: kind (0), spec is [5] struct core_reloc_bitfields.ub1 (0:0 @ offset 0) libbpf: prog 'test_core_bitfields_direct': relo #0: matching candidate #0 [4] struct core_reloc_bitfields.ub1 (0:0 @ offset 0) libbpf: prog 'test_core_bitfields_direct': relo #0: patched insn #0 (ALU/ALU64) imm 0 -> 0 libbpf: prog 'test_core_bitfields_direct': relo #1: kind (1), spec is [5] struct core_reloc_bitfields.ub1 (0:0 @ offset 0) libbpf: prog 'test_core_bitfields_direct': relo #1: matching candidate #0 [4] struct core_reloc_bitfields.ub1 (0:0 @ offset 0) libbpf: prog 'test_core_bitfields_direct': relo #1: patched insn #4 (ALU/ALU64) imm 4 -> 1 libbpf: prog 'test_core_bitfields_direct': relo #2: kind (4), spec is [5] struct core_reloc_bitfields.ub1 (0:0 @ offset 0) libbpf: prog 'test_core_bitfields_direct': relo #2: matching candidate #0 [4] struct core_reloc_bitfields.ub1 (0:0 @ offset 0) libbpf: prog 'test_core_bitfields_direct': relo #2: patched insn #19 (ALU/ALU64) imm 63 -> 63 libbpf: prog 'test_core_bitfields_direct': relo #3: kind (3), spec is [5] struct core_reloc_bitfields.ub1 (0:0 @ offset 0) libbpf: prog 'test_core_bitfields_direct': relo #3: matching candidate #0 [4] struct core_reloc_bitfields.ub1 (0:0 @ offset 0) libbpf: prog 'test_core_bitfields_direct': relo #3: patched insn #20 (ALU/ALU64) imm 0 -> 0 libbpf: prog 'test_core_bitfields_direct': relo #4: kind (5), spec is [5] struct core_reloc_bitfields.ub1 (0:0 @ offset 0) libbpf: prog 'test_core_bitfields_direct': relo #4: matching candidate #0 [4] struct core_reloc_bitfields.ub1 (0:0 @ offset 0) libbpf: prog 'test_core_bitfields_direct': relo #4: patched insn #22 (ALU/ALU64) imm 63 -> 63 libbpf: prog 'test_core_bitfields_direct': relo #5: kind (5), spec is [5] struct core_reloc_bitfields.ub1 (0:0 @ offset 0) libbpf: prog 'test_core_bitfields_direct': relo #5: matching candidate #0 [4] struct core_reloc_bitfields.ub1 (0:0 @ offset 0) libbpf: prog 'test_core_bitfields_direct': relo #5: patched insn #24 (ALU/ALU64) imm 63 -> 63 libbpf: prog 'test_core_bitfields_direct': relo #6: kind (0), spec is [5] struct core_reloc_bitfields.ub2 (0:1 @ offset 0.1) libbpf: prog 'test_core_bitfields_direct': relo #6: matching candidate #0 [4] struct core_reloc_bitfields.ub2 (0:1 @ offset 0.1) libbpf: prog 'test_core_bitfields_direct': relo #6: patched insn #28 (ALU/ALU64) imm 0 -> 0 libbpf: prog 'test_core_bitfields_direct': relo #7: kind (1), spec is [5] struct core_reloc_bitfields.ub2 (0:1 @ offset 0.1) libbpf: prog 'test_core_bitfields_direct': relo #7: matching candidate #0 [4] struct core_reloc_bitfields.ub2 (0:1 @ offset 0.1) libbpf: prog 'test_core_bitfields_direct': relo #7: patched insn #30 (ALU/ALU64) imm 4 -> 1 libbpf: prog 'test_core_bitfields_direct': relo #8: kind (4), spec is [5] struct core_reloc_bitfields.ub2 (0:1 @ offset 0.1) libbpf: prog 'test_core_bitfields_direct': relo #8: matching candidate #0 [4] struct core_reloc_bitfields.ub2 (0:1 @ offset 0.1) libbpf: prog 'test_core_bitfields_direct': relo #8: patched insn #45 (ALU/ALU64) imm 61 -> 61 libbpf: prog 'test_core_bitfields_direct': relo #9: kind (3), spec is [5] struct core_reloc_bitfields.ub2 (0:1 @ offset 0.1) libbpf: prog 'test_core_bitfields_direct': relo #9: matching candidate #0 [4] struct core_reloc_bitfields.ub2 (0:1 @ offset 0.1) libbpf: prog 'test_core_bitfields_direct': relo #9: patched insn #46 (ALU/ALU64) imm 0 -> 0 libbpf: prog 'test_core_bitfields_direct': relo #10: kind (5), spec is [5] struct core_reloc_bitfields.ub2 (0:1 @ offset 0.1) libbpf: prog 'test_core_bitfields_direct': relo #10: matching candidate #0 [4] struct core_reloc_bitfields.ub2 (0:1 @ offset 0.1) libbpf: prog 'test_core_bitfields_direct': relo #10: patched insn #48 (ALU/ALU64) imm 62 -> 62 libbpf: prog 'test_core_bitfields_direct': relo #11: kind (5), spec is [5] struct core_reloc_bitfields.ub2 (0:1 @ offset 0.1) libbpf: prog 'test_core_bitfields_direct': relo #11: matching candidate #0 [4] struct core_reloc_bitfields.ub2 (0:1 @ offset 0.1) libbpf: prog 'test_core_bitfields_direct': relo #11: patched insn #50 (ALU/ALU64) imm 62 -> 62 libbpf: prog 'test_core_bitfields_direct': relo #12: kind (0), spec is [5] struct core_reloc_bitfields.ub7 (0:2 @ offset 0.3) libbpf: prog 'test_core_bitfields_direct': relo #12: matching candidate #0 [4] struct core_reloc_bitfields.ub7 (0:2 @ offset 0.3) libbpf: prog 'test_core_bitfields_direct': relo #12: patched insn #54 (ALU/ALU64) imm 0 -> 0 libbpf: prog 'test_core_bitfields_direct': relo #13: kind (1), spec is [5] struct core_reloc_bitfields.ub7 (0:2 @ offset 0.3) libbpf: prog 'test_core_bitfields_direct': relo #13: matching candidate #0 [4] struct core_reloc_bitfields.ub7 (0:2 @ offset 0.3) libbpf: prog 'test_core_bitfields_direct': relo #13: patched insn #56 (ALU/ALU64) imm 4 -> 4 libbpf: prog 'test_core_bitfields_direct': relo #14: kind (4), spec is [5] struct core_reloc_bitfields.ub7 (0:2 @ offset 0.3) libbpf: prog 'test_core_bitfields_direct': relo #14: matching candidate #0 [4] struct core_reloc_bitfields.ub7 (0:2 @ offset 0.3) libbpf: prog 'test_core_bitfields_direct': relo #14: patched insn #71 (ALU/ALU64) imm 54 -> 54 libbpf: prog 'test_core_bitfields_direct': relo #15: kind (3), spec is [5] struct core_reloc_bitfields.ub7 (0:2 @ offset 0.3) libbpf: prog 'test_core_bitfields_direct': relo #15: matching candidate #0 [4] struct core_reloc_bitfields.ub7 (0:2 @ offset 0.3) libbpf: prog 'test_core_bitfields_direct': relo #15: patched insn #72 (ALU/ALU64) imm 0 -> 0 libbpf: prog 'test_core_bitfields_direct': relo #16: kind (5), spec is [5] struct core_reloc_bitfields.ub7 (0:2 @ offset 0.3) libbpf: prog 'test_core_bitfields_direct': relo #16: matching candidate #0 [4] struct core_reloc_bitfields.ub7 (0:2 @ offset 0.3) libbpf: prog 'test_core_bitfields_direct': relo #16: patched insn #74 (ALU/ALU64) imm 57 -> 57 libbpf: prog 'test_core_bitfields_direct': relo #17: kind (5), spec is [5] struct core_reloc_bitfields.ub7 (0:2 @ offset 0.3) libbpf: prog 'test_core_bitfields_direct': relo #17: matching candidate #0 [4] struct core_reloc_bitfields.ub7 (0:2 @ offset 0.3) libbpf: prog 'test_core_bitfields_direct': relo #17: patched insn #76 (ALU/ALU64) imm 57 -> 57 libbpf: prog 'test_core_bitfields_direct': relo #18: kind (0), spec is [5] struct core_reloc_bitfields.sb4 (0:3 @ offset 1.2) libbpf: prog 'test_core_bitfields_direct': relo #18: matching candidate #0 [4] struct core_reloc_bitfields.sb4 (0:3 @ offset 1.2) libbpf: prog 'test_core_bitfields_direct': relo #18: patched insn #80 (ALU/ALU64) imm 0 -> 1 libbpf: prog 'test_core_bitfields_direct': relo #19: kind (1), spec is [5] struct core_reloc_bitfields.sb4 (0:3 @ offset 1.2) libbpf: prog 'test_core_bitfields_direct': relo #19: matching candidate #0 [4] struct core_reloc_bitfields.sb4 (0:3 @ offset 1.2) libbpf: prog 'test_core_bitfields_direct': relo #19: patched insn #82 (ALU/ALU64) imm 4 -> 1 libbpf: prog 'test_core_bitfields_direct': relo #20: kind (4), spec is [5] struct core_reloc_bitfields.sb4 (0:3 @ offset 1.2) libbpf: prog 'test_core_bitfields_direct': relo #20: matching candidate #0 [4] struct core_reloc_bitfields.sb4 (0:3 @ offset 1.2) libbpf: prog 'test_core_bitfields_direct': relo #20: patched insn #97 (ALU/ALU64) imm 50 -> 58 libbpf: prog 'test_core_bitfields_direct': relo #21: kind (3), spec is [5] struct core_reloc_bitfields.sb4 (0:3 @ offset 1.2) libbpf: prog 'test_core_bitfields_direct': relo #21: matching candidate #0 [4] struct core_reloc_bitfields.sb4 (0:3 @ offset 1.2) libbpf: prog 'test_core_bitfields_direct': relo #21: patched insn #98 (ALU/ALU64) imm 1 -> 1 libbpf: prog 'test_core_bitfields_direct': relo #22: kind (5), spec is [5] struct core_reloc_bitfields.sb4 (0:3 @ offset 1.2) libbpf: prog 'test_core_bitfields_direct': relo #22: matching candidate #0 [4] struct core_reloc_bitfields.sb4 (0:3 @ offset 1.2) libbpf: prog 'test_core_bitfields_direct': relo #22: patched insn #100 (ALU/ALU64) imm 60 -> 60 libbpf: prog 'test_core_bitfields_direct': relo #23: kind (5), spec is [5] struct core_reloc_bitfields.sb4 (0:3 @ offset 1.2) libbpf: prog 'test_core_bitfields_direct': relo #23: matching candidate #0 [4] struct core_reloc_bitfields.sb4 (0:3 @ offset 1.2) libbpf: prog 'test_core_bitfields_direct': relo #23: patched insn #102 (ALU/ALU64) imm 60 -> 60 libbpf: prog 'test_core_bitfields_direct': relo #24: kind (0), spec is [5] struct core_reloc_bitfields.sb20 (0:4 @ offset 4) libbpf: prog 'test_core_bitfields_direct': relo #24: matching candidate #0 [4] struct core_reloc_bitfields.sb20 (0:4 @ offset 4) libbpf: prog 'test_core_bitfields_direct': relo #24: patched insn #106 (ALU/ALU64) imm 4 -> 4 libbpf: prog 'test_core_bitfields_direct': relo #25: kind (1), spec is [5] struct core_reloc_bitfields.sb20 (0:4 @ offset 4) libbpf: prog 'test_core_bitfields_direct': relo #25: matching candidate #0 [4] struct core_reloc_bitfields.sb20 (0:4 @ offset 4) libbpf: prog 'test_core_bitfields_direct': relo #25: patched insn #108 (ALU/ALU64) imm 4 -> 4 libbpf: prog 'test_core_bitfields_direct': relo #26: kind (4), spec is [5] struct core_reloc_bitfields.sb20 (0:4 @ offset 4) libbpf: prog 'test_core_bitfields_direct': relo #26: matching candidate #0 [4] struct core_reloc_bitfields.sb20 (0:4 @ offset 4) libbpf: prog 'test_core_bitfields_direct': relo #26: patched insn #123 (ALU/ALU64) imm 44 -> 44 libbpf: prog 'test_core_bitfields_direct': relo #27: kind (3), spec is [5] struct core_reloc_bitfields.sb20 (0:4 @ offset 4) libbpf: prog 'test_core_bitfields_direct': relo #27: matching candidate #0 [4] struct core_reloc_bitfields.sb20 (0:4 @ offset 4) libbpf: prog 'test_core_bitfields_direct': relo #27: patched insn #124 (ALU/ALU64) imm 1 -> 1 libbpf: prog 'test_core_bitfields_direct': relo #28: kind (5), spec is [5] struct core_reloc_bitfields.sb20 (0:4 @ offset 4) libbpf: prog 'test_core_bitfields_direct': relo #28: matching candidate #0 [4] struct core_reloc_bitfields.sb20 (0:4 @ offset 4) libbpf: prog 'test_core_bitfields_direct': relo #28: patched insn #126 (ALU/ALU64) imm 44 -> 44 libbpf: prog 'test_core_bitfields_direct': relo #29: kind (5), spec is [5] struct core_reloc_bitfields.sb20 (0:4 @ offset 4) libbpf: prog 'test_core_bitfields_direct': relo #29: matching candidate #0 [4] struct core_reloc_bitfields.sb20 (0:4 @ offset 4) libbpf: prog 'test_core_bitfields_direct': relo #29: patched insn #128 (ALU/ALU64) imm 44 -> 44 libbpf: prog 'test_core_bitfields_direct': relo #30: kind (0), spec is [5] struct core_reloc_bitfields.u32 (0:5 @ offset 8) libbpf: prog 'test_core_bitfields_direct': relo #30: matching candidate #0 [4] struct core_reloc_bitfields.u32 (0:5 @ offset 8) libbpf: prog 'test_core_bitfields_direct': relo #30: patched insn #132 (ALU/ALU64) imm 8 -> 8 libbpf: prog 'test_core_bitfields_direct': relo #31: kind (1), spec is [5] struct core_reloc_bitfields.u32 (0:5 @ offset 8) libbpf: prog 'test_core_bitfields_direct': relo #31: matching candidate #0 [4] struct core_reloc_bitfields.u32 (0:5 @ offset 8) libbpf: prog 'test_core_bitfields_direct': relo #31: patched insn #134 (ALU/ALU64) imm 4 -> 4 libbpf: prog 'test_core_bitfields_direct': relo #32: kind (4), spec is [5] struct core_reloc_bitfields.u32 (0:5 @ offset 8) libbpf: prog 'test_core_bitfields_direct': relo #32: matching candidate #0 [4] struct core_reloc_bitfields.u32 (0:5 @ offset 8) libbpf: prog 'test_core_bitfields_direct': relo #32: patched insn #149 (ALU/ALU64) imm 32 -> 32 libbpf: prog 'test_core_bitfields_direct': relo #33: kind (3), spec is [5] struct core_reloc_bitfields.u32 (0:5 @ offset 8) libbpf: prog 'test_core_bitfields_direct': relo #33: matching candidate #0 [4] struct core_reloc_bitfields.u32 (0:5 @ offset 8) libbpf: prog 'test_core_bitfields_direct': relo #33: patched insn #150 (ALU/ALU64) imm 0 -> 0 libbpf: prog 'test_core_bitfields_direct': relo #34: kind (5), spec is [5] struct core_reloc_bitfields.u32 (0:5 @ offset 8) libbpf: prog 'test_core_bitfields_direct': relo #34: matching candidate #0 [4] struct core_reloc_bitfields.u32 (0:5 @ offset 8) libbpf: prog 'test_core_bitfields_direct': relo #34: patched insn #152 (ALU/ALU64) imm 32 -> 32 libbpf: prog 'test_core_bitfields_direct': relo #35: kind (5), spec is [5] struct core_reloc_bitfields.u32 (0:5 @ offset 8) libbpf: prog 'test_core_bitfields_direct': relo #35: matching candidate #0 [4] struct core_reloc_bitfields.u32 (0:5 @ offset 8) libbpf: prog 'test_core_bitfields_direct': relo #35: patched insn #154 (ALU/ALU64) imm 32 -> 32 libbpf: prog 'test_core_bitfields_direct': relo #36: kind (0), spec is [5] struct core_reloc_bitfields.s32 (0:6 @ offset 12) libbpf: prog 'test_core_bitfields_direct': relo #36: matching candidate #0 [4] struct core_reloc_bitfields.s32 (0:6 @ offset 12) libbpf: prog 'test_core_bitfields_direct': relo #36: patched insn #158 (ALU/ALU64) imm 12 -> 12 libbpf: prog 'test_core_bitfields_direct': relo #37: kind (1), spec is [5] struct core_reloc_bitfields.s32 (0:6 @ offset 12) libbpf: prog 'test_core_bitfields_direct': relo #37: matching candidate #0 [4] struct core_reloc_bitfields.s32 (0:6 @ offset 12) libbpf: prog 'test_core_bitfields_direct': relo #37: patched insn #160 (ALU/ALU64) imm 4 -> 4 libbpf: prog 'test_core_bitfields_direct': relo #38: kind (4), spec is [5] struct core_reloc_bitfields.s32 (0:6 @ offset 12) libbpf: prog 'test_core_bitfields_direct': relo #38: matching candidate #0 [4] struct core_reloc_bitfields.s32 (0:6 @ offset 12) libbpf: prog 'test_core_bitfields_direct': relo #38: patched insn #175 (ALU/ALU64) imm 32 -> 32 libbpf: prog 'test_core_bitfields_direct': relo #39: kind (3), spec is [5] struct core_reloc_bitfields.s32 (0:6 @ offset 12) libbpf: prog 'test_core_bitfields_direct': relo #39: matching candidate #0 [4] struct core_reloc_bitfields.s32 (0:6 @ offset 12) libbpf: prog 'test_core_bitfields_direct': relo #39: patched insn #176 (ALU/ALU64) imm 1 -> 1 libbpf: prog 'test_core_bitfields_direct': relo #40: kind (5), spec is [5] struct core_reloc_bitfields.s32 (0:6 @ offset 12) libbpf: prog 'test_core_bitfields_direct': relo #40: matching candidate #0 [4] struct core_reloc_bitfields.s32 (0:6 @ offset 12) libbpf: prog 'test_core_bitfields_direct': relo #40: patched insn #178 (ALU/ALU64) imm 32 -> 32 libbpf: prog 'test_core_bitfields_direct': relo #41: kind (5), spec is [5] struct core_reloc_bitfields.s32 (0:6 @ offset 12) libbpf: prog 'test_core_bitfields_direct': relo #41: matching candidate #0 [4] struct core_reloc_bitfields.s32 (0:6 @ offset 12) libbpf: prog 'test_core_bitfields_direct': relo #41: patched insn #180 (ALU/ALU64) imm 32 -> 32 test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/49 core_reloc/direct:bitfields:OK test_core_reloc:PASS:btf_src_file 0 nsec libbpf: loading test_core_reloc_bitfields_probed.o libbpf: elf: section(2) raw_tracepoint/sys_enter, size 1040, link 0, flags 6, type=1 libbpf: sec 'raw_tracepoint/sys_enter': found program 'test_core_bitfields' at insn offset 0 (0 bytes), code size 130 insns (1040 bytes) libbpf: elf: section(3) .relraw_tracepoint/sys_enter, size 128, link 11, flags 40, type=9 libbpf: elf: section(4) license, size 4, link 0, flags 3, type=1 libbpf: license of test_core_reloc_bitfields_probed.o is GPL libbpf: elf: section(5) .bss, size 512, link 0, flags 3, type=8 libbpf: elf: section(6) .BTF, size 1412, link 0, flags 0, type=1 libbpf: elf: section(8) .BTF.ext, size 1340, link 0, flags 0, type=1 libbpf: elf: section(11) .symtab, size 600, link 12, flags 0, type=2 libbpf: looking for externs among 25 symbols... libbpf: collected 0 externs total libbpf: map 'test_cor.bss' (global data): at sec_idx 5, offset 0, flags 400. libbpf: map 0 is "test_cor.bss" libbpf: sec '.relraw_tracepoint/sys_enter': collecting relocation for section(2) 'raw_tracepoint/sys_enter' libbpf: sec '.relraw_tracepoint/sys_enter': relo #0: insn #3 against 'data' libbpf: prog 'test_core_bitfields': found data map 0 (test_cor.bss, sec 5, off 0) for insn 3 libbpf: sec '.relraw_tracepoint/sys_enter': relo #1: insn #17 against 'data' libbpf: prog 'test_core_bitfields': found data map 0 (test_cor.bss, sec 5, off 0) for insn 17 libbpf: sec '.relraw_tracepoint/sys_enter': relo #2: insn #35 against 'data' libbpf: prog 'test_core_bitfields': found data map 0 (test_cor.bss, sec 5, off 0) for insn 35 libbpf: sec '.relraw_tracepoint/sys_enter': relo #3: insn #53 against 'data' libbpf: prog 'test_core_bitfields': found data map 0 (test_cor.bss, sec 5, off 0) for insn 53 libbpf: sec '.relraw_tracepoint/sys_enter': relo #4: insn #71 against 'data' libbpf: prog 'test_core_bitfields': found data map 0 (test_cor.bss, sec 5, off 0) for insn 71 libbpf: sec '.relraw_tracepoint/sys_enter': relo #5: insn #89 against 'data' libbpf: prog 'test_core_bitfields': found data map 0 (test_cor.bss, sec 5, off 0) for insn 89 libbpf: sec '.relraw_tracepoint/sys_enter': relo #6: insn #107 against 'data' libbpf: prog 'test_core_bitfields': found data map 0 (test_cor.bss, sec 5, off 0) for insn 107 libbpf: sec '.relraw_tracepoint/sys_enter': relo #7: insn #125 against 'data' libbpf: prog 'test_core_bitfields': found data map 0 (test_cor.bss, sec 5, off 0) for insn 125 test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: map 'test_cor.bss': created successfully, fd=5 libbpf: sec 'raw_tracepoint/sys_enter': found 42 CO-RE relocations libbpf: CO-RE relocating [5] struct core_reloc_bitfields: found target candidate [4] struct core_reloc_bitfields___bit_sz_change in [vmlinux] libbpf: prog 'test_core_bitfields': relo #0: kind (0), spec is [5] struct core_reloc_bitfields.ub1 (0:0 @ offset 0) libbpf: prog 'test_core_bitfields': relo #0: matching candidate #0 [4] struct core_reloc_bitfields___bit_sz_change.ub1 (0:0 @ offset 0) libbpf: prog 'test_core_bitfields': relo #0: patched insn #2 (ALU/ALU64) imm 0 -> 0 libbpf: prog 'test_core_bitfields': relo #1: kind (1), spec is [5] struct core_reloc_bitfields.ub1 (0:0 @ offset 0) libbpf: prog 'test_core_bitfields': relo #1: matching candidate #0 [4] struct core_reloc_bitfields___bit_sz_change.ub1 (0:0 @ offset 0) libbpf: prog 'test_core_bitfields': relo #1: patched insn #8 (ALU/ALU64) imm 4 -> 2 libbpf: prog 'test_core_bitfields': relo #2: kind (4), spec is [5] struct core_reloc_bitfields.ub1 (0:0 @ offset 0) libbpf: prog 'test_core_bitfields': relo #2: matching candidate #0 [4] struct core_reloc_bitfields___bit_sz_change.ub1 (0:0 @ offset 0) libbpf: prog 'test_core_bitfields': relo #2: patched insn #11 (ALU/ALU64) imm 63 -> 61 libbpf: prog 'test_core_bitfields': relo #3: kind (3), spec is [5] struct core_reloc_bitfields.ub1 (0:0 @ offset 0) libbpf: prog 'test_core_bitfields': relo #3: matching candidate #0 [4] struct core_reloc_bitfields___bit_sz_change.ub1 (0:0 @ offset 0) libbpf: prog 'test_core_bitfields': relo #3: patched insn #12 (ALU/ALU64) imm 0 -> 0 libbpf: prog 'test_core_bitfields': relo #4: kind (5), spec is [5] struct core_reloc_bitfields.ub1 (0:0 @ offset 0) libbpf: prog 'test_core_bitfields': relo #4: matching candidate #0 [4] struct core_reloc_bitfields___bit_sz_change.ub1 (0:0 @ offset 0) libbpf: prog 'test_core_bitfields': relo #4: patched insn #14 (ALU/ALU64) imm 63 -> 61 libbpf: prog 'test_core_bitfields': relo #5: kind (5), spec is [5] struct core_reloc_bitfields.ub1 (0:0 @ offset 0) libbpf: prog 'test_core_bitfields': relo #5: matching candidate #0 [4] struct core_reloc_bitfields___bit_sz_change.ub1 (0:0 @ offset 0) libbpf: prog 'test_core_bitfields': relo #5: patched insn #16 (ALU/ALU64) imm 63 -> 61 libbpf: prog 'test_core_bitfields': relo #6: kind (0), spec is [5] struct core_reloc_bitfields.ub2 (0:1 @ offset 0.1) libbpf: prog 'test_core_bitfields': relo #6: matching candidate #0 [4] struct core_reloc_bitfields___bit_sz_change.ub2 (0:1 @ offset 0.3) libbpf: prog 'test_core_bitfields': relo #6: patched insn #22 (ALU/ALU64) imm 0 -> 0 libbpf: prog 'test_core_bitfields': relo #7: kind (1), spec is [5] struct core_reloc_bitfields.ub2 (0:1 @ offset 0.1) libbpf: prog 'test_core_bitfields': relo #7: matching candidate #0 [4] struct core_reloc_bitfields___bit_sz_change.ub2 (0:1 @ offset 0.3) libbpf: prog 'test_core_bitfields': relo #7: patched insn #26 (ALU/ALU64) imm 4 -> 4 libbpf: prog 'test_core_bitfields': relo #8: kind (4), spec is [5] struct core_reloc_bitfields.ub2 (0:1 @ offset 0.1) libbpf: prog 'test_core_bitfields': relo #8: matching candidate #0 [4] struct core_reloc_bitfields___bit_sz_change.ub2 (0:1 @ offset 0.3) libbpf: prog 'test_core_bitfields': relo #8: patched insn #29 (ALU/ALU64) imm 61 -> 41 libbpf: prog 'test_core_bitfields': relo #9: kind (3), spec is [5] struct core_reloc_bitfields.ub2 (0:1 @ offset 0.1) libbpf: prog 'test_core_bitfields': relo #9: matching candidate #0 [4] struct core_reloc_bitfields___bit_sz_change.ub2 (0:1 @ offset 0.3) libbpf: prog 'test_core_bitfields': relo #9: patched insn #30 (ALU/ALU64) imm 0 -> 0 libbpf: prog 'test_core_bitfields': relo #10: kind (5), spec is [5] struct core_reloc_bitfields.ub2 (0:1 @ offset 0.1) libbpf: prog 'test_core_bitfields': relo #10: matching candidate #0 [4] struct core_reloc_bitfields___bit_sz_change.ub2 (0:1 @ offset 0.3) libbpf: prog 'test_core_bitfields': relo #10: patched insn #32 (ALU/ALU64) imm 62 -> 44 libbpf: prog 'test_core_bitfields': relo #11: kind (5), spec is [5] struct core_reloc_bitfields.ub2 (0:1 @ offset 0.1) libbpf: prog 'test_core_bitfields': relo #11: matching candidate #0 [4] struct core_reloc_bitfields___bit_sz_change.ub2 (0:1 @ offset 0.3) libbpf: prog 'test_core_bitfields': relo #11: patched insn #34 (ALU/ALU64) imm 62 -> 44 libbpf: prog 'test_core_bitfields': relo #12: kind (0), spec is [5] struct core_reloc_bitfields.ub7 (0:2 @ offset 0.3) libbpf: prog 'test_core_bitfields': relo #12: matching candidate #0 [4] struct core_reloc_bitfields___bit_sz_change.ub7 (0:2 @ offset 2.7) libbpf: prog 'test_core_bitfields': relo #12: patched insn #40 (ALU/ALU64) imm 0 -> 2 libbpf: prog 'test_core_bitfields': relo #13: kind (1), spec is [5] struct core_reloc_bitfields.ub7 (0:2 @ offset 0.3) libbpf: prog 'test_core_bitfields': relo #13: matching candidate #0 [4] struct core_reloc_bitfields___bit_sz_change.ub7 (0:2 @ offset 2.7) libbpf: prog 'test_core_bitfields': relo #13: patched insn #44 (ALU/ALU64) imm 4 -> 1 libbpf: prog 'test_core_bitfields': relo #14: kind (4), spec is [5] struct core_reloc_bitfields.ub7 (0:2 @ offset 0.3) libbpf: prog 'test_core_bitfields': relo #14: matching candidate #0 [4] struct core_reloc_bitfields___bit_sz_change.ub7 (0:2 @ offset 2.7) libbpf: prog 'test_core_bitfields': relo #14: patched insn #47 (ALU/ALU64) imm 54 -> 56 libbpf: prog 'test_core_bitfields': relo #15: kind (3), spec is [5] struct core_reloc_bitfields.ub7 (0:2 @ offset 0.3) libbpf: prog 'test_core_bitfields': relo #15: matching candidate #0 [4] struct core_reloc_bitfields___bit_sz_change.ub7 (0:2 @ offset 2.7) libbpf: prog 'test_core_bitfields': relo #15: patched insn #48 (ALU/ALU64) imm 0 -> 0 libbpf: prog 'test_core_bitfields': relo #16: kind (5), spec is [5] struct core_reloc_bitfields.ub7 (0:2 @ offset 0.3) libbpf: prog 'test_core_bitfields': relo #16: matching candidate #0 [4] struct core_reloc_bitfields___bit_sz_change.ub7 (0:2 @ offset 2.7) libbpf: prog 'test_core_bitfields': relo #16: patched insn #50 (ALU/ALU64) imm 57 -> 63 libbpf: prog 'test_core_bitfields': relo #17: kind (5), spec is [5] struct core_reloc_bitfields.ub7 (0:2 @ offset 0.3) libbpf: prog 'test_core_bitfields': relo #17: matching candidate #0 [4] struct core_reloc_bitfields___bit_sz_change.ub7 (0:2 @ offset 2.7) libbpf: prog 'test_core_bitfields': relo #17: patched insn #52 (ALU/ALU64) imm 57 -> 63 libbpf: prog 'test_core_bitfields': relo #18: kind (0), spec is [5] struct core_reloc_bitfields.sb4 (0:3 @ offset 1.2) libbpf: prog 'test_core_bitfields': relo #18: matching candidate #0 [4] struct core_reloc_bitfields___bit_sz_change.sb4 (0:3 @ offset 3) libbpf: prog 'test_core_bitfields': relo #18: patched insn #58 (ALU/ALU64) imm 0 -> 3 libbpf: prog 'test_core_bitfields': relo #19: kind (1), spec is [5] struct core_reloc_bitfields.sb4 (0:3 @ offset 1.2) libbpf: prog 'test_core_bitfields': relo #19: matching candidate #0 [4] struct core_reloc_bitfields___bit_sz_change.sb4 (0:3 @ offset 3) libbpf: prog 'test_core_bitfields': relo #19: patched insn #62 (ALU/ALU64) imm 4 -> 1 libbpf: prog 'test_core_bitfields': relo #20: kind (4), spec is [5] struct core_reloc_bitfields.sb4 (0:3 @ offset 1.2) libbpf: prog 'test_core_bitfields': relo #20: matching candidate #0 [4] struct core_reloc_bitfields___bit_sz_change.sb4 (0:3 @ offset 3) libbpf: prog 'test_core_bitfields': relo #20: patched insn #65 (ALU/ALU64) imm 50 -> 63 libbpf: prog 'test_core_bitfields': relo #21: kind (3), spec is [5] struct core_reloc_bitfields.sb4 (0:3 @ offset 1.2) libbpf: prog 'test_core_bitfields': relo #21: matching candidate #0 [4] struct core_reloc_bitfields___bit_sz_change.sb4 (0:3 @ offset 3) libbpf: prog 'test_core_bitfields': relo #21: patched insn #66 (ALU/ALU64) imm 1 -> 1 libbpf: prog 'test_core_bitfields': relo #22: kind (5), spec is [5] struct core_reloc_bitfields.sb4 (0:3 @ offset 1.2) libbpf: prog 'test_core_bitfields': relo #22: matching candidate #0 [4] struct core_reloc_bitfields___bit_sz_change.sb4 (0:3 @ offset 3) libbpf: prog 'test_core_bitfields': relo #22: patched insn #68 (ALU/ALU64) imm 60 -> 63 libbpf: prog 'test_core_bitfields': relo #23: kind (5), spec is [5] struct core_reloc_bitfields.sb4 (0:3 @ offset 1.2) libbpf: prog 'test_core_bitfields': relo #23: matching candidate #0 [4] struct core_reloc_bitfields___bit_sz_change.sb4 (0:3 @ offset 3) libbpf: prog 'test_core_bitfields': relo #23: patched insn #70 (ALU/ALU64) imm 60 -> 63 libbpf: prog 'test_core_bitfields': relo #24: kind (0), spec is [5] struct core_reloc_bitfields.sb20 (0:4 @ offset 4) libbpf: prog 'test_core_bitfields': relo #24: matching candidate #0 [4] struct core_reloc_bitfields___bit_sz_change.sb20 (0:4 @ offset 4) libbpf: prog 'test_core_bitfields': relo #24: patched insn #76 (ALU/ALU64) imm 4 -> 4 libbpf: prog 'test_core_bitfields': relo #25: kind (1), spec is [5] struct core_reloc_bitfields.sb20 (0:4 @ offset 4) libbpf: prog 'test_core_bitfields': relo #25: matching candidate #0 [4] struct core_reloc_bitfields___bit_sz_change.sb20 (0:4 @ offset 4) libbpf: prog 'test_core_bitfields': relo #25: patched insn #80 (ALU/ALU64) imm 4 -> 4 libbpf: prog 'test_core_bitfields': relo #26: kind (4), spec is [5] struct core_reloc_bitfields.sb20 (0:4 @ offset 4) libbpf: prog 'test_core_bitfields': relo #26: matching candidate #0 [4] struct core_reloc_bitfields___bit_sz_change.sb20 (0:4 @ offset 4) libbpf: prog 'test_core_bitfields': relo #26: patched insn #83 (ALU/ALU64) imm 44 -> 34 libbpf: prog 'test_core_bitfields': relo #27: kind (3), spec is [5] struct core_reloc_bitfields.sb20 (0:4 @ offset 4) libbpf: prog 'test_core_bitfields': relo #27: matching candidate #0 [4] struct core_reloc_bitfields___bit_sz_change.sb20 (0:4 @ offset 4) libbpf: prog 'test_core_bitfields': relo #27: patched insn #84 (ALU/ALU64) imm 1 -> 1 libbpf: prog 'test_core_bitfields': relo #28: kind (5), spec is [5] struct core_reloc_bitfields.sb20 (0:4 @ offset 4) libbpf: prog 'test_core_bitfields': relo #28: matching candidate #0 [4] struct core_reloc_bitfields___bit_sz_change.sb20 (0:4 @ offset 4) libbpf: prog 'test_core_bitfields': relo #28: patched insn #86 (ALU/ALU64) imm 44 -> 34 libbpf: prog 'test_core_bitfields': relo #29: kind (5), spec is [5] struct core_reloc_bitfields.sb20 (0:4 @ offset 4) libbpf: prog 'test_core_bitfields': relo #29: matching candidate #0 [4] struct core_reloc_bitfields___bit_sz_change.sb20 (0:4 @ offset 4) libbpf: prog 'test_core_bitfields': relo #29: patched insn #88 (ALU/ALU64) imm 44 -> 34 libbpf: prog 'test_core_bitfields': relo #30: kind (0), spec is [5] struct core_reloc_bitfields.u32 (0:5 @ offset 8) libbpf: prog 'test_core_bitfields': relo #30: matching candidate #0 [4] struct core_reloc_bitfields___bit_sz_change.u32 (0:5 @ offset 8) libbpf: prog 'test_core_bitfields': relo #30: patched insn #94 (ALU/ALU64) imm 8 -> 8 libbpf: prog 'test_core_bitfields': relo #31: kind (1), spec is [5] struct core_reloc_bitfields.u32 (0:5 @ offset 8) libbpf: prog 'test_core_bitfields': relo #31: matching candidate #0 [4] struct core_reloc_bitfields___bit_sz_change.u32 (0:5 @ offset 8) libbpf: prog 'test_core_bitfields': relo #31: patched insn #98 (ALU/ALU64) imm 4 -> 2 libbpf: prog 'test_core_bitfields': relo #32: kind (4), spec is [5] struct core_reloc_bitfields.u32 (0:5 @ offset 8) libbpf: prog 'test_core_bitfields': relo #32: matching candidate #0 [4] struct core_reloc_bitfields___bit_sz_change.u32 (0:5 @ offset 8) libbpf: prog 'test_core_bitfields': relo #32: patched insn #101 (ALU/ALU64) imm 32 -> 48 libbpf: prog 'test_core_bitfields': relo #33: kind (3), spec is [5] struct core_reloc_bitfields.u32 (0:5 @ offset 8) libbpf: prog 'test_core_bitfields': relo #33: matching candidate #0 [4] struct core_reloc_bitfields___bit_sz_change.u32 (0:5 @ offset 8) libbpf: prog 'test_core_bitfields': relo #33: patched insn #102 (ALU/ALU64) imm 0 -> 0 libbpf: prog 'test_core_bitfields': relo #34: kind (5), spec is [5] struct core_reloc_bitfields.u32 (0:5 @ offset 8) libbpf: prog 'test_core_bitfields': relo #34: matching candidate #0 [4] struct core_reloc_bitfields___bit_sz_change.u32 (0:5 @ offset 8) libbpf: prog 'test_core_bitfields': relo #34: patched insn #104 (ALU/ALU64) imm 32 -> 48 libbpf: prog 'test_core_bitfields': relo #35: kind (5), spec is [5] struct core_reloc_bitfields.u32 (0:5 @ offset 8) libbpf: prog 'test_core_bitfields': relo #35: matching candidate #0 [4] struct core_reloc_bitfields___bit_sz_change.u32 (0:5 @ offset 8) libbpf: prog 'test_core_bitfields': relo #35: patched insn #106 (ALU/ALU64) imm 32 -> 48 libbpf: prog 'test_core_bitfields': relo #36: kind (0), spec is [5] struct core_reloc_bitfields.s32 (0:6 @ offset 12) libbpf: prog 'test_core_bitfields': relo #36: matching candidate #0 [4] struct core_reloc_bitfields___bit_sz_change.s32 (0:6 @ offset 16) libbpf: prog 'test_core_bitfields': relo #36: patched insn #112 (ALU/ALU64) imm 12 -> 16 libbpf: prog 'test_core_bitfields': relo #37: kind (1), spec is [5] struct core_reloc_bitfields.s32 (0:6 @ offset 12) libbpf: prog 'test_core_bitfields': relo #37: matching candidate #0 [4] struct core_reloc_bitfields___bit_sz_change.s32 (0:6 @ offset 16) libbpf: prog 'test_core_bitfields': relo #37: patched insn #116 (ALU/ALU64) imm 4 -> 8 libbpf: prog 'test_core_bitfields': relo #38: kind (4), spec is [5] struct core_reloc_bitfields.s32 (0:6 @ offset 12) libbpf: prog 'test_core_bitfields': relo #38: matching candidate #0 [4] struct core_reloc_bitfields___bit_sz_change.s32 (0:6 @ offset 16) libbpf: prog 'test_core_bitfields': relo #38: patched insn #119 (ALU/ALU64) imm 32 -> 0 libbpf: prog 'test_core_bitfields': relo #39: kind (3), spec is [5] struct core_reloc_bitfields.s32 (0:6 @ offset 12) libbpf: prog 'test_core_bitfields': relo #39: matching candidate #0 [4] struct core_reloc_bitfields___bit_sz_change.s32 (0:6 @ offset 16) libbpf: prog 'test_core_bitfields': relo #39: patched insn #120 (ALU/ALU64) imm 1 -> 1 libbpf: prog 'test_core_bitfields': relo #40: kind (5), spec is [5] struct core_reloc_bitfields.s32 (0:6 @ offset 12) libbpf: prog 'test_core_bitfields': relo #40: matching candidate #0 [4] struct core_reloc_bitfields___bit_sz_change.s32 (0:6 @ offset 16) libbpf: prog 'test_core_bitfields': relo #40: patched insn #122 (ALU/ALU64) imm 32 -> 0 libbpf: prog 'test_core_bitfields': relo #41: kind (5), spec is [5] struct core_reloc_bitfields.s32 (0:6 @ offset 12) libbpf: prog 'test_core_bitfields': relo #41: matching candidate #0 [4] struct core_reloc_bitfields___bit_sz_change.s32 (0:6 @ offset 16) libbpf: prog 'test_core_bitfields': relo #41: patched insn #124 (ALU/ALU64) imm 32 -> 0 test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/50 core_reloc/probed:bitfields___bit_sz_change:OK test_core_reloc:PASS:btf_src_file 0 nsec libbpf: loading test_core_reloc_bitfields_direct.o libbpf: elf: section(2) tp_btf/sys_enter, size 1488, link 0, flags 6, type=1 libbpf: sec 'tp_btf/sys_enter': found program 'test_core_bitfields_direct' at insn offset 0 (0 bytes), code size 186 insns (1488 bytes) libbpf: elf: section(3) .reltp_btf/sys_enter, size 128, link 11, flags 40, type=9 libbpf: elf: section(4) license, size 4, link 0, flags 3, type=1 libbpf: license of test_core_reloc_bitfields_direct.o is GPL libbpf: elf: section(5) .bss, size 512, link 0, flags 3, type=8 libbpf: elf: section(6) .BTF, size 1369, link 0, flags 0, type=1 libbpf: elf: section(8) .BTF.ext, size 1564, link 0, flags 0, type=1 libbpf: elf: section(11) .symtab, size 1608, link 12, flags 0, type=2 libbpf: looking for externs among 67 symbols... libbpf: collected 0 externs total libbpf: map 'test_cor.bss' (global data): at sec_idx 5, offset 0, flags 400. libbpf: map 0 is "test_cor.bss" libbpf: sec '.reltp_btf/sys_enter': collecting relocation for section(2) 'tp_btf/sys_enter' libbpf: sec '.reltp_btf/sys_enter': relo #0: insn #1 against 'data' libbpf: prog 'test_core_bitfields_direct': found data map 0 (test_cor.bss, sec 5, off 0) for insn 1 libbpf: sec '.reltp_btf/sys_enter': relo #1: insn #25 against 'data' libbpf: prog 'test_core_bitfields_direct': found data map 0 (test_cor.bss, sec 5, off 0) for insn 25 libbpf: sec '.reltp_btf/sys_enter': relo #2: insn #51 against 'data' libbpf: prog 'test_core_bitfields_direct': found data map 0 (test_cor.bss, sec 5, off 0) for insn 51 libbpf: sec '.reltp_btf/sys_enter': relo #3: insn #77 against 'data' libbpf: prog 'test_core_bitfields_direct': found data map 0 (test_cor.bss, sec 5, off 0) for insn 77 libbpf: sec '.reltp_btf/sys_enter': relo #4: insn #103 against 'data' libbpf: prog 'test_core_bitfields_direct': found data map 0 (test_cor.bss, sec 5, off 0) for insn 103 libbpf: sec '.reltp_btf/sys_enter': relo #5: insn #129 against 'data' libbpf: prog 'test_core_bitfields_direct': found data map 0 (test_cor.bss, sec 5, off 0) for insn 129 libbpf: sec '.reltp_btf/sys_enter': relo #6: insn #155 against 'data' libbpf: prog 'test_core_bitfields_direct': found data map 0 (test_cor.bss, sec 5, off 0) for insn 155 libbpf: sec '.reltp_btf/sys_enter': relo #7: insn #181 against 'data' libbpf: prog 'test_core_bitfields_direct': found data map 0 (test_cor.bss, sec 5, off 0) for insn 181 test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: loading kernel BTF '/sys/kernel/btf/vmlinux': 0 libbpf: map 'test_cor.bss': created successfully, fd=5 libbpf: sec 'tp_btf/sys_enter': found 42 CO-RE relocations libbpf: CO-RE relocating [5] struct core_reloc_bitfields: found target candidate [4] struct core_reloc_bitfields___bit_sz_change in [vmlinux] libbpf: prog 'test_core_bitfields_direct': relo #0: kind (0), spec is [5] struct core_reloc_bitfields.ub1 (0:0 @ offset 0) libbpf: prog 'test_core_bitfields_direct': relo #0: matching candidate #0 [4] struct core_reloc_bitfields___bit_sz_change.ub1 (0:0 @ offset 0) libbpf: prog 'test_core_bitfields_direct': relo #0: patched insn #0 (ALU/ALU64) imm 0 -> 0 libbpf: prog 'test_core_bitfields_direct': relo #1: kind (1), spec is [5] struct core_reloc_bitfields.ub1 (0:0 @ offset 0) libbpf: prog 'test_core_bitfields_direct': relo #1: matching candidate #0 [4] struct core_reloc_bitfields___bit_sz_change.ub1 (0:0 @ offset 0) libbpf: prog 'test_core_bitfields_direct': relo #1: patched insn #4 (ALU/ALU64) imm 4 -> 2 libbpf: prog 'test_core_bitfields_direct': relo #2: kind (4), spec is [5] struct core_reloc_bitfields.ub1 (0:0 @ offset 0) libbpf: prog 'test_core_bitfields_direct': relo #2: matching candidate #0 [4] struct core_reloc_bitfields___bit_sz_change.ub1 (0:0 @ offset 0) libbpf: prog 'test_core_bitfields_direct': relo #2: patched insn #19 (ALU/ALU64) imm 63 -> 61 libbpf: prog 'test_core_bitfields_direct': relo #3: kind (3), spec is [5] struct core_reloc_bitfields.ub1 (0:0 @ offset 0) libbpf: prog 'test_core_bitfields_direct': relo #3: matching candidate #0 [4] struct core_reloc_bitfields___bit_sz_change.ub1 (0:0 @ offset 0) libbpf: prog 'test_core_bitfields_direct': relo #3: patched insn #20 (ALU/ALU64) imm 0 -> 0 libbpf: prog 'test_core_bitfields_direct': relo #4: kind (5), spec is [5] struct core_reloc_bitfields.ub1 (0:0 @ offset 0) libbpf: prog 'test_core_bitfields_direct': relo #4: matching candidate #0 [4] struct core_reloc_bitfields___bit_sz_change.ub1 (0:0 @ offset 0) libbpf: prog 'test_core_bitfields_direct': relo #4: patched insn #22 (ALU/ALU64) imm 63 -> 61 libbpf: prog 'test_core_bitfields_direct': relo #5: kind (5), spec is [5] struct core_reloc_bitfields.ub1 (0:0 @ offset 0) libbpf: prog 'test_core_bitfields_direct': relo #5: matching candidate #0 [4] struct core_reloc_bitfields___bit_sz_change.ub1 (0:0 @ offset 0) libbpf: prog 'test_core_bitfields_direct': relo #5: patched insn #24 (ALU/ALU64) imm 63 -> 61 libbpf: prog 'test_core_bitfields_direct': relo #6: kind (0), spec is [5] struct core_reloc_bitfields.ub2 (0:1 @ offset 0.1) libbpf: prog 'test_core_bitfields_direct': relo #6: matching candidate #0 [4] struct core_reloc_bitfields___bit_sz_change.ub2 (0:1 @ offset 0.3) libbpf: prog 'test_core_bitfields_direct': relo #6: patched insn #28 (ALU/ALU64) imm 0 -> 0 libbpf: prog 'test_core_bitfields_direct': relo #7: kind (1), spec is [5] struct core_reloc_bitfields.ub2 (0:1 @ offset 0.1) libbpf: prog 'test_core_bitfields_direct': relo #7: matching candidate #0 [4] struct core_reloc_bitfields___bit_sz_change.ub2 (0:1 @ offset 0.3) libbpf: prog 'test_core_bitfields_direct': relo #7: patched insn #30 (ALU/ALU64) imm 4 -> 4 libbpf: prog 'test_core_bitfields_direct': relo #8: kind (4), spec is [5] struct core_reloc_bitfields.ub2 (0:1 @ offset 0.1) libbpf: prog 'test_core_bitfields_direct': relo #8: matching candidate #0 [4] struct core_reloc_bitfields___bit_sz_change.ub2 (0:1 @ offset 0.3) libbpf: prog 'test_core_bitfields_direct': relo #8: patched insn #45 (ALU/ALU64) imm 61 -> 41 libbpf: prog 'test_core_bitfields_direct': relo #9: kind (3), spec is [5] struct core_reloc_bitfields.ub2 (0:1 @ offset 0.1) libbpf: prog 'test_core_bitfields_direct': relo #9: matching candidate #0 [4] struct core_reloc_bitfields___bit_sz_change.ub2 (0:1 @ offset 0.3) libbpf: prog 'test_core_bitfields_direct': relo #9: patched insn #46 (ALU/ALU64) imm 0 -> 0 libbpf: prog 'test_core_bitfields_direct': relo #10: kind (5), spec is [5] struct core_reloc_bitfields.ub2 (0:1 @ offset 0.1) libbpf: prog 'test_core_bitfields_direct': relo #10: matching candidate #0 [4] struct core_reloc_bitfields___bit_sz_change.ub2 (0:1 @ offset 0.3) libbpf: prog 'test_core_bitfields_direct': relo #10: patched insn #48 (ALU/ALU64) imm 62 -> 44 libbpf: prog 'test_core_bitfields_direct': relo #11: kind (5), spec is [5] struct core_reloc_bitfields.ub2 (0:1 @ offset 0.1) libbpf: prog 'test_core_bitfields_direct': relo #11: matching candidate #0 [4] struct core_reloc_bitfields___bit_sz_change.ub2 (0:1 @ offset 0.3) libbpf: prog 'test_core_bitfields_direct': relo #11: patched insn #50 (ALU/ALU64) imm 62 -> 44 libbpf: prog 'test_core_bitfields_direct': relo #12: kind (0), spec is [5] struct core_reloc_bitfields.ub7 (0:2 @ offset 0.3) libbpf: prog 'test_core_bitfields_direct': relo #12: matching candidate #0 [4] struct core_reloc_bitfields___bit_sz_change.ub7 (0:2 @ offset 2.7) libbpf: prog 'test_core_bitfields_direct': relo #12: patched insn #54 (ALU/ALU64) imm 0 -> 2 libbpf: prog 'test_core_bitfields_direct': relo #13: kind (1), spec is [5] struct core_reloc_bitfields.ub7 (0:2 @ offset 0.3) libbpf: prog 'test_core_bitfields_direct': relo #13: matching candidate #0 [4] struct core_reloc_bitfields___bit_sz_change.ub7 (0:2 @ offset 2.7) libbpf: prog 'test_core_bitfields_direct': relo #13: patched insn #56 (ALU/ALU64) imm 4 -> 1 libbpf: prog 'test_core_bitfields_direct': relo #14: kind (4), spec is [5] struct core_reloc_bitfields.ub7 (0:2 @ offset 0.3) libbpf: prog 'test_core_bitfields_direct': relo #14: matching candidate #0 [4] struct core_reloc_bitfields___bit_sz_change.ub7 (0:2 @ offset 2.7) libbpf: prog 'test_core_bitfields_direct': relo #14: patched insn #71 (ALU/ALU64) imm 54 -> 56 libbpf: prog 'test_core_bitfields_direct': relo #15: kind (3), spec is [5] struct core_reloc_bitfields.ub7 (0:2 @ offset 0.3) libbpf: prog 'test_core_bitfields_direct': relo #15: matching candidate #0 [4] struct core_reloc_bitfields___bit_sz_change.ub7 (0:2 @ offset 2.7) libbpf: prog 'test_core_bitfields_direct': relo #15: patched insn #72 (ALU/ALU64) imm 0 -> 0 libbpf: prog 'test_core_bitfields_direct': relo #16: kind (5), spec is [5] struct core_reloc_bitfields.ub7 (0:2 @ offset 0.3) libbpf: prog 'test_core_bitfields_direct': relo #16: matching candidate #0 [4] struct core_reloc_bitfields___bit_sz_change.ub7 (0:2 @ offset 2.7) libbpf: prog 'test_core_bitfields_direct': relo #16: patched insn #74 (ALU/ALU64) imm 57 -> 63 libbpf: prog 'test_core_bitfields_direct': relo #17: kind (5), spec is [5] struct core_reloc_bitfields.ub7 (0:2 @ offset 0.3) libbpf: prog 'test_core_bitfields_direct': relo #17: matching candidate #0 [4] struct core_reloc_bitfields___bit_sz_change.ub7 (0:2 @ offset 2.7) libbpf: prog 'test_core_bitfields_direct': relo #17: patched insn #76 (ALU/ALU64) imm 57 -> 63 libbpf: prog 'test_core_bitfields_direct': relo #18: kind (0), spec is [5] struct core_reloc_bitfields.sb4 (0:3 @ offset 1.2) libbpf: prog 'test_core_bitfields_direct': relo #18: matching candidate #0 [4] struct core_reloc_bitfields___bit_sz_change.sb4 (0:3 @ offset 3) libbpf: prog 'test_core_bitfields_direct': relo #18: patched insn #80 (ALU/ALU64) imm 0 -> 3 libbpf: prog 'test_core_bitfields_direct': relo #19: kind (1), spec is [5] struct core_reloc_bitfields.sb4 (0:3 @ offset 1.2) libbpf: prog 'test_core_bitfields_direct': relo #19: matching candidate #0 [4] struct core_reloc_bitfields___bit_sz_change.sb4 (0:3 @ offset 3) libbpf: prog 'test_core_bitfields_direct': relo #19: patched insn #82 (ALU/ALU64) imm 4 -> 1 libbpf: prog 'test_core_bitfields_direct': relo #20: kind (4), spec is [5] struct core_reloc_bitfields.sb4 (0:3 @ offset 1.2) libbpf: prog 'test_core_bitfields_direct': relo #20: matching candidate #0 [4] struct core_reloc_bitfields___bit_sz_change.sb4 (0:3 @ offset 3) libbpf: prog 'test_core_bitfields_direct': relo #20: patched insn #97 (ALU/ALU64) imm 50 -> 63 libbpf: prog 'test_core_bitfields_direct': relo #21: kind (3), spec is [5] struct core_reloc_bitfields.sb4 (0:3 @ offset 1.2) libbpf: prog 'test_core_bitfields_direct': relo #21: matching candidate #0 [4] struct core_reloc_bitfields___bit_sz_change.sb4 (0:3 @ offset 3) libbpf: prog 'test_core_bitfields_direct': relo #21: patched insn #98 (ALU/ALU64) imm 1 -> 1 libbpf: prog 'test_core_bitfields_direct': relo #22: kind (5), spec is [5] struct core_reloc_bitfields.sb4 (0:3 @ offset 1.2) libbpf: prog 'test_core_bitfields_direct': relo #22: matching candidate #0 [4] struct core_reloc_bitfields___bit_sz_change.sb4 (0:3 @ offset 3) libbpf: prog 'test_core_bitfields_direct': relo #22: patched insn #100 (ALU/ALU64) imm 60 -> 63 libbpf: prog 'test_core_bitfields_direct': relo #23: kind (5), spec is [5] struct core_reloc_bitfields.sb4 (0:3 @ offset 1.2) libbpf: prog 'test_core_bitfields_direct': relo #23: matching candidate #0 [4] struct core_reloc_bitfields___bit_sz_change.sb4 (0:3 @ offset 3) libbpf: prog 'test_core_bitfields_direct': relo #23: patched insn #102 (ALU/ALU64) imm 60 -> 63 libbpf: prog 'test_core_bitfields_direct': relo #24: kind (0), spec is [5] struct core_reloc_bitfields.sb20 (0:4 @ offset 4) libbpf: prog 'test_core_bitfields_direct': relo #24: matching candidate #0 [4] struct core_reloc_bitfields___bit_sz_change.sb20 (0:4 @ offset 4) libbpf: prog 'test_core_bitfields_direct': relo #24: patched insn #106 (ALU/ALU64) imm 4 -> 4 libbpf: prog 'test_core_bitfields_direct': relo #25: kind (1), spec is [5] struct core_reloc_bitfields.sb20 (0:4 @ offset 4) libbpf: prog 'test_core_bitfields_direct': relo #25: matching candidate #0 [4] struct core_reloc_bitfields___bit_sz_change.sb20 (0:4 @ offset 4) libbpf: prog 'test_core_bitfields_direct': relo #25: patched insn #108 (ALU/ALU64) imm 4 -> 4 libbpf: prog 'test_core_bitfields_direct': relo #26: kind (4), spec is [5] struct core_reloc_bitfields.sb20 (0:4 @ offset 4) libbpf: prog 'test_core_bitfields_direct': relo #26: matching candidate #0 [4] struct core_reloc_bitfields___bit_sz_change.sb20 (0:4 @ offset 4) libbpf: prog 'test_core_bitfields_direct': relo #26: patched insn #123 (ALU/ALU64) imm 44 -> 34 libbpf: prog 'test_core_bitfields_direct': relo #27: kind (3), spec is [5] struct core_reloc_bitfields.sb20 (0:4 @ offset 4) libbpf: prog 'test_core_bitfields_direct': relo #27: matching candidate #0 [4] struct core_reloc_bitfields___bit_sz_change.sb20 (0:4 @ offset 4) libbpf: prog 'test_core_bitfields_direct': relo #27: patched insn #124 (ALU/ALU64) imm 1 -> 1 libbpf: prog 'test_core_bitfields_direct': relo #28: kind (5), spec is [5] struct core_reloc_bitfields.sb20 (0:4 @ offset 4) libbpf: prog 'test_core_bitfields_direct': relo #28: matching candidate #0 [4] struct core_reloc_bitfields___bit_sz_change.sb20 (0:4 @ offset 4) libbpf: prog 'test_core_bitfields_direct': relo #28: patched insn #126 (ALU/ALU64) imm 44 -> 34 libbpf: prog 'test_core_bitfields_direct': relo #29: kind (5), spec is [5] struct core_reloc_bitfields.sb20 (0:4 @ offset 4) libbpf: prog 'test_core_bitfields_direct': relo #29: matching candidate #0 [4] struct core_reloc_bitfields___bit_sz_change.sb20 (0:4 @ offset 4) libbpf: prog 'test_core_bitfields_direct': relo #29: patched insn #128 (ALU/ALU64) imm 44 -> 34 libbpf: prog 'test_core_bitfields_direct': relo #30: kind (0), spec is [5] struct core_reloc_bitfields.u32 (0:5 @ offset 8) libbpf: prog 'test_core_bitfields_direct': relo #30: matching candidate #0 [4] struct core_reloc_bitfields___bit_sz_change.u32 (0:5 @ offset 8) libbpf: prog 'test_core_bitfields_direct': relo #30: patched insn #132 (ALU/ALU64) imm 8 -> 8 libbpf: prog 'test_core_bitfields_direct': relo #31: kind (1), spec is [5] struct core_reloc_bitfields.u32 (0:5 @ offset 8) libbpf: prog 'test_core_bitfields_direct': relo #31: matching candidate #0 [4] struct core_reloc_bitfields___bit_sz_change.u32 (0:5 @ offset 8) libbpf: prog 'test_core_bitfields_direct': relo #31: patched insn #134 (ALU/ALU64) imm 4 -> 2 libbpf: prog 'test_core_bitfields_direct': relo #32: kind (4), spec is [5] struct core_reloc_bitfields.u32 (0:5 @ offset 8) libbpf: prog 'test_core_bitfields_direct': relo #32: matching candidate #0 [4] struct core_reloc_bitfields___bit_sz_change.u32 (0:5 @ offset 8) libbpf: prog 'test_core_bitfields_direct': relo #32: patched insn #149 (ALU/ALU64) imm 32 -> 48 libbpf: prog 'test_core_bitfields_direct': relo #33: kind (3), spec is [5] struct core_reloc_bitfields.u32 (0:5 @ offset 8) libbpf: prog 'test_core_bitfields_direct': relo #33: matching candidate #0 [4] struct core_reloc_bitfields___bit_sz_change.u32 (0:5 @ offset 8) libbpf: prog 'test_core_bitfields_direct': relo #33: patched insn #150 (ALU/ALU64) imm 0 -> 0 libbpf: prog 'test_core_bitfields_direct': relo #34: kind (5), spec is [5] struct core_reloc_bitfields.u32 (0:5 @ offset 8) libbpf: prog 'test_core_bitfields_direct': relo #34: matching candidate #0 [4] struct core_reloc_bitfields___bit_sz_change.u32 (0:5 @ offset 8) libbpf: prog 'test_core_bitfields_direct': relo #34: patched insn #152 (ALU/ALU64) imm 32 -> 48 libbpf: prog 'test_core_bitfields_direct': relo #35: kind (5), spec is [5] struct core_reloc_bitfields.u32 (0:5 @ offset 8) libbpf: prog 'test_core_bitfields_direct': relo #35: matching candidate #0 [4] struct core_reloc_bitfields___bit_sz_change.u32 (0:5 @ offset 8) libbpf: prog 'test_core_bitfields_direct': relo #35: patched insn #154 (ALU/ALU64) imm 32 -> 48 libbpf: prog 'test_core_bitfields_direct': relo #36: kind (0), spec is [5] struct core_reloc_bitfields.s32 (0:6 @ offset 12) libbpf: prog 'test_core_bitfields_direct': relo #36: matching candidate #0 [4] struct core_reloc_bitfields___bit_sz_change.s32 (0:6 @ offset 16) libbpf: prog 'test_core_bitfields_direct': relo #36: patched insn #158 (ALU/ALU64) imm 12 -> 16 libbpf: prog 'test_core_bitfields_direct': relo #37: kind (1), spec is [5] struct core_reloc_bitfields.s32 (0:6 @ offset 12) libbpf: prog 'test_core_bitfields_direct': relo #37: matching candidate #0 [4] struct core_reloc_bitfields___bit_sz_change.s32 (0:6 @ offset 16) libbpf: prog 'test_core_bitfields_direct': relo #37: patched insn #160 (ALU/ALU64) imm 4 -> 8 libbpf: prog 'test_core_bitfields_direct': relo #38: kind (4), spec is [5] struct core_reloc_bitfields.s32 (0:6 @ offset 12) libbpf: prog 'test_core_bitfields_direct': relo #38: matching candidate #0 [4] struct core_reloc_bitfields___bit_sz_change.s32 (0:6 @ offset 16) libbpf: prog 'test_core_bitfields_direct': relo #38: patched insn #175 (ALU/ALU64) imm 32 -> 0 libbpf: prog 'test_core_bitfields_direct': relo #39: kind (3), spec is [5] struct core_reloc_bitfields.s32 (0:6 @ offset 12) libbpf: prog 'test_core_bitfields_direct': relo #39: matching candidate #0 [4] struct core_reloc_bitfields___bit_sz_change.s32 (0:6 @ offset 16) libbpf: prog 'test_core_bitfields_direct': relo #39: patched insn #176 (ALU/ALU64) imm 1 -> 1 libbpf: prog 'test_core_bitfields_direct': relo #40: kind (5), spec is [5] struct core_reloc_bitfields.s32 (0:6 @ offset 12) libbpf: prog 'test_core_bitfields_direct': relo #40: matching candidate #0 [4] struct core_reloc_bitfields___bit_sz_change.s32 (0:6 @ offset 16) libbpf: prog 'test_core_bitfields_direct': relo #40: patched insn #178 (ALU/ALU64) imm 32 -> 0 libbpf: prog 'test_core_bitfields_direct': relo #41: kind (5), spec is [5] struct core_reloc_bitfields.s32 (0:6 @ offset 12) libbpf: prog 'test_core_bitfields_direct': relo #41: matching candidate #0 [4] struct core_reloc_bitfields___bit_sz_change.s32 (0:6 @ offset 16) libbpf: prog 'test_core_bitfields_direct': relo #41: patched insn #180 (ALU/ALU64) imm 32 -> 0 test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/51 core_reloc/direct:bitfields___bit_sz_change:OK test_core_reloc:PASS:btf_src_file 0 nsec libbpf: loading test_core_reloc_bitfields_probed.o libbpf: elf: section(2) raw_tracepoint/sys_enter, size 1040, link 0, flags 6, type=1 libbpf: sec 'raw_tracepoint/sys_enter': found program 'test_core_bitfields' at insn offset 0 (0 bytes), code size 130 insns (1040 bytes) libbpf: elf: section(3) .relraw_tracepoint/sys_enter, size 128, link 11, flags 40, type=9 libbpf: elf: section(4) license, size 4, link 0, flags 3, type=1 libbpf: license of test_core_reloc_bitfields_probed.o is GPL libbpf: elf: section(5) .bss, size 512, link 0, flags 3, type=8 libbpf: elf: section(6) .BTF, size 1412, link 0, flags 0, type=1 libbpf: elf: section(8) .BTF.ext, size 1340, link 0, flags 0, type=1 libbpf: elf: section(11) .symtab, size 600, link 12, flags 0, type=2 libbpf: looking for externs among 25 symbols... libbpf: collected 0 externs total libbpf: map 'test_cor.bss' (global data): at sec_idx 5, offset 0, flags 400. libbpf: map 0 is "test_cor.bss" libbpf: sec '.relraw_tracepoint/sys_enter': collecting relocation for section(2) 'raw_tracepoint/sys_enter' libbpf: sec '.relraw_tracepoint/sys_enter': relo #0: insn #3 against 'data' libbpf: prog 'test_core_bitfields': found data map 0 (test_cor.bss, sec 5, off 0) for insn 3 libbpf: sec '.relraw_tracepoint/sys_enter': relo #1: insn #17 against 'data' libbpf: prog 'test_core_bitfields': found data map 0 (test_cor.bss, sec 5, off 0) for insn 17 libbpf: sec '.relraw_tracepoint/sys_enter': relo #2: insn #35 against 'data' libbpf: prog 'test_core_bitfields': found data map 0 (test_cor.bss, sec 5, off 0) for insn 35 libbpf: sec '.relraw_tracepoint/sys_enter': relo #3: insn #53 against 'data' libbpf: prog 'test_core_bitfields': found data map 0 (test_cor.bss, sec 5, off 0) for insn 53 libbpf: sec '.relraw_tracepoint/sys_enter': relo #4: insn #71 against 'data' libbpf: prog 'test_core_bitfields': found data map 0 (test_cor.bss, sec 5, off 0) for insn 71 libbpf: sec '.relraw_tracepoint/sys_enter': relo #5: insn #89 against 'data' libbpf: prog 'test_core_bitfields': found data map 0 (test_cor.bss, sec 5, off 0) for insn 89 libbpf: sec '.relraw_tracepoint/sys_enter': relo #6: insn #107 against 'data' libbpf: prog 'test_core_bitfields': found data map 0 (test_cor.bss, sec 5, off 0) for insn 107 libbpf: sec '.relraw_tracepoint/sys_enter': relo #7: insn #125 against 'data' libbpf: prog 'test_core_bitfields': found data map 0 (test_cor.bss, sec 5, off 0) for insn 125 test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: map 'test_cor.bss': created successfully, fd=5 libbpf: sec 'raw_tracepoint/sys_enter': found 42 CO-RE relocations libbpf: CO-RE relocating [5] struct core_reloc_bitfields: found target candidate [4] struct core_reloc_bitfields___bitfield_vs_int in [vmlinux] libbpf: prog 'test_core_bitfields': relo #0: kind (0), spec is [5] struct core_reloc_bitfields.ub1 (0:0 @ offset 0) libbpf: prog 'test_core_bitfields': relo #0: matching candidate #0 [4] struct core_reloc_bitfields___bitfield_vs_int.ub1 (0:0 @ offset 0) libbpf: prog 'test_core_bitfields': relo #0: patched insn #2 (ALU/ALU64) imm 0 -> 0 libbpf: prog 'test_core_bitfields': relo #1: kind (1), spec is [5] struct core_reloc_bitfields.ub1 (0:0 @ offset 0) libbpf: prog 'test_core_bitfields': relo #1: matching candidate #0 [4] struct core_reloc_bitfields___bitfield_vs_int.ub1 (0:0 @ offset 0) libbpf: prog 'test_core_bitfields': relo #1: patched insn #8 (ALU/ALU64) imm 4 -> 8 libbpf: prog 'test_core_bitfields': relo #2: kind (4), spec is [5] struct core_reloc_bitfields.ub1 (0:0 @ offset 0) libbpf: prog 'test_core_bitfields': relo #2: matching candidate #0 [4] struct core_reloc_bitfields___bitfield_vs_int.ub1 (0:0 @ offset 0) libbpf: prog 'test_core_bitfields': relo #2: patched insn #11 (ALU/ALU64) imm 63 -> 0 libbpf: prog 'test_core_bitfields': relo #3: kind (3), spec is [5] struct core_reloc_bitfields.ub1 (0:0 @ offset 0) libbpf: prog 'test_core_bitfields': relo #3: matching candidate #0 [4] struct core_reloc_bitfields___bitfield_vs_int.ub1 (0:0 @ offset 0) libbpf: prog 'test_core_bitfields': relo #3: patched insn #12 (ALU/ALU64) imm 0 -> 0 libbpf: prog 'test_core_bitfields': relo #4: kind (5), spec is [5] struct core_reloc_bitfields.ub1 (0:0 @ offset 0) libbpf: prog 'test_core_bitfields': relo #4: matching candidate #0 [4] struct core_reloc_bitfields___bitfield_vs_int.ub1 (0:0 @ offset 0) libbpf: prog 'test_core_bitfields': relo #4: patched insn #14 (ALU/ALU64) imm 63 -> 0 libbpf: prog 'test_core_bitfields': relo #5: kind (5), spec is [5] struct core_reloc_bitfields.ub1 (0:0 @ offset 0) libbpf: prog 'test_core_bitfields': relo #5: matching candidate #0 [4] struct core_reloc_bitfields___bitfield_vs_int.ub1 (0:0 @ offset 0) libbpf: prog 'test_core_bitfields': relo #5: patched insn #16 (ALU/ALU64) imm 63 -> 0 libbpf: prog 'test_core_bitfields': relo #6: kind (0), spec is [5] struct core_reloc_bitfields.ub2 (0:1 @ offset 0.1) libbpf: prog 'test_core_bitfields': relo #6: matching candidate #0 [4] struct core_reloc_bitfields___bitfield_vs_int.ub2 (0:1 @ offset 8) libbpf: prog 'test_core_bitfields': relo #6: patched insn #22 (ALU/ALU64) imm 0 -> 8 libbpf: prog 'test_core_bitfields': relo #7: kind (1), spec is [5] struct core_reloc_bitfields.ub2 (0:1 @ offset 0.1) libbpf: prog 'test_core_bitfields': relo #7: matching candidate #0 [4] struct core_reloc_bitfields___bitfield_vs_int.ub2 (0:1 @ offset 8) libbpf: prog 'test_core_bitfields': relo #7: patched insn #26 (ALU/ALU64) imm 4 -> 1 libbpf: prog 'test_core_bitfields': relo #8: kind (4), spec is [5] struct core_reloc_bitfields.ub2 (0:1 @ offset 0.1) libbpf: prog 'test_core_bitfields': relo #8: matching candidate #0 [4] struct core_reloc_bitfields___bitfield_vs_int.ub2 (0:1 @ offset 8) libbpf: prog 'test_core_bitfields': relo #8: patched insn #29 (ALU/ALU64) imm 61 -> 56 libbpf: prog 'test_core_bitfields': relo #9: kind (3), spec is [5] struct core_reloc_bitfields.ub2 (0:1 @ offset 0.1) libbpf: prog 'test_core_bitfields': relo #9: matching candidate #0 [4] struct core_reloc_bitfields___bitfield_vs_int.ub2 (0:1 @ offset 8) libbpf: prog 'test_core_bitfields': relo #9: patched insn #30 (ALU/ALU64) imm 0 -> 0 libbpf: prog 'test_core_bitfields': relo #10: kind (5), spec is [5] struct core_reloc_bitfields.ub2 (0:1 @ offset 0.1) libbpf: prog 'test_core_bitfields': relo #10: matching candidate #0 [4] struct core_reloc_bitfields___bitfield_vs_int.ub2 (0:1 @ offset 8) libbpf: prog 'test_core_bitfields': relo #10: patched insn #32 (ALU/ALU64) imm 62 -> 56 libbpf: prog 'test_core_bitfields': relo #11: kind (5), spec is [5] struct core_reloc_bitfields.ub2 (0:1 @ offset 0.1) libbpf: prog 'test_core_bitfields': relo #11: matching candidate #0 [4] struct core_reloc_bitfields___bitfield_vs_int.ub2 (0:1 @ offset 8) libbpf: prog 'test_core_bitfields': relo #11: patched insn #34 (ALU/ALU64) imm 62 -> 56 libbpf: prog 'test_core_bitfields': relo #12: kind (0), spec is [5] struct core_reloc_bitfields.ub7 (0:2 @ offset 0.3) libbpf: prog 'test_core_bitfields': relo #12: matching candidate #0 [4] struct core_reloc_bitfields___bitfield_vs_int.ub7 (0:2 @ offset 16) libbpf: prog 'test_core_bitfields': relo #12: patched insn #40 (ALU/ALU64) imm 0 -> 16 libbpf: prog 'test_core_bitfields': relo #13: kind (1), spec is [5] struct core_reloc_bitfields.ub7 (0:2 @ offset 0.3) libbpf: prog 'test_core_bitfields': relo #13: matching candidate #0 [4] struct core_reloc_bitfields___bitfield_vs_int.ub7 (0:2 @ offset 16) libbpf: prog 'test_core_bitfields': relo #13: patched insn #44 (ALU/ALU64) imm 4 -> 8 libbpf: prog 'test_core_bitfields': relo #14: kind (4), spec is [5] struct core_reloc_bitfields.ub7 (0:2 @ offset 0.3) libbpf: prog 'test_core_bitfields': relo #14: matching candidate #0 [4] struct core_reloc_bitfields___bitfield_vs_int.ub7 (0:2 @ offset 16) libbpf: prog 'test_core_bitfields': relo #14: patched insn #47 (ALU/ALU64) imm 54 -> 0 libbpf: prog 'test_core_bitfields': relo #15: kind (3), spec is [5] struct core_reloc_bitfields.ub7 (0:2 @ offset 0.3) libbpf: prog 'test_core_bitfields': relo #15: matching candidate #0 [4] struct core_reloc_bitfields___bitfield_vs_int.ub7 (0:2 @ offset 16) libbpf: prog 'test_core_bitfields': relo #15: patched insn #48 (ALU/ALU64) imm 0 -> 1 libbpf: prog 'test_core_bitfields': relo #16: kind (5), spec is [5] struct core_reloc_bitfields.ub7 (0:2 @ offset 0.3) libbpf: prog 'test_core_bitfields': relo #16: matching candidate #0 [4] struct core_reloc_bitfields___bitfield_vs_int.ub7 (0:2 @ offset 16) libbpf: prog 'test_core_bitfields': relo #16: patched insn #50 (ALU/ALU64) imm 57 -> 0 libbpf: prog 'test_core_bitfields': relo #17: kind (5), spec is [5] struct core_reloc_bitfields.ub7 (0:2 @ offset 0.3) libbpf: prog 'test_core_bitfields': relo #17: matching candidate #0 [4] struct core_reloc_bitfields___bitfield_vs_int.ub7 (0:2 @ offset 16) libbpf: prog 'test_core_bitfields': relo #17: patched insn #52 (ALU/ALU64) imm 57 -> 0 libbpf: prog 'test_core_bitfields': relo #18: kind (0), spec is [5] struct core_reloc_bitfields.sb4 (0:3 @ offset 1.2) libbpf: prog 'test_core_bitfields': relo #18: matching candidate #0 [4] struct core_reloc_bitfields___bitfield_vs_int.sb4 (0:3 @ offset 24) libbpf: prog 'test_core_bitfields': relo #18: patched insn #58 (ALU/ALU64) imm 0 -> 24 libbpf: prog 'test_core_bitfields': relo #19: kind (1), spec is [5] struct core_reloc_bitfields.sb4 (0:3 @ offset 1.2) libbpf: prog 'test_core_bitfields': relo #19: matching candidate #0 [4] struct core_reloc_bitfields___bitfield_vs_int.sb4 (0:3 @ offset 24) libbpf: prog 'test_core_bitfields': relo #19: patched insn #62 (ALU/ALU64) imm 4 -> 8 libbpf: prog 'test_core_bitfields': relo #20: kind (4), spec is [5] struct core_reloc_bitfields.sb4 (0:3 @ offset 1.2) libbpf: prog 'test_core_bitfields': relo #20: matching candidate #0 [4] struct core_reloc_bitfields___bitfield_vs_int.sb4 (0:3 @ offset 24) libbpf: prog 'test_core_bitfields': relo #20: patched insn #65 (ALU/ALU64) imm 50 -> 0 libbpf: prog 'test_core_bitfields': relo #21: kind (3), spec is [5] struct core_reloc_bitfields.sb4 (0:3 @ offset 1.2) libbpf: prog 'test_core_bitfields': relo #21: matching candidate #0 [4] struct core_reloc_bitfields___bitfield_vs_int.sb4 (0:3 @ offset 24) libbpf: prog 'test_core_bitfields': relo #21: patched insn #66 (ALU/ALU64) imm 1 -> 1 libbpf: prog 'test_core_bitfields': relo #22: kind (5), spec is [5] struct core_reloc_bitfields.sb4 (0:3 @ offset 1.2) libbpf: prog 'test_core_bitfields': relo #22: matching candidate #0 [4] struct core_reloc_bitfields___bitfield_vs_int.sb4 (0:3 @ offset 24) libbpf: prog 'test_core_bitfields': relo #22: patched insn #68 (ALU/ALU64) imm 60 -> 0 libbpf: prog 'test_core_bitfields': relo #23: kind (5), spec is [5] struct core_reloc_bitfields.sb4 (0:3 @ offset 1.2) libbpf: prog 'test_core_bitfields': relo #23: matching candidate #0 [4] struct core_reloc_bitfields___bitfield_vs_int.sb4 (0:3 @ offset 24) libbpf: prog 'test_core_bitfields': relo #23: patched insn #70 (ALU/ALU64) imm 60 -> 0 libbpf: prog 'test_core_bitfields': relo #24: kind (0), spec is [5] struct core_reloc_bitfields.sb20 (0:4 @ offset 4) libbpf: prog 'test_core_bitfields': relo #24: matching candidate #0 [4] struct core_reloc_bitfields___bitfield_vs_int.sb20 (0:4 @ offset 32) libbpf: prog 'test_core_bitfields': relo #24: patched insn #76 (ALU/ALU64) imm 4 -> 32 libbpf: prog 'test_core_bitfields': relo #25: kind (1), spec is [5] struct core_reloc_bitfields.sb20 (0:4 @ offset 4) libbpf: prog 'test_core_bitfields': relo #25: matching candidate #0 [4] struct core_reloc_bitfields___bitfield_vs_int.sb20 (0:4 @ offset 32) libbpf: prog 'test_core_bitfields': relo #25: patched insn #80 (ALU/ALU64) imm 4 -> 8 libbpf: prog 'test_core_bitfields': relo #26: kind (4), spec is [5] struct core_reloc_bitfields.sb20 (0:4 @ offset 4) libbpf: prog 'test_core_bitfields': relo #26: matching candidate #0 [4] struct core_reloc_bitfields___bitfield_vs_int.sb20 (0:4 @ offset 32) libbpf: prog 'test_core_bitfields': relo #26: patched insn #83 (ALU/ALU64) imm 44 -> 0 libbpf: prog 'test_core_bitfields': relo #27: kind (3), spec is [5] struct core_reloc_bitfields.sb20 (0:4 @ offset 4) libbpf: prog 'test_core_bitfields': relo #27: matching candidate #0 [4] struct core_reloc_bitfields___bitfield_vs_int.sb20 (0:4 @ offset 32) libbpf: prog 'test_core_bitfields': relo #27: patched insn #84 (ALU/ALU64) imm 1 -> 0 libbpf: prog 'test_core_bitfields': relo #28: kind (5), spec is [5] struct core_reloc_bitfields.sb20 (0:4 @ offset 4) libbpf: prog 'test_core_bitfields': relo #28: matching candidate #0 [4] struct core_reloc_bitfields___bitfield_vs_int.sb20 (0:4 @ offset 32) libbpf: prog 'test_core_bitfields': relo #28: patched insn #86 (ALU/ALU64) imm 44 -> 0 libbpf: prog 'test_core_bitfields': relo #29: kind (5), spec is [5] struct core_reloc_bitfields.sb20 (0:4 @ offset 4) libbpf: prog 'test_core_bitfields': relo #29: matching candidate #0 [4] struct core_reloc_bitfields___bitfield_vs_int.sb20 (0:4 @ offset 32) libbpf: prog 'test_core_bitfields': relo #29: patched insn #88 (ALU/ALU64) imm 44 -> 0 libbpf: prog 'test_core_bitfields': relo #30: kind (0), spec is [5] struct core_reloc_bitfields.u32 (0:5 @ offset 8) libbpf: prog 'test_core_bitfields': relo #30: matching candidate #0 [4] struct core_reloc_bitfields___bitfield_vs_int.u32 (0:5 @ offset 40) libbpf: prog 'test_core_bitfields': relo #30: patched insn #94 (ALU/ALU64) imm 8 -> 40 libbpf: prog 'test_core_bitfields': relo #31: kind (1), spec is [5] struct core_reloc_bitfields.u32 (0:5 @ offset 8) libbpf: prog 'test_core_bitfields': relo #31: matching candidate #0 [4] struct core_reloc_bitfields___bitfield_vs_int.u32 (0:5 @ offset 40) libbpf: prog 'test_core_bitfields': relo #31: patched insn #98 (ALU/ALU64) imm 4 -> 4 libbpf: prog 'test_core_bitfields': relo #32: kind (4), spec is [5] struct core_reloc_bitfields.u32 (0:5 @ offset 8) libbpf: prog 'test_core_bitfields': relo #32: matching candidate #0 [4] struct core_reloc_bitfields___bitfield_vs_int.u32 (0:5 @ offset 40) libbpf: prog 'test_core_bitfields': relo #32: patched insn #101 (ALU/ALU64) imm 32 -> 44 libbpf: prog 'test_core_bitfields': relo #33: kind (3), spec is [5] struct core_reloc_bitfields.u32 (0:5 @ offset 8) libbpf: prog 'test_core_bitfields': relo #33: matching candidate #0 [4] struct core_reloc_bitfields___bitfield_vs_int.u32 (0:5 @ offset 40) libbpf: prog 'test_core_bitfields': relo #33: patched insn #102 (ALU/ALU64) imm 0 -> 1 libbpf: prog 'test_core_bitfields': relo #34: kind (5), spec is [5] struct core_reloc_bitfields.u32 (0:5 @ offset 8) libbpf: prog 'test_core_bitfields': relo #34: matching candidate #0 [4] struct core_reloc_bitfields___bitfield_vs_int.u32 (0:5 @ offset 40) libbpf: prog 'test_core_bitfields': relo #34: patched insn #104 (ALU/ALU64) imm 32 -> 44 libbpf: prog 'test_core_bitfields': relo #35: kind (5), spec is [5] struct core_reloc_bitfields.u32 (0:5 @ offset 8) libbpf: prog 'test_core_bitfields': relo #35: matching candidate #0 [4] struct core_reloc_bitfields___bitfield_vs_int.u32 (0:5 @ offset 40) libbpf: prog 'test_core_bitfields': relo #35: patched insn #106 (ALU/ALU64) imm 32 -> 44 libbpf: prog 'test_core_bitfields': relo #36: kind (0), spec is [5] struct core_reloc_bitfields.s32 (0:6 @ offset 12) libbpf: prog 'test_core_bitfields': relo #36: matching candidate #0 [4] struct core_reloc_bitfields___bitfield_vs_int.s32 (0:6 @ offset 48) libbpf: prog 'test_core_bitfields': relo #36: patched insn #112 (ALU/ALU64) imm 12 -> 48 libbpf: prog 'test_core_bitfields': relo #37: kind (1), spec is [5] struct core_reloc_bitfields.s32 (0:6 @ offset 12) libbpf: prog 'test_core_bitfields': relo #37: matching candidate #0 [4] struct core_reloc_bitfields___bitfield_vs_int.s32 (0:6 @ offset 48) libbpf: prog 'test_core_bitfields': relo #37: patched insn #116 (ALU/ALU64) imm 4 -> 8 libbpf: prog 'test_core_bitfields': relo #38: kind (4), spec is [5] struct core_reloc_bitfields.s32 (0:6 @ offset 12) libbpf: prog 'test_core_bitfields': relo #38: matching candidate #0 [4] struct core_reloc_bitfields___bitfield_vs_int.s32 (0:6 @ offset 48) libbpf: prog 'test_core_bitfields': relo #38: patched insn #119 (ALU/ALU64) imm 32 -> 4 libbpf: prog 'test_core_bitfields': relo #39: kind (3), spec is [5] struct core_reloc_bitfields.s32 (0:6 @ offset 12) libbpf: prog 'test_core_bitfields': relo #39: matching candidate #0 [4] struct core_reloc_bitfields___bitfield_vs_int.s32 (0:6 @ offset 48) libbpf: prog 'test_core_bitfields': relo #39: patched insn #120 (ALU/ALU64) imm 1 -> 0 libbpf: prog 'test_core_bitfields': relo #40: kind (5), spec is [5] struct core_reloc_bitfields.s32 (0:6 @ offset 12) libbpf: prog 'test_core_bitfields': relo #40: matching candidate #0 [4] struct core_reloc_bitfields___bitfield_vs_int.s32 (0:6 @ offset 48) libbpf: prog 'test_core_bitfields': relo #40: patched insn #122 (ALU/ALU64) imm 32 -> 4 libbpf: prog 'test_core_bitfields': relo #41: kind (5), spec is [5] struct core_reloc_bitfields.s32 (0:6 @ offset 12) libbpf: prog 'test_core_bitfields': relo #41: matching candidate #0 [4] struct core_reloc_bitfields___bitfield_vs_int.s32 (0:6 @ offset 48) libbpf: prog 'test_core_bitfields': relo #41: patched insn #124 (ALU/ALU64) imm 32 -> 4 test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/52 core_reloc/probed:bitfields___bitfield_vs_int:OK test_core_reloc:PASS:btf_src_file 0 nsec libbpf: loading test_core_reloc_bitfields_direct.o libbpf: elf: section(2) tp_btf/sys_enter, size 1488, link 0, flags 6, type=1 libbpf: sec 'tp_btf/sys_enter': found program 'test_core_bitfields_direct' at insn offset 0 (0 bytes), code size 186 insns (1488 bytes) libbpf: elf: section(3) .reltp_btf/sys_enter, size 128, link 11, flags 40, type=9 libbpf: elf: section(4) license, size 4, link 0, flags 3, type=1 libbpf: license of test_core_reloc_bitfields_direct.o is GPL libbpf: elf: section(5) .bss, size 512, link 0, flags 3, type=8 libbpf: elf: section(6) .BTF, size 1369, link 0, flags 0, type=1 libbpf: elf: section(8) .BTF.ext, size 1564, link 0, flags 0, type=1 libbpf: elf: section(11) .symtab, size 1608, link 12, flags 0, type=2 libbpf: looking for externs among 67 symbols... libbpf: collected 0 externs total libbpf: map 'test_cor.bss' (global data): at sec_idx 5, offset 0, flags 400. libbpf: map 0 is "test_cor.bss" libbpf: sec '.reltp_btf/sys_enter': collecting relocation for section(2) 'tp_btf/sys_enter' libbpf: sec '.reltp_btf/sys_enter': relo #0: insn #1 against 'data' libbpf: prog 'test_core_bitfields_direct': found data map 0 (test_cor.bss, sec 5, off 0) for insn 1 libbpf: sec '.reltp_btf/sys_enter': relo #1: insn #25 against 'data' libbpf: prog 'test_core_bitfields_direct': found data map 0 (test_cor.bss, sec 5, off 0) for insn 25 libbpf: sec '.reltp_btf/sys_enter': relo #2: insn #51 against 'data' libbpf: prog 'test_core_bitfields_direct': found data map 0 (test_cor.bss, sec 5, off 0) for insn 51 libbpf: sec '.reltp_btf/sys_enter': relo #3: insn #77 against 'data' libbpf: prog 'test_core_bitfields_direct': found data map 0 (test_cor.bss, sec 5, off 0) for insn 77 libbpf: sec '.reltp_btf/sys_enter': relo #4: insn #103 against 'data' libbpf: prog 'test_core_bitfields_direct': found data map 0 (test_cor.bss, sec 5, off 0) for insn 103 libbpf: sec '.reltp_btf/sys_enter': relo #5: insn #129 against 'data' libbpf: prog 'test_core_bitfields_direct': found data map 0 (test_cor.bss, sec 5, off 0) for insn 129 libbpf: sec '.reltp_btf/sys_enter': relo #6: insn #155 against 'data' libbpf: prog 'test_core_bitfields_direct': found data map 0 (test_cor.bss, sec 5, off 0) for insn 155 libbpf: sec '.reltp_btf/sys_enter': relo #7: insn #181 against 'data' libbpf: prog 'test_core_bitfields_direct': found data map 0 (test_cor.bss, sec 5, off 0) for insn 181 test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: loading kernel BTF '/sys/kernel/btf/vmlinux': 0 libbpf: map 'test_cor.bss': created successfully, fd=5 libbpf: sec 'tp_btf/sys_enter': found 42 CO-RE relocations libbpf: CO-RE relocating [5] struct core_reloc_bitfields: found target candidate [4] struct core_reloc_bitfields___bitfield_vs_int in [vmlinux] libbpf: prog 'test_core_bitfields_direct': relo #0: kind (0), spec is [5] struct core_reloc_bitfields.ub1 (0:0 @ offset 0) libbpf: prog 'test_core_bitfields_direct': relo #0: matching candidate #0 [4] struct core_reloc_bitfields___bitfield_vs_int.ub1 (0:0 @ offset 0) libbpf: prog 'test_core_bitfields_direct': relo #0: patched insn #0 (ALU/ALU64) imm 0 -> 0 libbpf: prog 'test_core_bitfields_direct': relo #1: kind (1), spec is [5] struct core_reloc_bitfields.ub1 (0:0 @ offset 0) libbpf: prog 'test_core_bitfields_direct': relo #1: matching candidate #0 [4] struct core_reloc_bitfields___bitfield_vs_int.ub1 (0:0 @ offset 0) libbpf: prog 'test_core_bitfields_direct': relo #1: patched insn #4 (ALU/ALU64) imm 4 -> 8 libbpf: prog 'test_core_bitfields_direct': relo #2: kind (4), spec is [5] struct core_reloc_bitfields.ub1 (0:0 @ offset 0) libbpf: prog 'test_core_bitfields_direct': relo #2: matching candidate #0 [4] struct core_reloc_bitfields___bitfield_vs_int.ub1 (0:0 @ offset 0) libbpf: prog 'test_core_bitfields_direct': relo #2: patched insn #19 (ALU/ALU64) imm 63 -> 0 libbpf: prog 'test_core_bitfields_direct': relo #3: kind (3), spec is [5] struct core_reloc_bitfields.ub1 (0:0 @ offset 0) libbpf: prog 'test_core_bitfields_direct': relo #3: matching candidate #0 [4] struct core_reloc_bitfields___bitfield_vs_int.ub1 (0:0 @ offset 0) libbpf: prog 'test_core_bitfields_direct': relo #3: patched insn #20 (ALU/ALU64) imm 0 -> 0 libbpf: prog 'test_core_bitfields_direct': relo #4: kind (5), spec is [5] struct core_reloc_bitfields.ub1 (0:0 @ offset 0) libbpf: prog 'test_core_bitfields_direct': relo #4: matching candidate #0 [4] struct core_reloc_bitfields___bitfield_vs_int.ub1 (0:0 @ offset 0) libbpf: prog 'test_core_bitfields_direct': relo #4: patched insn #22 (ALU/ALU64) imm 63 -> 0 libbpf: prog 'test_core_bitfields_direct': relo #5: kind (5), spec is [5] struct core_reloc_bitfields.ub1 (0:0 @ offset 0) libbpf: prog 'test_core_bitfields_direct': relo #5: matching candidate #0 [4] struct core_reloc_bitfields___bitfield_vs_int.ub1 (0:0 @ offset 0) libbpf: prog 'test_core_bitfields_direct': relo #5: patched insn #24 (ALU/ALU64) imm 63 -> 0 libbpf: prog 'test_core_bitfields_direct': relo #6: kind (0), spec is [5] struct core_reloc_bitfields.ub2 (0:1 @ offset 0.1) libbpf: prog 'test_core_bitfields_direct': relo #6: matching candidate #0 [4] struct core_reloc_bitfields___bitfield_vs_int.ub2 (0:1 @ offset 8) libbpf: prog 'test_core_bitfields_direct': relo #6: patched insn #28 (ALU/ALU64) imm 0 -> 8 libbpf: prog 'test_core_bitfields_direct': relo #7: kind (1), spec is [5] struct core_reloc_bitfields.ub2 (0:1 @ offset 0.1) libbpf: prog 'test_core_bitfields_direct': relo #7: matching candidate #0 [4] struct core_reloc_bitfields___bitfield_vs_int.ub2 (0:1 @ offset 8) libbpf: prog 'test_core_bitfields_direct': relo #7: patched insn #30 (ALU/ALU64) imm 4 -> 1 libbpf: prog 'test_core_bitfields_direct': relo #8: kind (4), spec is [5] struct core_reloc_bitfields.ub2 (0:1 @ offset 0.1) libbpf: prog 'test_core_bitfields_direct': relo #8: matching candidate #0 [4] struct core_reloc_bitfields___bitfield_vs_int.ub2 (0:1 @ offset 8) libbpf: prog 'test_core_bitfields_direct': relo #8: patched insn #45 (ALU/ALU64) imm 61 -> 56 libbpf: prog 'test_core_bitfields_direct': relo #9: kind (3), spec is [5] struct core_reloc_bitfields.ub2 (0:1 @ offset 0.1) libbpf: prog 'test_core_bitfields_direct': relo #9: matching candidate #0 [4] struct core_reloc_bitfields___bitfield_vs_int.ub2 (0:1 @ offset 8) libbpf: prog 'test_core_bitfields_direct': relo #9: patched insn #46 (ALU/ALU64) imm 0 -> 0 libbpf: prog 'test_core_bitfields_direct': relo #10: kind (5), spec is [5] struct core_reloc_bitfields.ub2 (0:1 @ offset 0.1) libbpf: prog 'test_core_bitfields_direct': relo #10: matching candidate #0 [4] struct core_reloc_bitfields___bitfield_vs_int.ub2 (0:1 @ offset 8) libbpf: prog 'test_core_bitfields_direct': relo #10: patched insn #48 (ALU/ALU64) imm 62 -> 56 libbpf: prog 'test_core_bitfields_direct': relo #11: kind (5), spec is [5] struct core_reloc_bitfields.ub2 (0:1 @ offset 0.1) libbpf: prog 'test_core_bitfields_direct': relo #11: matching candidate #0 [4] struct core_reloc_bitfields___bitfield_vs_int.ub2 (0:1 @ offset 8) libbpf: prog 'test_core_bitfields_direct': relo #11: patched insn #50 (ALU/ALU64) imm 62 -> 56 libbpf: prog 'test_core_bitfields_direct': relo #12: kind (0), spec is [5] struct core_reloc_bitfields.ub7 (0:2 @ offset 0.3) libbpf: prog 'test_core_bitfields_direct': relo #12: matching candidate #0 [4] struct core_reloc_bitfields___bitfield_vs_int.ub7 (0:2 @ offset 16) libbpf: prog 'test_core_bitfields_direct': relo #12: patched insn #54 (ALU/ALU64) imm 0 -> 16 libbpf: prog 'test_core_bitfields_direct': relo #13: kind (1), spec is [5] struct core_reloc_bitfields.ub7 (0:2 @ offset 0.3) libbpf: prog 'test_core_bitfields_direct': relo #13: matching candidate #0 [4] struct core_reloc_bitfields___bitfield_vs_int.ub7 (0:2 @ offset 16) libbpf: prog 'test_core_bitfields_direct': relo #13: patched insn #56 (ALU/ALU64) imm 4 -> 8 libbpf: prog 'test_core_bitfields_direct': relo #14: kind (4), spec is [5] struct core_reloc_bitfields.ub7 (0:2 @ offset 0.3) libbpf: prog 'test_core_bitfields_direct': relo #14: matching candidate #0 [4] struct core_reloc_bitfields___bitfield_vs_int.ub7 (0:2 @ offset 16) libbpf: prog 'test_core_bitfields_direct': relo #14: patched insn #71 (ALU/ALU64) imm 54 -> 0 libbpf: prog 'test_core_bitfields_direct': relo #15: kind (3), spec is [5] struct core_reloc_bitfields.ub7 (0:2 @ offset 0.3) libbpf: prog 'test_core_bitfields_direct': relo #15: matching candidate #0 [4] struct core_reloc_bitfields___bitfield_vs_int.ub7 (0:2 @ offset 16) libbpf: prog 'test_core_bitfields_direct': relo #15: patched insn #72 (ALU/ALU64) imm 0 -> 1 libbpf: prog 'test_core_bitfields_direct': relo #16: kind (5), spec is [5] struct core_reloc_bitfields.ub7 (0:2 @ offset 0.3) libbpf: prog 'test_core_bitfields_direct': relo #16: matching candidate #0 [4] struct core_reloc_bitfields___bitfield_vs_int.ub7 (0:2 @ offset 16) libbpf: prog 'test_core_bitfields_direct': relo #16: patched insn #74 (ALU/ALU64) imm 57 -> 0 libbpf: prog 'test_core_bitfields_direct': relo #17: kind (5), spec is [5] struct core_reloc_bitfields.ub7 (0:2 @ offset 0.3) libbpf: prog 'test_core_bitfields_direct': relo #17: matching candidate #0 [4] struct core_reloc_bitfields___bitfield_vs_int.ub7 (0:2 @ offset 16) libbpf: prog 'test_core_bitfields_direct': relo #17: patched insn #76 (ALU/ALU64) imm 57 -> 0 libbpf: prog 'test_core_bitfields_direct': relo #18: kind (0), spec is [5] struct core_reloc_bitfields.sb4 (0:3 @ offset 1.2) libbpf: prog 'test_core_bitfields_direct': relo #18: matching candidate #0 [4] struct core_reloc_bitfields___bitfield_vs_int.sb4 (0:3 @ offset 24) libbpf: prog 'test_core_bitfields_direct': relo #18: patched insn #80 (ALU/ALU64) imm 0 -> 24 libbpf: prog 'test_core_bitfields_direct': relo #19: kind (1), spec is [5] struct core_reloc_bitfields.sb4 (0:3 @ offset 1.2) libbpf: prog 'test_core_bitfields_direct': relo #19: matching candidate #0 [4] struct core_reloc_bitfields___bitfield_vs_int.sb4 (0:3 @ offset 24) libbpf: prog 'test_core_bitfields_direct': relo #19: patched insn #82 (ALU/ALU64) imm 4 -> 8 libbpf: prog 'test_core_bitfields_direct': relo #20: kind (4), spec is [5] struct core_reloc_bitfields.sb4 (0:3 @ offset 1.2) libbpf: prog 'test_core_bitfields_direct': relo #20: matching candidate #0 [4] struct core_reloc_bitfields___bitfield_vs_int.sb4 (0:3 @ offset 24) libbpf: prog 'test_core_bitfields_direct': relo #20: patched insn #97 (ALU/ALU64) imm 50 -> 0 libbpf: prog 'test_core_bitfields_direct': relo #21: kind (3), spec is [5] struct core_reloc_bitfields.sb4 (0:3 @ offset 1.2) libbpf: prog 'test_core_bitfields_direct': relo #21: matching candidate #0 [4] struct core_reloc_bitfields___bitfield_vs_int.sb4 (0:3 @ offset 24) libbpf: prog 'test_core_bitfields_direct': relo #21: patched insn #98 (ALU/ALU64) imm 1 -> 1 libbpf: prog 'test_core_bitfields_direct': relo #22: kind (5), spec is [5] struct core_reloc_bitfields.sb4 (0:3 @ offset 1.2) libbpf: prog 'test_core_bitfields_direct': relo #22: matching candidate #0 [4] struct core_reloc_bitfields___bitfield_vs_int.sb4 (0:3 @ offset 24) libbpf: prog 'test_core_bitfields_direct': relo #22: patched insn #100 (ALU/ALU64) imm 60 -> 0 libbpf: prog 'test_core_bitfields_direct': relo #23: kind (5), spec is [5] struct core_reloc_bitfields.sb4 (0:3 @ offset 1.2) libbpf: prog 'test_core_bitfields_direct': relo #23: matching candidate #0 [4] struct core_reloc_bitfields___bitfield_vs_int.sb4 (0:3 @ offset 24) libbpf: prog 'test_core_bitfields_direct': relo #23: patched insn #102 (ALU/ALU64) imm 60 -> 0 libbpf: prog 'test_core_bitfields_direct': relo #24: kind (0), spec is [5] struct core_reloc_bitfields.sb20 (0:4 @ offset 4) libbpf: prog 'test_core_bitfields_direct': relo #24: matching candidate #0 [4] struct core_reloc_bitfields___bitfield_vs_int.sb20 (0:4 @ offset 32) libbpf: prog 'test_core_bitfields_direct': relo #24: patched insn #106 (ALU/ALU64) imm 4 -> 32 libbpf: prog 'test_core_bitfields_direct': relo #25: kind (1), spec is [5] struct core_reloc_bitfields.sb20 (0:4 @ offset 4) libbpf: prog 'test_core_bitfields_direct': relo #25: matching candidate #0 [4] struct core_reloc_bitfields___bitfield_vs_int.sb20 (0:4 @ offset 32) libbpf: prog 'test_core_bitfields_direct': relo #25: patched insn #108 (ALU/ALU64) imm 4 -> 8 libbpf: prog 'test_core_bitfields_direct': relo #26: kind (4), spec is [5] struct core_reloc_bitfields.sb20 (0:4 @ offset 4) libbpf: prog 'test_core_bitfields_direct': relo #26: matching candidate #0 [4] struct core_reloc_bitfields___bitfield_vs_int.sb20 (0:4 @ offset 32) libbpf: prog 'test_core_bitfields_direct': relo #26: patched insn #123 (ALU/ALU64) imm 44 -> 0 libbpf: prog 'test_core_bitfields_direct': relo #27: kind (3), spec is [5] struct core_reloc_bitfields.sb20 (0:4 @ offset 4) libbpf: prog 'test_core_bitfields_direct': relo #27: matching candidate #0 [4] struct core_reloc_bitfields___bitfield_vs_int.sb20 (0:4 @ offset 32) libbpf: prog 'test_core_bitfields_direct': relo #27: patched insn #124 (ALU/ALU64) imm 1 -> 0 libbpf: prog 'test_core_bitfields_direct': relo #28: kind (5), spec is [5] struct core_reloc_bitfields.sb20 (0:4 @ offset 4) libbpf: prog 'test_core_bitfields_direct': relo #28: matching candidate #0 [4] struct core_reloc_bitfields___bitfield_vs_int.sb20 (0:4 @ offset 32) libbpf: prog 'test_core_bitfields_direct': relo #28: patched insn #126 (ALU/ALU64) imm 44 -> 0 libbpf: prog 'test_core_bitfields_direct': relo #29: kind (5), spec is [5] struct core_reloc_bitfields.sb20 (0:4 @ offset 4) libbpf: prog 'test_core_bitfields_direct': relo #29: matching candidate #0 [4] struct core_reloc_bitfields___bitfield_vs_int.sb20 (0:4 @ offset 32) libbpf: prog 'test_core_bitfields_direct': relo #29: patched insn #128 (ALU/ALU64) imm 44 -> 0 libbpf: prog 'test_core_bitfields_direct': relo #30: kind (0), spec is [5] struct core_reloc_bitfields.u32 (0:5 @ offset 8) libbpf: prog 'test_core_bitfields_direct': relo #30: matching candidate #0 [4] struct core_reloc_bitfields___bitfield_vs_int.u32 (0:5 @ offset 40) libbpf: prog 'test_core_bitfields_direct': relo #30: patched insn #132 (ALU/ALU64) imm 8 -> 40 libbpf: prog 'test_core_bitfields_direct': relo #31: kind (1), spec is [5] struct core_reloc_bitfields.u32 (0:5 @ offset 8) libbpf: prog 'test_core_bitfields_direct': relo #31: matching candidate #0 [4] struct core_reloc_bitfields___bitfield_vs_int.u32 (0:5 @ offset 40) libbpf: prog 'test_core_bitfields_direct': relo #31: patched insn #134 (ALU/ALU64) imm 4 -> 4 libbpf: prog 'test_core_bitfields_direct': relo #32: kind (4), spec is [5] struct core_reloc_bitfields.u32 (0:5 @ offset 8) libbpf: prog 'test_core_bitfields_direct': relo #32: matching candidate #0 [4] struct core_reloc_bitfields___bitfield_vs_int.u32 (0:5 @ offset 40) libbpf: prog 'test_core_bitfields_direct': relo #32: patched insn #149 (ALU/ALU64) imm 32 -> 44 libbpf: prog 'test_core_bitfields_direct': relo #33: kind (3), spec is [5] struct core_reloc_bitfields.u32 (0:5 @ offset 8) libbpf: prog 'test_core_bitfields_direct': relo #33: matching candidate #0 [4] struct core_reloc_bitfields___bitfield_vs_int.u32 (0:5 @ offset 40) libbpf: prog 'test_core_bitfields_direct': relo #33: patched insn #150 (ALU/ALU64) imm 0 -> 1 libbpf: prog 'test_core_bitfields_direct': relo #34: kind (5), spec is [5] struct core_reloc_bitfields.u32 (0:5 @ offset 8) libbpf: prog 'test_core_bitfields_direct': relo #34: matching candidate #0 [4] struct core_reloc_bitfields___bitfield_vs_int.u32 (0:5 @ offset 40) libbpf: prog 'test_core_bitfields_direct': relo #34: patched insn #152 (ALU/ALU64) imm 32 -> 44 libbpf: prog 'test_core_bitfields_direct': relo #35: kind (5), spec is [5] struct core_reloc_bitfields.u32 (0:5 @ offset 8) libbpf: prog 'test_core_bitfields_direct': relo #35: matching candidate #0 [4] struct core_reloc_bitfields___bitfield_vs_int.u32 (0:5 @ offset 40) libbpf: prog 'test_core_bitfields_direct': relo #35: patched insn #154 (ALU/ALU64) imm 32 -> 44 libbpf: prog 'test_core_bitfields_direct': relo #36: kind (0), spec is [5] struct core_reloc_bitfields.s32 (0:6 @ offset 12) libbpf: prog 'test_core_bitfields_direct': relo #36: matching candidate #0 [4] struct core_reloc_bitfields___bitfield_vs_int.s32 (0:6 @ offset 48) libbpf: prog 'test_core_bitfields_direct': relo #36: patched insn #158 (ALU/ALU64) imm 12 -> 48 libbpf: prog 'test_core_bitfields_direct': relo #37: kind (1), spec is [5] struct core_reloc_bitfields.s32 (0:6 @ offset 12) libbpf: prog 'test_core_bitfields_direct': relo #37: matching candidate #0 [4] struct core_reloc_bitfields___bitfield_vs_int.s32 (0:6 @ offset 48) libbpf: prog 'test_core_bitfields_direct': relo #37: patched insn #160 (ALU/ALU64) imm 4 -> 8 libbpf: prog 'test_core_bitfields_direct': relo #38: kind (4), spec is [5] struct core_reloc_bitfields.s32 (0:6 @ offset 12) libbpf: prog 'test_core_bitfields_direct': relo #38: matching candidate #0 [4] struct core_reloc_bitfields___bitfield_vs_int.s32 (0:6 @ offset 48) libbpf: prog 'test_core_bitfields_direct': relo #38: patched insn #175 (ALU/ALU64) imm 32 -> 4 libbpf: prog 'test_core_bitfields_direct': relo #39: kind (3), spec is [5] struct core_reloc_bitfields.s32 (0:6 @ offset 12) libbpf: prog 'test_core_bitfields_direct': relo #39: matching candidate #0 [4] struct core_reloc_bitfields___bitfield_vs_int.s32 (0:6 @ offset 48) libbpf: prog 'test_core_bitfields_direct': relo #39: patched insn #176 (ALU/ALU64) imm 1 -> 0 libbpf: prog 'test_core_bitfields_direct': relo #40: kind (5), spec is [5] struct core_reloc_bitfields.s32 (0:6 @ offset 12) libbpf: prog 'test_core_bitfields_direct': relo #40: matching candidate #0 [4] struct core_reloc_bitfields___bitfield_vs_int.s32 (0:6 @ offset 48) libbpf: prog 'test_core_bitfields_direct': relo #40: patched insn #178 (ALU/ALU64) imm 32 -> 4 libbpf: prog 'test_core_bitfields_direct': relo #41: kind (5), spec is [5] struct core_reloc_bitfields.s32 (0:6 @ offset 12) libbpf: prog 'test_core_bitfields_direct': relo #41: matching candidate #0 [4] struct core_reloc_bitfields___bitfield_vs_int.s32 (0:6 @ offset 48) libbpf: prog 'test_core_bitfields_direct': relo #41: patched insn #180 (ALU/ALU64) imm 32 -> 4 test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/53 core_reloc/direct:bitfields___bitfield_vs_int:OK test_core_reloc:PASS:btf_src_file 0 nsec libbpf: loading test_core_reloc_bitfields_probed.o libbpf: elf: section(2) raw_tracepoint/sys_enter, size 1040, link 0, flags 6, type=1 libbpf: sec 'raw_tracepoint/sys_enter': found program 'test_core_bitfields' at insn offset 0 (0 bytes), code size 130 insns (1040 bytes) libbpf: elf: section(3) .relraw_tracepoint/sys_enter, size 128, link 11, flags 40, type=9 libbpf: elf: section(4) license, size 4, link 0, flags 3, type=1 libbpf: license of test_core_reloc_bitfields_probed.o is GPL libbpf: elf: section(5) .bss, size 512, link 0, flags 3, type=8 libbpf: elf: section(6) .BTF, size 1412, link 0, flags 0, type=1 libbpf: elf: section(8) .BTF.ext, size 1340, link 0, flags 0, type=1 libbpf: elf: section(11) .symtab, size 600, link 12, flags 0, type=2 libbpf: looking for externs among 25 symbols... libbpf: collected 0 externs total libbpf: map 'test_cor.bss' (global data): at sec_idx 5, offset 0, flags 400. libbpf: map 0 is "test_cor.bss" libbpf: sec '.relraw_tracepoint/sys_enter': collecting relocation for section(2) 'raw_tracepoint/sys_enter' libbpf: sec '.relraw_tracepoint/sys_enter': relo #0: insn #3 against 'data' libbpf: prog 'test_core_bitfields': found data map 0 (test_cor.bss, sec 5, off 0) for insn 3 libbpf: sec '.relraw_tracepoint/sys_enter': relo #1: insn #17 against 'data' libbpf: prog 'test_core_bitfields': found data map 0 (test_cor.bss, sec 5, off 0) for insn 17 libbpf: sec '.relraw_tracepoint/sys_enter': relo #2: insn #35 against 'data' libbpf: prog 'test_core_bitfields': found data map 0 (test_cor.bss, sec 5, off 0) for insn 35 libbpf: sec '.relraw_tracepoint/sys_enter': relo #3: insn #53 against 'data' libbpf: prog 'test_core_bitfields': found data map 0 (test_cor.bss, sec 5, off 0) for insn 53 libbpf: sec '.relraw_tracepoint/sys_enter': relo #4: insn #71 against 'data' libbpf: prog 'test_core_bitfields': found data map 0 (test_cor.bss, sec 5, off 0) for insn 71 libbpf: sec '.relraw_tracepoint/sys_enter': relo #5: insn #89 against 'data' libbpf: prog 'test_core_bitfields': found data map 0 (test_cor.bss, sec 5, off 0) for insn 89 libbpf: sec '.relraw_tracepoint/sys_enter': relo #6: insn #107 against 'data' libbpf: prog 'test_core_bitfields': found data map 0 (test_cor.bss, sec 5, off 0) for insn 107 libbpf: sec '.relraw_tracepoint/sys_enter': relo #7: insn #125 against 'data' libbpf: prog 'test_core_bitfields': found data map 0 (test_cor.bss, sec 5, off 0) for insn 125 test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: map 'test_cor.bss': created successfully, fd=5 libbpf: sec 'raw_tracepoint/sys_enter': found 42 CO-RE relocations libbpf: CO-RE relocating [5] struct core_reloc_bitfields: found target candidate [4] struct core_reloc_bitfields___just_big_enough in [vmlinux] libbpf: prog 'test_core_bitfields': relo #0: kind (0), spec is [5] struct core_reloc_bitfields.ub1 (0:0 @ offset 0) libbpf: prog 'test_core_bitfields': relo #0: matching candidate #0 [4] struct core_reloc_bitfields___just_big_enough.ub1 (0:0 @ offset 0) libbpf: prog 'test_core_bitfields': relo #0: patched insn #2 (ALU/ALU64) imm 0 -> 0 libbpf: prog 'test_core_bitfields': relo #1: kind (1), spec is [5] struct core_reloc_bitfields.ub1 (0:0 @ offset 0) libbpf: prog 'test_core_bitfields': relo #1: matching candidate #0 [4] struct core_reloc_bitfields___just_big_enough.ub1 (0:0 @ offset 0) libbpf: prog 'test_core_bitfields': relo #1: patched insn #8 (ALU/ALU64) imm 4 -> 8 libbpf: prog 'test_core_bitfields': relo #2: kind (4), spec is [5] struct core_reloc_bitfields.ub1 (0:0 @ offset 0) libbpf: prog 'test_core_bitfields': relo #2: matching candidate #0 [4] struct core_reloc_bitfields___just_big_enough.ub1 (0:0 @ offset 0) libbpf: prog 'test_core_bitfields': relo #2: patched insn #11 (ALU/ALU64) imm 63 -> 60 libbpf: prog 'test_core_bitfields': relo #3: kind (3), spec is [5] struct core_reloc_bitfields.ub1 (0:0 @ offset 0) libbpf: prog 'test_core_bitfields': relo #3: matching candidate #0 [4] struct core_reloc_bitfields___just_big_enough.ub1 (0:0 @ offset 0) libbpf: prog 'test_core_bitfields': relo #3: patched insn #12 (ALU/ALU64) imm 0 -> 0 libbpf: prog 'test_core_bitfields': relo #4: kind (5), spec is [5] struct core_reloc_bitfields.ub1 (0:0 @ offset 0) libbpf: prog 'test_core_bitfields': relo #4: matching candidate #0 [4] struct core_reloc_bitfields___just_big_enough.ub1 (0:0 @ offset 0) libbpf: prog 'test_core_bitfields': relo #4: patched insn #14 (ALU/ALU64) imm 63 -> 60 libbpf: prog 'test_core_bitfields': relo #5: kind (5), spec is [5] struct core_reloc_bitfields.ub1 (0:0 @ offset 0) libbpf: prog 'test_core_bitfields': relo #5: matching candidate #0 [4] struct core_reloc_bitfields___just_big_enough.ub1 (0:0 @ offset 0) libbpf: prog 'test_core_bitfields': relo #5: patched insn #16 (ALU/ALU64) imm 63 -> 60 libbpf: prog 'test_core_bitfields': relo #6: kind (0), spec is [5] struct core_reloc_bitfields.ub2 (0:1 @ offset 0.1) libbpf: prog 'test_core_bitfields': relo #6: matching candidate #0 [4] struct core_reloc_bitfields___just_big_enough.ub2 (0:1 @ offset 0.4) libbpf: prog 'test_core_bitfields': relo #6: patched insn #22 (ALU/ALU64) imm 0 -> 0 libbpf: prog 'test_core_bitfields': relo #7: kind (1), spec is [5] struct core_reloc_bitfields.ub2 (0:1 @ offset 0.1) libbpf: prog 'test_core_bitfields': relo #7: matching candidate #0 [4] struct core_reloc_bitfields___just_big_enough.ub2 (0:1 @ offset 0.4) libbpf: prog 'test_core_bitfields': relo #7: patched insn #26 (ALU/ALU64) imm 4 -> 8 libbpf: prog 'test_core_bitfields': relo #8: kind (4), spec is [5] struct core_reloc_bitfields.ub2 (0:1 @ offset 0.1) libbpf: prog 'test_core_bitfields': relo #8: matching candidate #0 [4] struct core_reloc_bitfields___just_big_enough.ub2 (0:1 @ offset 0.4) libbpf: prog 'test_core_bitfields': relo #8: patched insn #29 (ALU/ALU64) imm 61 -> 0 libbpf: prog 'test_core_bitfields': relo #9: kind (3), spec is [5] struct core_reloc_bitfields.ub2 (0:1 @ offset 0.1) libbpf: prog 'test_core_bitfields': relo #9: matching candidate #0 [4] struct core_reloc_bitfields___just_big_enough.ub2 (0:1 @ offset 0.4) libbpf: prog 'test_core_bitfields': relo #9: patched insn #30 (ALU/ALU64) imm 0 -> 0 libbpf: prog 'test_core_bitfields': relo #10: kind (5), spec is [5] struct core_reloc_bitfields.ub2 (0:1 @ offset 0.1) libbpf: prog 'test_core_bitfields': relo #10: matching candidate #0 [4] struct core_reloc_bitfields___just_big_enough.ub2 (0:1 @ offset 0.4) libbpf: prog 'test_core_bitfields': relo #10: patched insn #32 (ALU/ALU64) imm 62 -> 4 libbpf: prog 'test_core_bitfields': relo #11: kind (5), spec is [5] struct core_reloc_bitfields.ub2 (0:1 @ offset 0.1) libbpf: prog 'test_core_bitfields': relo #11: matching candidate #0 [4] struct core_reloc_bitfields___just_big_enough.ub2 (0:1 @ offset 0.4) libbpf: prog 'test_core_bitfields': relo #11: patched insn #34 (ALU/ALU64) imm 62 -> 4 libbpf: prog 'test_core_bitfields': relo #12: kind (0), spec is [5] struct core_reloc_bitfields.ub7 (0:2 @ offset 0.3) libbpf: prog 'test_core_bitfields': relo #12: matching candidate #0 [4] struct core_reloc_bitfields___just_big_enough.ub7 (0:2 @ offset 8) libbpf: prog 'test_core_bitfields': relo #12: patched insn #40 (ALU/ALU64) imm 0 -> 8 libbpf: prog 'test_core_bitfields': relo #13: kind (1), spec is [5] struct core_reloc_bitfields.ub7 (0:2 @ offset 0.3) libbpf: prog 'test_core_bitfields': relo #13: matching candidate #0 [4] struct core_reloc_bitfields___just_big_enough.ub7 (0:2 @ offset 8) libbpf: prog 'test_core_bitfields': relo #13: patched insn #44 (ALU/ALU64) imm 4 -> 4 libbpf: prog 'test_core_bitfields': relo #14: kind (4), spec is [5] struct core_reloc_bitfields.ub7 (0:2 @ offset 0.3) libbpf: prog 'test_core_bitfields': relo #14: matching candidate #0 [4] struct core_reloc_bitfields___just_big_enough.ub7 (0:2 @ offset 8) libbpf: prog 'test_core_bitfields': relo #14: patched insn #47 (ALU/ALU64) imm 54 -> 32 libbpf: prog 'test_core_bitfields': relo #15: kind (3), spec is [5] struct core_reloc_bitfields.ub7 (0:2 @ offset 0.3) libbpf: prog 'test_core_bitfields': relo #15: matching candidate #0 [4] struct core_reloc_bitfields___just_big_enough.ub7 (0:2 @ offset 8) libbpf: prog 'test_core_bitfields': relo #15: patched insn #48 (ALU/ALU64) imm 0 -> 0 libbpf: prog 'test_core_bitfields': relo #16: kind (5), spec is [5] struct core_reloc_bitfields.ub7 (0:2 @ offset 0.3) libbpf: prog 'test_core_bitfields': relo #16: matching candidate #0 [4] struct core_reloc_bitfields___just_big_enough.ub7 (0:2 @ offset 8) libbpf: prog 'test_core_bitfields': relo #16: patched insn #50 (ALU/ALU64) imm 57 -> 32 libbpf: prog 'test_core_bitfields': relo #17: kind (5), spec is [5] struct core_reloc_bitfields.ub7 (0:2 @ offset 0.3) libbpf: prog 'test_core_bitfields': relo #17: matching candidate #0 [4] struct core_reloc_bitfields___just_big_enough.ub7 (0:2 @ offset 8) libbpf: prog 'test_core_bitfields': relo #17: patched insn #52 (ALU/ALU64) imm 57 -> 32 libbpf: prog 'test_core_bitfields': relo #18: kind (0), spec is [5] struct core_reloc_bitfields.sb4 (0:3 @ offset 1.2) libbpf: prog 'test_core_bitfields': relo #18: matching candidate #0 [4] struct core_reloc_bitfields___just_big_enough.sb4 (0:3 @ offset 12) libbpf: prog 'test_core_bitfields': relo #18: patched insn #58 (ALU/ALU64) imm 0 -> 12 libbpf: prog 'test_core_bitfields': relo #19: kind (1), spec is [5] struct core_reloc_bitfields.sb4 (0:3 @ offset 1.2) libbpf: prog 'test_core_bitfields': relo #19: matching candidate #0 [4] struct core_reloc_bitfields___just_big_enough.sb4 (0:3 @ offset 12) libbpf: prog 'test_core_bitfields': relo #19: patched insn #62 (ALU/ALU64) imm 4 -> 4 libbpf: prog 'test_core_bitfields': relo #20: kind (4), spec is [5] struct core_reloc_bitfields.sb4 (0:3 @ offset 1.2) libbpf: prog 'test_core_bitfields': relo #20: matching candidate #0 [4] struct core_reloc_bitfields___just_big_enough.sb4 (0:3 @ offset 12) libbpf: prog 'test_core_bitfields': relo #20: patched insn #65 (ALU/ALU64) imm 50 -> 32 libbpf: prog 'test_core_bitfields': relo #21: kind (3), spec is [5] struct core_reloc_bitfields.sb4 (0:3 @ offset 1.2) libbpf: prog 'test_core_bitfields': relo #21: matching candidate #0 [4] struct core_reloc_bitfields___just_big_enough.sb4 (0:3 @ offset 12) libbpf: prog 'test_core_bitfields': relo #21: patched insn #66 (ALU/ALU64) imm 1 -> 0 libbpf: prog 'test_core_bitfields': relo #22: kind (5), spec is [5] struct core_reloc_bitfields.sb4 (0:3 @ offset 1.2) libbpf: prog 'test_core_bitfields': relo #22: matching candidate #0 [4] struct core_reloc_bitfields___just_big_enough.sb4 (0:3 @ offset 12) libbpf: prog 'test_core_bitfields': relo #22: patched insn #68 (ALU/ALU64) imm 60 -> 32 libbpf: prog 'test_core_bitfields': relo #23: kind (5), spec is [5] struct core_reloc_bitfields.sb4 (0:3 @ offset 1.2) libbpf: prog 'test_core_bitfields': relo #23: matching candidate #0 [4] struct core_reloc_bitfields___just_big_enough.sb4 (0:3 @ offset 12) libbpf: prog 'test_core_bitfields': relo #23: patched insn #70 (ALU/ALU64) imm 60 -> 32 libbpf: prog 'test_core_bitfields': relo #24: kind (0), spec is [5] struct core_reloc_bitfields.sb20 (0:4 @ offset 4) libbpf: prog 'test_core_bitfields': relo #24: matching candidate #0 [4] struct core_reloc_bitfields___just_big_enough.sb20 (0:4 @ offset 16) libbpf: prog 'test_core_bitfields': relo #24: patched insn #76 (ALU/ALU64) imm 4 -> 16 libbpf: prog 'test_core_bitfields': relo #25: kind (1), spec is [5] struct core_reloc_bitfields.sb20 (0:4 @ offset 4) libbpf: prog 'test_core_bitfields': relo #25: matching candidate #0 [4] struct core_reloc_bitfields___just_big_enough.sb20 (0:4 @ offset 16) libbpf: prog 'test_core_bitfields': relo #25: patched insn #80 (ALU/ALU64) imm 4 -> 4 libbpf: prog 'test_core_bitfields': relo #26: kind (4), spec is [5] struct core_reloc_bitfields.sb20 (0:4 @ offset 4) libbpf: prog 'test_core_bitfields': relo #26: matching candidate #0 [4] struct core_reloc_bitfields___just_big_enough.sb20 (0:4 @ offset 16) libbpf: prog 'test_core_bitfields': relo #26: patched insn #83 (ALU/ALU64) imm 44 -> 32 libbpf: prog 'test_core_bitfields': relo #27: kind (3), spec is [5] struct core_reloc_bitfields.sb20 (0:4 @ offset 4) libbpf: prog 'test_core_bitfields': relo #27: matching candidate #0 [4] struct core_reloc_bitfields___just_big_enough.sb20 (0:4 @ offset 16) libbpf: prog 'test_core_bitfields': relo #27: patched insn #84 (ALU/ALU64) imm 1 -> 0 libbpf: prog 'test_core_bitfields': relo #28: kind (5), spec is [5] struct core_reloc_bitfields.sb20 (0:4 @ offset 4) libbpf: prog 'test_core_bitfields': relo #28: matching candidate #0 [4] struct core_reloc_bitfields___just_big_enough.sb20 (0:4 @ offset 16) libbpf: prog 'test_core_bitfields': relo #28: patched insn #86 (ALU/ALU64) imm 44 -> 32 libbpf: prog 'test_core_bitfields': relo #29: kind (5), spec is [5] struct core_reloc_bitfields.sb20 (0:4 @ offset 4) libbpf: prog 'test_core_bitfields': relo #29: matching candidate #0 [4] struct core_reloc_bitfields___just_big_enough.sb20 (0:4 @ offset 16) libbpf: prog 'test_core_bitfields': relo #29: patched insn #88 (ALU/ALU64) imm 44 -> 32 libbpf: prog 'test_core_bitfields': relo #30: kind (0), spec is [5] struct core_reloc_bitfields.u32 (0:5 @ offset 8) libbpf: prog 'test_core_bitfields': relo #30: matching candidate #0 [4] struct core_reloc_bitfields___just_big_enough.u32 (0:5 @ offset 20) libbpf: prog 'test_core_bitfields': relo #30: patched insn #94 (ALU/ALU64) imm 8 -> 20 libbpf: prog 'test_core_bitfields': relo #31: kind (1), spec is [5] struct core_reloc_bitfields.u32 (0:5 @ offset 8) libbpf: prog 'test_core_bitfields': relo #31: matching candidate #0 [4] struct core_reloc_bitfields___just_big_enough.u32 (0:5 @ offset 20) libbpf: prog 'test_core_bitfields': relo #31: patched insn #98 (ALU/ALU64) imm 4 -> 4 libbpf: prog 'test_core_bitfields': relo #32: kind (4), spec is [5] struct core_reloc_bitfields.u32 (0:5 @ offset 8) libbpf: prog 'test_core_bitfields': relo #32: matching candidate #0 [4] struct core_reloc_bitfields___just_big_enough.u32 (0:5 @ offset 20) libbpf: prog 'test_core_bitfields': relo #32: patched insn #101 (ALU/ALU64) imm 32 -> 32 libbpf: prog 'test_core_bitfields': relo #33: kind (3), spec is [5] struct core_reloc_bitfields.u32 (0:5 @ offset 8) libbpf: prog 'test_core_bitfields': relo #33: matching candidate #0 [4] struct core_reloc_bitfields___just_big_enough.u32 (0:5 @ offset 20) libbpf: prog 'test_core_bitfields': relo #33: patched insn #102 (ALU/ALU64) imm 0 -> 0 libbpf: prog 'test_core_bitfields': relo #34: kind (5), spec is [5] struct core_reloc_bitfields.u32 (0:5 @ offset 8) libbpf: prog 'test_core_bitfields': relo #34: matching candidate #0 [4] struct core_reloc_bitfields___just_big_enough.u32 (0:5 @ offset 20) libbpf: prog 'test_core_bitfields': relo #34: patched insn #104 (ALU/ALU64) imm 32 -> 32 libbpf: prog 'test_core_bitfields': relo #35: kind (5), spec is [5] struct core_reloc_bitfields.u32 (0:5 @ offset 8) libbpf: prog 'test_core_bitfields': relo #35: matching candidate #0 [4] struct core_reloc_bitfields___just_big_enough.u32 (0:5 @ offset 20) libbpf: prog 'test_core_bitfields': relo #35: patched insn #106 (ALU/ALU64) imm 32 -> 32 libbpf: prog 'test_core_bitfields': relo #36: kind (0), spec is [5] struct core_reloc_bitfields.s32 (0:6 @ offset 12) libbpf: prog 'test_core_bitfields': relo #36: matching candidate #0 [4] struct core_reloc_bitfields___just_big_enough.s32 (0:6 @ offset 24) libbpf: prog 'test_core_bitfields': relo #36: patched insn #112 (ALU/ALU64) imm 12 -> 24 libbpf: prog 'test_core_bitfields': relo #37: kind (1), spec is [5] struct core_reloc_bitfields.s32 (0:6 @ offset 12) libbpf: prog 'test_core_bitfields': relo #37: matching candidate #0 [4] struct core_reloc_bitfields___just_big_enough.s32 (0:6 @ offset 24) libbpf: prog 'test_core_bitfields': relo #37: patched insn #116 (ALU/ALU64) imm 4 -> 4 libbpf: prog 'test_core_bitfields': relo #38: kind (4), spec is [5] struct core_reloc_bitfields.s32 (0:6 @ offset 12) libbpf: prog 'test_core_bitfields': relo #38: matching candidate #0 [4] struct core_reloc_bitfields___just_big_enough.s32 (0:6 @ offset 24) libbpf: prog 'test_core_bitfields': relo #38: patched insn #119 (ALU/ALU64) imm 32 -> 32 libbpf: prog 'test_core_bitfields': relo #39: kind (3), spec is [5] struct core_reloc_bitfields.s32 (0:6 @ offset 12) libbpf: prog 'test_core_bitfields': relo #39: matching candidate #0 [4] struct core_reloc_bitfields___just_big_enough.s32 (0:6 @ offset 24) libbpf: prog 'test_core_bitfields': relo #39: patched insn #120 (ALU/ALU64) imm 1 -> 0 libbpf: prog 'test_core_bitfields': relo #40: kind (5), spec is [5] struct core_reloc_bitfields.s32 (0:6 @ offset 12) libbpf: prog 'test_core_bitfields': relo #40: matching candidate #0 [4] struct core_reloc_bitfields___just_big_enough.s32 (0:6 @ offset 24) libbpf: prog 'test_core_bitfields': relo #40: patched insn #122 (ALU/ALU64) imm 32 -> 32 libbpf: prog 'test_core_bitfields': relo #41: kind (5), spec is [5] struct core_reloc_bitfields.s32 (0:6 @ offset 12) libbpf: prog 'test_core_bitfields': relo #41: matching candidate #0 [4] struct core_reloc_bitfields___just_big_enough.s32 (0:6 @ offset 24) libbpf: prog 'test_core_bitfields': relo #41: patched insn #124 (ALU/ALU64) imm 32 -> 32 test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/54 core_reloc/probed:bitfields___just_big_enough:OK test_core_reloc:PASS:btf_src_file 0 nsec libbpf: loading test_core_reloc_bitfields_direct.o libbpf: elf: section(2) tp_btf/sys_enter, size 1488, link 0, flags 6, type=1 libbpf: sec 'tp_btf/sys_enter': found program 'test_core_bitfields_direct' at insn offset 0 (0 bytes), code size 186 insns (1488 bytes) libbpf: elf: section(3) .reltp_btf/sys_enter, size 128, link 11, flags 40, type=9 libbpf: elf: section(4) license, size 4, link 0, flags 3, type=1 libbpf: license of test_core_reloc_bitfields_direct.o is GPL libbpf: elf: section(5) .bss, size 512, link 0, flags 3, type=8 libbpf: elf: section(6) .BTF, size 1369, link 0, flags 0, type=1 libbpf: elf: section(8) .BTF.ext, size 1564, link 0, flags 0, type=1 libbpf: elf: section(11) .symtab, size 1608, link 12, flags 0, type=2 libbpf: looking for externs among 67 symbols... libbpf: collected 0 externs total libbpf: map 'test_cor.bss' (global data): at sec_idx 5, offset 0, flags 400. libbpf: map 0 is "test_cor.bss" libbpf: sec '.reltp_btf/sys_enter': collecting relocation for section(2) 'tp_btf/sys_enter' libbpf: sec '.reltp_btf/sys_enter': relo #0: insn #1 against 'data' libbpf: prog 'test_core_bitfields_direct': found data map 0 (test_cor.bss, sec 5, off 0) for insn 1 libbpf: sec '.reltp_btf/sys_enter': relo #1: insn #25 against 'data' libbpf: prog 'test_core_bitfields_direct': found data map 0 (test_cor.bss, sec 5, off 0) for insn 25 libbpf: sec '.reltp_btf/sys_enter': relo #2: insn #51 against 'data' libbpf: prog 'test_core_bitfields_direct': found data map 0 (test_cor.bss, sec 5, off 0) for insn 51 libbpf: sec '.reltp_btf/sys_enter': relo #3: insn #77 against 'data' libbpf: prog 'test_core_bitfields_direct': found data map 0 (test_cor.bss, sec 5, off 0) for insn 77 libbpf: sec '.reltp_btf/sys_enter': relo #4: insn #103 against 'data' libbpf: prog 'test_core_bitfields_direct': found data map 0 (test_cor.bss, sec 5, off 0) for insn 103 libbpf: sec '.reltp_btf/sys_enter': relo #5: insn #129 against 'data' libbpf: prog 'test_core_bitfields_direct': found data map 0 (test_cor.bss, sec 5, off 0) for insn 129 libbpf: sec '.reltp_btf/sys_enter': relo #6: insn #155 against 'data' libbpf: prog 'test_core_bitfields_direct': found data map 0 (test_cor.bss, sec 5, off 0) for insn 155 libbpf: sec '.reltp_btf/sys_enter': relo #7: insn #181 against 'data' libbpf: prog 'test_core_bitfields_direct': found data map 0 (test_cor.bss, sec 5, off 0) for insn 181 test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: loading kernel BTF '/sys/kernel/btf/vmlinux': 0 libbpf: map 'test_cor.bss': created successfully, fd=5 libbpf: sec 'tp_btf/sys_enter': found 42 CO-RE relocations libbpf: CO-RE relocating [5] struct core_reloc_bitfields: found target candidate [4] struct core_reloc_bitfields___just_big_enough in [vmlinux] libbpf: prog 'test_core_bitfields_direct': relo #0: kind (0), spec is [5] struct core_reloc_bitfields.ub1 (0:0 @ offset 0) libbpf: prog 'test_core_bitfields_direct': relo #0: matching candidate #0 [4] struct core_reloc_bitfields___just_big_enough.ub1 (0:0 @ offset 0) libbpf: prog 'test_core_bitfields_direct': relo #0: patched insn #0 (ALU/ALU64) imm 0 -> 0 libbpf: prog 'test_core_bitfields_direct': relo #1: kind (1), spec is [5] struct core_reloc_bitfields.ub1 (0:0 @ offset 0) libbpf: prog 'test_core_bitfields_direct': relo #1: matching candidate #0 [4] struct core_reloc_bitfields___just_big_enough.ub1 (0:0 @ offset 0) libbpf: prog 'test_core_bitfields_direct': relo #1: patched insn #4 (ALU/ALU64) imm 4 -> 8 libbpf: prog 'test_core_bitfields_direct': relo #2: kind (4), spec is [5] struct core_reloc_bitfields.ub1 (0:0 @ offset 0) libbpf: prog 'test_core_bitfields_direct': relo #2: matching candidate #0 [4] struct core_reloc_bitfields___just_big_enough.ub1 (0:0 @ offset 0) libbpf: prog 'test_core_bitfields_direct': relo #2: patched insn #19 (ALU/ALU64) imm 63 -> 60 libbpf: prog 'test_core_bitfields_direct': relo #3: kind (3), spec is [5] struct core_reloc_bitfields.ub1 (0:0 @ offset 0) libbpf: prog 'test_core_bitfields_direct': relo #3: matching candidate #0 [4] struct core_reloc_bitfields___just_big_enough.ub1 (0:0 @ offset 0) libbpf: prog 'test_core_bitfields_direct': relo #3: patched insn #20 (ALU/ALU64) imm 0 -> 0 libbpf: prog 'test_core_bitfields_direct': relo #4: kind (5), spec is [5] struct core_reloc_bitfields.ub1 (0:0 @ offset 0) libbpf: prog 'test_core_bitfields_direct': relo #4: matching candidate #0 [4] struct core_reloc_bitfields___just_big_enough.ub1 (0:0 @ offset 0) libbpf: prog 'test_core_bitfields_direct': relo #4: patched insn #22 (ALU/ALU64) imm 63 -> 60 libbpf: prog 'test_core_bitfields_direct': relo #5: kind (5), spec is [5] struct core_reloc_bitfields.ub1 (0:0 @ offset 0) libbpf: prog 'test_core_bitfields_direct': relo #5: matching candidate #0 [4] struct core_reloc_bitfields___just_big_enough.ub1 (0:0 @ offset 0) libbpf: prog 'test_core_bitfields_direct': relo #5: patched insn #24 (ALU/ALU64) imm 63 -> 60 libbpf: prog 'test_core_bitfields_direct': relo #6: kind (0), spec is [5] struct core_reloc_bitfields.ub2 (0:1 @ offset 0.1) libbpf: prog 'test_core_bitfields_direct': relo #6: matching candidate #0 [4] struct core_reloc_bitfields___just_big_enough.ub2 (0:1 @ offset 0.4) libbpf: prog 'test_core_bitfields_direct': relo #6: patched insn #28 (ALU/ALU64) imm 0 -> 0 libbpf: prog 'test_core_bitfields_direct': relo #7: kind (1), spec is [5] struct core_reloc_bitfields.ub2 (0:1 @ offset 0.1) libbpf: prog 'test_core_bitfields_direct': relo #7: matching candidate #0 [4] struct core_reloc_bitfields___just_big_enough.ub2 (0:1 @ offset 0.4) libbpf: prog 'test_core_bitfields_direct': relo #7: patched insn #30 (ALU/ALU64) imm 4 -> 8 libbpf: prog 'test_core_bitfields_direct': relo #8: kind (4), spec is [5] struct core_reloc_bitfields.ub2 (0:1 @ offset 0.1) libbpf: prog 'test_core_bitfields_direct': relo #8: matching candidate #0 [4] struct core_reloc_bitfields___just_big_enough.ub2 (0:1 @ offset 0.4) libbpf: prog 'test_core_bitfields_direct': relo #8: patched insn #45 (ALU/ALU64) imm 61 -> 0 libbpf: prog 'test_core_bitfields_direct': relo #9: kind (3), spec is [5] struct core_reloc_bitfields.ub2 (0:1 @ offset 0.1) libbpf: prog 'test_core_bitfields_direct': relo #9: matching candidate #0 [4] struct core_reloc_bitfields___just_big_enough.ub2 (0:1 @ offset 0.4) libbpf: prog 'test_core_bitfields_direct': relo #9: patched insn #46 (ALU/ALU64) imm 0 -> 0 libbpf: prog 'test_core_bitfields_direct': relo #10: kind (5), spec is [5] struct core_reloc_bitfields.ub2 (0:1 @ offset 0.1) libbpf: prog 'test_core_bitfields_direct': relo #10: matching candidate #0 [4] struct core_reloc_bitfields___just_big_enough.ub2 (0:1 @ offset 0.4) libbpf: prog 'test_core_bitfields_direct': relo #10: patched insn #48 (ALU/ALU64) imm 62 -> 4 libbpf: prog 'test_core_bitfields_direct': relo #11: kind (5), spec is [5] struct core_reloc_bitfields.ub2 (0:1 @ offset 0.1) libbpf: prog 'test_core_bitfields_direct': relo #11: matching candidate #0 [4] struct core_reloc_bitfields___just_big_enough.ub2 (0:1 @ offset 0.4) libbpf: prog 'test_core_bitfields_direct': relo #11: patched insn #50 (ALU/ALU64) imm 62 -> 4 libbpf: prog 'test_core_bitfields_direct': relo #12: kind (0), spec is [5] struct core_reloc_bitfields.ub7 (0:2 @ offset 0.3) libbpf: prog 'test_core_bitfields_direct': relo #12: matching candidate #0 [4] struct core_reloc_bitfields___just_big_enough.ub7 (0:2 @ offset 8) libbpf: prog 'test_core_bitfields_direct': relo #12: patched insn #54 (ALU/ALU64) imm 0 -> 8 libbpf: prog 'test_core_bitfields_direct': relo #13: kind (1), spec is [5] struct core_reloc_bitfields.ub7 (0:2 @ offset 0.3) libbpf: prog 'test_core_bitfields_direct': relo #13: matching candidate #0 [4] struct core_reloc_bitfields___just_big_enough.ub7 (0:2 @ offset 8) libbpf: prog 'test_core_bitfields_direct': relo #13: patched insn #56 (ALU/ALU64) imm 4 -> 4 libbpf: prog 'test_core_bitfields_direct': relo #14: kind (4), spec is [5] struct core_reloc_bitfields.ub7 (0:2 @ offset 0.3) libbpf: prog 'test_core_bitfields_direct': relo #14: matching candidate #0 [4] struct core_reloc_bitfields___just_big_enough.ub7 (0:2 @ offset 8) libbpf: prog 'test_core_bitfields_direct': relo #14: patched insn #71 (ALU/ALU64) imm 54 -> 32 libbpf: prog 'test_core_bitfields_direct': relo #15: kind (3), spec is [5] struct core_reloc_bitfields.ub7 (0:2 @ offset 0.3) libbpf: prog 'test_core_bitfields_direct': relo #15: matching candidate #0 [4] struct core_reloc_bitfields___just_big_enough.ub7 (0:2 @ offset 8) libbpf: prog 'test_core_bitfields_direct': relo #15: patched insn #72 (ALU/ALU64) imm 0 -> 0 libbpf: prog 'test_core_bitfields_direct': relo #16: kind (5), spec is [5] struct core_reloc_bitfields.ub7 (0:2 @ offset 0.3) libbpf: prog 'test_core_bitfields_direct': relo #16: matching candidate #0 [4] struct core_reloc_bitfields___just_big_enough.ub7 (0:2 @ offset 8) libbpf: prog 'test_core_bitfields_direct': relo #16: patched insn #74 (ALU/ALU64) imm 57 -> 32 libbpf: prog 'test_core_bitfields_direct': relo #17: kind (5), spec is [5] struct core_reloc_bitfields.ub7 (0:2 @ offset 0.3) libbpf: prog 'test_core_bitfields_direct': relo #17: matching candidate #0 [4] struct core_reloc_bitfields___just_big_enough.ub7 (0:2 @ offset 8) libbpf: prog 'test_core_bitfields_direct': relo #17: patched insn #76 (ALU/ALU64) imm 57 -> 32 libbpf: prog 'test_core_bitfields_direct': relo #18: kind (0), spec is [5] struct core_reloc_bitfields.sb4 (0:3 @ offset 1.2) libbpf: prog 'test_core_bitfields_direct': relo #18: matching candidate #0 [4] struct core_reloc_bitfields___just_big_enough.sb4 (0:3 @ offset 12) libbpf: prog 'test_core_bitfields_direct': relo #18: patched insn #80 (ALU/ALU64) imm 0 -> 12 libbpf: prog 'test_core_bitfields_direct': relo #19: kind (1), spec is [5] struct core_reloc_bitfields.sb4 (0:3 @ offset 1.2) libbpf: prog 'test_core_bitfields_direct': relo #19: matching candidate #0 [4] struct core_reloc_bitfields___just_big_enough.sb4 (0:3 @ offset 12) libbpf: prog 'test_core_bitfields_direct': relo #19: patched insn #82 (ALU/ALU64) imm 4 -> 4 libbpf: prog 'test_core_bitfields_direct': relo #20: kind (4), spec is [5] struct core_reloc_bitfields.sb4 (0:3 @ offset 1.2) libbpf: prog 'test_core_bitfields_direct': relo #20: matching candidate #0 [4] struct core_reloc_bitfields___just_big_enough.sb4 (0:3 @ offset 12) libbpf: prog 'test_core_bitfields_direct': relo #20: patched insn #97 (ALU/ALU64) imm 50 -> 32 libbpf: prog 'test_core_bitfields_direct': relo #21: kind (3), spec is [5] struct core_reloc_bitfields.sb4 (0:3 @ offset 1.2) libbpf: prog 'test_core_bitfields_direct': relo #21: matching candidate #0 [4] struct core_reloc_bitfields___just_big_enough.sb4 (0:3 @ offset 12) libbpf: prog 'test_core_bitfields_direct': relo #21: patched insn #98 (ALU/ALU64) imm 1 -> 0 libbpf: prog 'test_core_bitfields_direct': relo #22: kind (5), spec is [5] struct core_reloc_bitfields.sb4 (0:3 @ offset 1.2) libbpf: prog 'test_core_bitfields_direct': relo #22: matching candidate #0 [4] struct core_reloc_bitfields___just_big_enough.sb4 (0:3 @ offset 12) libbpf: prog 'test_core_bitfields_direct': relo #22: patched insn #100 (ALU/ALU64) imm 60 -> 32 libbpf: prog 'test_core_bitfields_direct': relo #23: kind (5), spec is [5] struct core_reloc_bitfields.sb4 (0:3 @ offset 1.2) libbpf: prog 'test_core_bitfields_direct': relo #23: matching candidate #0 [4] struct core_reloc_bitfields___just_big_enough.sb4 (0:3 @ offset 12) libbpf: prog 'test_core_bitfields_direct': relo #23: patched insn #102 (ALU/ALU64) imm 60 -> 32 libbpf: prog 'test_core_bitfields_direct': relo #24: kind (0), spec is [5] struct core_reloc_bitfields.sb20 (0:4 @ offset 4) libbpf: prog 'test_core_bitfields_direct': relo #24: matching candidate #0 [4] struct core_reloc_bitfields___just_big_enough.sb20 (0:4 @ offset 16) libbpf: prog 'test_core_bitfields_direct': relo #24: patched insn #106 (ALU/ALU64) imm 4 -> 16 libbpf: prog 'test_core_bitfields_direct': relo #25: kind (1), spec is [5] struct core_reloc_bitfields.sb20 (0:4 @ offset 4) libbpf: prog 'test_core_bitfields_direct': relo #25: matching candidate #0 [4] struct core_reloc_bitfields___just_big_enough.sb20 (0:4 @ offset 16) libbpf: prog 'test_core_bitfields_direct': relo #25: patched insn #108 (ALU/ALU64) imm 4 -> 4 libbpf: prog 'test_core_bitfields_direct': relo #26: kind (4), spec is [5] struct core_reloc_bitfields.sb20 (0:4 @ offset 4) libbpf: prog 'test_core_bitfields_direct': relo #26: matching candidate #0 [4] struct core_reloc_bitfields___just_big_enough.sb20 (0:4 @ offset 16) libbpf: prog 'test_core_bitfields_direct': relo #26: patched insn #123 (ALU/ALU64) imm 44 -> 32 libbpf: prog 'test_core_bitfields_direct': relo #27: kind (3), spec is [5] struct core_reloc_bitfields.sb20 (0:4 @ offset 4) libbpf: prog 'test_core_bitfields_direct': relo #27: matching candidate #0 [4] struct core_reloc_bitfields___just_big_enough.sb20 (0:4 @ offset 16) libbpf: prog 'test_core_bitfields_direct': relo #27: patched insn #124 (ALU/ALU64) imm 1 -> 0 libbpf: prog 'test_core_bitfields_direct': relo #28: kind (5), spec is [5] struct core_reloc_bitfields.sb20 (0:4 @ offset 4) libbpf: prog 'test_core_bitfields_direct': relo #28: matching candidate #0 [4] struct core_reloc_bitfields___just_big_enough.sb20 (0:4 @ offset 16) libbpf: prog 'test_core_bitfields_direct': relo #28: patched insn #126 (ALU/ALU64) imm 44 -> 32 libbpf: prog 'test_core_bitfields_direct': relo #29: kind (5), spec is [5] struct core_reloc_bitfields.sb20 (0:4 @ offset 4) libbpf: prog 'test_core_bitfields_direct': relo #29: matching candidate #0 [4] struct core_reloc_bitfields___just_big_enough.sb20 (0:4 @ offset 16) libbpf: prog 'test_core_bitfields_direct': relo #29: patched insn #128 (ALU/ALU64) imm 44 -> 32 libbpf: prog 'test_core_bitfields_direct': relo #30: kind (0), spec is [5] struct core_reloc_bitfields.u32 (0:5 @ offset 8) libbpf: prog 'test_core_bitfields_direct': relo #30: matching candidate #0 [4] struct core_reloc_bitfields___just_big_enough.u32 (0:5 @ offset 20) libbpf: prog 'test_core_bitfields_direct': relo #30: patched insn #132 (ALU/ALU64) imm 8 -> 20 libbpf: prog 'test_core_bitfields_direct': relo #31: kind (1), spec is [5] struct core_reloc_bitfields.u32 (0:5 @ offset 8) libbpf: prog 'test_core_bitfields_direct': relo #31: matching candidate #0 [4] struct core_reloc_bitfields___just_big_enough.u32 (0:5 @ offset 20) libbpf: prog 'test_core_bitfields_direct': relo #31: patched insn #134 (ALU/ALU64) imm 4 -> 4 libbpf: prog 'test_core_bitfields_direct': relo #32: kind (4), spec is [5] struct core_reloc_bitfields.u32 (0:5 @ offset 8) libbpf: prog 'test_core_bitfields_direct': relo #32: matching candidate #0 [4] struct core_reloc_bitfields___just_big_enough.u32 (0:5 @ offset 20) libbpf: prog 'test_core_bitfields_direct': relo #32: patched insn #149 (ALU/ALU64) imm 32 -> 32 libbpf: prog 'test_core_bitfields_direct': relo #33: kind (3), spec is [5] struct core_reloc_bitfields.u32 (0:5 @ offset 8) libbpf: prog 'test_core_bitfields_direct': relo #33: matching candidate #0 [4] struct core_reloc_bitfields___just_big_enough.u32 (0:5 @ offset 20) libbpf: prog 'test_core_bitfields_direct': relo #33: patched insn #150 (ALU/ALU64) imm 0 -> 0 libbpf: prog 'test_core_bitfields_direct': relo #34: kind (5), spec is [5] struct core_reloc_bitfields.u32 (0:5 @ offset 8) libbpf: prog 'test_core_bitfields_direct': relo #34: matching candidate #0 [4] struct core_reloc_bitfields___just_big_enough.u32 (0:5 @ offset 20) libbpf: prog 'test_core_bitfields_direct': relo #34: patched insn #152 (ALU/ALU64) imm 32 -> 32 libbpf: prog 'test_core_bitfields_direct': relo #35: kind (5), spec is [5] struct core_reloc_bitfields.u32 (0:5 @ offset 8) libbpf: prog 'test_core_bitfields_direct': relo #35: matching candidate #0 [4] struct core_reloc_bitfields___just_big_enough.u32 (0:5 @ offset 20) libbpf: prog 'test_core_bitfields_direct': relo #35: patched insn #154 (ALU/ALU64) imm 32 -> 32 libbpf: prog 'test_core_bitfields_direct': relo #36: kind (0), spec is [5] struct core_reloc_bitfields.s32 (0:6 @ offset 12) libbpf: prog 'test_core_bitfields_direct': relo #36: matching candidate #0 [4] struct core_reloc_bitfields___just_big_enough.s32 (0:6 @ offset 24) libbpf: prog 'test_core_bitfields_direct': relo #36: patched insn #158 (ALU/ALU64) imm 12 -> 24 libbpf: prog 'test_core_bitfields_direct': relo #37: kind (1), spec is [5] struct core_reloc_bitfields.s32 (0:6 @ offset 12) libbpf: prog 'test_core_bitfields_direct': relo #37: matching candidate #0 [4] struct core_reloc_bitfields___just_big_enough.s32 (0:6 @ offset 24) libbpf: prog 'test_core_bitfields_direct': relo #37: patched insn #160 (ALU/ALU64) imm 4 -> 4 libbpf: prog 'test_core_bitfields_direct': relo #38: kind (4), spec is [5] struct core_reloc_bitfields.s32 (0:6 @ offset 12) libbpf: prog 'test_core_bitfields_direct': relo #38: matching candidate #0 [4] struct core_reloc_bitfields___just_big_enough.s32 (0:6 @ offset 24) libbpf: prog 'test_core_bitfields_direct': relo #38: patched insn #175 (ALU/ALU64) imm 32 -> 32 libbpf: prog 'test_core_bitfields_direct': relo #39: kind (3), spec is [5] struct core_reloc_bitfields.s32 (0:6 @ offset 12) libbpf: prog 'test_core_bitfields_direct': relo #39: matching candidate #0 [4] struct core_reloc_bitfields___just_big_enough.s32 (0:6 @ offset 24) libbpf: prog 'test_core_bitfields_direct': relo #39: patched insn #176 (ALU/ALU64) imm 1 -> 0 libbpf: prog 'test_core_bitfields_direct': relo #40: kind (5), spec is [5] struct core_reloc_bitfields.s32 (0:6 @ offset 12) libbpf: prog 'test_core_bitfields_direct': relo #40: matching candidate #0 [4] struct core_reloc_bitfields___just_big_enough.s32 (0:6 @ offset 24) libbpf: prog 'test_core_bitfields_direct': relo #40: patched insn #178 (ALU/ALU64) imm 32 -> 32 libbpf: prog 'test_core_bitfields_direct': relo #41: kind (5), spec is [5] struct core_reloc_bitfields.s32 (0:6 @ offset 12) libbpf: prog 'test_core_bitfields_direct': relo #41: matching candidate #0 [4] struct core_reloc_bitfields___just_big_enough.s32 (0:6 @ offset 24) libbpf: prog 'test_core_bitfields_direct': relo #41: patched insn #180 (ALU/ALU64) imm 32 -> 32 test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/55 core_reloc/direct:bitfields___just_big_enough:OK test_core_reloc:PASS:btf_src_file 0 nsec libbpf: loading test_core_reloc_bitfields_probed.o libbpf: elf: section(2) raw_tracepoint/sys_enter, size 1040, link 0, flags 6, type=1 libbpf: sec 'raw_tracepoint/sys_enter': found program 'test_core_bitfields' at insn offset 0 (0 bytes), code size 130 insns (1040 bytes) libbpf: elf: section(3) .relraw_tracepoint/sys_enter, size 128, link 11, flags 40, type=9 libbpf: elf: section(4) license, size 4, link 0, flags 3, type=1 libbpf: license of test_core_reloc_bitfields_probed.o is GPL libbpf: elf: section(5) .bss, size 512, link 0, flags 3, type=8 libbpf: elf: section(6) .BTF, size 1412, link 0, flags 0, type=1 libbpf: elf: section(8) .BTF.ext, size 1340, link 0, flags 0, type=1 libbpf: elf: section(11) .symtab, size 600, link 12, flags 0, type=2 libbpf: looking for externs among 25 symbols... libbpf: collected 0 externs total libbpf: map 'test_cor.bss' (global data): at sec_idx 5, offset 0, flags 400. libbpf: map 0 is "test_cor.bss" libbpf: sec '.relraw_tracepoint/sys_enter': collecting relocation for section(2) 'raw_tracepoint/sys_enter' libbpf: sec '.relraw_tracepoint/sys_enter': relo #0: insn #3 against 'data' libbpf: prog 'test_core_bitfields': found data map 0 (test_cor.bss, sec 5, off 0) for insn 3 libbpf: sec '.relraw_tracepoint/sys_enter': relo #1: insn #17 against 'data' libbpf: prog 'test_core_bitfields': found data map 0 (test_cor.bss, sec 5, off 0) for insn 17 libbpf: sec '.relraw_tracepoint/sys_enter': relo #2: insn #35 against 'data' libbpf: prog 'test_core_bitfields': found data map 0 (test_cor.bss, sec 5, off 0) for insn 35 libbpf: sec '.relraw_tracepoint/sys_enter': relo #3: insn #53 against 'data' libbpf: prog 'test_core_bitfields': found data map 0 (test_cor.bss, sec 5, off 0) for insn 53 libbpf: sec '.relraw_tracepoint/sys_enter': relo #4: insn #71 against 'data' libbpf: prog 'test_core_bitfields': found data map 0 (test_cor.bss, sec 5, off 0) for insn 71 libbpf: sec '.relraw_tracepoint/sys_enter': relo #5: insn #89 against 'data' libbpf: prog 'test_core_bitfields': found data map 0 (test_cor.bss, sec 5, off 0) for insn 89 libbpf: sec '.relraw_tracepoint/sys_enter': relo #6: insn #107 against 'data' libbpf: prog 'test_core_bitfields': found data map 0 (test_cor.bss, sec 5, off 0) for insn 107 libbpf: sec '.relraw_tracepoint/sys_enter': relo #7: insn #125 against 'data' libbpf: prog 'test_core_bitfields': found data map 0 (test_cor.bss, sec 5, off 0) for insn 125 test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: map 'test_cor.bss': created successfully, fd=5 libbpf: sec 'raw_tracepoint/sys_enter': found 42 CO-RE relocations libbpf: CO-RE relocating [5] struct core_reloc_bitfields: found target candidate [4] struct core_reloc_bitfields___err_too_big_bitfield in [vmlinux] libbpf: prog 'test_core_bitfields': relo #0: kind (0), spec is [5] struct core_reloc_bitfields.ub1 (0:0 @ offset 0) libbpf: prog 'test_core_bitfields': relo #0: matching candidate #0 [4] struct core_reloc_bitfields___err_too_big_bitfield.ub1 (0:0 @ offset 0) libbpf: prog 'test_core_bitfields': relo #0: patched insn #2 (ALU/ALU64) imm 0 -> 0 libbpf: prog 'test_core_bitfields': relo #1: kind (1), spec is [5] struct core_reloc_bitfields.ub1 (0:0 @ offset 0) libbpf: prog 'test_core_bitfields': relo #1: matching candidate #0 [4] struct core_reloc_bitfields___err_too_big_bitfield.ub1 (0:0 @ offset 0) libbpf: prog 'test_core_bitfields': relo #1: patched insn #8 (ALU/ALU64) imm 4 -> 8 libbpf: prog 'test_core_bitfields': relo #2: kind (4), spec is [5] struct core_reloc_bitfields.ub1 (0:0 @ offset 0) libbpf: prog 'test_core_bitfields': relo #2: matching candidate #0 [4] struct core_reloc_bitfields___err_too_big_bitfield.ub1 (0:0 @ offset 0) libbpf: prog 'test_core_bitfields': relo #2: patched insn #11 (ALU/ALU64) imm 63 -> 60 libbpf: prog 'test_core_bitfields': relo #3: kind (3), spec is [5] struct core_reloc_bitfields.ub1 (0:0 @ offset 0) libbpf: prog 'test_core_bitfields': relo #3: matching candidate #0 [4] struct core_reloc_bitfields___err_too_big_bitfield.ub1 (0:0 @ offset 0) libbpf: prog 'test_core_bitfields': relo #3: patched insn #12 (ALU/ALU64) imm 0 -> 0 libbpf: prog 'test_core_bitfields': relo #4: kind (5), spec is [5] struct core_reloc_bitfields.ub1 (0:0 @ offset 0) libbpf: prog 'test_core_bitfields': relo #4: matching candidate #0 [4] struct core_reloc_bitfields___err_too_big_bitfield.ub1 (0:0 @ offset 0) libbpf: prog 'test_core_bitfields': relo #4: patched insn #14 (ALU/ALU64) imm 63 -> 60 libbpf: prog 'test_core_bitfields': relo #5: kind (5), spec is [5] struct core_reloc_bitfields.ub1 (0:0 @ offset 0) libbpf: prog 'test_core_bitfields': relo #5: matching candidate #0 [4] struct core_reloc_bitfields___err_too_big_bitfield.ub1 (0:0 @ offset 0) libbpf: prog 'test_core_bitfields': relo #5: patched insn #16 (ALU/ALU64) imm 63 -> 60 libbpf: prog 'test_core_bitfields': relo #6: kind (0), spec is [5] struct core_reloc_bitfields.ub2 (0:1 @ offset 0.1) libbpf: prog 'test_core_bitfields': relo #6: matching candidate #0 [4] struct core_reloc_bitfields___err_too_big_bitfield.ub2 (0:1 @ offset 0.4) libbpf: prog 'test_core_bitfields': relo 0 at insn #22 can't be satisfied for bitfield libbpf: prog 'test_core_bitfields': relo #6: failed to relocate: -7 libbpf: failed to perform CO-RE relocations: -7 libbpf: failed to load object 'test_core_reloc_bitfields_probed.o' #38/56 core_reloc/probed:bitfields___err_too_big_bitfield:OK test_core_reloc:PASS:btf_src_file 0 nsec libbpf: loading test_core_reloc_bitfields_direct.o libbpf: elf: section(2) tp_btf/sys_enter, size 1488, link 0, flags 6, type=1 libbpf: sec 'tp_btf/sys_enter': found program 'test_core_bitfields_direct' at insn offset 0 (0 bytes), code size 186 insns (1488 bytes) libbpf: elf: section(3) .reltp_btf/sys_enter, size 128, link 11, flags 40, type=9 libbpf: elf: section(4) license, size 4, link 0, flags 3, type=1 libbpf: license of test_core_reloc_bitfields_direct.o is GPL libbpf: elf: section(5) .bss, size 512, link 0, flags 3, type=8 libbpf: elf: section(6) .BTF, size 1369, link 0, flags 0, type=1 libbpf: elf: section(8) .BTF.ext, size 1564, link 0, flags 0, type=1 libbpf: elf: section(11) .symtab, size 1608, link 12, flags 0, type=2 libbpf: looking for externs among 67 symbols... libbpf: collected 0 externs total libbpf: map 'test_cor.bss' (global data): at sec_idx 5, offset 0, flags 400. libbpf: map 0 is "test_cor.bss" libbpf: sec '.reltp_btf/sys_enter': collecting relocation for section(2) 'tp_btf/sys_enter' libbpf: sec '.reltp_btf/sys_enter': relo #0: insn #1 against 'data' libbpf: prog 'test_core_bitfields_direct': found data map 0 (test_cor.bss, sec 5, off 0) for insn 1 libbpf: sec '.reltp_btf/sys_enter': relo #1: insn #25 against 'data' libbpf: prog 'test_core_bitfields_direct': found data map 0 (test_cor.bss, sec 5, off 0) for insn 25 libbpf: sec '.reltp_btf/sys_enter': relo #2: insn #51 against 'data' libbpf: prog 'test_core_bitfields_direct': found data map 0 (test_cor.bss, sec 5, off 0) for insn 51 libbpf: sec '.reltp_btf/sys_enter': relo #3: insn #77 against 'data' libbpf: prog 'test_core_bitfields_direct': found data map 0 (test_cor.bss, sec 5, off 0) for insn 77 libbpf: sec '.reltp_btf/sys_enter': relo #4: insn #103 against 'data' libbpf: prog 'test_core_bitfields_direct': found data map 0 (test_cor.bss, sec 5, off 0) for insn 103 libbpf: sec '.reltp_btf/sys_enter': relo #5: insn #129 against 'data' libbpf: prog 'test_core_bitfields_direct': found data map 0 (test_cor.bss, sec 5, off 0) for insn 129 libbpf: sec '.reltp_btf/sys_enter': relo #6: insn #155 against 'data' libbpf: prog 'test_core_bitfields_direct': found data map 0 (test_cor.bss, sec 5, off 0) for insn 155 libbpf: sec '.reltp_btf/sys_enter': relo #7: insn #181 against 'data' libbpf: prog 'test_core_bitfields_direct': found data map 0 (test_cor.bss, sec 5, off 0) for insn 181 test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: loading kernel BTF '/sys/kernel/btf/vmlinux': 0 libbpf: map 'test_cor.bss': created successfully, fd=5 libbpf: sec 'tp_btf/sys_enter': found 42 CO-RE relocations libbpf: CO-RE relocating [5] struct core_reloc_bitfields: found target candidate [4] struct core_reloc_bitfields___err_too_big_bitfield in [vmlinux] libbpf: prog 'test_core_bitfields_direct': relo #0: kind (0), spec is [5] struct core_reloc_bitfields.ub1 (0:0 @ offset 0) libbpf: prog 'test_core_bitfields_direct': relo #0: matching candidate #0 [4] struct core_reloc_bitfields___err_too_big_bitfield.ub1 (0:0 @ offset 0) libbpf: prog 'test_core_bitfields_direct': relo #0: patched insn #0 (ALU/ALU64) imm 0 -> 0 libbpf: prog 'test_core_bitfields_direct': relo #1: kind (1), spec is [5] struct core_reloc_bitfields.ub1 (0:0 @ offset 0) libbpf: prog 'test_core_bitfields_direct': relo #1: matching candidate #0 [4] struct core_reloc_bitfields___err_too_big_bitfield.ub1 (0:0 @ offset 0) libbpf: prog 'test_core_bitfields_direct': relo #1: patched insn #4 (ALU/ALU64) imm 4 -> 8 libbpf: prog 'test_core_bitfields_direct': relo #2: kind (4), spec is [5] struct core_reloc_bitfields.ub1 (0:0 @ offset 0) libbpf: prog 'test_core_bitfields_direct': relo #2: matching candidate #0 [4] struct core_reloc_bitfields___err_too_big_bitfield.ub1 (0:0 @ offset 0) libbpf: prog 'test_core_bitfields_direct': relo #2: patched insn #19 (ALU/ALU64) imm 63 -> 60 libbpf: prog 'test_core_bitfields_direct': relo #3: kind (3), spec is [5] struct core_reloc_bitfields.ub1 (0:0 @ offset 0) libbpf: prog 'test_core_bitfields_direct': relo #3: matching candidate #0 [4] struct core_reloc_bitfields___err_too_big_bitfield.ub1 (0:0 @ offset 0) libbpf: prog 'test_core_bitfields_direct': relo #3: patched insn #20 (ALU/ALU64) imm 0 -> 0 libbpf: prog 'test_core_bitfields_direct': relo #4: kind (5), spec is [5] struct core_reloc_bitfields.ub1 (0:0 @ offset 0) libbpf: prog 'test_core_bitfields_direct': relo #4: matching candidate #0 [4] struct core_reloc_bitfields___err_too_big_bitfield.ub1 (0:0 @ offset 0) libbpf: prog 'test_core_bitfields_direct': relo #4: patched insn #22 (ALU/ALU64) imm 63 -> 60 libbpf: prog 'test_core_bitfields_direct': relo #5: kind (5), spec is [5] struct core_reloc_bitfields.ub1 (0:0 @ offset 0) libbpf: prog 'test_core_bitfields_direct': relo #5: matching candidate #0 [4] struct core_reloc_bitfields___err_too_big_bitfield.ub1 (0:0 @ offset 0) libbpf: prog 'test_core_bitfields_direct': relo #5: patched insn #24 (ALU/ALU64) imm 63 -> 60 libbpf: prog 'test_core_bitfields_direct': relo #6: kind (0), spec is [5] struct core_reloc_bitfields.ub2 (0:1 @ offset 0.1) libbpf: prog 'test_core_bitfields_direct': relo #6: matching candidate #0 [4] struct core_reloc_bitfields___err_too_big_bitfield.ub2 (0:1 @ offset 0.4) libbpf: prog 'test_core_bitfields_direct': relo 0 at insn #28 can't be satisfied for bitfield libbpf: prog 'test_core_bitfields_direct': relo #6: failed to relocate: -7 libbpf: failed to perform CO-RE relocations: -7 libbpf: failed to load object 'test_core_reloc_bitfields_direct.o' #38/57 core_reloc/direct:bitfields___err_too_big_bitfield:OK test_core_reloc:PASS:btf_src_file 0 nsec libbpf: loading test_core_reloc_size.o libbpf: elf: section(2) raw_tracepoint/sys_enter, size 160, link 0, flags 6, type=1 libbpf: sec 'raw_tracepoint/sys_enter': found program 'test_core_size' at insn offset 0 (0 bytes), code size 20 insns (160 bytes) libbpf: elf: section(3) .relraw_tracepoint/sys_enter, size 16, link 11, flags 40, type=9 libbpf: elf: section(4) license, size 4, link 0, flags 3, type=1 libbpf: license of test_core_reloc_size.o is GPL libbpf: elf: section(5) .bss, size 512, link 0, flags 3, type=8 libbpf: elf: section(6) .BTF, size 1369, link 0, flags 0, type=1 libbpf: elf: section(8) .BTF.ext, size 364, link 0, flags 0, type=1 libbpf: elf: section(11) .symtab, size 264, link 12, flags 0, type=2 libbpf: looking for externs among 11 symbols... libbpf: collected 0 externs total libbpf: map 'test_cor.bss' (global data): at sec_idx 5, offset 0, flags 400. libbpf: map 0 is "test_cor.bss" libbpf: sec '.relraw_tracepoint/sys_enter': collecting relocation for section(2) 'raw_tracepoint/sys_enter' libbpf: sec '.relraw_tracepoint/sys_enter': relo #0: insn #1 against 'data' libbpf: prog 'test_core_size': found data map 0 (test_cor.bss, sec 5, off 0) for insn 1 test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: map 'test_cor.bss': created successfully, fd=5 libbpf: sec 'raw_tracepoint/sys_enter': found 8 CO-RE relocations libbpf: CO-RE relocating [5] struct core_reloc_size: found target candidate [4] struct core_reloc_size in [vmlinux] libbpf: prog 'test_core_size': relo #0: kind (1), spec is [5] struct core_reloc_size.int_field (0:0 @ offset 0) libbpf: prog 'test_core_size': relo #0: matching candidate #0 [4] struct core_reloc_size.int_field (0:0 @ offset 0) libbpf: prog 'test_core_size': relo #0: patched insn #0 (ALU/ALU64) imm 4 -> 4 libbpf: prog 'test_core_size': relo #1: kind (1), spec is [5] struct core_reloc_size.struct_field (0:1 @ offset 4) libbpf: prog 'test_core_size': relo #1: matching candidate #0 [4] struct core_reloc_size.struct_field (0:1 @ offset 4) libbpf: prog 'test_core_size': relo #1: patched insn #4 (ALU/ALU64) imm 4 -> 4 libbpf: prog 'test_core_size': relo #2: kind (1), spec is [5] struct core_reloc_size.union_field (0:2 @ offset 8) libbpf: prog 'test_core_size': relo #2: matching candidate #0 [4] struct core_reloc_size.union_field (0:2 @ offset 8) libbpf: prog 'test_core_size': relo #2: patched insn #6 (ALU/ALU64) imm 4 -> 4 libbpf: prog 'test_core_size': relo #3: kind (1), spec is [5] struct core_reloc_size.arr_field (0:3 @ offset 12) libbpf: prog 'test_core_size': relo #3: matching candidate #0 [4] struct core_reloc_size.arr_field (0:3 @ offset 12) libbpf: prog 'test_core_size': relo #3: patched insn #8 (ALU/ALU64) imm 16 -> 16 libbpf: prog 'test_core_size': relo #4: kind (1), spec is [5] struct core_reloc_size.arr_field[0] (0:3:0 @ offset 12) libbpf: prog 'test_core_size': relo #4: matching candidate #0 [4] struct core_reloc_size.arr_field[0] (0:3:0 @ offset 12) libbpf: prog 'test_core_size': relo #4: patched insn #10 (ALU/ALU64) imm 4 -> 4 libbpf: prog 'test_core_size': relo #5: kind (1), spec is [5] struct core_reloc_size.ptr_field (0:4 @ offset 32) libbpf: prog 'test_core_size': relo #5: matching candidate #0 [4] struct core_reloc_size.ptr_field (0:4 @ offset 32) libbpf: prog 'test_core_size': relo #5: patched insn #12 (ALU/ALU64) imm 8 -> 8 libbpf: prog 'test_core_size': relo #6: kind (1), spec is [5] struct core_reloc_size.enum_field (0:5 @ offset 40) libbpf: prog 'test_core_size': relo #6: matching candidate #0 [4] struct core_reloc_size.enum_field (0:5 @ offset 40) libbpf: prog 'test_core_size': relo #6: patched insn #14 (ALU/ALU64) imm 4 -> 4 libbpf: prog 'test_core_size': relo #7: kind (1), spec is [5] struct core_reloc_size.float_field (0:6 @ offset 44) libbpf: prog 'test_core_size': relo #7: matching candidate #0 [4] struct core_reloc_size.float_field (0:6 @ offset 44) libbpf: prog 'test_core_size': relo #7: patched insn #16 (ALU/ALU64) imm 4 -> 4 test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/58 core_reloc/size:OK test_core_reloc:PASS:btf_src_file 0 nsec libbpf: loading test_core_reloc_size.o libbpf: elf: section(2) raw_tracepoint/sys_enter, size 160, link 0, flags 6, type=1 libbpf: sec 'raw_tracepoint/sys_enter': found program 'test_core_size' at insn offset 0 (0 bytes), code size 20 insns (160 bytes) libbpf: elf: section(3) .relraw_tracepoint/sys_enter, size 16, link 11, flags 40, type=9 libbpf: elf: section(4) license, size 4, link 0, flags 3, type=1 libbpf: license of test_core_reloc_size.o is GPL libbpf: elf: section(5) .bss, size 512, link 0, flags 3, type=8 libbpf: elf: section(6) .BTF, size 1369, link 0, flags 0, type=1 libbpf: elf: section(8) .BTF.ext, size 364, link 0, flags 0, type=1 libbpf: elf: section(11) .symtab, size 264, link 12, flags 0, type=2 libbpf: looking for externs among 11 symbols... libbpf: collected 0 externs total libbpf: map 'test_cor.bss' (global data): at sec_idx 5, offset 0, flags 400. libbpf: map 0 is "test_cor.bss" libbpf: sec '.relraw_tracepoint/sys_enter': collecting relocation for section(2) 'raw_tracepoint/sys_enter' libbpf: sec '.relraw_tracepoint/sys_enter': relo #0: insn #1 against 'data' libbpf: prog 'test_core_size': found data map 0 (test_cor.bss, sec 5, off 0) for insn 1 test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: map 'test_cor.bss': created successfully, fd=5 libbpf: sec 'raw_tracepoint/sys_enter': found 8 CO-RE relocations libbpf: CO-RE relocating [5] struct core_reloc_size: found target candidate [4] struct core_reloc_size___diff_sz in [vmlinux] libbpf: prog 'test_core_size': relo #0: kind (1), spec is [5] struct core_reloc_size.int_field (0:0 @ offset 0) libbpf: prog 'test_core_size': relo #0: matching candidate #0 [4] struct core_reloc_size___diff_sz.int_field (0:0 @ offset 0) libbpf: prog 'test_core_size': relo #0: patched insn #0 (ALU/ALU64) imm 4 -> 8 libbpf: prog 'test_core_size': relo #1: kind (1), spec is [5] struct core_reloc_size.struct_field (0:1 @ offset 4) libbpf: prog 'test_core_size': relo #1: matching candidate #0 [4] struct core_reloc_size___diff_sz.struct_field (0:1 @ offset 8) libbpf: prog 'test_core_size': relo #1: patched insn #4 (ALU/ALU64) imm 4 -> 12 libbpf: prog 'test_core_size': relo #2: kind (1), spec is [5] struct core_reloc_size.union_field (0:2 @ offset 8) libbpf: prog 'test_core_size': relo #2: matching candidate #0 [4] struct core_reloc_size___diff_sz.union_field (0:2 @ offset 20) libbpf: prog 'test_core_size': relo #2: patched insn #6 (ALU/ALU64) imm 4 -> 124 libbpf: prog 'test_core_size': relo #3: kind (1), spec is [5] struct core_reloc_size.arr_field (0:3 @ offset 12) libbpf: prog 'test_core_size': relo #3: matching candidate #0 [4] struct core_reloc_size___diff_sz.arr_field (0:3 @ offset 144) libbpf: prog 'test_core_size': relo #3: patched insn #8 (ALU/ALU64) imm 16 -> 10 libbpf: prog 'test_core_size': relo #4: kind (1), spec is [5] struct core_reloc_size.arr_field[0] (0:3:0 @ offset 12) libbpf: prog 'test_core_size': relo #4: matching candidate #0 [4] struct core_reloc_size___diff_sz.arr_field[0] (0:3:0 @ offset 144) libbpf: prog 'test_core_size': relo #4: patched insn #10 (ALU/ALU64) imm 4 -> 1 libbpf: prog 'test_core_size': relo #5: kind (1), spec is [5] struct core_reloc_size.ptr_field (0:4 @ offset 32) libbpf: prog 'test_core_size': relo #5: matching candidate #0 [4] struct core_reloc_size___diff_sz.ptr_field (0:4 @ offset 160) libbpf: prog 'test_core_size': relo #5: patched insn #12 (ALU/ALU64) imm 8 -> 8 libbpf: prog 'test_core_size': relo #6: kind (1), spec is [5] struct core_reloc_size.enum_field (0:5 @ offset 40) libbpf: prog 'test_core_size': relo #6: matching candidate #0 [4] struct core_reloc_size___diff_sz.enum_field (0:5 @ offset 168) libbpf: prog 'test_core_size': relo #6: patched insn #14 (ALU/ALU64) imm 4 -> 8 libbpf: prog 'test_core_size': relo #7: kind (1), spec is [5] struct core_reloc_size.float_field (0:6 @ offset 44) libbpf: prog 'test_core_size': relo #7: matching candidate #0 [4] struct core_reloc_size___diff_sz.float_field (0:6 @ offset 176) libbpf: prog 'test_core_size': relo #7: patched insn #16 (ALU/ALU64) imm 4 -> 8 test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/59 core_reloc/size___diff_sz:OK test_core_reloc:PASS:btf_src_file 0 nsec libbpf: loading test_core_reloc_size.o libbpf: elf: section(2) raw_tracepoint/sys_enter, size 160, link 0, flags 6, type=1 libbpf: sec 'raw_tracepoint/sys_enter': found program 'test_core_size' at insn offset 0 (0 bytes), code size 20 insns (160 bytes) libbpf: elf: section(3) .relraw_tracepoint/sys_enter, size 16, link 11, flags 40, type=9 libbpf: elf: section(4) license, size 4, link 0, flags 3, type=1 libbpf: license of test_core_reloc_size.o is GPL libbpf: elf: section(5) .bss, size 512, link 0, flags 3, type=8 libbpf: elf: section(6) .BTF, size 1369, link 0, flags 0, type=1 libbpf: elf: section(8) .BTF.ext, size 364, link 0, flags 0, type=1 libbpf: elf: section(11) .symtab, size 264, link 12, flags 0, type=2 libbpf: looking for externs among 11 symbols... libbpf: collected 0 externs total libbpf: map 'test_cor.bss' (global data): at sec_idx 5, offset 0, flags 400. libbpf: map 0 is "test_cor.bss" libbpf: sec '.relraw_tracepoint/sys_enter': collecting relocation for section(2) 'raw_tracepoint/sys_enter' libbpf: sec '.relraw_tracepoint/sys_enter': relo #0: insn #1 against 'data' libbpf: prog 'test_core_size': found data map 0 (test_cor.bss, sec 5, off 0) for insn 1 test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: map 'test_cor.bss': created successfully, fd=5 libbpf: sec 'raw_tracepoint/sys_enter': found 8 CO-RE relocations libbpf: CO-RE relocating [5] struct core_reloc_size: found target candidate [4] struct core_reloc_size___err_ambiguous1 in [vmlinux] libbpf: CO-RE relocating [5] struct core_reloc_size: found target candidate [13] struct core_reloc_size___err_ambiguous2 in [vmlinux] libbpf: prog 'test_core_size': relo #0: kind (1), spec is [5] struct core_reloc_size.int_field (0:0 @ offset 0) libbpf: prog 'test_core_size': relo #0: matching candidate #0 [4] struct core_reloc_size___err_ambiguous1.int_field (0:0 @ offset 0) libbpf: prog 'test_core_size': relo #0: matching candidate #1 [13] struct core_reloc_size___err_ambiguous2.int_field (0:0 @ offset 0) libbpf: prog 'test_core_size': relo #0: relocation decision ambiguity: success 1 != success 4 libbpf: prog 'test_core_size': relo #0: failed to relocate: -22 libbpf: failed to perform CO-RE relocations: -22 libbpf: failed to load object 'test_core_reloc_size.o' #38/60 core_reloc/size___err_ambiguous:OK test_core_reloc:PASS:btf_src_file 0 nsec libbpf: loading test_core_reloc_type_based.o libbpf: elf: section(2) raw_tracepoint/sys_enter, size 648, link 0, flags 6, type=1 libbpf: sec 'raw_tracepoint/sys_enter': found program 'test_core_type_based' at insn offset 0 (0 bytes), code size 81 insns (648 bytes) libbpf: elf: section(3) .relraw_tracepoint/sys_enter, size 16, link 11, flags 40, type=9 libbpf: elf: section(4) license, size 4, link 0, flags 3, type=1 libbpf: license of test_core_reloc_type_based.o is GPL libbpf: elf: section(5) .bss, size 513, link 0, flags 3, type=8 libbpf: elf: section(6) .BTF, size 2728, link 0, flags 0, type=1 libbpf: elf: section(8) .BTF.ext, size 988, link 0, flags 0, type=1 libbpf: elf: section(11) .symtab, size 528, link 12, flags 0, type=2 libbpf: looking for externs among 22 symbols... libbpf: collected 0 externs total libbpf: map 'test_cor.bss' (global data): at sec_idx 5, offset 0, flags 400. libbpf: map 0 is "test_cor.bss" libbpf: sec '.relraw_tracepoint/sys_enter': collecting relocation for section(2) 'raw_tracepoint/sys_enter' libbpf: sec '.relraw_tracepoint/sys_enter': relo #0: insn #5 against 'data' libbpf: prog 'test_core_type_based': found data map 0 (test_cor.bss, sec 5, off 0) for insn 5 test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: map 'test_cor.bss': created successfully, fd=5 libbpf: sec 'raw_tracepoint/sys_enter': found 22 CO-RE relocations libbpf: CO-RE relocating [5] struct a_struct: found target candidate [5] struct a_struct in [vmlinux] libbpf: prog 'test_core_type_based': relo #0: kind (8), spec is [5] struct a_struct libbpf: prog 'test_core_type_based': relo #0: matching candidate #0 [5] struct a_struct libbpf: prog 'test_core_type_based': relo #0: patched insn #0 (ALU/ALU64) imm 1 -> 1 libbpf: CO-RE relocating [6] union a_union: found target candidate [7] union a_union in [vmlinux] libbpf: prog 'test_core_type_based': relo #1: kind (8), spec is [6] union a_union libbpf: prog 'test_core_type_based': relo #1: matching candidate #0 [7] union a_union libbpf: prog 'test_core_type_based': relo #1: patched insn #8 (ALU/ALU64) imm 1 -> 1 libbpf: CO-RE relocating [7] enum an_enum: found target candidate [8] enum an_enum in [vmlinux] libbpf: prog 'test_core_type_based': relo #2: kind (8), spec is [7] enum an_enum libbpf: prog 'test_core_type_based': relo #2: matching candidate #0 [8] enum an_enum libbpf: prog 'test_core_type_based': relo #2: patched insn #13 (ALU/ALU64) imm 1 -> 1 libbpf: CO-RE relocating [8] typedef named_struct_typedef: found target candidate [9] typedef named_struct_typedef in [vmlinux] libbpf: prog 'test_core_type_based': relo #3: kind (8), spec is [8] typedef named_struct_typedef libbpf: prog 'test_core_type_based': relo #3: matching candidate #0 [9] typedef named_struct_typedef libbpf: prog 'test_core_type_based': relo #3: patched insn #18 (ALU/ALU64) imm 1 -> 1 libbpf: CO-RE relocating [9] typedef anon_struct_typedef: found target candidate [10] typedef anon_struct_typedef in [vmlinux] libbpf: prog 'test_core_type_based': relo #4: kind (8), spec is [9] typedef anon_struct_typedef libbpf: prog 'test_core_type_based': relo #4: matching candidate #0 [10] typedef anon_struct_typedef libbpf: prog 'test_core_type_based': relo #4: patched insn #23 (ALU/ALU64) imm 1 -> 1 libbpf: CO-RE relocating [11] typedef struct_ptr_typedef: found target candidate [12] typedef struct_ptr_typedef in [vmlinux] libbpf: prog 'test_core_type_based': relo #5: kind (8), spec is [11] typedef struct_ptr_typedef libbpf: prog 'test_core_type_based': relo #5: matching candidate #0 [12] typedef struct_ptr_typedef libbpf: prog 'test_core_type_based': relo #5: patched insn #28 (ALU/ALU64) imm 1 -> 1 libbpf: CO-RE relocating [14] typedef int_typedef: found target candidate [15] typedef int_typedef in [vmlinux] libbpf: prog 'test_core_type_based': relo #6: kind (8), spec is [14] typedef int_typedef libbpf: prog 'test_core_type_based': relo #6: matching candidate #0 [15] typedef int_typedef libbpf: prog 'test_core_type_based': relo #6: patched insn #33 (ALU/ALU64) imm 1 -> 1 libbpf: CO-RE relocating [15] typedef enum_typedef: found target candidate [16] typedef enum_typedef in [vmlinux] libbpf: prog 'test_core_type_based': relo #7: kind (8), spec is [15] typedef enum_typedef libbpf: prog 'test_core_type_based': relo #7: matching candidate #0 [16] typedef enum_typedef libbpf: prog 'test_core_type_based': relo #7: patched insn #38 (ALU/ALU64) imm 1 -> 1 libbpf: CO-RE relocating [17] typedef void_ptr_typedef: found target candidate [18] typedef void_ptr_typedef in [vmlinux] libbpf: prog 'test_core_type_based': relo #8: kind (8), spec is [17] typedef void_ptr_typedef libbpf: prog 'test_core_type_based': relo #8: matching candidate #0 [18] typedef void_ptr_typedef libbpf: prog 'test_core_type_based': relo #8: patched insn #43 (ALU/ALU64) imm 1 -> 1 libbpf: CO-RE relocating [18] typedef func_proto_typedef: found target candidate [20] typedef func_proto_typedef in [vmlinux] libbpf: prog 'test_core_type_based': relo #9: kind (8), spec is [18] typedef func_proto_typedef libbpf: prog 'test_core_type_based': relo #9: matching candidate #0 [20] typedef func_proto_typedef libbpf: prog 'test_core_type_based': relo #9: patched insn #48 (ALU/ALU64) imm 1 -> 1 libbpf: prog 'test_core_type_based': relo #10: kind (9), spec is [5] struct a_struct libbpf: prog 'test_core_type_based': relo #10: matching candidate #0 [5] struct a_struct libbpf: prog 'test_core_type_based': relo #10: patched insn #53 (ALU/ALU64) imm 4 -> 4 libbpf: prog 'test_core_type_based': relo #11: kind (9), spec is [6] union a_union libbpf: prog 'test_core_type_based': relo #11: matching candidate #0 [7] union a_union libbpf: prog 'test_core_type_based': relo #11: patched insn #55 (ALU/ALU64) imm 4 -> 4 libbpf: prog 'test_core_type_based': relo #12: kind (9), spec is [7] enum an_enum libbpf: prog 'test_core_type_based': relo #12: matching candidate #0 [8] enum an_enum libbpf: prog 'test_core_type_based': relo #12: patched insn #57 (ALU/ALU64) imm 4 -> 4 libbpf: prog 'test_core_type_based': relo #13: kind (9), spec is [8] typedef named_struct_typedef libbpf: prog 'test_core_type_based': relo #13: matching candidate #0 [9] typedef named_struct_typedef libbpf: prog 'test_core_type_based': relo #13: patched insn #59 (ALU/ALU64) imm 4 -> 4 libbpf: prog 'test_core_type_based': relo #14: kind (9), spec is [9] typedef anon_struct_typedef libbpf: prog 'test_core_type_based': relo #14: matching candidate #0 [10] typedef anon_struct_typedef libbpf: prog 'test_core_type_based': relo #14: patched insn #61 (ALU/ALU64) imm 12 -> 12 libbpf: prog 'test_core_type_based': relo #15: kind (9), spec is [11] typedef struct_ptr_typedef libbpf: prog 'test_core_type_based': relo #15: matching candidate #0 [12] typedef struct_ptr_typedef libbpf: prog 'test_core_type_based': relo #15: patched insn #63 (ALU/ALU64) imm 8 -> 8 libbpf: prog 'test_core_type_based': relo #16: kind (9), spec is [14] typedef int_typedef libbpf: prog 'test_core_type_based': relo #16: matching candidate #0 [15] typedef int_typedef libbpf: prog 'test_core_type_based': relo #16: patched insn #65 (ALU/ALU64) imm 4 -> 4 libbpf: prog 'test_core_type_based': relo #17: kind (9), spec is [15] typedef enum_typedef libbpf: prog 'test_core_type_based': relo #17: matching candidate #0 [16] typedef enum_typedef libbpf: prog 'test_core_type_based': relo #17: patched insn #67 (ALU/ALU64) imm 4 -> 4 libbpf: CO-RE relocating [22] typedef arr_typedef: found target candidate [23] typedef arr_typedef in [vmlinux] libbpf: prog 'test_core_type_based': relo #18: kind (8), spec is [22] typedef arr_typedef libbpf: prog 'test_core_type_based': relo #18: matching candidate #0 [23] typedef arr_typedef libbpf: prog 'test_core_type_based': relo #18: patched insn #69 (ALU/ALU64) imm 1 -> 1 libbpf: prog 'test_core_type_based': relo #19: kind (9), spec is [17] typedef void_ptr_typedef libbpf: prog 'test_core_type_based': relo #19: matching candidate #0 [18] typedef void_ptr_typedef libbpf: prog 'test_core_type_based': relo #19: patched insn #73 (ALU/ALU64) imm 8 -> 8 libbpf: prog 'test_core_type_based': relo #20: kind (9), spec is [18] typedef func_proto_typedef libbpf: prog 'test_core_type_based': relo #20: matching candidate #0 [20] typedef func_proto_typedef libbpf: prog 'test_core_type_based': relo #20: patched insn #75 (ALU/ALU64) imm 8 -> 8 libbpf: prog 'test_core_type_based': relo #21: kind (9), spec is [22] typedef arr_typedef libbpf: prog 'test_core_type_based': relo #21: matching candidate #0 [23] typedef arr_typedef libbpf: prog 'test_core_type_based': relo #21: patched insn #77 (ALU/ALU64) imm 20 -> 20 test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/61 core_reloc/type_based:OK test_core_reloc:PASS:btf_src_file 0 nsec libbpf: loading test_core_reloc_type_based.o libbpf: elf: section(2) raw_tracepoint/sys_enter, size 648, link 0, flags 6, type=1 libbpf: sec 'raw_tracepoint/sys_enter': found program 'test_core_type_based' at insn offset 0 (0 bytes), code size 81 insns (648 bytes) libbpf: elf: section(3) .relraw_tracepoint/sys_enter, size 16, link 11, flags 40, type=9 libbpf: elf: section(4) license, size 4, link 0, flags 3, type=1 libbpf: license of test_core_reloc_type_based.o is GPL libbpf: elf: section(5) .bss, size 513, link 0, flags 3, type=8 libbpf: elf: section(6) .BTF, size 2728, link 0, flags 0, type=1 libbpf: elf: section(8) .BTF.ext, size 988, link 0, flags 0, type=1 libbpf: elf: section(11) .symtab, size 528, link 12, flags 0, type=2 libbpf: looking for externs among 22 symbols... libbpf: collected 0 externs total libbpf: map 'test_cor.bss' (global data): at sec_idx 5, offset 0, flags 400. libbpf: map 0 is "test_cor.bss" libbpf: sec '.relraw_tracepoint/sys_enter': collecting relocation for section(2) 'raw_tracepoint/sys_enter' libbpf: sec '.relraw_tracepoint/sys_enter': relo #0: insn #5 against 'data' libbpf: prog 'test_core_type_based': found data map 0 (test_cor.bss, sec 5, off 0) for insn 5 test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: map 'test_cor.bss': created successfully, fd=5 libbpf: sec 'raw_tracepoint/sys_enter': found 22 CO-RE relocations libbpf: prog 'test_core_type_based': relo #0: kind (8), spec is [5] struct a_struct libbpf: prog 'test_core_type_based': relo #0: no matching targets found libbpf: prog 'test_core_type_based': relo #0: patched insn #0 (ALU/ALU64) imm 1 -> 0 libbpf: prog 'test_core_type_based': relo #1: kind (8), spec is [6] union a_union libbpf: prog 'test_core_type_based': relo #1: no matching targets found libbpf: prog 'test_core_type_based': relo #1: patched insn #8 (ALU/ALU64) imm 1 -> 0 libbpf: prog 'test_core_type_based': relo #2: kind (8), spec is [7] enum an_enum libbpf: prog 'test_core_type_based': relo #2: no matching targets found libbpf: prog 'test_core_type_based': relo #2: patched insn #13 (ALU/ALU64) imm 1 -> 0 libbpf: prog 'test_core_type_based': relo #3: kind (8), spec is [8] typedef named_struct_typedef libbpf: prog 'test_core_type_based': relo #3: no matching targets found libbpf: prog 'test_core_type_based': relo #3: patched insn #18 (ALU/ALU64) imm 1 -> 0 libbpf: prog 'test_core_type_based': relo #4: kind (8), spec is [9] typedef anon_struct_typedef libbpf: prog 'test_core_type_based': relo #4: no matching targets found libbpf: prog 'test_core_type_based': relo #4: patched insn #23 (ALU/ALU64) imm 1 -> 0 libbpf: prog 'test_core_type_based': relo #5: kind (8), spec is [11] typedef struct_ptr_typedef libbpf: prog 'test_core_type_based': relo #5: no matching targets found libbpf: prog 'test_core_type_based': relo #5: patched insn #28 (ALU/ALU64) imm 1 -> 0 libbpf: prog 'test_core_type_based': relo #6: kind (8), spec is [14] typedef int_typedef libbpf: prog 'test_core_type_based': relo #6: no matching targets found libbpf: prog 'test_core_type_based': relo #6: patched insn #33 (ALU/ALU64) imm 1 -> 0 libbpf: prog 'test_core_type_based': relo #7: kind (8), spec is [15] typedef enum_typedef libbpf: prog 'test_core_type_based': relo #7: no matching targets found libbpf: prog 'test_core_type_based': relo #7: patched insn #38 (ALU/ALU64) imm 1 -> 0 libbpf: prog 'test_core_type_based': relo #8: kind (8), spec is [17] typedef void_ptr_typedef libbpf: prog 'test_core_type_based': relo #8: no matching targets found libbpf: prog 'test_core_type_based': relo #8: patched insn #43 (ALU/ALU64) imm 1 -> 0 libbpf: prog 'test_core_type_based': relo #9: kind (8), spec is [18] typedef func_proto_typedef libbpf: prog 'test_core_type_based': relo #9: no matching targets found libbpf: prog 'test_core_type_based': relo #9: patched insn #48 (ALU/ALU64) imm 1 -> 0 libbpf: prog 'test_core_type_based': relo #10: kind (9), spec is [5] struct a_struct libbpf: prog 'test_core_type_based': relo #10: no matching targets found libbpf: prog 'test_core_type_based': relo #10: patched insn #53 (ALU/ALU64) imm 4 -> 0 libbpf: prog 'test_core_type_based': relo #11: kind (9), spec is [6] union a_union libbpf: prog 'test_core_type_based': relo #11: no matching targets found libbpf: prog 'test_core_type_based': relo #11: patched insn #55 (ALU/ALU64) imm 4 -> 0 libbpf: prog 'test_core_type_based': relo #12: kind (9), spec is [7] enum an_enum libbpf: prog 'test_core_type_based': relo #12: no matching targets found libbpf: prog 'test_core_type_based': relo #12: patched insn #57 (ALU/ALU64) imm 4 -> 0 libbpf: prog 'test_core_type_based': relo #13: kind (9), spec is [8] typedef named_struct_typedef libbpf: prog 'test_core_type_based': relo #13: no matching targets found libbpf: prog 'test_core_type_based': relo #13: patched insn #59 (ALU/ALU64) imm 4 -> 0 libbpf: prog 'test_core_type_based': relo #14: kind (9), spec is [9] typedef anon_struct_typedef libbpf: prog 'test_core_type_based': relo #14: no matching targets found libbpf: prog 'test_core_type_based': relo #14: patched insn #61 (ALU/ALU64) imm 12 -> 0 libbpf: prog 'test_core_type_based': relo #15: kind (9), spec is [11] typedef struct_ptr_typedef libbpf: prog 'test_core_type_based': relo #15: no matching targets found libbpf: prog 'test_core_type_based': relo #15: patched insn #63 (ALU/ALU64) imm 8 -> 0 libbpf: prog 'test_core_type_based': relo #16: kind (9), spec is [14] typedef int_typedef libbpf: prog 'test_core_type_based': relo #16: no matching targets found libbpf: prog 'test_core_type_based': relo #16: patched insn #65 (ALU/ALU64) imm 4 -> 0 libbpf: prog 'test_core_type_based': relo #17: kind (9), spec is [15] typedef enum_typedef libbpf: prog 'test_core_type_based': relo #17: no matching targets found libbpf: prog 'test_core_type_based': relo #17: patched insn #67 (ALU/ALU64) imm 4 -> 0 libbpf: prog 'test_core_type_based': relo #18: kind (8), spec is [22] typedef arr_typedef libbpf: prog 'test_core_type_based': relo #18: no matching targets found libbpf: prog 'test_core_type_based': relo #18: patched insn #69 (ALU/ALU64) imm 1 -> 0 libbpf: prog 'test_core_type_based': relo #19: kind (9), spec is [17] typedef void_ptr_typedef libbpf: prog 'test_core_type_based': relo #19: no matching targets found libbpf: prog 'test_core_type_based': relo #19: patched insn #73 (ALU/ALU64) imm 8 -> 0 libbpf: prog 'test_core_type_based': relo #20: kind (9), spec is [18] typedef func_proto_typedef libbpf: prog 'test_core_type_based': relo #20: no matching targets found libbpf: prog 'test_core_type_based': relo #20: patched insn #75 (ALU/ALU64) imm 8 -> 0 libbpf: prog 'test_core_type_based': relo #21: kind (9), spec is [22] typedef arr_typedef libbpf: prog 'test_core_type_based': relo #21: no matching targets found libbpf: prog 'test_core_type_based': relo #21: patched insn #77 (ALU/ALU64) imm 20 -> 0 test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/62 core_reloc/type_based___all_missing:OK test_core_reloc:PASS:btf_src_file 0 nsec libbpf: loading test_core_reloc_type_based.o libbpf: elf: section(2) raw_tracepoint/sys_enter, size 648, link 0, flags 6, type=1 libbpf: sec 'raw_tracepoint/sys_enter': found program 'test_core_type_based' at insn offset 0 (0 bytes), code size 81 insns (648 bytes) libbpf: elf: section(3) .relraw_tracepoint/sys_enter, size 16, link 11, flags 40, type=9 libbpf: elf: section(4) license, size 4, link 0, flags 3, type=1 libbpf: license of test_core_reloc_type_based.o is GPL libbpf: elf: section(5) .bss, size 513, link 0, flags 3, type=8 libbpf: elf: section(6) .BTF, size 2728, link 0, flags 0, type=1 libbpf: elf: section(8) .BTF.ext, size 988, link 0, flags 0, type=1 libbpf: elf: section(11) .symtab, size 528, link 12, flags 0, type=2 libbpf: looking for externs among 22 symbols... libbpf: collected 0 externs total libbpf: map 'test_cor.bss' (global data): at sec_idx 5, offset 0, flags 400. libbpf: map 0 is "test_cor.bss" libbpf: sec '.relraw_tracepoint/sys_enter': collecting relocation for section(2) 'raw_tracepoint/sys_enter' libbpf: sec '.relraw_tracepoint/sys_enter': relo #0: insn #5 against 'data' libbpf: prog 'test_core_type_based': found data map 0 (test_cor.bss, sec 5, off 0) for insn 5 test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: map 'test_cor.bss': created successfully, fd=5 libbpf: sec 'raw_tracepoint/sys_enter': found 22 CO-RE relocations libbpf: CO-RE relocating [5] struct a_struct: found target candidate [5] struct a_struct___diff_sz in [vmlinux] libbpf: prog 'test_core_type_based': relo #0: kind (8), spec is [5] struct a_struct libbpf: prog 'test_core_type_based': relo #0: matching candidate #0 [5] struct a_struct___diff_sz libbpf: prog 'test_core_type_based': relo #0: patched insn #0 (ALU/ALU64) imm 1 -> 1 libbpf: CO-RE relocating [6] union a_union: found target candidate [8] union a_union___diff_sz in [vmlinux] libbpf: prog 'test_core_type_based': relo #1: kind (8), spec is [6] union a_union libbpf: prog 'test_core_type_based': relo #1: matching candidate #0 [8] union a_union___diff_sz libbpf: prog 'test_core_type_based': relo #1: patched insn #8 (ALU/ALU64) imm 1 -> 1 libbpf: CO-RE relocating [7] enum an_enum: found target candidate [9] enum an_enum___diff_sz in [vmlinux] libbpf: prog 'test_core_type_based': relo #2: kind (8), spec is [7] enum an_enum libbpf: prog 'test_core_type_based': relo #2: matching candidate #0 [9] enum an_enum___diff_sz libbpf: prog 'test_core_type_based': relo #2: patched insn #13 (ALU/ALU64) imm 1 -> 1 libbpf: CO-RE relocating [8] typedef named_struct_typedef: found target candidate [10] typedef named_struct_typedef___diff_sz in [vmlinux] libbpf: prog 'test_core_type_based': relo #3: kind (8), spec is [8] typedef named_struct_typedef libbpf: prog 'test_core_type_based': relo #3: matching candidate #0 [10] typedef named_struct_typedef___diff_sz libbpf: prog 'test_core_type_based': relo #3: patched insn #18 (ALU/ALU64) imm 1 -> 1 libbpf: CO-RE relocating [9] typedef anon_struct_typedef: found target candidate [11] typedef anon_struct_typedef___diff_sz in [vmlinux] libbpf: prog 'test_core_type_based': relo #4: kind (8), spec is [9] typedef anon_struct_typedef libbpf: prog 'test_core_type_based': relo #4: matching candidate #0 [11] typedef anon_struct_typedef___diff_sz libbpf: prog 'test_core_type_based': relo #4: patched insn #23 (ALU/ALU64) imm 1 -> 1 libbpf: CO-RE relocating [11] typedef struct_ptr_typedef: found target candidate [13] typedef struct_ptr_typedef___diff_sz in [vmlinux] libbpf: prog 'test_core_type_based': relo #5: kind (8), spec is [11] typedef struct_ptr_typedef libbpf: prog 'test_core_type_based': relo #5: matching candidate #0 [13] typedef struct_ptr_typedef___diff_sz libbpf: prog 'test_core_type_based': relo #5: patched insn #28 (ALU/ALU64) imm 1 -> 1 libbpf: CO-RE relocating [14] typedef int_typedef: found target candidate [20] typedef int_typedef___diff_sz in [vmlinux] libbpf: prog 'test_core_type_based': relo #6: kind (8), spec is [14] typedef int_typedef libbpf: prog 'test_core_type_based': relo #6: matching candidate #0 [20] typedef int_typedef___diff_sz libbpf: prog 'test_core_type_based': relo #6: patched insn #33 (ALU/ALU64) imm 1 -> 1 libbpf: CO-RE relocating [15] typedef enum_typedef: found target candidate [22] typedef enum_typedef___diff_sz in [vmlinux] libbpf: prog 'test_core_type_based': relo #7: kind (8), spec is [15] typedef enum_typedef libbpf: prog 'test_core_type_based': relo #7: matching candidate #0 [22] typedef enum_typedef___diff_sz libbpf: prog 'test_core_type_based': relo #7: patched insn #38 (ALU/ALU64) imm 1 -> 1 libbpf: CO-RE relocating [17] typedef void_ptr_typedef: found target candidate [23] typedef void_ptr_typedef___diff_sz in [vmlinux] libbpf: prog 'test_core_type_based': relo #8: kind (8), spec is [17] typedef void_ptr_typedef libbpf: prog 'test_core_type_based': relo #8: matching candidate #0 [23] typedef void_ptr_typedef___diff_sz libbpf: prog 'test_core_type_based': relo #8: patched insn #43 (ALU/ALU64) imm 1 -> 1 libbpf: CO-RE relocating [18] typedef func_proto_typedef: found target candidate [27] typedef func_proto_typedef___diff_sz in [vmlinux] libbpf: prog 'test_core_type_based': relo #9: kind (8), spec is [18] typedef func_proto_typedef libbpf: prog 'test_core_type_based': relo #9: matching candidate #0 [27] typedef func_proto_typedef___diff_sz libbpf: prog 'test_core_type_based': relo #9: patched insn #48 (ALU/ALU64) imm 1 -> 1 libbpf: prog 'test_core_type_based': relo #10: kind (9), spec is [5] struct a_struct libbpf: prog 'test_core_type_based': relo #10: matching candidate #0 [5] struct a_struct___diff_sz libbpf: prog 'test_core_type_based': relo #10: patched insn #53 (ALU/ALU64) imm 4 -> 16 libbpf: prog 'test_core_type_based': relo #11: kind (9), spec is [6] union a_union libbpf: prog 'test_core_type_based': relo #11: matching candidate #0 [8] union a_union___diff_sz libbpf: prog 'test_core_type_based': relo #11: patched insn #55 (ALU/ALU64) imm 4 -> 1 libbpf: prog 'test_core_type_based': relo #12: kind (9), spec is [7] enum an_enum libbpf: prog 'test_core_type_based': relo #12: matching candidate #0 [9] enum an_enum___diff_sz libbpf: prog 'test_core_type_based': relo #12: patched insn #57 (ALU/ALU64) imm 4 -> 8 libbpf: prog 'test_core_type_based': relo #13: kind (9), spec is [8] typedef named_struct_typedef libbpf: prog 'test_core_type_based': relo #13: matching candidate #0 [10] typedef named_struct_typedef___diff_sz libbpf: prog 'test_core_type_based': relo #13: patched insn #59 (ALU/ALU64) imm 4 -> 16 libbpf: prog 'test_core_type_based': relo #14: kind (9), spec is [9] typedef anon_struct_typedef libbpf: prog 'test_core_type_based': relo #14: matching candidate #0 [11] typedef anon_struct_typedef___diff_sz libbpf: prog 'test_core_type_based': relo #14: patched insn #61 (ALU/ALU64) imm 12 -> 24 libbpf: prog 'test_core_type_based': relo #15: kind (9), spec is [11] typedef struct_ptr_typedef libbpf: prog 'test_core_type_based': relo #15: matching candidate #0 [13] typedef struct_ptr_typedef___diff_sz libbpf: prog 'test_core_type_based': relo #15: patched insn #63 (ALU/ALU64) imm 8 -> 8 libbpf: prog 'test_core_type_based': relo #16: kind (9), spec is [14] typedef int_typedef libbpf: prog 'test_core_type_based': relo #16: matching candidate #0 [20] typedef int_typedef___diff_sz libbpf: prog 'test_core_type_based': relo #16: patched insn #65 (ALU/ALU64) imm 4 -> 8 libbpf: prog 'test_core_type_based': relo #17: kind (9), spec is [15] typedef enum_typedef libbpf: prog 'test_core_type_based': relo #17: matching candidate #0 [22] typedef enum_typedef___diff_sz libbpf: prog 'test_core_type_based': relo #17: patched insn #67 (ALU/ALU64) imm 4 -> 8 libbpf: CO-RE relocating [22] typedef arr_typedef: found target candidate [30] typedef arr_typedef___diff_sz in [vmlinux] libbpf: prog 'test_core_type_based': relo #18: kind (8), spec is [22] typedef arr_typedef libbpf: prog 'test_core_type_based': relo #18: matching candidate #0 [30] typedef arr_typedef___diff_sz libbpf: prog 'test_core_type_based': relo #18: patched insn #69 (ALU/ALU64) imm 1 -> 1 libbpf: prog 'test_core_type_based': relo #19: kind (9), spec is [17] typedef void_ptr_typedef libbpf: prog 'test_core_type_based': relo #19: matching candidate #0 [23] typedef void_ptr_typedef___diff_sz libbpf: prog 'test_core_type_based': relo #19: patched insn #73 (ALU/ALU64) imm 8 -> 8 libbpf: prog 'test_core_type_based': relo #20: kind (9), spec is [18] typedef func_proto_typedef libbpf: prog 'test_core_type_based': relo #20: matching candidate #0 [27] typedef func_proto_typedef___diff_sz libbpf: prog 'test_core_type_based': relo #20: patched insn #75 (ALU/ALU64) imm 8 -> 8 libbpf: prog 'test_core_type_based': relo #21: kind (9), spec is [22] typedef arr_typedef libbpf: prog 'test_core_type_based': relo #21: matching candidate #0 [30] typedef arr_typedef___diff_sz libbpf: prog 'test_core_type_based': relo #21: patched insn #77 (ALU/ALU64) imm 20 -> 8 test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/63 core_reloc/type_based___diff_sz:OK test_core_reloc:PASS:btf_src_file 0 nsec libbpf: loading test_core_reloc_type_based.o libbpf: elf: section(2) raw_tracepoint/sys_enter, size 648, link 0, flags 6, type=1 libbpf: sec 'raw_tracepoint/sys_enter': found program 'test_core_type_based' at insn offset 0 (0 bytes), code size 81 insns (648 bytes) libbpf: elf: section(3) .relraw_tracepoint/sys_enter, size 16, link 11, flags 40, type=9 libbpf: elf: section(4) license, size 4, link 0, flags 3, type=1 libbpf: license of test_core_reloc_type_based.o is GPL libbpf: elf: section(5) .bss, size 513, link 0, flags 3, type=8 libbpf: elf: section(6) .BTF, size 2728, link 0, flags 0, type=1 libbpf: elf: section(8) .BTF.ext, size 988, link 0, flags 0, type=1 libbpf: elf: section(11) .symtab, size 528, link 12, flags 0, type=2 libbpf: looking for externs among 22 symbols... libbpf: collected 0 externs total libbpf: map 'test_cor.bss' (global data): at sec_idx 5, offset 0, flags 400. libbpf: map 0 is "test_cor.bss" libbpf: sec '.relraw_tracepoint/sys_enter': collecting relocation for section(2) 'raw_tracepoint/sys_enter' libbpf: sec '.relraw_tracepoint/sys_enter': relo #0: insn #5 against 'data' libbpf: prog 'test_core_type_based': found data map 0 (test_cor.bss, sec 5, off 0) for insn 5 test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: map 'test_cor.bss': created successfully, fd=5 libbpf: sec 'raw_tracepoint/sys_enter': found 22 CO-RE relocations libbpf: prog 'test_core_type_based': relo #0: kind (8), spec is [5] struct a_struct libbpf: prog 'test_core_type_based': relo #0: no matching targets found libbpf: prog 'test_core_type_based': relo #0: patched insn #0 (ALU/ALU64) imm 1 -> 0 libbpf: prog 'test_core_type_based': relo #1: kind (8), spec is [6] union a_union libbpf: prog 'test_core_type_based': relo #1: no matching targets found libbpf: prog 'test_core_type_based': relo #1: patched insn #8 (ALU/ALU64) imm 1 -> 0 libbpf: CO-RE relocating [7] enum an_enum: found target candidate [8] enum an_enum in [vmlinux] libbpf: prog 'test_core_type_based': relo #2: kind (8), spec is [7] enum an_enum libbpf: prog 'test_core_type_based': relo #2: matching candidate #0 [8] enum an_enum libbpf: prog 'test_core_type_based': relo #2: patched insn #13 (ALU/ALU64) imm 1 -> 1 libbpf: CO-RE relocating [8] typedef named_struct_typedef: found target candidate [9] typedef named_struct_typedef___incompat in [vmlinux] libbpf: prog 'test_core_type_based': relo #3: kind (8), spec is [8] typedef named_struct_typedef libbpf: prog 'test_core_type_based': relo #3: non-matching candidate #0 [9] typedef named_struct_typedef___incompat libbpf: prog 'test_core_type_based': relo #3: no matching targets found libbpf: prog 'test_core_type_based': relo #3: patched insn #18 (ALU/ALU64) imm 1 -> 0 libbpf: CO-RE relocating [9] typedef anon_struct_typedef: found target candidate [10] typedef anon_struct_typedef___incompat in [vmlinux] libbpf: prog 'test_core_type_based': relo #4: kind (8), spec is [9] typedef anon_struct_typedef libbpf: prog 'test_core_type_based': relo #4: non-matching candidate #0 [10] typedef anon_struct_typedef___incompat libbpf: prog 'test_core_type_based': relo #4: no matching targets found libbpf: prog 'test_core_type_based': relo #4: patched insn #23 (ALU/ALU64) imm 1 -> 0 libbpf: CO-RE relocating [11] typedef struct_ptr_typedef: found target candidate [12] typedef struct_ptr_typedef___incompat in [vmlinux] libbpf: prog 'test_core_type_based': relo #5: kind (8), spec is [11] typedef struct_ptr_typedef libbpf: prog 'test_core_type_based': relo #5: non-matching candidate #0 [12] typedef struct_ptr_typedef___incompat libbpf: prog 'test_core_type_based': relo #5: no matching targets found libbpf: prog 'test_core_type_based': relo #5: patched insn #28 (ALU/ALU64) imm 1 -> 0 libbpf: CO-RE relocating [14] typedef int_typedef: found target candidate [16] typedef int_typedef___incompat in [vmlinux] libbpf: prog 'test_core_type_based': relo #6: kind (8), spec is [14] typedef int_typedef libbpf: prog 'test_core_type_based': relo #6: non-matching candidate #0 [16] typedef int_typedef___incompat libbpf: prog 'test_core_type_based': relo #6: no matching targets found libbpf: prog 'test_core_type_based': relo #6: patched insn #33 (ALU/ALU64) imm 1 -> 0 libbpf: CO-RE relocating [15] typedef enum_typedef: found target candidate [18] typedef enum_typedef___incompat in [vmlinux] libbpf: prog 'test_core_type_based': relo #7: kind (8), spec is [15] typedef enum_typedef libbpf: prog 'test_core_type_based': relo #7: non-matching candidate #0 [18] typedef enum_typedef___incompat libbpf: prog 'test_core_type_based': relo #7: no matching targets found libbpf: prog 'test_core_type_based': relo #7: patched insn #38 (ALU/ALU64) imm 1 -> 0 libbpf: CO-RE relocating [17] typedef void_ptr_typedef: found target candidate [21] typedef void_ptr_typedef___incompat in [vmlinux] libbpf: prog 'test_core_type_based': relo #8: kind (8), spec is [17] typedef void_ptr_typedef libbpf: prog 'test_core_type_based': relo #8: non-matching candidate #0 [21] typedef void_ptr_typedef___incompat libbpf: prog 'test_core_type_based': relo #8: no matching targets found libbpf: prog 'test_core_type_based': relo #8: patched insn #43 (ALU/ALU64) imm 1 -> 0 libbpf: CO-RE relocating [18] typedef func_proto_typedef: found target candidate [24] typedef func_proto_typedef___incompat in [vmlinux] libbpf: prog 'test_core_type_based': relo #9: kind (8), spec is [18] typedef func_proto_typedef libbpf: prog 'test_core_type_based': relo #9: non-matching candidate #0 [24] typedef func_proto_typedef___incompat libbpf: prog 'test_core_type_based': relo #9: no matching targets found libbpf: prog 'test_core_type_based': relo #9: patched insn #48 (ALU/ALU64) imm 1 -> 0 libbpf: prog 'test_core_type_based': relo #10: kind (9), spec is [5] struct a_struct libbpf: prog 'test_core_type_based': relo #10: no matching targets found libbpf: prog 'test_core_type_based': relo #10: patched insn #53 (ALU/ALU64) imm 4 -> 0 libbpf: prog 'test_core_type_based': relo #11: kind (9), spec is [6] union a_union libbpf: prog 'test_core_type_based': relo #11: no matching targets found libbpf: prog 'test_core_type_based': relo #11: patched insn #55 (ALU/ALU64) imm 4 -> 0 libbpf: prog 'test_core_type_based': relo #12: kind (9), spec is [7] enum an_enum libbpf: prog 'test_core_type_based': relo #12: matching candidate #0 [8] enum an_enum libbpf: prog 'test_core_type_based': relo #12: patched insn #57 (ALU/ALU64) imm 4 -> 4 libbpf: prog 'test_core_type_based': relo #13: kind (9), spec is [8] typedef named_struct_typedef libbpf: prog 'test_core_type_based': relo #13: non-matching candidate #0 [9] typedef named_struct_typedef___incompat libbpf: prog 'test_core_type_based': relo #13: no matching targets found libbpf: prog 'test_core_type_based': relo #13: patched insn #59 (ALU/ALU64) imm 4 -> 0 libbpf: prog 'test_core_type_based': relo #14: kind (9), spec is [9] typedef anon_struct_typedef libbpf: prog 'test_core_type_based': relo #14: non-matching candidate #0 [10] typedef anon_struct_typedef___incompat libbpf: prog 'test_core_type_based': relo #14: no matching targets found libbpf: prog 'test_core_type_based': relo #14: patched insn #61 (ALU/ALU64) imm 12 -> 0 libbpf: prog 'test_core_type_based': relo #15: kind (9), spec is [11] typedef struct_ptr_typedef libbpf: prog 'test_core_type_based': relo #15: non-matching candidate #0 [12] typedef struct_ptr_typedef___incompat libbpf: prog 'test_core_type_based': relo #15: no matching targets found libbpf: prog 'test_core_type_based': relo #15: patched insn #63 (ALU/ALU64) imm 8 -> 0 libbpf: prog 'test_core_type_based': relo #16: kind (9), spec is [14] typedef int_typedef libbpf: prog 'test_core_type_based': relo #16: non-matching candidate #0 [16] typedef int_typedef___incompat libbpf: prog 'test_core_type_based': relo #16: no matching targets found libbpf: prog 'test_core_type_based': relo #16: patched insn #65 (ALU/ALU64) imm 4 -> 0 libbpf: prog 'test_core_type_based': relo #17: kind (9), spec is [15] typedef enum_typedef libbpf: prog 'test_core_type_based': relo #17: non-matching candidate #0 [18] typedef enum_typedef___incompat libbpf: prog 'test_core_type_based': relo #17: no matching targets found libbpf: prog 'test_core_type_based': relo #17: patched insn #67 (ALU/ALU64) imm 4 -> 0 libbpf: CO-RE relocating [22] typedef arr_typedef: found target candidate [27] typedef arr_typedef___incompat in [vmlinux] libbpf: prog 'test_core_type_based': relo #18: kind (8), spec is [22] typedef arr_typedef libbpf: prog 'test_core_type_based': relo #18: non-matching candidate #0 [27] typedef arr_typedef___incompat libbpf: prog 'test_core_type_based': relo #18: no matching targets found libbpf: prog 'test_core_type_based': relo #18: patched insn #69 (ALU/ALU64) imm 1 -> 0 libbpf: prog 'test_core_type_based': relo #19: kind (9), spec is [17] typedef void_ptr_typedef libbpf: prog 'test_core_type_based': relo #19: non-matching candidate #0 [21] typedef void_ptr_typedef___incompat libbpf: prog 'test_core_type_based': relo #19: no matching targets found libbpf: prog 'test_core_type_based': relo #19: patched insn #73 (ALU/ALU64) imm 8 -> 0 libbpf: prog 'test_core_type_based': relo #20: kind (9), spec is [18] typedef func_proto_typedef libbpf: prog 'test_core_type_based': relo #20: non-matching candidate #0 [24] typedef func_proto_typedef___incompat libbpf: prog 'test_core_type_based': relo #20: no matching targets found libbpf: prog 'test_core_type_based': relo #20: patched insn #75 (ALU/ALU64) imm 8 -> 0 libbpf: prog 'test_core_type_based': relo #21: kind (9), spec is [22] typedef arr_typedef libbpf: prog 'test_core_type_based': relo #21: non-matching candidate #0 [27] typedef arr_typedef___incompat libbpf: prog 'test_core_type_based': relo #21: no matching targets found libbpf: prog 'test_core_type_based': relo #21: patched insn #77 (ALU/ALU64) imm 20 -> 0 test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/64 core_reloc/type_based___incompat:OK test_core_reloc:PASS:btf_src_file 0 nsec libbpf: loading test_core_reloc_type_based.o libbpf: elf: section(2) raw_tracepoint/sys_enter, size 648, link 0, flags 6, type=1 libbpf: sec 'raw_tracepoint/sys_enter': found program 'test_core_type_based' at insn offset 0 (0 bytes), code size 81 insns (648 bytes) libbpf: elf: section(3) .relraw_tracepoint/sys_enter, size 16, link 11, flags 40, type=9 libbpf: elf: section(4) license, size 4, link 0, flags 3, type=1 libbpf: license of test_core_reloc_type_based.o is GPL libbpf: elf: section(5) .bss, size 513, link 0, flags 3, type=8 libbpf: elf: section(6) .BTF, size 2728, link 0, flags 0, type=1 libbpf: elf: section(8) .BTF.ext, size 988, link 0, flags 0, type=1 libbpf: elf: section(11) .symtab, size 528, link 12, flags 0, type=2 libbpf: looking for externs among 22 symbols... libbpf: collected 0 externs total libbpf: map 'test_cor.bss' (global data): at sec_idx 5, offset 0, flags 400. libbpf: map 0 is "test_cor.bss" libbpf: sec '.relraw_tracepoint/sys_enter': collecting relocation for section(2) 'raw_tracepoint/sys_enter' libbpf: sec '.relraw_tracepoint/sys_enter': relo #0: insn #5 against 'data' libbpf: prog 'test_core_type_based': found data map 0 (test_cor.bss, sec 5, off 0) for insn 5 test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: map 'test_cor.bss': created successfully, fd=5 libbpf: sec 'raw_tracepoint/sys_enter': found 22 CO-RE relocations libbpf: CO-RE relocating [5] struct a_struct: found target candidate [5] struct a_struct in [vmlinux] libbpf: prog 'test_core_type_based': relo #0: kind (8), spec is [5] struct a_struct libbpf: prog 'test_core_type_based': relo #0: matching candidate #0 [5] struct a_struct libbpf: prog 'test_core_type_based': relo #0: patched insn #0 (ALU/ALU64) imm 1 -> 1 libbpf: prog 'test_core_type_based': relo #1: kind (8), spec is [6] union a_union libbpf: prog 'test_core_type_based': relo #1: no matching targets found libbpf: prog 'test_core_type_based': relo #1: patched insn #8 (ALU/ALU64) imm 1 -> 0 libbpf: prog 'test_core_type_based': relo #2: kind (8), spec is [7] enum an_enum libbpf: prog 'test_core_type_based': relo #2: no matching targets found libbpf: prog 'test_core_type_based': relo #2: patched insn #13 (ALU/ALU64) imm 1 -> 0 libbpf: prog 'test_core_type_based': relo #3: kind (8), spec is [8] typedef named_struct_typedef libbpf: prog 'test_core_type_based': relo #3: no matching targets found libbpf: prog 'test_core_type_based': relo #3: patched insn #18 (ALU/ALU64) imm 1 -> 0 libbpf: prog 'test_core_type_based': relo #4: kind (8), spec is [9] typedef anon_struct_typedef libbpf: prog 'test_core_type_based': relo #4: no matching targets found libbpf: prog 'test_core_type_based': relo #4: patched insn #23 (ALU/ALU64) imm 1 -> 0 libbpf: prog 'test_core_type_based': relo #5: kind (8), spec is [11] typedef struct_ptr_typedef libbpf: prog 'test_core_type_based': relo #5: no matching targets found libbpf: prog 'test_core_type_based': relo #5: patched insn #28 (ALU/ALU64) imm 1 -> 0 libbpf: prog 'test_core_type_based': relo #6: kind (8), spec is [14] typedef int_typedef libbpf: prog 'test_core_type_based': relo #6: no matching targets found libbpf: prog 'test_core_type_based': relo #6: patched insn #33 (ALU/ALU64) imm 1 -> 0 libbpf: prog 'test_core_type_based': relo #7: kind (8), spec is [15] typedef enum_typedef libbpf: prog 'test_core_type_based': relo #7: no matching targets found libbpf: prog 'test_core_type_based': relo #7: patched insn #38 (ALU/ALU64) imm 1 -> 0 libbpf: prog 'test_core_type_based': relo #8: kind (8), spec is [17] typedef void_ptr_typedef libbpf: prog 'test_core_type_based': relo #8: no matching targets found libbpf: prog 'test_core_type_based': relo #8: patched insn #43 (ALU/ALU64) imm 1 -> 0 libbpf: CO-RE relocating [18] typedef func_proto_typedef: found target candidate [7] typedef func_proto_typedef___fn_wrong_ret1 in [vmlinux] libbpf: CO-RE relocating [18] typedef func_proto_typedef: found target candidate [10] typedef func_proto_typedef___fn_wrong_ret2 in [vmlinux] libbpf: CO-RE relocating [18] typedef func_proto_typedef: found target candidate [14] typedef func_proto_typedef___fn_wrong_ret3 in [vmlinux] libbpf: CO-RE relocating [18] typedef func_proto_typedef: found target candidate [19] typedef func_proto_typedef___fn_wrong_arg in [vmlinux] libbpf: CO-RE relocating [18] typedef func_proto_typedef: found target candidate [23] typedef func_proto_typedef___fn_wrong_arg_cnt1 in [vmlinux] libbpf: CO-RE relocating [18] typedef func_proto_typedef: found target candidate [26] typedef func_proto_typedef___fn_wrong_arg_cnt2 in [vmlinux] libbpf: prog 'test_core_type_based': relo #9: kind (8), spec is [18] typedef func_proto_typedef libbpf: prog 'test_core_type_based': relo #9: non-matching candidate #0 [7] typedef func_proto_typedef___fn_wrong_ret1 libbpf: prog 'test_core_type_based': relo #9: non-matching candidate #1 [10] typedef func_proto_typedef___fn_wrong_ret2 libbpf: prog 'test_core_type_based': relo #9: non-matching candidate #2 [14] typedef func_proto_typedef___fn_wrong_ret3 libbpf: prog 'test_core_type_based': relo #9: non-matching candidate #3 [19] typedef func_proto_typedef___fn_wrong_arg libbpf: prog 'test_core_type_based': relo #9: non-matching candidate #4 [23] typedef func_proto_typedef___fn_wrong_arg_cnt1 libbpf: prog 'test_core_type_based': relo #9: non-matching candidate #5 [26] typedef func_proto_typedef___fn_wrong_arg_cnt2 libbpf: prog 'test_core_type_based': relo #9: no matching targets found libbpf: prog 'test_core_type_based': relo #9: patched insn #48 (ALU/ALU64) imm 1 -> 0 libbpf: prog 'test_core_type_based': relo #10: kind (9), spec is [5] struct a_struct libbpf: prog 'test_core_type_based': relo #10: matching candidate #0 [5] struct a_struct libbpf: prog 'test_core_type_based': relo #10: patched insn #53 (ALU/ALU64) imm 4 -> 4 libbpf: prog 'test_core_type_based': relo #11: kind (9), spec is [6] union a_union libbpf: prog 'test_core_type_based': relo #11: no matching targets found libbpf: prog 'test_core_type_based': relo #11: patched insn #55 (ALU/ALU64) imm 4 -> 0 libbpf: prog 'test_core_type_based': relo #12: kind (9), spec is [7] enum an_enum libbpf: prog 'test_core_type_based': relo #12: no matching targets found libbpf: prog 'test_core_type_based': relo #12: patched insn #57 (ALU/ALU64) imm 4 -> 0 libbpf: prog 'test_core_type_based': relo #13: kind (9), spec is [8] typedef named_struct_typedef libbpf: prog 'test_core_type_based': relo #13: no matching targets found libbpf: prog 'test_core_type_based': relo #13: patched insn #59 (ALU/ALU64) imm 4 -> 0 libbpf: prog 'test_core_type_based': relo #14: kind (9), spec is [9] typedef anon_struct_typedef libbpf: prog 'test_core_type_based': relo #14: no matching targets found libbpf: prog 'test_core_type_based': relo #14: patched insn #61 (ALU/ALU64) imm 12 -> 0 libbpf: prog 'test_core_type_based': relo #15: kind (9), spec is [11] typedef struct_ptr_typedef libbpf: prog 'test_core_type_based': relo #15: no matching targets found libbpf: prog 'test_core_type_based': relo #15: patched insn #63 (ALU/ALU64) imm 8 -> 0 libbpf: prog 'test_core_type_based': relo #16: kind (9), spec is [14] typedef int_typedef libbpf: prog 'test_core_type_based': relo #16: no matching targets found libbpf: prog 'test_core_type_based': relo #16: patched insn #65 (ALU/ALU64) imm 4 -> 0 libbpf: prog 'test_core_type_based': relo #17: kind (9), spec is [15] typedef enum_typedef libbpf: prog 'test_core_type_based': relo #17: no matching targets found libbpf: prog 'test_core_type_based': relo #17: patched insn #67 (ALU/ALU64) imm 4 -> 0 libbpf: prog 'test_core_type_based': relo #18: kind (8), spec is [22] typedef arr_typedef libbpf: prog 'test_core_type_based': relo #18: no matching targets found libbpf: prog 'test_core_type_based': relo #18: patched insn #69 (ALU/ALU64) imm 1 -> 0 libbpf: prog 'test_core_type_based': relo #19: kind (9), spec is [17] typedef void_ptr_typedef libbpf: prog 'test_core_type_based': relo #19: no matching targets found libbpf: prog 'test_core_type_based': relo #19: patched insn #73 (ALU/ALU64) imm 8 -> 0 libbpf: prog 'test_core_type_based': relo #20: kind (9), spec is [18] typedef func_proto_typedef libbpf: prog 'test_core_type_based': relo #20: non-matching candidate #0 [7] typedef func_proto_typedef___fn_wrong_ret1 libbpf: prog 'test_core_type_based': relo #20: non-matching candidate #1 [10] typedef func_proto_typedef___fn_wrong_ret2 libbpf: prog 'test_core_type_based': relo #20: non-matching candidate #2 [14] typedef func_proto_typedef___fn_wrong_ret3 libbpf: prog 'test_core_type_based': relo #20: non-matching candidate #3 [19] typedef func_proto_typedef___fn_wrong_arg libbpf: prog 'test_core_type_based': relo #20: non-matching candidate #4 [23] typedef func_proto_typedef___fn_wrong_arg_cnt1 libbpf: prog 'test_core_type_based': relo #20: non-matching candidate #5 [26] typedef func_proto_typedef___fn_wrong_arg_cnt2 libbpf: prog 'test_core_type_based': relo #20: no matching targets found libbpf: prog 'test_core_type_based': relo #20: patched insn #75 (ALU/ALU64) imm 8 -> 0 libbpf: prog 'test_core_type_based': relo #21: kind (9), spec is [22] typedef arr_typedef libbpf: prog 'test_core_type_based': relo #21: no matching targets found libbpf: prog 'test_core_type_based': relo #21: patched insn #77 (ALU/ALU64) imm 20 -> 0 test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/65 core_reloc/type_based___fn_wrong_args:OK setup_type_id_case_local:PASS:local_btf 0 nsec setup_type_id_case_local:PASS:targ_btf 0 nsec find_btf_type:PASS:find_type_id 0 nsec find_btf_type:PASS:find_type_id 0 nsec find_btf_type:PASS:find_type_id 0 nsec find_btf_type:PASS:find_type_id 0 nsec find_btf_type:PASS:find_type_id 0 nsec find_btf_type:PASS:find_type_id 0 nsec find_btf_type:PASS:find_type_id 0 nsec find_btf_type:PASS:find_type_id 0 nsec find_btf_type:PASS:find_type_id 0 nsec find_btf_type:PASS:find_type_id 0 nsec find_btf_type:PASS:find_type_id 0 nsec find_btf_type:PASS:find_type_id 0 nsec find_btf_type:PASS:find_type_id 0 nsec find_btf_type:PASS:find_type_id 0 nsec test_core_reloc:PASS:test_setup 0 nsec test_core_reloc:PASS:btf_src_file 0 nsec libbpf: loading test_core_reloc_type_id.o libbpf: elf: section(2) raw_tracepoint/sys_enter, size 512, link 0, flags 6, type=1 libbpf: sec 'raw_tracepoint/sys_enter': found program 'test_core_type_id' at insn offset 0 (0 bytes), code size 64 insns (512 bytes) libbpf: elf: section(3) .relraw_tracepoint/sys_enter, size 16, link 11, flags 40, type=9 libbpf: elf: section(4) license, size 4, link 0, flags 3, type=1 libbpf: license of test_core_reloc_type_id.o is GPL libbpf: elf: section(5) .bss, size 564, link 0, flags 3, type=8 libbpf: elf: section(6) .BTF, size 2624, link 0, flags 0, type=1 libbpf: elf: section(8) .BTF.ext, size 748, link 0, flags 0, type=1 libbpf: elf: section(11) .symtab, size 408, link 12, flags 0, type=2 libbpf: looking for externs among 17 symbols... libbpf: collected 0 externs total libbpf: map 'test_cor.bss' (global data): at sec_idx 5, offset 0, flags 400. libbpf: map 0 is "test_cor.bss" libbpf: sec '.relraw_tracepoint/sys_enter': collecting relocation for section(2) 'raw_tracepoint/sys_enter' libbpf: sec '.relraw_tracepoint/sys_enter': relo #0: insn #2 against 'data' libbpf: prog 'test_core_type_id': found data map 0 (test_cor.bss, sec 5, off 0) for insn 2 test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: map 'test_cor.bss': created successfully, fd=5 libbpf: sec 'raw_tracepoint/sys_enter': found 20 CO-RE relocations libbpf: prog 'test_core_type_id': relo #0: kind (6), spec is [5] struct libbpf: prog 'test_core_type_id': relo #0: patched insn #0 (LDIMM64) imm64 5 -> 5 libbpf: prog 'test_core_type_id': relo #1: kind (6), spec is [6] union libbpf: prog 'test_core_type_id': relo #1: patched insn #5 (LDIMM64) imm64 6 -> 6 libbpf: prog 'test_core_type_id': relo #2: kind (6), spec is [7] enum libbpf: prog 'test_core_type_id': relo #2: patched insn #8 (LDIMM64) imm64 7 -> 7 libbpf: prog 'test_core_type_id': relo #3: kind (6), spec is [8] ptr libbpf: prog 'test_core_type_id': relo #3: patched insn #11 (LDIMM64) imm64 8 -> 8 libbpf: prog 'test_core_type_id': relo #4: kind (6), spec is [1] ptr libbpf: prog 'test_core_type_id': relo #4: patched insn #14 (LDIMM64) imm64 1 -> 1 libbpf: prog 'test_core_type_id': relo #5: kind (6), spec is [11] array libbpf: prog 'test_core_type_id': relo #5: patched insn #17 (LDIMM64) imm64 11 -> 11 libbpf: prog 'test_core_type_id': relo #6: kind (6), spec is [13] struct a_struct libbpf: prog 'test_core_type_id': relo #6: patched insn #20 (LDIMM64) imm64 13 -> 13 libbpf: prog 'test_core_type_id': relo #7: kind (6), spec is [14] union a_union libbpf: prog 'test_core_type_id': relo #7: patched insn #23 (LDIMM64) imm64 14 -> 14 libbpf: prog 'test_core_type_id': relo #8: kind (6), spec is [15] enum an_enum libbpf: prog 'test_core_type_id': relo #8: patched insn #26 (LDIMM64) imm64 15 -> 15 libbpf: prog 'test_core_type_id': relo #9: kind (6), spec is [3] int int libbpf: prog 'test_core_type_id': relo #9: patched insn #29 (LDIMM64) imm64 3 -> 3 libbpf: prog 'test_core_type_id': relo #10: kind (6), spec is [16] typedef named_struct_typedef libbpf: prog 'test_core_type_id': relo #10: patched insn #32 (LDIMM64) imm64 16 -> 16 libbpf: prog 'test_core_type_id': relo #11: kind (6), spec is [17] typedef func_proto_typedef libbpf: prog 'test_core_type_id': relo #11: patched insn #35 (LDIMM64) imm64 17 -> 17 libbpf: prog 'test_core_type_id': relo #12: kind (6), spec is [21] typedef arr_typedef libbpf: prog 'test_core_type_id': relo #12: patched insn #38 (LDIMM64) imm64 21 -> 21 libbpf: CO-RE relocating [13] struct a_struct: found target candidate [5] struct a_struct in [vmlinux] libbpf: prog 'test_core_type_id': relo #13: kind (7), spec is [13] struct a_struct libbpf: prog 'test_core_type_id': relo #13: matching candidate #0 [5] struct a_struct libbpf: prog 'test_core_type_id': relo #13: patched insn #41 (LDIMM64) imm64 13 -> 5 libbpf: CO-RE relocating [14] union a_union: found target candidate [7] union a_union in [vmlinux] libbpf: prog 'test_core_type_id': relo #14: kind (7), spec is [14] union a_union libbpf: prog 'test_core_type_id': relo #14: matching candidate #0 [7] union a_union libbpf: prog 'test_core_type_id': relo #14: patched insn #44 (LDIMM64) imm64 14 -> 7 libbpf: CO-RE relocating [15] enum an_enum: found target candidate [8] enum an_enum in [vmlinux] libbpf: prog 'test_core_type_id': relo #15: kind (7), spec is [15] enum an_enum libbpf: prog 'test_core_type_id': relo #15: matching candidate #0 [8] enum an_enum libbpf: prog 'test_core_type_id': relo #15: patched insn #47 (LDIMM64) imm64 15 -> 8 libbpf: CO-RE relocating [3] int int: found target candidate [6] int int in [vmlinux] libbpf: prog 'test_core_type_id': relo #16: kind (7), spec is [3] int int libbpf: prog 'test_core_type_id': relo #16: matching candidate #0 [6] int int libbpf: prog 'test_core_type_id': relo #16: patched insn #50 (LDIMM64) imm64 3 -> 6 libbpf: CO-RE relocating [16] typedef named_struct_typedef: found target candidate [9] typedef named_struct_typedef in [vmlinux] libbpf: prog 'test_core_type_id': relo #17: kind (7), spec is [16] typedef named_struct_typedef libbpf: prog 'test_core_type_id': relo #17: matching candidate #0 [9] typedef named_struct_typedef libbpf: prog 'test_core_type_id': relo #17: patched insn #53 (LDIMM64) imm64 16 -> 9 libbpf: CO-RE relocating [17] typedef func_proto_typedef: found target candidate [10] typedef func_proto_typedef in [vmlinux] libbpf: prog 'test_core_type_id': relo #18: kind (7), spec is [17] typedef func_proto_typedef libbpf: prog 'test_core_type_id': relo #18: matching candidate #0 [10] typedef func_proto_typedef libbpf: prog 'test_core_type_id': relo #18: patched insn #56 (LDIMM64) imm64 17 -> 10 libbpf: CO-RE relocating [21] typedef arr_typedef: found target candidate [13] typedef arr_typedef in [vmlinux] libbpf: prog 'test_core_type_id': relo #19: kind (7), spec is [21] typedef arr_typedef libbpf: prog 'test_core_type_id': relo #19: matching candidate #0 [13] typedef arr_typedef libbpf: prog 'test_core_type_id': relo #19: patched insn #59 (LDIMM64) imm64 21 -> 13 test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/66 core_reloc/type_id:OK setup_type_id_case_local:PASS:local_btf 0 nsec setup_type_id_case_local:PASS:targ_btf 0 nsec find_btf_type:PASS:find_type_id 0 nsec find_btf_type:PASS:find_type_id 0 nsec find_btf_type:PASS:find_type_id 0 nsec find_btf_type:PASS:find_type_id 0 nsec find_btf_type:PASS:find_type_id 0 nsec find_btf_type:PASS:find_type_id 0 nsec find_btf_type:PASS:find_type_id 0 nsec test_core_reloc:PASS:test_setup 0 nsec test_core_reloc:PASS:btf_src_file 0 nsec libbpf: loading test_core_reloc_type_id.o libbpf: elf: section(2) raw_tracepoint/sys_enter, size 512, link 0, flags 6, type=1 libbpf: sec 'raw_tracepoint/sys_enter': found program 'test_core_type_id' at insn offset 0 (0 bytes), code size 64 insns (512 bytes) libbpf: elf: section(3) .relraw_tracepoint/sys_enter, size 16, link 11, flags 40, type=9 libbpf: elf: section(4) license, size 4, link 0, flags 3, type=1 libbpf: license of test_core_reloc_type_id.o is GPL libbpf: elf: section(5) .bss, size 564, link 0, flags 3, type=8 libbpf: elf: section(6) .BTF, size 2624, link 0, flags 0, type=1 libbpf: elf: section(8) .BTF.ext, size 748, link 0, flags 0, type=1 libbpf: elf: section(11) .symtab, size 408, link 12, flags 0, type=2 libbpf: looking for externs among 17 symbols... libbpf: collected 0 externs total libbpf: map 'test_cor.bss' (global data): at sec_idx 5, offset 0, flags 400. libbpf: map 0 is "test_cor.bss" libbpf: sec '.relraw_tracepoint/sys_enter': collecting relocation for section(2) 'raw_tracepoint/sys_enter' libbpf: sec '.relraw_tracepoint/sys_enter': relo #0: insn #2 against 'data' libbpf: prog 'test_core_type_id': found data map 0 (test_cor.bss, sec 5, off 0) for insn 2 test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: map 'test_cor.bss': created successfully, fd=5 libbpf: sec 'raw_tracepoint/sys_enter': found 20 CO-RE relocations libbpf: prog 'test_core_type_id': relo #0: kind (6), spec is [5] struct libbpf: prog 'test_core_type_id': relo #0: patched insn #0 (LDIMM64) imm64 5 -> 5 libbpf: prog 'test_core_type_id': relo #1: kind (6), spec is [6] union libbpf: prog 'test_core_type_id': relo #1: patched insn #5 (LDIMM64) imm64 6 -> 6 libbpf: prog 'test_core_type_id': relo #2: kind (6), spec is [7] enum libbpf: prog 'test_core_type_id': relo #2: patched insn #8 (LDIMM64) imm64 7 -> 7 libbpf: prog 'test_core_type_id': relo #3: kind (6), spec is [8] ptr libbpf: prog 'test_core_type_id': relo #3: patched insn #11 (LDIMM64) imm64 8 -> 8 libbpf: prog 'test_core_type_id': relo #4: kind (6), spec is [1] ptr libbpf: prog 'test_core_type_id': relo #4: patched insn #14 (LDIMM64) imm64 1 -> 1 libbpf: prog 'test_core_type_id': relo #5: kind (6), spec is [11] array libbpf: prog 'test_core_type_id': relo #5: patched insn #17 (LDIMM64) imm64 11 -> 11 libbpf: prog 'test_core_type_id': relo #6: kind (6), spec is [13] struct a_struct libbpf: prog 'test_core_type_id': relo #6: patched insn #20 (LDIMM64) imm64 13 -> 13 libbpf: prog 'test_core_type_id': relo #7: kind (6), spec is [14] union a_union libbpf: prog 'test_core_type_id': relo #7: patched insn #23 (LDIMM64) imm64 14 -> 14 libbpf: prog 'test_core_type_id': relo #8: kind (6), spec is [15] enum an_enum libbpf: prog 'test_core_type_id': relo #8: patched insn #26 (LDIMM64) imm64 15 -> 15 libbpf: prog 'test_core_type_id': relo #9: kind (6), spec is [3] int int libbpf: prog 'test_core_type_id': relo #9: patched insn #29 (LDIMM64) imm64 3 -> 3 libbpf: prog 'test_core_type_id': relo #10: kind (6), spec is [16] typedef named_struct_typedef libbpf: prog 'test_core_type_id': relo #10: patched insn #32 (LDIMM64) imm64 16 -> 16 libbpf: prog 'test_core_type_id': relo #11: kind (6), spec is [17] typedef func_proto_typedef libbpf: prog 'test_core_type_id': relo #11: patched insn #35 (LDIMM64) imm64 17 -> 17 libbpf: prog 'test_core_type_id': relo #12: kind (6), spec is [21] typedef arr_typedef libbpf: prog 'test_core_type_id': relo #12: patched insn #38 (LDIMM64) imm64 21 -> 21 libbpf: prog 'test_core_type_id': relo #13: kind (7), spec is [13] struct a_struct libbpf: prog 'test_core_type_id': relo #13: no matching targets found libbpf: prog 'test_core_type_id': relo #13: patched insn #41 (LDIMM64) imm64 13 -> 0 libbpf: prog 'test_core_type_id': relo #14: kind (7), spec is [14] union a_union libbpf: prog 'test_core_type_id': relo #14: no matching targets found libbpf: prog 'test_core_type_id': relo #14: patched insn #44 (LDIMM64) imm64 14 -> 0 libbpf: prog 'test_core_type_id': relo #15: kind (7), spec is [15] enum an_enum libbpf: prog 'test_core_type_id': relo #15: no matching targets found libbpf: prog 'test_core_type_id': relo #15: patched insn #47 (LDIMM64) imm64 15 -> 0 libbpf: prog 'test_core_type_id': relo #16: kind (7), spec is [3] int int libbpf: prog 'test_core_type_id': relo #16: no matching targets found libbpf: prog 'test_core_type_id': relo #16: patched insn #50 (LDIMM64) imm64 3 -> 0 libbpf: prog 'test_core_type_id': relo #17: kind (7), spec is [16] typedef named_struct_typedef libbpf: prog 'test_core_type_id': relo #17: no matching targets found libbpf: prog 'test_core_type_id': relo #17: patched insn #53 (LDIMM64) imm64 16 -> 0 libbpf: prog 'test_core_type_id': relo #18: kind (7), spec is [17] typedef func_proto_typedef libbpf: prog 'test_core_type_id': relo #18: no matching targets found libbpf: prog 'test_core_type_id': relo #18: patched insn #56 (LDIMM64) imm64 17 -> 0 libbpf: prog 'test_core_type_id': relo #19: kind (7), spec is [21] typedef arr_typedef libbpf: prog 'test_core_type_id': relo #19: no matching targets found libbpf: prog 'test_core_type_id': relo #19: patched insn #59 (LDIMM64) imm64 21 -> 0 test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/67 core_reloc/type_id___missing_targets:OK test_core_reloc:PASS:btf_src_file 0 nsec libbpf: loading test_core_reloc_enumval.o libbpf: elf: section(2) raw_tracepoint/sys_enter, size 416, link 0, flags 6, type=1 libbpf: sec 'raw_tracepoint/sys_enter': found program 'test_core_enumval' at insn offset 0 (0 bytes), code size 52 insns (416 bytes) libbpf: elf: section(3) .relraw_tracepoint/sys_enter, size 16, link 11, flags 40, type=9 libbpf: elf: section(4) license, size 4, link 0, flags 3, type=1 libbpf: license of test_core_reloc_enumval.o is GPL libbpf: elf: section(5) .bss, size 513, link 0, flags 3, type=8 libbpf: elf: section(6) .BTF, size 1586, link 0, flags 0, type=1 libbpf: elf: section(8) .BTF.ext, size 524, link 0, flags 0, type=1 libbpf: elf: section(11) .symtab, size 408, link 12, flags 0, type=2 libbpf: looking for externs among 17 symbols... libbpf: collected 0 externs total libbpf: map 'test_cor.bss' (global data): at sec_idx 5, offset 0, flags 400. libbpf: map 0 is "test_cor.bss" libbpf: sec '.relraw_tracepoint/sys_enter': collecting relocation for section(2) 'raw_tracepoint/sys_enter' libbpf: sec '.relraw_tracepoint/sys_enter': relo #0: insn #30 against 'data' libbpf: prog 'test_core_enumval': found data map 0 (test_cor.bss, sec 5, off 0) for insn 30 test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: map 'test_cor.bss': created successfully, fd=5 libbpf: sec 'raw_tracepoint/sys_enter': found 10 CO-RE relocations libbpf: CO-RE relocating [5] typedef anon_enum: found target candidate [6] typedef anon_enum in [vmlinux] libbpf: prog 'test_core_enumval': relo #0: kind (10), spec is [5] typedef anon_enum::ANON_ENUM_VAL2 = 32 libbpf: prog 'test_core_enumval': relo #0: matching candidate #0 [6] typedef anon_enum::ANON_ENUM_VAL2 = 32 libbpf: prog 'test_core_enumval': relo #0: patched insn #0 (LDIMM64) imm64 1 -> 1 libbpf: prog 'test_core_enumval': relo #1: kind (10), spec is [5] typedef anon_enum::ANON_ENUM_VAL3 = 48 libbpf: prog 'test_core_enumval': relo #1: matching candidate #0 [6] typedef anon_enum::ANON_ENUM_VAL3 = 48 libbpf: prog 'test_core_enumval': relo #1: patched insn #2 (LDIMM64) imm64 1 -> 1 libbpf: prog 'test_core_enumval': relo #2: kind (10), spec is [5] typedef anon_enum::ANON_ENUM_VAL1 = 16 libbpf: prog 'test_core_enumval': relo #2: matching candidate #0 [6] typedef anon_enum::ANON_ENUM_VAL1 = 16 libbpf: prog 'test_core_enumval': relo #2: patched insn #8 (LDIMM64) imm64 1 -> 1 libbpf: CO-RE relocating [7] enum named_enum: found target candidate [5] enum named_enum in [vmlinux] libbpf: prog 'test_core_enumval': relo #3: kind (10), spec is [7] enum named_enum::NAMED_ENUM_VAL3 = 3 libbpf: prog 'test_core_enumval': relo #3: matching candidate #0 [5] enum named_enum::NAMED_ENUM_VAL3 = 3 libbpf: prog 'test_core_enumval': relo #3: patched insn #13 (LDIMM64) imm64 1 -> 1 libbpf: prog 'test_core_enumval': relo #4: kind (10), spec is [7] enum named_enum::NAMED_ENUM_VAL2 = 2 libbpf: prog 'test_core_enumval': relo #4: matching candidate #0 [5] enum named_enum::NAMED_ENUM_VAL2 = 2 libbpf: prog 'test_core_enumval': relo #4: patched insn #18 (LDIMM64) imm64 1 -> 1 libbpf: prog 'test_core_enumval': relo #5: kind (10), spec is [7] enum named_enum::NAMED_ENUM_VAL1 = 1 libbpf: prog 'test_core_enumval': relo #5: matching candidate #0 [5] enum named_enum::NAMED_ENUM_VAL1 = 1 libbpf: prog 'test_core_enumval': relo #5: patched insn #26 (LDIMM64) imm64 1 -> 1 libbpf: prog 'test_core_enumval': relo #6: kind (11), spec is [7] enum named_enum::NAMED_ENUM_VAL1 = 1 libbpf: prog 'test_core_enumval': relo #6: matching candidate #0 [5] enum named_enum::NAMED_ENUM_VAL1 = 1 libbpf: prog 'test_core_enumval': relo #6: patched insn #38 (LDIMM64) imm64 1 -> 1 libbpf: prog 'test_core_enumval': relo #7: kind (11), spec is [7] enum named_enum::NAMED_ENUM_VAL2 = 2 libbpf: prog 'test_core_enumval': relo #7: matching candidate #0 [5] enum named_enum::NAMED_ENUM_VAL2 = 2 libbpf: prog 'test_core_enumval': relo #7: patched insn #41 (LDIMM64) imm64 2 -> 2 libbpf: prog 'test_core_enumval': relo #8: kind (11), spec is [5] typedef anon_enum::ANON_ENUM_VAL1 = 16 libbpf: prog 'test_core_enumval': relo #8: matching candidate #0 [6] typedef anon_enum::ANON_ENUM_VAL1 = 16 libbpf: prog 'test_core_enumval': relo #8: patched insn #44 (LDIMM64) imm64 16 -> 16 libbpf: prog 'test_core_enumval': relo #9: kind (11), spec is [5] typedef anon_enum::ANON_ENUM_VAL2 = 32 libbpf: prog 'test_core_enumval': relo #9: matching candidate #0 [6] typedef anon_enum::ANON_ENUM_VAL2 = 32 libbpf: prog 'test_core_enumval': relo #9: patched insn #47 (LDIMM64) imm64 32 -> 32 test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/68 core_reloc/enumval:OK test_core_reloc:PASS:btf_src_file 0 nsec libbpf: loading test_core_reloc_enumval.o libbpf: elf: section(2) raw_tracepoint/sys_enter, size 416, link 0, flags 6, type=1 libbpf: sec 'raw_tracepoint/sys_enter': found program 'test_core_enumval' at insn offset 0 (0 bytes), code size 52 insns (416 bytes) libbpf: elf: section(3) .relraw_tracepoint/sys_enter, size 16, link 11, flags 40, type=9 libbpf: elf: section(4) license, size 4, link 0, flags 3, type=1 libbpf: license of test_core_reloc_enumval.o is GPL libbpf: elf: section(5) .bss, size 513, link 0, flags 3, type=8 libbpf: elf: section(6) .BTF, size 1586, link 0, flags 0, type=1 libbpf: elf: section(8) .BTF.ext, size 524, link 0, flags 0, type=1 libbpf: elf: section(11) .symtab, size 408, link 12, flags 0, type=2 libbpf: looking for externs among 17 symbols... libbpf: collected 0 externs total libbpf: map 'test_cor.bss' (global data): at sec_idx 5, offset 0, flags 400. libbpf: map 0 is "test_cor.bss" libbpf: sec '.relraw_tracepoint/sys_enter': collecting relocation for section(2) 'raw_tracepoint/sys_enter' libbpf: sec '.relraw_tracepoint/sys_enter': relo #0: insn #30 against 'data' libbpf: prog 'test_core_enumval': found data map 0 (test_cor.bss, sec 5, off 0) for insn 30 test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: map 'test_cor.bss': created successfully, fd=5 libbpf: sec 'raw_tracepoint/sys_enter': found 10 CO-RE relocations libbpf: CO-RE relocating [5] typedef anon_enum: found target candidate [6] typedef anon_enum___diff in [vmlinux] libbpf: prog 'test_core_enumval': relo #0: kind (10), spec is [5] typedef anon_enum::ANON_ENUM_VAL2 = 32 libbpf: prog 'test_core_enumval': relo #0: matching candidate #0 [6] typedef anon_enum___diff::ANON_ENUM_VAL2___diff = 34 libbpf: prog 'test_core_enumval': relo #0: patched insn #0 (LDIMM64) imm64 1 -> 1 libbpf: prog 'test_core_enumval': relo #1: kind (10), spec is [5] typedef anon_enum::ANON_ENUM_VAL3 = 48 libbpf: prog 'test_core_enumval': relo #1: matching candidate #0 [6] typedef anon_enum___diff::ANON_ENUM_VAL3___diff = 51 libbpf: prog 'test_core_enumval': relo #1: patched insn #2 (LDIMM64) imm64 1 -> 1 libbpf: prog 'test_core_enumval': relo #2: kind (10), spec is [5] typedef anon_enum::ANON_ENUM_VAL1 = 16 libbpf: prog 'test_core_enumval': relo #2: matching candidate #0 [6] typedef anon_enum___diff::ANON_ENUM_VAL1___diff = 17 libbpf: prog 'test_core_enumval': relo #2: patched insn #8 (LDIMM64) imm64 1 -> 1 libbpf: CO-RE relocating [7] enum named_enum: found target candidate [5] enum named_enum___diff in [vmlinux] libbpf: prog 'test_core_enumval': relo #3: kind (10), spec is [7] enum named_enum::NAMED_ENUM_VAL3 = 3 libbpf: prog 'test_core_enumval': relo #3: matching candidate #0 [5] enum named_enum___diff::NAMED_ENUM_VAL3___diff = 303 libbpf: prog 'test_core_enumval': relo #3: patched insn #13 (LDIMM64) imm64 1 -> 1 libbpf: prog 'test_core_enumval': relo #4: kind (10), spec is [7] enum named_enum::NAMED_ENUM_VAL2 = 2 libbpf: prog 'test_core_enumval': relo #4: matching candidate #0 [5] enum named_enum___diff::NAMED_ENUM_VAL2___diff = 202 libbpf: prog 'test_core_enumval': relo #4: patched insn #18 (LDIMM64) imm64 1 -> 1 libbpf: prog 'test_core_enumval': relo #5: kind (10), spec is [7] enum named_enum::NAMED_ENUM_VAL1 = 1 libbpf: prog 'test_core_enumval': relo #5: matching candidate #0 [5] enum named_enum___diff::NAMED_ENUM_VAL1___diff = 101 libbpf: prog 'test_core_enumval': relo #5: patched insn #26 (LDIMM64) imm64 1 -> 1 libbpf: prog 'test_core_enumval': relo #6: kind (11), spec is [7] enum named_enum::NAMED_ENUM_VAL1 = 1 libbpf: prog 'test_core_enumval': relo #6: matching candidate #0 [5] enum named_enum___diff::NAMED_ENUM_VAL1___diff = 101 libbpf: prog 'test_core_enumval': relo #6: patched insn #38 (LDIMM64) imm64 1 -> 101 libbpf: prog 'test_core_enumval': relo #7: kind (11), spec is [7] enum named_enum::NAMED_ENUM_VAL2 = 2 libbpf: prog 'test_core_enumval': relo #7: matching candidate #0 [5] enum named_enum___diff::NAMED_ENUM_VAL2___diff = 202 libbpf: prog 'test_core_enumval': relo #7: patched insn #41 (LDIMM64) imm64 2 -> 202 libbpf: prog 'test_core_enumval': relo #8: kind (11), spec is [5] typedef anon_enum::ANON_ENUM_VAL1 = 16 libbpf: prog 'test_core_enumval': relo #8: matching candidate #0 [6] typedef anon_enum___diff::ANON_ENUM_VAL1___diff = 17 libbpf: prog 'test_core_enumval': relo #8: patched insn #44 (LDIMM64) imm64 16 -> 17 libbpf: prog 'test_core_enumval': relo #9: kind (11), spec is [5] typedef anon_enum::ANON_ENUM_VAL2 = 32 libbpf: prog 'test_core_enumval': relo #9: matching candidate #0 [6] typedef anon_enum___diff::ANON_ENUM_VAL2___diff = 34 libbpf: prog 'test_core_enumval': relo #9: patched insn #47 (LDIMM64) imm64 32 -> 34 test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/69 core_reloc/enumval___diff:OK test_core_reloc:PASS:btf_src_file 0 nsec libbpf: loading test_core_reloc_enumval.o libbpf: elf: section(2) raw_tracepoint/sys_enter, size 416, link 0, flags 6, type=1 libbpf: sec 'raw_tracepoint/sys_enter': found program 'test_core_enumval' at insn offset 0 (0 bytes), code size 52 insns (416 bytes) libbpf: elf: section(3) .relraw_tracepoint/sys_enter, size 16, link 11, flags 40, type=9 libbpf: elf: section(4) license, size 4, link 0, flags 3, type=1 libbpf: license of test_core_reloc_enumval.o is GPL libbpf: elf: section(5) .bss, size 513, link 0, flags 3, type=8 libbpf: elf: section(6) .BTF, size 1586, link 0, flags 0, type=1 libbpf: elf: section(8) .BTF.ext, size 524, link 0, flags 0, type=1 libbpf: elf: section(11) .symtab, size 408, link 12, flags 0, type=2 libbpf: looking for externs among 17 symbols... libbpf: collected 0 externs total libbpf: map 'test_cor.bss' (global data): at sec_idx 5, offset 0, flags 400. libbpf: map 0 is "test_cor.bss" libbpf: sec '.relraw_tracepoint/sys_enter': collecting relocation for section(2) 'raw_tracepoint/sys_enter' libbpf: sec '.relraw_tracepoint/sys_enter': relo #0: insn #30 against 'data' libbpf: prog 'test_core_enumval': found data map 0 (test_cor.bss, sec 5, off 0) for insn 30 test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: map 'test_cor.bss': created successfully, fd=5 libbpf: sec 'raw_tracepoint/sys_enter': found 10 CO-RE relocations libbpf: CO-RE relocating [5] typedef anon_enum: found target candidate [6] typedef anon_enum___val3_missing in [vmlinux] libbpf: prog 'test_core_enumval': relo #0: kind (10), spec is [5] typedef anon_enum::ANON_ENUM_VAL2 = 32 libbpf: prog 'test_core_enumval': relo #0: matching candidate #0 [6] typedef anon_enum___val3_missing::ANON_ENUM_VAL2___val3_missing = 546 libbpf: prog 'test_core_enumval': relo #0: patched insn #0 (LDIMM64) imm64 1 -> 1 libbpf: prog 'test_core_enumval': relo #1: kind (10), spec is [5] typedef anon_enum::ANON_ENUM_VAL3 = 48 libbpf: prog 'test_core_enumval': relo #1: non-matching candidate #0 [6] typedef anon_enum___val3_missing::ANON_ENUM_VAL1___val3_missing = 273 libbpf: prog 'test_core_enumval': relo #1: no matching targets found libbpf: prog 'test_core_enumval': relo #1: patched insn #2 (LDIMM64) imm64 1 -> 0 libbpf: prog 'test_core_enumval': relo #2: kind (10), spec is [5] typedef anon_enum::ANON_ENUM_VAL1 = 16 libbpf: prog 'test_core_enumval': relo #2: matching candidate #0 [6] typedef anon_enum___val3_missing::ANON_ENUM_VAL1___val3_missing = 273 libbpf: prog 'test_core_enumval': relo #2: patched insn #8 (LDIMM64) imm64 1 -> 1 libbpf: CO-RE relocating [7] enum named_enum: found target candidate [5] enum named_enum___val3_missing in [vmlinux] libbpf: prog 'test_core_enumval': relo #3: kind (10), spec is [7] enum named_enum::NAMED_ENUM_VAL3 = 3 libbpf: prog 'test_core_enumval': relo #3: non-matching candidate #0 [5] enum named_enum___val3_missing::NAMED_ENUM_VAL1___val3_missing = 111 libbpf: prog 'test_core_enumval': relo #3: no matching targets found libbpf: prog 'test_core_enumval': relo #3: patched insn #13 (LDIMM64) imm64 1 -> 0 libbpf: prog 'test_core_enumval': relo #4: kind (10), spec is [7] enum named_enum::NAMED_ENUM_VAL2 = 2 libbpf: prog 'test_core_enumval': relo #4: matching candidate #0 [5] enum named_enum___val3_missing::NAMED_ENUM_VAL2___val3_missing = 222 libbpf: prog 'test_core_enumval': relo #4: patched insn #18 (LDIMM64) imm64 1 -> 1 libbpf: prog 'test_core_enumval': relo #5: kind (10), spec is [7] enum named_enum::NAMED_ENUM_VAL1 = 1 libbpf: prog 'test_core_enumval': relo #5: matching candidate #0 [5] enum named_enum___val3_missing::NAMED_ENUM_VAL1___val3_missing = 111 libbpf: prog 'test_core_enumval': relo #5: patched insn #26 (LDIMM64) imm64 1 -> 1 libbpf: prog 'test_core_enumval': relo #6: kind (11), spec is [7] enum named_enum::NAMED_ENUM_VAL1 = 1 libbpf: prog 'test_core_enumval': relo #6: matching candidate #0 [5] enum named_enum___val3_missing::NAMED_ENUM_VAL1___val3_missing = 111 libbpf: prog 'test_core_enumval': relo #6: patched insn #38 (LDIMM64) imm64 1 -> 111 libbpf: prog 'test_core_enumval': relo #7: kind (11), spec is [7] enum named_enum::NAMED_ENUM_VAL2 = 2 libbpf: prog 'test_core_enumval': relo #7: matching candidate #0 [5] enum named_enum___val3_missing::NAMED_ENUM_VAL2___val3_missing = 222 libbpf: prog 'test_core_enumval': relo #7: patched insn #41 (LDIMM64) imm64 2 -> 222 libbpf: prog 'test_core_enumval': relo #8: kind (11), spec is [5] typedef anon_enum::ANON_ENUM_VAL1 = 16 libbpf: prog 'test_core_enumval': relo #8: matching candidate #0 [6] typedef anon_enum___val3_missing::ANON_ENUM_VAL1___val3_missing = 273 libbpf: prog 'test_core_enumval': relo #8: patched insn #44 (LDIMM64) imm64 16 -> 273 libbpf: prog 'test_core_enumval': relo #9: kind (11), spec is [5] typedef anon_enum::ANON_ENUM_VAL2 = 32 libbpf: prog 'test_core_enumval': relo #9: matching candidate #0 [6] typedef anon_enum___val3_missing::ANON_ENUM_VAL2___val3_missing = 546 libbpf: prog 'test_core_enumval': relo #9: patched insn #47 (LDIMM64) imm64 32 -> 546 test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/70 core_reloc/enumval___val3_missing:OK test_core_reloc:PASS:btf_src_file 0 nsec libbpf: loading test_core_reloc_enumval.o libbpf: elf: section(2) raw_tracepoint/sys_enter, size 416, link 0, flags 6, type=1 libbpf: sec 'raw_tracepoint/sys_enter': found program 'test_core_enumval' at insn offset 0 (0 bytes), code size 52 insns (416 bytes) libbpf: elf: section(3) .relraw_tracepoint/sys_enter, size 16, link 11, flags 40, type=9 libbpf: elf: section(4) license, size 4, link 0, flags 3, type=1 libbpf: license of test_core_reloc_enumval.o is GPL libbpf: elf: section(5) .bss, size 513, link 0, flags 3, type=8 libbpf: elf: section(6) .BTF, size 1586, link 0, flags 0, type=1 libbpf: elf: section(8) .BTF.ext, size 524, link 0, flags 0, type=1 libbpf: elf: section(11) .symtab, size 408, link 12, flags 0, type=2 libbpf: looking for externs among 17 symbols... libbpf: collected 0 externs total libbpf: map 'test_cor.bss' (global data): at sec_idx 5, offset 0, flags 400. libbpf: map 0 is "test_cor.bss" libbpf: sec '.relraw_tracepoint/sys_enter': collecting relocation for section(2) 'raw_tracepoint/sys_enter' libbpf: sec '.relraw_tracepoint/sys_enter': relo #0: insn #30 against 'data' libbpf: prog 'test_core_enumval': found data map 0 (test_cor.bss, sec 5, off 0) for insn 30 test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: map 'test_cor.bss': created successfully, fd=5 libbpf: sec 'raw_tracepoint/sys_enter': found 10 CO-RE relocations libbpf: CO-RE relocating [5] typedef anon_enum: found target candidate [6] typedef anon_enum___err_missing in [vmlinux] libbpf: prog 'test_core_enumval': relo #0: kind (10), spec is [5] typedef anon_enum::ANON_ENUM_VAL2 = 32 libbpf: prog 'test_core_enumval': relo #0: non-matching candidate #0 [6] typedef anon_enum___err_missing::ANON_ENUM_VAL1___err_missing = 273 libbpf: prog 'test_core_enumval': relo #0: no matching targets found libbpf: prog 'test_core_enumval': relo #0: patched insn #0 (LDIMM64) imm64 1 -> 0 libbpf: prog 'test_core_enumval': relo #1: kind (10), spec is [5] typedef anon_enum::ANON_ENUM_VAL3 = 48 libbpf: prog 'test_core_enumval': relo #1: matching candidate #0 [6] typedef anon_enum___err_missing::ANON_ENUM_VAL3___err_missing = 546 libbpf: prog 'test_core_enumval': relo #1: patched insn #2 (LDIMM64) imm64 1 -> 1 libbpf: prog 'test_core_enumval': relo #2: kind (10), spec is [5] typedef anon_enum::ANON_ENUM_VAL1 = 16 libbpf: prog 'test_core_enumval': relo #2: matching candidate #0 [6] typedef anon_enum___err_missing::ANON_ENUM_VAL1___err_missing = 273 libbpf: prog 'test_core_enumval': relo #2: patched insn #8 (LDIMM64) imm64 1 -> 1 libbpf: CO-RE relocating [7] enum named_enum: found target candidate [5] enum named_enum___err_missing in [vmlinux] libbpf: prog 'test_core_enumval': relo #3: kind (10), spec is [7] enum named_enum::NAMED_ENUM_VAL3 = 3 libbpf: prog 'test_core_enumval': relo #3: matching candidate #0 [5] enum named_enum___err_missing::NAMED_ENUM_VAL3___err_missing = 3 libbpf: prog 'test_core_enumval': relo #3: patched insn #13 (LDIMM64) imm64 1 -> 1 libbpf: prog 'test_core_enumval': relo #4: kind (10), spec is [7] enum named_enum::NAMED_ENUM_VAL2 = 2 libbpf: prog 'test_core_enumval': relo #4: non-matching candidate #0 [5] enum named_enum___err_missing::NAMED_ENUM_VAL1___err_missing = 1 libbpf: prog 'test_core_enumval': relo #4: no matching targets found libbpf: prog 'test_core_enumval': relo #4: patched insn #18 (LDIMM64) imm64 1 -> 0 libbpf: prog 'test_core_enumval': relo #5: kind (10), spec is [7] enum named_enum::NAMED_ENUM_VAL1 = 1 libbpf: prog 'test_core_enumval': relo #5: matching candidate #0 [5] enum named_enum___err_missing::NAMED_ENUM_VAL1___err_missing = 1 libbpf: prog 'test_core_enumval': relo #5: patched insn #26 (LDIMM64) imm64 1 -> 1 libbpf: prog 'test_core_enumval': relo #6: kind (11), spec is [7] enum named_enum::NAMED_ENUM_VAL1 = 1 libbpf: prog 'test_core_enumval': relo #6: matching candidate #0 [5] enum named_enum___err_missing::NAMED_ENUM_VAL1___err_missing = 1 libbpf: prog 'test_core_enumval': relo #6: patched insn #38 (LDIMM64) imm64 1 -> 1 libbpf: prog 'test_core_enumval': relo #7: kind (11), spec is [7] enum named_enum::NAMED_ENUM_VAL2 = 2 libbpf: prog 'test_core_enumval': relo #7: non-matching candidate #0 [5] enum named_enum___err_missing::NAMED_ENUM_VAL1___err_missing = 1 libbpf: prog 'test_core_enumval': relo #7: no matching targets found libbpf: prog 'test_core_enumval': relo #7: substituting insn #42 w/ invalid insn libbpf: prog 'test_core_enumval': relo #7: substituting insn #41 w/ invalid insn libbpf: prog 'test_core_enumval': relo #8: kind (11), spec is [5] typedef anon_enum::ANON_ENUM_VAL1 = 16 libbpf: prog 'test_core_enumval': relo #8: matching candidate #0 [6] typedef anon_enum___err_missing::ANON_ENUM_VAL1___err_missing = 273 libbpf: prog 'test_core_enumval': relo #8: patched insn #44 (LDIMM64) imm64 16 -> 273 libbpf: prog 'test_core_enumval': relo #9: kind (11), spec is [5] typedef anon_enum::ANON_ENUM_VAL2 = 32 libbpf: prog 'test_core_enumval': relo #9: non-matching candidate #0 [6] typedef anon_enum___err_missing::ANON_ENUM_VAL1___err_missing = 273 libbpf: prog 'test_core_enumval': relo #9: no matching targets found libbpf: prog 'test_core_enumval': relo #9: substituting insn #48 w/ invalid insn libbpf: prog 'test_core_enumval': relo #9: substituting insn #47 w/ invalid insn libbpf: prog 'test_core_enumval': BPF program load failed: Invalid argument libbpf: prog 'test_core_enumval': -- BEGIN PROG LOAD LOG -- arg#0 reference type('UNKNOWN ') size cannot be determined: -22 0: R1=ctx(id=0,off=0,imm=0) R10=fp0 ; int test_core_enumval(void *ctx) 0: (18) r4 = 0x0 ; R4_w=inv0 2: (18) r3 = 0x1 ; R3_w=inv1 4: (b4) w2 = 1 ; R2_w=inv1 5: (b4) w1 = 1 ; R1_w=inv1 ; out->anon_val3_exists = bpf_core_enum_value_exists(anon_enum, ANON_ENUM_VAL3); 6: (55) if r3 != 0x0 goto pc+1 ; R3_w=invP1 8: (18) r5 = 0x1 ; R5_w=inv1 10: (b4) w3 = 1 ; R3_w=inv1 ; out->anon_val2_exists = bpf_core_enum_value_exists(anon_enum, ANON_ENUM_VAL2); 11: (55) if r4 != 0x0 goto pc+1 ; R4_w=invP0 12: (b4) w3 = 0 ; R3=inv0 13: (18) r0 = 0x1 ; R0_w=inv1 15: (b4) w4 = 1 ; R4_w=inv1 ; out->anon_val1_exists = bpf_core_enum_value_exists(anon, ANON_ENUM_VAL1); 16: (55) if r5 != 0x0 goto pc+1 ; R5=invP1 18: (18) r6 = 0x0 ; R6_w=inv0 20: (b4) w5 = 1 ; R5_w=inv1 ; out->named_val3_exists = bpf_core_enum_value_exists(enum named_enum, NAMED_ENUM_VAL3); 21: (55) if r0 != 0x0 goto pc+1 ; R0_w=invP1 23: (b4) w0 = 1 ; R0_w=inv1 ; out->named_val2_exists = bpf_core_enum_value_exists(enum named_enum, NAMED_ENUM_VAL2); 24: (55) if r6 != 0x0 goto pc+1 ; R6_w=invP0 25: (b4) w0 = 0 ; R0=inv0 26: (18) r6 = 0x1 ; R6_w=inv1 ; out->named_val1_exists = bpf_core_enum_value_exists(named, NAMED_ENUM_VAL1); 28: (55) if r6 != 0x0 goto pc+1 ; R6_w=invP1 ; out->named_val1_exists = bpf_core_enum_value_exists(named, NAMED_ENUM_VAL1); 30: (18) r6 = 0xc0080000028d0000 ; R6_w=map_value(id=0,off=0,ks=4,vs=513,imm=0) 32: (73) *(u8 *)(r6 +256) = r2 ; R2=inv1 R6_w=map_value(id=0,off=0,ks=4,vs=513,imm=0) ; out->named_val2_exists = bpf_core_enum_value_exists(enum named_enum, NAMED_ENUM_VAL2); 33: (73) *(u8 *)(r6 +257) = r0 ; R0=inv0 R6_w=map_value(id=0,off=0,ks=4,vs=513,imm=0) ; out->named_val3_exists = bpf_core_enum_value_exists(enum named_enum, NAMED_ENUM_VAL3); 34: (73) *(u8 *)(r6 +258) = r5 ; R5=inv1 R6_w=map_value(id=0,off=0,ks=4,vs=513,imm=0) ; out->anon_val1_exists = bpf_core_enum_value_exists(anon, ANON_ENUM_VAL1); 35: (73) *(u8 *)(r6 +259) = r4 ; R4=inv1 R6_w=map_value(id=0,off=0,ks=4,vs=513,imm=0) ; out->anon_val2_exists = bpf_core_enum_value_exists(anon_enum, ANON_ENUM_VAL2); 36: (73) *(u8 *)(r6 +260) = r3 ; R3=inv0 R6_w=map_value(id=0,off=0,ks=4,vs=513,imm=0) ; out->anon_val3_exists = bpf_core_enum_value_exists(anon_enum, ANON_ENUM_VAL3); 37: (73) *(u8 *)(r6 +261) = r1 ; R1=inv1 R6_w=map_value(id=0,off=0,ks=4,vs=513,imm=0) 38: (18) r1 = 0x1 ; R1_w=inv1 ; out->named_val1 = bpf_core_enum_value(named, NAMED_ENUM_VAL1); 40: (63) *(u32 *)(r6 +264) = r1 ; R1_w=inv1 R6_w=map_value(id=0,off=0,ks=4,vs=513,imm=0) 41: (85) call unknown#195896080 invalid func unknown#195896080 processed 30 insns (limit 1000000) max_states_per_insn 0 total_states 2 peak_states 2 mark_read 2 -- END PROG LOAD LOG -- libbpf: failed to load program 'test_core_enumval' libbpf: failed to load object 'test_core_reloc_enumval.o' #38/71 core_reloc/enumval___err_missing:OK #38 core_reloc:FAIL All error logs: #38 core_reloc:FAIL Summary: 0/69 PASSED, 0 SKIPPED, 1 FAILED Successfully unloaded bpf_testmod.ko. :: [ FAIL ] :: Command './test_progs -vv -t core_reloc' (Expected 0, got 1, score 10) [15:46:03][root@168.mr1370_220926_1234.el9.ppc64le]# './test_progs-no_alu32 -t core_reloc' test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/1 core_reloc/kernel:OK test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: prog 'test_core_module_probed': BPF program load failed: Invalid argument libbpf: prog 'test_core_module_probed': -- BEGIN PROG LOAD LOG -- R1 type=ctx expected=fp 0: R1=ctx(id=0,off=0,imm=0) R10=fp0 ; int BPF_PROG(test_core_module_probed, 0: (79) r7 = *(u64 *)(r1 +8) ; R1=ctx(id=0,off=0,imm=0) R7_w=inv(id=0) 1: (79) r6 = *(u64 *)(r1 +0) ; R1=ctx(id=0,off=0,imm=0) R6_w=inv(id=0) ; __u64 pid_tgid = bpf_get_current_pid_tgid(); 2: (85) call bpf_get_current_pid_tgid#14 ; R0_w=inv(id=0) 3: (bf) r8 = r0 ; R0_w=inv(id=1) R8_w=inv(id=1) ; if (data.my_pid_tgid != pid_tgid) 4: (18) r1 = 0xc0080000041d0000 ; R1_w=map_value(id=0,off=0,ks=4,vs=528,imm=0) 6: (79) r1 = *(u64 *)(r1 +520) ; R1_w=inv(id=0) ; if (data.my_pid_tgid != pid_tgid) 7: (5d) if r1 != r8 goto pc+73 ; R1_w=inv(id=0) R8_w=inv(id=1) 8: (b7) r1 = 2296 ; R1_w=inv2296 9: (bf) r3 = r6 ; R3_w=inv(id=2) R6_w=inv(id=2) 10: (0f) r3 += r1 ; R1_w=inv2296 R3_w=inv(id=0) 11: (bf) r1 = r10 ; R1_w=fp0 R10=fp0 ; 12: (07) r1 += -8 ; R1_w=fp-8 ; if (BPF_CORE_READ(task, pid) != real_pid || BPF_CORE_READ(task, tgid) != real_tgid) 13: (b7) r2 = 4 ; R2_w=inv4 14: (85) call bpf_probe_read_kernel#113 ; R0=inv(id=0) fp-8=????mmmm ; if (BPF_CORE_READ(task, pid) != real_pid || BPF_CORE_READ(task, tgid) != real_tgid) 15: (61) r1 = *(u32 *)(r10 -8) ; R1_w=inv(id=0,umax_value=4294967295,var_off=(0x0; 0xffffffff)) R10=fp0 ; __u32 real_pid = (__u32)pid_tgid; 16: (bf) r2 = r8 ; R2_w=inv(id=1) R8=inv(id=1) 17: (67) r2 <<= 32 ; R2_w=inv(id=0,smax_value=9223372032559808512,umax_value=18446744069414584320,var_off=(0x0; 0xffffffff00000000),s32_min_value=0,s32_max_value=0,u32_max_value=0) 18: (77) r2 >>= 32 ; R2_w=inv(id=0,umax_value=4294967295,var_off=(0x0; 0xffffffff)) ; if (BPF_CORE_READ(task, pid) != real_pid || BPF_CORE_READ(task, tgid) != real_tgid) 19: (5d) if r1 != r2 goto pc+61 ; R1_w=inv(id=0,umax_value=4294967295,var_off=(0x0; 0xffffffff)) R2_w=inv(id=0,umax_value=4294967295,var_off=(0x0; 0xffffffff)) 20: (77) r8 >>= 32 ; R8_w=inv(id=0,umax_value=4294967295,var_off=(0x0; 0xffffffff)) 21: (b7) r1 = 2300 ; R1_w=inv2300 22: (bf) r3 = r6 ; R3_w=inv(id=2) R6=inv(id=2) 23: (0f) r3 += r1 ; R1_w=inv2300 R3_w=inv(id=0) 24: (bf) r1 = r10 ; R1_w=fp0 R10=fp0 ; 25: (07) r1 += -8 ; R1_w=fp-8 ; if (BPF_CORE_READ(task, pid) != real_pid || BPF_CORE_READ(task, tgid) != real_tgid) 26: (b7) r2 = 4 ; R2_w=inv4 27: (85) call bpf_probe_read_kernel#113 ; R0=inv(id=0) fp-8=????mmmm ; if (BPF_CORE_READ(task, pid) != real_pid || BPF_CORE_READ(task, tgid) != real_tgid) 28: (61) r1 = *(u32 *)(r10 -8) ; R1_w=inv(id=0,umax_value=4294967295,var_off=(0x0; 0xffffffff)) R10=fp0 ; if (BPF_CORE_READ(task, pid) != real_pid || BPF_CORE_READ(task, tgid) != real_tgid) 29: (5d) if r1 != r8 goto pc+51 ; R1_w=inv(id=0,umax_value=4294967295,var_off=(0x0; 0xffffffff)) R8=inv(id=0,umax_value=4294967295,var_off=(0x0; 0xffffffff)) 30: (85) call unknown#195896080 invalid func unknown#195896080 processed 30 insns (limit 1000000) max_states_per_insn 0 total_states 2 peak_states 2 mark_read 1 -- END PROG LOAD LOG -- libbpf: failed to load program 'test_core_module_probed' libbpf: failed to load object 'test_core_reloc_module.o' test_core_reloc:FAIL:obj_load unexpected error: -22 (errno 22) test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/1 core_reloc/kernel:OK test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: prog 'test_core_module_probed': BPF program load failed: Invalid argument libbpf: prog 'test_core_module_probed': -- BEGIN PROG LOAD LOG -- R1 type=ctx expected=fp 0: R1=ctx(id=0,off=0,imm=0) R10=fp0 ; int BPF_PROG(test_core_module_probed, 0: (79) r7 = *(u64 *)(r1 +8) ; R1=ctx(id=0,off=0,imm=0) R7_w=inv(id=0) 1: (79) r6 = *(u64 *)(r1 +0) ; R1=ctx(id=0,off=0,imm=0) R6_w=inv(id=0) ; __u64 pid_tgid = bpf_get_current_pid_tgid(); 2: (85) call bpf_get_current_pid_tgid#14 ; R0_w=inv(id=0) 3: (bf) r8 = r0 ; R0_w=inv(id=1) R8_w=inv(id=1) ; if (data.my_pid_tgid != pid_tgid) 4: (18) r1 = 0xc0080000041d0000 ; R1_w=map_value(id=0,off=0,ks=4,vs=528,imm=0) 6: (79) r1 = *(u64 *)(r1 +520) ; R1_w=inv(id=0) ; if (data.my_pid_tgid != pid_tgid) 7: (5d) if r1 != r8 goto pc+73 ; R1_w=inv(id=0) R8_w=inv(id=1) 8: (b7) r1 = 2296 ; R1_w=inv2296 9: (bf) r3 = r6 ; R3_w=inv(id=2) R6_w=inv(id=2) 10: (0f) r3 += r1 ; R1_w=inv2296 R3_w=inv(id=0) 11: (bf) r1 = r10 ; R1_w=fp0 R10=fp0 ; 12: (07) r1 += -8 ; R1_w=fp-8 ; if (BPF_CORE_READ(task, pid) != real_pid || BPF_CORE_READ(task, tgid) != real_tgid) 13: (b7) r2 = 4 ; R2_w=inv4 14: (85) call bpf_probe_read_kernel#113 ; R0=inv(id=0) fp-8=????mmmm ; if (BPF_CORE_READ(task, pid) != real_pid || BPF_CORE_READ(task, tgid) != real_tgid) 15: (61) r1 = *(u32 *)(r10 -8) ; R1_w=inv(id=0,umax_value=4294967295,var_off=(0x0; 0xffffffff)) R10=fp0 ; __u32 real_pid = (__u32)pid_tgid; 16: (bf) r2 = r8 ; R2_w=inv(id=1) R8=inv(id=1) 17: (67) r2 <<= 32 ; R2_w=inv(id=0,smax_value=9223372032559808512,umax_value=18446744069414584320,var_off=(0x0; 0xffffffff00000000),s32_min_value=0,s32_max_value=0,u32_max_value=0) 18: (77) r2 >>= 32 ; R2_w=inv(id=0,umax_value=4294967295,var_off=(0x0; 0xffffffff)) ; if (BPF_CORE_READ(task, pid) != real_pid || BPF_CORE_READ(task, tgid) != real_tgid) 19: (5d) if r1 != r2 goto pc+61 ; R1_w=inv(id=0,umax_value=4294967295,var_off=(0x0; 0xffffffff)) R2_w=inv(id=0,umax_value=4294967295,var_off=(0x0; 0xffffffff)) 20: (77) r8 >>= 32 ; R8_w=inv(id=0,umax_value=4294967295,var_off=(0x0; 0xffffffff)) 21: (b7) r1 = 2300 ; R1_w=inv2300 22: (bf) r3 = r6 ; R3_w=inv(id=2) R6=inv(id=2) 23: (0f) r3 += r1 ; R1_w=inv2300 R3_w=inv(id=0) 24: (bf) r1 = r10 ; R1_w=fp0 R10=fp0 ; 25: (07) r1 += -8 ; R1_w=fp-8 ; if (BPF_CORE_READ(task, pid) != real_pid || BPF_CORE_READ(task, tgid) != real_tgid) 26: (b7) r2 = 4 ; R2_w=inv4 27: (85) call bpf_probe_read_kernel#113 ; R0=inv(id=0) fp-8=????mmmm ; if (BPF_CORE_READ(task, pid) != real_pid || BPF_CORE_READ(task, tgid) != real_tgid) 28: (61) r1 = *(u32 *)(r10 -8) ; R1_w=inv(id=0,umax_value=4294967295,var_off=(0x0; 0xffffffff)) R10=fp0 ; if (BPF_CORE_READ(task, pid) != real_pid || BPF_CORE_READ(task, tgid) != real_tgid) 29: (5d) if r1 != r8 goto pc+51 ; R1_w=inv(id=0,umax_value=4294967295,var_off=(0x0; 0xffffffff)) R8=inv(id=0,umax_value=4294967295,var_off=(0x0; 0xffffffff)) 30: (85) call unknown#195896080 invalid func unknown#195896080 processed 30 insns (limit 1000000) max_states_per_insn 0 total_states 2 peak_states 2 mark_read 1 -- END PROG LOAD LOG -- libbpf: failed to load program 'test_core_module_probed' libbpf: failed to load object 'test_core_reloc_module.o' test_core_reloc:FAIL:obj_load unexpected error: -22 (errno 22) #38/2 core_reloc/module_probed:FAIL test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: prog 'test_core_module_probed': BPF program load failed: Invalid argument libbpf: prog 'test_core_module_probed': -- BEGIN PROG LOAD LOG -- R1 type=ctx expected=fp 0: R1=ctx(id=0,off=0,imm=0) R10=fp0 ; int BPF_PROG(test_core_module_probed, 0: (79) r7 = *(u64 *)(r1 +8) ; R1=ctx(id=0,off=0,imm=0) R7_w=inv(id=0) 1: (79) r6 = *(u64 *)(r1 +0) ; R1=ctx(id=0,off=0,imm=0) R6_w=inv(id=0) ; __u64 pid_tgid = bpf_get_current_pid_tgid(); 2: (85) call bpf_get_current_pid_tgid#14 ; R0_w=inv(id=0) 3: (bf) r8 = r0 ; R0_w=inv(id=1) R8_w=inv(id=1) ; if (data.my_pid_tgid != pid_tgid) 4: (18) r1 = 0xc008000004460000 ; R1_w=map_value(id=0,off=0,ks=4,vs=528,imm=0) 6: (79) r1 = *(u64 *)(r1 +520) ; R1_w=inv(id=0) ; if (data.my_pid_tgid != pid_tgid) 7: (5d) if r1 != r8 goto pc+73 ; R1_w=inv(id=0) R8_w=inv(id=1) 8: (b7) r1 = 2296 ; R1_w=inv2296 9: (bf) r3 = r6 ; R3_w=inv(id=2) R6_w=inv(id=2) 10: (0f) r3 += r1 ; R1_w=inv2296 R3_w=inv(id=0) 11: (bf) r1 = r10 ; R1_w=fp0 R10=fp0 ; 12: (07) r1 += -8 ; R1_w=fp-8 ; if (BPF_CORE_READ(task, pid) != real_pid || BPF_CORE_READ(task, tgid) != real_tgid) 13: (b7) r2 = 4 ; R2_w=inv4 14: (85) call bpf_probe_read_kernel#113 ; R0=inv(id=0) fp-8=????mmmm ; if (BPF_CORE_READ(task, pid) != real_pid || BPF_CORE_READ(task, tgid) != real_tgid) 15: (61) r1 = *(u32 *)(r10 -8) ; R1_w=inv(id=0,umax_value=4294967295,var_off=(0x0; 0xffffffff)) R10=fp0 ; __u32 real_pid = (__u32)pid_tgid; 16: (bf) r2 = r8 ; R2_w=inv(id=1) R8=inv(id=1) 17: (67) r2 <<= 32 ; R2_w=inv(id=0,smax_value=9223372032559808512,umax_value=18446744069414584320,var_off=(0x0; 0xffffffff00000000),s32_min_value=0,s32_max_value=0,u32_max_value=0) 18: (77) r2 >>= 32 ; R2_w=inv(id=0,umax_value=4294967295,var_off=(0x0; 0xffffffff)) ; if (BPF_CORE_READ(task, pid) != real_pid || BPF_CORE_READ(task, tgid) != real_tgid) 19: (5d) if r1 != r2 goto pc+61 ; R1_w=inv(id=0,umax_value=4294967295,var_off=(0x0; 0xffffffff)) R2_w=inv(id=0,umax_value=4294967295,var_off=(0x0; 0xffffffff)) 20: (77) r8 >>= 32 ; R8_w=inv(id=0,umax_value=4294967295,var_off=(0x0; 0xffffffff)) 21: (b7) r1 = 2300 ; R1_w=inv2300 22: (bf) r3 = r6 ; R3_w=inv(id=2) R6=inv(id=2) 23: (0f) r3 += r1 ; R1_w=inv2300 R3_w=inv(id=0) 24: (bf) r1 = r10 ; R1_w=fp0 R10=fp0 ; 25: (07) r1 += -8 ; R1_w=fp-8 ; if (BPF_CORE_READ(task, pid) != real_pid || BPF_CORE_READ(task, tgid) != real_tgid) 26: (b7) r2 = 4 ; R2_w=inv4 27: (85) call bpf_probe_read_kernel#113 ; R0=inv(id=0) fp-8=????mmmm ; if (BPF_CORE_READ(task, pid) != real_pid || BPF_CORE_READ(task, tgid) != real_tgid) 28: (61) r1 = *(u32 *)(r10 -8) ; R1_w=inv(id=0,umax_value=4294967295,var_off=(0x0; 0xffffffff)) R10=fp0 ; if (BPF_CORE_READ(task, pid) != real_pid || BPF_CORE_READ(task, tgid) != real_tgid) 29: (5d) if r1 != r8 goto pc+51 ; R1_w=inv(id=0,umax_value=4294967295,var_off=(0x0; 0xffffffff)) R8=inv(id=0,umax_value=4294967295,var_off=(0x0; 0xffffffff)) 30: (85) call unknown#195896080 invalid func unknown#195896080 processed 30 insns (limit 1000000) max_states_per_insn 0 total_states 2 peak_states 2 mark_read 1 -- END PROG LOAD LOG -- libbpf: failed to load program 'test_core_module_probed' libbpf: failed to load object 'test_core_reloc_module.o' test_core_reloc:FAIL:obj_load unexpected error: -22 (errno 22) test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/1 core_reloc/kernel:OK test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: prog 'test_core_module_probed': BPF program load failed: Invalid argument libbpf: prog 'test_core_module_probed': -- BEGIN PROG LOAD LOG -- R1 type=ctx expected=fp 0: R1=ctx(id=0,off=0,imm=0) R10=fp0 ; int BPF_PROG(test_core_module_probed, 0: (79) r7 = *(u64 *)(r1 +8) ; R1=ctx(id=0,off=0,imm=0) R7_w=inv(id=0) 1: (79) r6 = *(u64 *)(r1 +0) ; R1=ctx(id=0,off=0,imm=0) R6_w=inv(id=0) ; __u64 pid_tgid = bpf_get_current_pid_tgid(); 2: (85) call bpf_get_current_pid_tgid#14 ; R0_w=inv(id=0) 3: (bf) r8 = r0 ; R0_w=inv(id=1) R8_w=inv(id=1) ; if (data.my_pid_tgid != pid_tgid) 4: (18) r1 = 0xc0080000041d0000 ; R1_w=map_value(id=0,off=0,ks=4,vs=528,imm=0) 6: (79) r1 = *(u64 *)(r1 +520) ; R1_w=inv(id=0) ; if (data.my_pid_tgid != pid_tgid) 7: (5d) if r1 != r8 goto pc+73 ; R1_w=inv(id=0) R8_w=inv(id=1) 8: (b7) r1 = 2296 ; R1_w=inv2296 9: (bf) r3 = r6 ; R3_w=inv(id=2) R6_w=inv(id=2) 10: (0f) r3 += r1 ; R1_w=inv2296 R3_w=inv(id=0) 11: (bf) r1 = r10 ; R1_w=fp0 R10=fp0 ; 12: (07) r1 += -8 ; R1_w=fp-8 ; if (BPF_CORE_READ(task, pid) != real_pid || BPF_CORE_READ(task, tgid) != real_tgid) 13: (b7) r2 = 4 ; R2_w=inv4 14: (85) call bpf_probe_read_kernel#113 ; R0=inv(id=0) fp-8=????mmmm ; if (BPF_CORE_READ(task, pid) != real_pid || BPF_CORE_READ(task, tgid) != real_tgid) 15: (61) r1 = *(u32 *)(r10 -8) ; R1_w=inv(id=0,umax_value=4294967295,var_off=(0x0; 0xffffffff)) R10=fp0 ; __u32 real_pid = (__u32)pid_tgid; 16: (bf) r2 = r8 ; R2_w=inv(id=1) R8=inv(id=1) 17: (67) r2 <<= 32 ; R2_w=inv(id=0,smax_value=9223372032559808512,umax_value=18446744069414584320,var_off=(0x0; 0xffffffff00000000),s32_min_value=0,s32_max_value=0,u32_max_value=0) 18: (77) r2 >>= 32 ; R2_w=inv(id=0,umax_value=4294967295,var_off=(0x0; 0xffffffff)) ; if (BPF_CORE_READ(task, pid) != real_pid || BPF_CORE_READ(task, tgid) != real_tgid) 19: (5d) if r1 != r2 goto pc+61 ; R1_w=inv(id=0,umax_value=4294967295,var_off=(0x0; 0xffffffff)) R2_w=inv(id=0,umax_value=4294967295,var_off=(0x0; 0xffffffff)) 20: (77) r8 >>= 32 ; R8_w=inv(id=0,umax_value=4294967295,var_off=(0x0; 0xffffffff)) 21: (b7) r1 = 2300 ; R1_w=inv2300 22: (bf) r3 = r6 ; R3_w=inv(id=2) R6=inv(id=2) 23: (0f) r3 += r1 ; R1_w=inv2300 R3_w=inv(id=0) 24: (bf) r1 = r10 ; R1_w=fp0 R10=fp0 ; 25: (07) r1 += -8 ; R1_w=fp-8 ; if (BPF_CORE_READ(task, pid) != real_pid || BPF_CORE_READ(task, tgid) != real_tgid) 26: (b7) r2 = 4 ; R2_w=inv4 27: (85) call bpf_probe_read_kernel#113 ; R0=inv(id=0) fp-8=????mmmm ; if (BPF_CORE_READ(task, pid) != real_pid || BPF_CORE_READ(task, tgid) != real_tgid) 28: (61) r1 = *(u32 *)(r10 -8) ; R1_w=inv(id=0,umax_value=4294967295,var_off=(0x0; 0xffffffff)) R10=fp0 ; if (BPF_CORE_READ(task, pid) != real_pid || BPF_CORE_READ(task, tgid) != real_tgid) 29: (5d) if r1 != r8 goto pc+51 ; R1_w=inv(id=0,umax_value=4294967295,var_off=(0x0; 0xffffffff)) R8=inv(id=0,umax_value=4294967295,var_off=(0x0; 0xffffffff)) 30: (85) call unknown#195896080 invalid func unknown#195896080 processed 30 insns (limit 1000000) max_states_per_insn 0 total_states 2 peak_states 2 mark_read 1 -- END PROG LOAD LOG -- libbpf: failed to load program 'test_core_module_probed' libbpf: failed to load object 'test_core_reloc_module.o' test_core_reloc:FAIL:obj_load unexpected error: -22 (errno 22) #38/2 core_reloc/module_probed:FAIL test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: prog 'test_core_module_probed': BPF program load failed: Invalid argument libbpf: prog 'test_core_module_probed': -- BEGIN PROG LOAD LOG -- R1 type=ctx expected=fp 0: R1=ctx(id=0,off=0,imm=0) R10=fp0 ; int BPF_PROG(test_core_module_probed, 0: (79) r7 = *(u64 *)(r1 +8) ; R1=ctx(id=0,off=0,imm=0) R7_w=inv(id=0) 1: (79) r6 = *(u64 *)(r1 +0) ; R1=ctx(id=0,off=0,imm=0) R6_w=inv(id=0) ; __u64 pid_tgid = bpf_get_current_pid_tgid(); 2: (85) call bpf_get_current_pid_tgid#14 ; R0_w=inv(id=0) 3: (bf) r8 = r0 ; R0_w=inv(id=1) R8_w=inv(id=1) ; if (data.my_pid_tgid != pid_tgid) 4: (18) r1 = 0xc008000004460000 ; R1_w=map_value(id=0,off=0,ks=4,vs=528,imm=0) 6: (79) r1 = *(u64 *)(r1 +520) ; R1_w=inv(id=0) ; if (data.my_pid_tgid != pid_tgid) 7: (5d) if r1 != r8 goto pc+73 ; R1_w=inv(id=0) R8_w=inv(id=1) 8: (b7) r1 = 2296 ; R1_w=inv2296 9: (bf) r3 = r6 ; R3_w=inv(id=2) R6_w=inv(id=2) 10: (0f) r3 += r1 ; R1_w=inv2296 R3_w=inv(id=0) 11: (bf) r1 = r10 ; R1_w=fp0 R10=fp0 ; 12: (07) r1 += -8 ; R1_w=fp-8 ; if (BPF_CORE_READ(task, pid) != real_pid || BPF_CORE_READ(task, tgid) != real_tgid) 13: (b7) r2 = 4 ; R2_w=inv4 14: (85) call bpf_probe_read_kernel#113 ; R0=inv(id=0) fp-8=????mmmm ; if (BPF_CORE_READ(task, pid) != real_pid || BPF_CORE_READ(task, tgid) != real_tgid) 15: (61) r1 = *(u32 *)(r10 -8) ; R1_w=inv(id=0,umax_value=4294967295,var_off=(0x0; 0xffffffff)) R10=fp0 ; __u32 real_pid = (__u32)pid_tgid; 16: (bf) r2 = r8 ; R2_w=inv(id=1) R8=inv(id=1) 17: (67) r2 <<= 32 ; R2_w=inv(id=0,smax_value=9223372032559808512,umax_value=18446744069414584320,var_off=(0x0; 0xffffffff00000000),s32_min_value=0,s32_max_value=0,u32_max_value=0) 18: (77) r2 >>= 32 ; R2_w=inv(id=0,umax_value=4294967295,var_off=(0x0; 0xffffffff)) ; if (BPF_CORE_READ(task, pid) != real_pid || BPF_CORE_READ(task, tgid) != real_tgid) 19: (5d) if r1 != r2 goto pc+61 ; R1_w=inv(id=0,umax_value=4294967295,var_off=(0x0; 0xffffffff)) R2_w=inv(id=0,umax_value=4294967295,var_off=(0x0; 0xffffffff)) 20: (77) r8 >>= 32 ; R8_w=inv(id=0,umax_value=4294967295,var_off=(0x0; 0xffffffff)) 21: (b7) r1 = 2300 ; R1_w=inv2300 22: (bf) r3 = r6 ; R3_w=inv(id=2) R6=inv(id=2) 23: (0f) r3 += r1 ; R1_w=inv2300 R3_w=inv(id=0) 24: (bf) r1 = r10 ; R1_w=fp0 R10=fp0 ; 25: (07) r1 += -8 ; R1_w=fp-8 ; if (BPF_CORE_READ(task, pid) != real_pid || BPF_CORE_READ(task, tgid) != real_tgid) 26: (b7) r2 = 4 ; R2_w=inv4 27: (85) call bpf_probe_read_kernel#113 ; R0=inv(id=0) fp-8=????mmmm ; if (BPF_CORE_READ(task, pid) != real_pid || BPF_CORE_READ(task, tgid) != real_tgid) 28: (61) r1 = *(u32 *)(r10 -8) ; R1_w=inv(id=0,umax_value=4294967295,var_off=(0x0; 0xffffffff)) R10=fp0 ; if (BPF_CORE_READ(task, pid) != real_pid || BPF_CORE_READ(task, tgid) != real_tgid) 29: (5d) if r1 != r8 goto pc+51 ; R1_w=inv(id=0,umax_value=4294967295,var_off=(0x0; 0xffffffff)) R8=inv(id=0,umax_value=4294967295,var_off=(0x0; 0xffffffff)) 30: (85) call unknown#195896080 invalid func unknown#195896080 processed 30 insns (limit 1000000) max_states_per_insn 0 total_states 2 peak_states 2 mark_read 1 -- END PROG LOAD LOG -- libbpf: failed to load program 'test_core_module_probed' libbpf: failed to load object 'test_core_reloc_module.o' test_core_reloc:FAIL:obj_load unexpected error: -22 (errno 22) #38/3 core_reloc/module_direct:FAIL test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/4 core_reloc/flavors:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: prog 'test_core_flavors': BPF program load failed: Invalid argument libbpf: prog 'test_core_flavors': -- BEGIN PROG LOAD LOG -- arg#0 reference type('UNKNOWN ') size cannot be determined: -22 0: R1=ctx(id=0,off=0,imm=0) R10=fp0 ; int test_core_flavors(void *ctx) 0: (85) call unknown#195896080 invalid func unknown#195896080 processed 1 insns (limit 1000000) max_states_per_insn 0 total_states 0 peak_states 0 mark_read 0 -- END PROG LOAD LOG -- libbpf: failed to load program 'test_core_flavors' libbpf: failed to load object 'test_core_reloc_flavors.o' #38/5 core_reloc/flavors__err_wrong_name:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/6 core_reloc/nesting:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/7 core_reloc/nesting___anon_embed:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/8 core_reloc/nesting___struct_union_mixup:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/9 core_reloc/nesting___extra_nesting:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/10 core_reloc/nesting___dup_compat_types:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: prog 'test_core_nesting': BPF program load failed: Invalid argument libbpf: prog 'test_core_nesting': -- BEGIN PROG LOAD LOG -- arg#0 reference type('UNKNOWN ') size cannot be determined: -22 0: R1=ctx(id=0,off=0,imm=0) R10=fp0 ; int test_core_nesting(void *ctx) 0: (b7) r1 = 0 ; R1_w=inv0 1: (18) r6 = 0xc008000003110000 ; R6_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 3: (18) r3 = 0xc008000003110000 ; R3_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 5: (0f) r3 += r1 ; R1_w=invP0 R3_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) ; if (CORE_READ(&out->a.a.a, &in->a.a.a)) 6: (18) r1 = 0xc008000003110000 ; R1_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 8: (07) r1 += 256 ; R1_w=map_value(id=0,off=256,ks=4,vs=512,imm=0) 9: (b7) r2 = 4 ; R2_w=inv4 10: (85) call bpf_probe_read_kernel#113 ; R0_w=inv(id=0) 11: (bf) r1 = r0 ; R0_w=inv(id=1) R1_w=inv(id=1) 12: (b7) r0 = 1 ; R0_w=inv1 ; if (CORE_READ(&out->a.a.a, &in->a.a.a)) 13: (55) if r1 != 0x0 goto pc+12 ; R1_w=inv0 14: (85) call unknown#195896080 invalid func unknown#195896080 processed 12 insns (limit 1000000) max_states_per_insn 0 total_states 0 peak_states 0 mark_read 0 -- END PROG LOAD LOG -- libbpf: failed to load program 'test_core_nesting' libbpf: failed to load object 'test_core_reloc_nesting.o' #38/11 core_reloc/nesting___err_missing_field:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: prog 'test_core_nesting': BPF program load failed: Invalid argument libbpf: prog 'test_core_nesting': -- BEGIN PROG LOAD LOG -- arg#0 reference type('UNKNOWN ') size cannot be determined: -22 0: R1=ctx(id=0,off=0,imm=0) R10=fp0 ; int test_core_nesting(void *ctx) 0: (b7) r1 = 0 ; R1_w=inv0 1: (18) r6 = 0xc008000003c40000 ; R6_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 3: (18) r3 = 0xc008000003c40000 ; R3_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 5: (0f) r3 += r1 ; R1_w=invP0 R3_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) ; if (CORE_READ(&out->a.a.a, &in->a.a.a)) 6: (18) r1 = 0xc008000003c40000 ; R1_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 8: (07) r1 += 256 ; R1_w=map_value(id=0,off=256,ks=4,vs=512,imm=0) 9: (b7) r2 = 4 ; R2_w=inv4 10: (85) call bpf_probe_read_kernel#113 ; R0_w=inv(id=0) 11: (bf) r1 = r0 ; R0_w=inv(id=1) R1_w=inv(id=1) 12: (b7) r0 = 1 ; R0_w=inv1 ; if (CORE_READ(&out->a.a.a, &in->a.a.a)) 13: (55) if r1 != 0x0 goto pc+12 ; R1_w=inv0 14: (85) call unknown#195896080 invalid func unknown#195896080 processed 12 insns (limit 1000000) max_states_per_insn 0 total_states 0 peak_states 0 mark_read 0 -- END PROG LOAD LOG -- libbpf: failed to load program 'test_core_nesting' libbpf: failed to load object 'test_core_reloc_nesting.o' #38/12 core_reloc/nesting___err_array_field:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: prog 'test_core_nesting': BPF program load failed: Invalid argument libbpf: prog 'test_core_nesting': -- BEGIN PROG LOAD LOG -- arg#0 reference type('UNKNOWN ') size cannot be determined: -22 0: R1=ctx(id=0,off=0,imm=0) R10=fp0 ; int test_core_nesting(void *ctx) 0: (b7) r1 = 0 ; R1_w=inv0 1: (18) r6 = 0xc008000004070000 ; R6_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 3: (18) r3 = 0xc008000004070000 ; R3_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 5: (0f) r3 += r1 ; R1_w=invP0 R3_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) ; if (CORE_READ(&out->a.a.a, &in->a.a.a)) 6: (18) r1 = 0xc008000004070000 ; R1_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 8: (07) r1 += 256 ; R1_w=map_value(id=0,off=256,ks=4,vs=512,imm=0) 9: (b7) r2 = 4 ; R2_w=inv4 10: (85) call bpf_probe_read_kernel#113 ; R0_w=inv(id=0) 11: (bf) r1 = r0 ; R0_w=inv(id=1) R1_w=inv(id=1) 12: (b7) r0 = 1 ; R0_w=inv1 ; if (CORE_READ(&out->a.a.a, &in->a.a.a)) 13: (55) if r1 != 0x0 goto pc+12 ; R1_w=inv0 14: (85) call unknown#195896080 invalid func unknown#195896080 processed 12 insns (limit 1000000) max_states_per_insn 0 total_states 0 peak_states 0 mark_read 0 -- END PROG LOAD LOG -- libbpf: failed to load program 'test_core_nesting' libbpf: failed to load object 'test_core_reloc_nesting.o' #38/13 core_reloc/nesting___err_missing_container:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: prog 'test_core_nesting': BPF program load failed: Invalid argument libbpf: prog 'test_core_nesting': -- BEGIN PROG LOAD LOG -- arg#0 reference type('UNKNOWN ') size cannot be determined: -22 0: R1=ctx(id=0,off=0,imm=0) R10=fp0 ; int test_core_nesting(void *ctx) 0: (b7) r1 = 0 ; R1_w=inv0 1: (18) r6 = 0xc0080000041e0000 ; R6_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 3: (18) r3 = 0xc0080000041e0000 ; R3_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 5: (0f) r3 += r1 ; R1_w=invP0 R3_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) ; if (CORE_READ(&out->a.a.a, &in->a.a.a)) 6: (18) r1 = 0xc0080000041e0000 ; R1_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 8: (07) r1 += 256 ; R1_w=map_value(id=0,off=256,ks=4,vs=512,imm=0) 9: (b7) r2 = 4 ; R2_w=inv4 10: (85) call bpf_probe_read_kernel#113 ; R0_w=inv(id=0) 11: (bf) r1 = r0 ; R0_w=inv(id=1) R1_w=inv(id=1) 12: (b7) r0 = 1 ; R0_w=inv1 ; if (CORE_READ(&out->a.a.a, &in->a.a.a)) 13: (55) if r1 != 0x0 goto pc+12 ; R1_w=inv0 14: (85) call unknown#195896080 invalid func unknown#195896080 processed 12 insns (limit 1000000) max_states_per_insn 0 total_states 0 peak_states 0 mark_read 0 -- END PROG LOAD LOG -- libbpf: failed to load program 'test_core_nesting' libbpf: failed to load object 'test_core_reloc_nesting.o' #38/14 core_reloc/nesting___err_nonstruct_container:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: prog 'test_core_nesting': BPF program load failed: Invalid argument libbpf: prog 'test_core_nesting': -- BEGIN PROG LOAD LOG -- arg#0 reference type('UNKNOWN ') size cannot be determined: -22 0: R1=ctx(id=0,off=0,imm=0) R10=fp0 ; int test_core_nesting(void *ctx) 0: (b7) r1 = 0 ; R1_w=inv0 1: (18) r6 = 0xc008000004650000 ; R6_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 3: (18) r3 = 0xc008000004650000 ; R3_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 5: (0f) r3 += r1 ; R1_w=invP0 R3_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) ; if (CORE_READ(&out->a.a.a, &in->a.a.a)) 6: (18) r1 = 0xc008000004650000 ; R1_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 8: (07) r1 += 256 ; R1_w=map_value(id=0,off=256,ks=4,vs=512,imm=0) 9: (b7) r2 = 4 ; R2_w=inv4 10: (85) call bpf_probe_read_kernel#113 ; R0_w=inv(id=0) 11: (bf) r1 = r0 ; R0_w=inv(id=1) R1_w=inv(id=1) 12: (b7) r0 = 1 ; R0_w=inv1 ; if (CORE_READ(&out->a.a.a, &in->a.a.a)) 13: (55) if r1 != 0x0 goto pc+12 ; R1_w=inv0 14: (85) call unknown#195896080 invalid func unknown#195896080 processed 12 insns (limit 1000000) max_states_per_insn 0 total_states 0 peak_states 0 mark_read 0 -- END PROG LOAD LOG -- libbpf: failed to load program 'test_core_nesting' libbpf: failed to load object 'test_core_reloc_nesting.o' #38/15 core_reloc/nesting___err_array_container:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: prog 'test_core_nesting': relo #1: field offset ambiguity: 64 != 32 libbpf: prog 'test_core_nesting': relo #1: failed to relocate: -22 libbpf: failed to perform CO-RE relocations: -22 libbpf: failed to load object 'test_core_reloc_nesting.o' #38/16 core_reloc/nesting___err_dup_incompat_types:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: prog 'test_core_nesting': BPF program load failed: Invalid argument libbpf: prog 'test_core_nesting': -- BEGIN PROG LOAD LOG -- arg#0 reference type('UNKNOWN ') size cannot be determined: -22 0: R1=ctx(id=0,off=0,imm=0) R10=fp0 ; int test_core_nesting(void *ctx) 0: (b7) r1 = 0 ; R1_w=inv0 1: (18) r6 = 0xc0080000048a0000 ; R6_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 3: (18) r3 = 0xc0080000048a0000 ; R3_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 5: (0f) r3 += r1 ; R1_w=invP0 R3_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) ; if (CORE_READ(&out->a.a.a, &in->a.a.a)) 6: (18) r1 = 0xc0080000048a0000 ; R1_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 8: (07) r1 += 256 ; R1_w=map_value(id=0,off=256,ks=4,vs=512,imm=0) 9: (b7) r2 = 4 ; R2_w=inv4 10: (85) call bpf_probe_read_kernel#113 ; R0_w=inv(id=0) 11: (bf) r1 = r0 ; R0_w=inv(id=1) R1_w=inv(id=1) 12: (b7) r0 = 1 ; R0_w=inv1 ; if (CORE_READ(&out->a.a.a, &in->a.a.a)) 13: (55) if r1 != 0x0 goto pc+12 ; R1_w=inv0 14: (85) call unknown#195896080 invalid func unknown#195896080 processed 12 insns (limit 1000000) max_states_per_insn 0 total_states 0 peak_states 0 mark_read 0 -- END PROG LOAD LOG -- libbpf: failed to load program 'test_core_nesting' libbpf: failed to load object 'test_core_reloc_nesting.o' #38/17 core_reloc/nesting___err_partial_match_dups:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: prog 'test_core_nesting': relo #1: error matching candidate #0 [4] struct core_reloc_nesting___err_too_deep.b.b (0:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0 @ offset 4): -7 libbpf: prog 'test_core_nesting': relo #1: failed to relocate: -7 libbpf: failed to perform CO-RE relocations: -7 libbpf: failed to load object 'test_core_reloc_nesting.o' #38/18 core_reloc/nesting___err_too_deep:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/19 core_reloc/arrays:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/20 core_reloc/arrays___diff_arr_dim:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/21 core_reloc/arrays___diff_arr_val_sz:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/22 core_reloc/arrays___equiv_zero_sz_arr:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/23 core_reloc/arrays___fixed_arr:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: prog 'test_core_arrays': BPF program load failed: Invalid argument libbpf: prog 'test_core_arrays': -- BEGIN PROG LOAD LOG -- arg#0 reference type('UNKNOWN ') size cannot be determined: -22 0: R1=ctx(id=0,off=0,imm=0) R10=fp0 ; int test_core_arrays(void *ctx) 0: (85) call unknown#195896080 invalid func unknown#195896080 processed 1 insns (limit 1000000) max_states_per_insn 0 total_states 0 peak_states 0 mark_read 0 -- END PROG LOAD LOG -- libbpf: failed to load program 'test_core_arrays' libbpf: failed to load object 'test_core_reloc_arrays.o' #38/24 core_reloc/arrays___err_too_small:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: prog 'test_core_arrays': BPF program load failed: Invalid argument libbpf: prog 'test_core_arrays': -- BEGIN PROG LOAD LOG -- arg#0 reference type('UNKNOWN ') size cannot be determined: -22 0: R1=ctx(id=0,off=0,imm=0) R10=fp0 ; int test_core_arrays(void *ctx) 0: (b7) r1 = 8 ; R1_w=inv8 1: (18) r7 = 0xc008000003c70000 ; R7_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 3: (18) r3 = 0xc008000003c70000 ; R3_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 5: (0f) r3 += r1 ; R1_w=invP8 R3_w=map_value(id=0,off=8,ks=4,vs=512,imm=0) ; if (CORE_READ(&out->a2, &in->a[2])) 6: (18) r1 = 0xc008000003c70000 ; R1_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 8: (07) r1 += 256 ; R1_w=map_value(id=0,off=256,ks=4,vs=512,imm=0) 9: (b7) r2 = 4 ; R2_w=inv4 10: (85) call bpf_probe_read_kernel#113 ; R0_w=inv(id=0) 11: (b7) r6 = 1 ; R6_w=inv1 ; if (CORE_READ(&out->a2, &in->a[2])) 12: (55) if r0 != 0x0 goto pc+43 ; R0_w=inv0 13: (85) call unknown#195896080 invalid func unknown#195896080 processed 11 insns (limit 1000000) max_states_per_insn 0 total_states 0 peak_states 0 mark_read 0 -- END PROG LOAD LOG -- libbpf: failed to load program 'test_core_arrays' libbpf: failed to load object 'test_core_reloc_arrays.o' #38/25 core_reloc/arrays___err_too_shallow:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: prog 'test_core_arrays': BPF program load failed: Invalid argument libbpf: prog 'test_core_arrays': -- BEGIN PROG LOAD LOG -- arg#0 reference type('UNKNOWN ') size cannot be determined: -22 0: R1=ctx(id=0,off=0,imm=0) R10=fp0 ; int test_core_arrays(void *ctx) 0: (85) call unknown#195896080 invalid func unknown#195896080 processed 1 insns (limit 1000000) max_states_per_insn 0 total_states 0 peak_states 0 mark_read 0 -- END PROG LOAD LOG -- libbpf: failed to load program 'test_core_arrays' libbpf: failed to load object 'test_core_reloc_arrays.o' #38/26 core_reloc/arrays___err_non_array:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: prog 'test_core_arrays': BPF program load failed: Invalid argument libbpf: prog 'test_core_arrays': -- BEGIN PROG LOAD LOG -- arg#0 reference type('UNKNOWN ') size cannot be determined: -22 0: R1=ctx(id=0,off=0,imm=0) R10=fp0 ; int test_core_arrays(void *ctx) 0: (b7) r1 = 8 ; R1_w=inv8 1: (18) r7 = 0xc0080000041e0000 ; R7_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 3: (18) r3 = 0xc0080000041e0000 ; R3_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 5: (0f) r3 += r1 ; R1_w=invP8 R3_w=map_value(id=0,off=8,ks=4,vs=512,imm=0) ; if (CORE_READ(&out->a2, &in->a[2])) 6: (18) r1 = 0xc0080000041e0000 ; R1_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 8: (07) r1 += 256 ; R1_w=map_value(id=0,off=256,ks=4,vs=512,imm=0) 9: (b7) r2 = 4 ; R2_w=inv4 10: (85) call bpf_probe_read_kernel#113 ; R0_w=inv(id=0) 11: (b7) r6 = 1 ; R6_w=inv1 ; if (CORE_READ(&out->a2, &in->a[2])) 12: (55) if r0 != 0x0 goto pc+43 ; R0_w=inv0 13: (b7) r1 = 43 ; R1_w=inv43 14: (18) r3 = 0xc0080000041e0000 ; R3_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 16: (0f) r3 += r1 ; R1_w=invP43 R3_w=map_value(id=0,off=43,ks=4,vs=512,imm=0) ; if (CORE_READ(&out->b123, &in->b[1][2][3])) 17: (07) r7 += 260 ; R7_w=map_value(id=0,off=260,ks=4,vs=512,imm=0) 18: (b7) r6 = 1 ; R6_w=inv1 19: (bf) r1 = r7 ; R1_w=map_value(id=0,off=260,ks=4,vs=512,imm=0) R7_w=map_value(id=0,off=260,ks=4,vs=512,imm=0) 20: (b7) r2 = 1 ; R2_w=inv1 21: (85) call bpf_probe_read_kernel#113 ; R0=inv(id=0) ; if (CORE_READ(&out->b123, &in->b[1][2][3])) 22: (55) if r0 != 0x0 goto pc+33 ; R0=inv0 23: (85) call unknown#195896080 invalid func unknown#195896080 processed 20 insns (limit 1000000) max_states_per_insn 0 total_states 1 peak_states 1 mark_read 1 -- END PROG LOAD LOG -- libbpf: failed to load program 'test_core_arrays' libbpf: failed to load object 'test_core_reloc_arrays.o' #38/27 core_reloc/arrays___err_wrong_val_type:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: prog 'test_core_arrays': BPF program load failed: Invalid argument libbpf: prog 'test_core_arrays': -- BEGIN PROG LOAD LOG -- arg#0 reference type('UNKNOWN ') size cannot be determined: -22 0: R1=ctx(id=0,off=0,imm=0) R10=fp0 ; int test_core_arrays(void *ctx) 0: (b7) r1 = 8 ; R1_w=inv8 1: (18) r7 = 0xc008000004650000 ; R7_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 3: (18) r3 = 0xc008000004650000 ; R3_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 5: (0f) r3 += r1 ; R1_w=invP8 R3_w=map_value(id=0,off=8,ks=4,vs=512,imm=0) ; if (CORE_READ(&out->a2, &in->a[2])) 6: (18) r1 = 0xc008000004650000 ; R1_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 8: (07) r1 += 256 ; R1_w=map_value(id=0,off=256,ks=4,vs=512,imm=0) 9: (b7) r2 = 4 ; R2_w=inv4 10: (85) call bpf_probe_read_kernel#113 ; R0_w=inv(id=0) 11: (b7) r6 = 1 ; R6_w=inv1 ; if (CORE_READ(&out->a2, &in->a[2])) 12: (55) if r0 != 0x0 goto pc+43 ; R0_w=inv0 13: (b7) r1 = 43 ; R1_w=inv43 14: (18) r3 = 0xc008000004650000 ; R3_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 16: (0f) r3 += r1 ; R1_w=invP43 R3_w=map_value(id=0,off=43,ks=4,vs=512,imm=0) ; if (CORE_READ(&out->b123, &in->b[1][2][3])) 17: (07) r7 += 260 ; R7_w=map_value(id=0,off=260,ks=4,vs=512,imm=0) 18: (b7) r6 = 1 ; R6_w=inv1 19: (bf) r1 = r7 ; R1_w=map_value(id=0,off=260,ks=4,vs=512,imm=0) R7_w=map_value(id=0,off=260,ks=4,vs=512,imm=0) 20: (b7) r2 = 1 ; R2_w=inv1 21: (85) call bpf_probe_read_kernel#113 ; R0=inv(id=0) ; if (CORE_READ(&out->b123, &in->b[1][2][3])) 22: (55) if r0 != 0x0 goto pc+33 ; R0=inv0 23: (b7) r1 = 52 ; R1_w=inv52 24: (18) r7 = 0xc008000004650000 ; R7_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 26: (18) r3 = 0xc008000004650000 ; R3_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 28: (0f) r3 += r1 ; R1_w=invP52 R3_w=map_value(id=0,off=52,ks=4,vs=512,imm=0) ; if (CORE_READ(&out->c1c, &in->c[1].c)) 29: (18) r1 = 0xc008000004650000 ; R1_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 31: (07) r1 += 264 ; R1_w=map_value(id=0,off=264,ks=4,vs=512,imm=0) 32: (b7) r2 = 4 ; R2_w=inv4 33: (85) call bpf_probe_read_kernel#113 ; R0=inv(id=0) ; if (CORE_READ(&out->c1c, &in->c[1].c)) 34: (55) if r0 != 0x0 goto pc+21 ; R0=inv0 35: (b7) r1 = 72 ; R1_w=inv72 36: (18) r3 = 0xc008000004650000 ; R3_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 38: (0f) r3 += r1 ; R1_w=invP72 R3_w=map_value(id=0,off=72,ks=4,vs=512,imm=0) ; if (CORE_READ(&out->d00d, &in->d[0][0].d)) 39: (07) r7 += 268 ; R7_w=map_value(id=0,off=268,ks=4,vs=512,imm=0) 40: (bf) r1 = r7 ; R1_w=map_value(id=0,off=268,ks=4,vs=512,imm=0) R7_w=map_value(id=0,off=268,ks=4,vs=512,imm=0) 41: (b7) r2 = 4 ; R2_w=inv4 42: (85) call bpf_probe_read_kernel#113 ; R0=inv(id=0) ; if (CORE_READ(&out->d00d, &in->d[0][0].d)) 43: (55) if r0 != 0x0 goto pc+12 ; R0=inv0 44: (85) call unknown#195896080 invalid func unknown#195896080 processed 37 insns (limit 1000000) max_states_per_insn 0 total_states 3 peak_states 3 mark_read 1 -- END PROG LOAD LOG -- libbpf: failed to load program 'test_core_arrays' libbpf: failed to load object 'test_core_reloc_arrays.o' #38/28 core_reloc/arrays___err_bad_zero_sz_arr:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/29 core_reloc/primitives:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/30 core_reloc/primitives___diff_enum_def:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/31 core_reloc/primitives___diff_func_proto:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/32 core_reloc/primitives___diff_ptr_type:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: prog 'test_core_primitives': BPF program load failed: Invalid argument libbpf: prog 'test_core_primitives': -- BEGIN PROG LOAD LOG -- arg#0 reference type('UNKNOWN ') size cannot be determined: -22 0: R1=ctx(id=0,off=0,imm=0) R10=fp0 ; int test_core_primitives(void *ctx) 0: (85) call unknown#195896080 invalid func unknown#195896080 processed 1 insns (limit 1000000) max_states_per_insn 0 total_states 0 peak_states 0 mark_read 0 -- END PROG LOAD LOG -- libbpf: failed to load program 'test_core_primitives' libbpf: failed to load object 'test_core_reloc_primitives.o' #38/33 core_reloc/primitives___err_non_enum:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: prog 'test_core_primitives': BPF program load failed: Invalid argument libbpf: prog 'test_core_primitives': -- BEGIN PROG LOAD LOG -- arg#0 reference type('UNKNOWN ') size cannot be determined: -22 0: R1=ctx(id=0,off=0,imm=0) R10=fp0 ; int test_core_primitives(void *ctx) 0: (85) call unknown#195896080 invalid func unknown#195896080 processed 1 insns (limit 1000000) max_states_per_insn 0 total_states 0 peak_states 0 mark_read 0 -- END PROG LOAD LOG -- libbpf: failed to load program 'test_core_primitives' libbpf: failed to load object 'test_core_reloc_primitives.o' #38/34 core_reloc/primitives___err_non_int:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: prog 'test_core_primitives': BPF program load failed: Invalid argument libbpf: prog 'test_core_primitives': -- BEGIN PROG LOAD LOG -- arg#0 reference type('UNKNOWN ') size cannot be determined: -22 0: R1=ctx(id=0,off=0,imm=0) R10=fp0 ; int test_core_primitives(void *ctx) 0: (85) call unknown#195896080 invalid func unknown#195896080 processed 1 insns (limit 1000000) max_states_per_insn 0 total_states 0 peak_states 0 mark_read 0 -- END PROG LOAD LOG -- libbpf: failed to load program 'test_core_primitives' libbpf: failed to load object 'test_core_reloc_primitives.o' #38/35 core_reloc/primitives___err_non_ptr:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/36 core_reloc/mods:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/37 core_reloc/mods___mod_swap:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/38 core_reloc/mods___typedefs:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/39 core_reloc/ptr_as_arr:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/40 core_reloc/ptr_as_arr___diff_sz:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/41 core_reloc/ints:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/42 core_reloc/ints___bool:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/43 core_reloc/ints___reverse_sign:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/44 core_reloc/misc:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/45 core_reloc/existence:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/46 core_reloc/existence___minimal:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/47 core_reloc/existence___wrong_field_defs:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/48 core_reloc/probed:bitfields:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/49 core_reloc/direct:bitfields:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/50 core_reloc/probed:bitfields___bit_sz_change:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/51 core_reloc/direct:bitfields___bit_sz_change:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/52 core_reloc/probed:bitfields___bitfield_vs_int:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/53 core_reloc/direct:bitfields___bitfield_vs_int:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/54 core_reloc/probed:bitfields___just_big_enough:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/55 core_reloc/direct:bitfields___just_big_enough:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: prog 'test_core_bitfields': relo 0 at insn #22 can't be satisfied for bitfield libbpf: prog 'test_core_bitfields': relo #6: failed to relocate: -7 libbpf: failed to perform CO-RE relocations: -7 libbpf: failed to load object 'test_core_reloc_bitfields_probed.o' #38/56 core_reloc/probed:bitfields___err_too_big_bitfield:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: prog 'test_core_bitfields_direct': relo 0 at insn #28 can't be satisfied for bitfield libbpf: prog 'test_core_bitfields_direct': relo #6: failed to relocate: -7 libbpf: failed to perform CO-RE relocations: -7 libbpf: failed to load object 'test_core_reloc_bitfields_direct.o' #38/57 core_reloc/direct:bitfields___err_too_big_bitfield:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/58 core_reloc/size:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/59 core_reloc/size___diff_sz:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: prog 'test_core_size': relo #0: relocation decision ambiguity: success 1 != success 4 libbpf: prog 'test_core_size': relo #0: failed to relocate: -22 libbpf: failed to perform CO-RE relocations: -22 libbpf: failed to load object 'test_core_reloc_size.o' #38/60 core_reloc/size___err_ambiguous:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/61 core_reloc/type_based:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/62 core_reloc/type_based___all_missing:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/63 core_reloc/type_based___diff_sz:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/64 core_reloc/type_based___incompat:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/65 core_reloc/type_based___fn_wrong_args:OK setup_type_id_case_local:PASS:local_btf 0 nsec setup_type_id_case_local:PASS:targ_btf 0 nsec find_btf_type:PASS:find_type_id 0 nsec find_btf_type:PASS:find_type_id 0 nsec find_btf_type:PASS:find_type_id 0 nsec find_btf_type:PASS:find_type_id 0 nsec find_btf_type:PASS:find_type_id 0 nsec find_btf_type:PASS:find_type_id 0 nsec find_btf_type:PASS:find_type_id 0 nsec find_btf_type:PASS:find_type_id 0 nsec find_btf_type:PASS:find_type_id 0 nsec find_btf_type:PASS:find_type_id 0 nsec find_btf_type:PASS:find_type_id 0 nsec find_btf_type:PASS:find_type_id 0 nsec find_btf_type:PASS:find_type_id 0 nsec find_btf_type:PASS:find_type_id 0 nsec test_core_reloc:PASS:test_setup 0 nsec test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/66 core_reloc/type_id:OK setup_type_id_case_local:PASS:local_btf 0 nsec setup_type_id_case_local:PASS:targ_btf 0 nsec find_btf_type:PASS:find_type_id 0 nsec find_btf_type:PASS:find_type_id 0 nsec find_btf_type:PASS:find_type_id 0 nsec find_btf_type:PASS:find_type_id 0 nsec find_btf_type:PASS:find_type_id 0 nsec find_btf_type:PASS:find_type_id 0 nsec find_btf_type:PASS:find_type_id 0 nsec test_core_reloc:PASS:test_setup 0 nsec test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/67 core_reloc/type_id___missing_targets:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/68 core_reloc/enumval:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/69 core_reloc/enumval___diff:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/70 core_reloc/enumval___val3_missing:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: prog 'test_core_enumval': BPF program load failed: Invalid argument libbpf: prog 'test_core_enumval': -- BEGIN PROG LOAD LOG -- arg#0 reference type('UNKNOWN ') size cannot be determined: -22 0: R1=ctx(id=0,off=0,imm=0) R10=fp0 ; int test_core_enumval(void *ctx) 0: (18) r2 = 0x1 ; R2_w=inv1 ; out->named_val1_exists = bpf_core_enum_value_exists(named, NAMED_ENUM_VAL1); 2: (18) r1 = 0xc0080000028d0000 ; R1_w=map_value(id=0,off=0,ks=4,vs=513,imm=0) ; out->named_val1 = bpf_core_enum_value(named, NAMED_ENUM_VAL1); 4: (63) *(u32 *)(r1 +264) = r2 ; R1_w=map_value(id=0,off=0,ks=4,vs=513,imm=0) R2_w=inv1 5: (85) call unknown#195896080 invalid func unknown#195896080 processed 4 insns (limit 1000000) max_states_per_insn 0 total_states 0 peak_states 0 mark_read 0 -- END PROG LOAD LOG -- libbpf: failed to load program 'test_core_enumval' libbpf: failed to load object 'test_core_reloc_enumval.o' #38/71 core_reloc/enumval___err_missing:OK #38 core_reloc:FAIL All error logs: #38 core_reloc:FAIL test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/1 core_reloc/kernel:OK test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: prog 'test_core_module_probed': BPF program load failed: Invalid argument libbpf: prog 'test_core_module_probed': -- BEGIN PROG LOAD LOG -- R1 type=ctx expected=fp 0: R1=ctx(id=0,off=0,imm=0) R10=fp0 ; int BPF_PROG(test_core_module_probed, 0: (79) r7 = *(u64 *)(r1 +8) ; R1=ctx(id=0,off=0,imm=0) R7_w=inv(id=0) 1: (79) r6 = *(u64 *)(r1 +0) ; R1=ctx(id=0,off=0,imm=0) R6_w=inv(id=0) ; __u64 pid_tgid = bpf_get_current_pid_tgid(); 2: (85) call bpf_get_current_pid_tgid#14 ; R0_w=inv(id=0) 3: (bf) r8 = r0 ; R0_w=inv(id=1) R8_w=inv(id=1) ; if (data.my_pid_tgid != pid_tgid) 4: (18) r1 = 0xc0080000041d0000 ; R1_w=map_value(id=0,off=0,ks=4,vs=528,imm=0) 6: (79) r1 = *(u64 *)(r1 +520) ; R1_w=inv(id=0) ; if (data.my_pid_tgid != pid_tgid) 7: (5d) if r1 != r8 goto pc+73 ; R1_w=inv(id=0) R8_w=inv(id=1) 8: (b7) r1 = 2296 ; R1_w=inv2296 9: (bf) r3 = r6 ; R3_w=inv(id=2) R6_w=inv(id=2) 10: (0f) r3 += r1 ; R1_w=inv2296 R3_w=inv(id=0) 11: (bf) r1 = r10 ; R1_w=fp0 R10=fp0 ; 12: (07) r1 += -8 ; R1_w=fp-8 ; if (BPF_CORE_READ(task, pid) != real_pid || BPF_CORE_READ(task, tgid) != real_tgid) 13: (b7) r2 = 4 ; R2_w=inv4 14: (85) call bpf_probe_read_kernel#113 ; R0=inv(id=0) fp-8=????mmmm ; if (BPF_CORE_READ(task, pid) != real_pid || BPF_CORE_READ(task, tgid) != real_tgid) 15: (61) r1 = *(u32 *)(r10 -8) ; R1_w=inv(id=0,umax_value=4294967295,var_off=(0x0; 0xffffffff)) R10=fp0 ; __u32 real_pid = (__u32)pid_tgid; 16: (bf) r2 = r8 ; R2_w=inv(id=1) R8=inv(id=1) 17: (67) r2 <<= 32 ; R2_w=inv(id=0,smax_value=9223372032559808512,umax_value=18446744069414584320,var_off=(0x0; 0xffffffff00000000),s32_min_value=0,s32_max_value=0,u32_max_value=0) 18: (77) r2 >>= 32 ; R2_w=inv(id=0,umax_value=4294967295,var_off=(0x0; 0xffffffff)) ; if (BPF_CORE_READ(task, pid) != real_pid || BPF_CORE_READ(task, tgid) != real_tgid) 19: (5d) if r1 != r2 goto pc+61 ; R1_w=inv(id=0,umax_value=4294967295,var_off=(0x0; 0xffffffff)) R2_w=inv(id=0,umax_value=4294967295,var_off=(0x0; 0xffffffff)) 20: (77) r8 >>= 32 ; R8_w=inv(id=0,umax_value=4294967295,var_off=(0x0; 0xffffffff)) 21: (b7) r1 = 2300 ; R1_w=inv2300 22: (bf) r3 = r6 ; R3_w=inv(id=2) R6=inv(id=2) 23: (0f) r3 += r1 ; R1_w=inv2300 R3_w=inv(id=0) 24: (bf) r1 = r10 ; R1_w=fp0 R10=fp0 ; 25: (07) r1 += -8 ; R1_w=fp-8 ; if (BPF_CORE_READ(task, pid) != real_pid || BPF_CORE_READ(task, tgid) != real_tgid) 26: (b7) r2 = 4 ; R2_w=inv4 27: (85) call bpf_probe_read_kernel#113 ; R0=inv(id=0) fp-8=????mmmm ; if (BPF_CORE_READ(task, pid) != real_pid || BPF_CORE_READ(task, tgid) != real_tgid) 28: (61) r1 = *(u32 *)(r10 -8) ; R1_w=inv(id=0,umax_value=4294967295,var_off=(0x0; 0xffffffff)) R10=fp0 ; if (BPF_CORE_READ(task, pid) != real_pid || BPF_CORE_READ(task, tgid) != real_tgid) 29: (5d) if r1 != r8 goto pc+51 ; R1_w=inv(id=0,umax_value=4294967295,var_off=(0x0; 0xffffffff)) R8=inv(id=0,umax_value=4294967295,var_off=(0x0; 0xffffffff)) 30: (85) call unknown#195896080 invalid func unknown#195896080 processed 30 insns (limit 1000000) max_states_per_insn 0 total_states 2 peak_states 2 mark_read 1 -- END PROG LOAD LOG -- libbpf: failed to load program 'test_core_module_probed' libbpf: failed to load object 'test_core_reloc_module.o' test_core_reloc:FAIL:obj_load unexpected error: -22 (errno 22) #38/2 core_reloc/module_probed:FAIL test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: prog 'test_core_module_probed': BPF program load failed: Invalid argument libbpf: prog 'test_core_module_probed': -- BEGIN PROG LOAD LOG -- R1 type=ctx expected=fp 0: R1=ctx(id=0,off=0,imm=0) R10=fp0 ; int BPF_PROG(test_core_module_probed, 0: (79) r7 = *(u64 *)(r1 +8) ; R1=ctx(id=0,off=0,imm=0) R7_w=inv(id=0) 1: (79) r6 = *(u64 *)(r1 +0) ; R1=ctx(id=0,off=0,imm=0) R6_w=inv(id=0) ; __u64 pid_tgid = bpf_get_current_pid_tgid(); 2: (85) call bpf_get_current_pid_tgid#14 ; R0_w=inv(id=0) 3: (bf) r8 = r0 ; R0_w=inv(id=1) R8_w=inv(id=1) ; if (data.my_pid_tgid != pid_tgid) 4: (18) r1 = 0xc008000004460000 ; R1_w=map_value(id=0,off=0,ks=4,vs=528,imm=0) 6: (79) r1 = *(u64 *)(r1 +520) ; R1_w=inv(id=0) ; if (data.my_pid_tgid != pid_tgid) 7: (5d) if r1 != r8 goto pc+73 ; R1_w=inv(id=0) R8_w=inv(id=1) 8: (b7) r1 = 2296 ; R1_w=inv2296 9: (bf) r3 = r6 ; R3_w=inv(id=2) R6_w=inv(id=2) 10: (0f) r3 += r1 ; R1_w=inv2296 R3_w=inv(id=0) 11: (bf) r1 = r10 ; R1_w=fp0 R10=fp0 ; 12: (07) r1 += -8 ; R1_w=fp-8 ; if (BPF_CORE_READ(task, pid) != real_pid || BPF_CORE_READ(task, tgid) != real_tgid) 13: (b7) r2 = 4 ; R2_w=inv4 14: (85) call bpf_probe_read_kernel#113 ; R0=inv(id=0) fp-8=????mmmm ; if (BPF_CORE_READ(task, pid) != real_pid || BPF_CORE_READ(task, tgid) != real_tgid) 15: (61) r1 = *(u32 *)(r10 -8) ; R1_w=inv(id=0,umax_value=4294967295,var_off=(0x0; 0xffffffff)) R10=fp0 ; __u32 real_pid = (__u32)pid_tgid; 16: (bf) r2 = r8 ; R2_w=inv(id=1) R8=inv(id=1) 17: (67) r2 <<= 32 ; R2_w=inv(id=0,smax_value=9223372032559808512,umax_value=18446744069414584320,var_off=(0x0; 0xffffffff00000000),s32_min_value=0,s32_max_value=0,u32_max_value=0) 18: (77) r2 >>= 32 ; R2_w=inv(id=0,umax_value=4294967295,var_off=(0x0; 0xffffffff)) ; if (BPF_CORE_READ(task, pid) != real_pid || BPF_CORE_READ(task, tgid) != real_tgid) 19: (5d) if r1 != r2 goto pc+61 ; R1_w=inv(id=0,umax_value=4294967295,var_off=(0x0; 0xffffffff)) R2_w=inv(id=0,umax_value=4294967295,var_off=(0x0; 0xffffffff)) 20: (77) r8 >>= 32 ; R8_w=inv(id=0,umax_value=4294967295,var_off=(0x0; 0xffffffff)) 21: (b7) r1 = 2300 ; R1_w=inv2300 22: (bf) r3 = r6 ; R3_w=inv(id=2) R6=inv(id=2) 23: (0f) r3 += r1 ; R1_w=inv2300 R3_w=inv(id=0) 24: (bf) r1 = r10 ; R1_w=fp0 R10=fp0 ; 25: (07) r1 += -8 ; R1_w=fp-8 ; if (BPF_CORE_READ(task, pid) != real_pid || BPF_CORE_READ(task, tgid) != real_tgid) 26: (b7) r2 = 4 ; R2_w=inv4 27: (85) call bpf_probe_read_kernel#113 ; R0=inv(id=0) fp-8=????mmmm ; if (BPF_CORE_READ(task, pid) != real_pid || BPF_CORE_READ(task, tgid) != real_tgid) 28: (61) r1 = *(u32 *)(r10 -8) ; R1_w=inv(id=0,umax_value=4294967295,var_off=(0x0; 0xffffffff)) R10=fp0 ; if (BPF_CORE_READ(task, pid) != real_pid || BPF_CORE_READ(task, tgid) != real_tgid) 29: (5d) if r1 != r8 goto pc+51 ; R1_w=inv(id=0,umax_value=4294967295,var_off=(0x0; 0xffffffff)) R8=inv(id=0,umax_value=4294967295,var_off=(0x0; 0xffffffff)) 30: (85) call unknown#195896080 invalid func unknown#195896080 processed 30 insns (limit 1000000) max_states_per_insn 0 total_states 2 peak_states 2 mark_read 1 -- END PROG LOAD LOG -- libbpf: failed to load program 'test_core_module_probed' libbpf: failed to load object 'test_core_reloc_module.o' test_core_reloc:FAIL:obj_load unexpected error: -22 (errno 22) #38/3 core_reloc/module_direct:FAIL test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/4 core_reloc/flavors:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: prog 'test_core_flavors': BPF program load failed: Invalid argument libbpf: prog 'test_core_flavors': -- BEGIN PROG LOAD LOG -- arg#0 reference type('UNKNOWN ') size cannot be determined: -22 0: R1=ctx(id=0,off=0,imm=0) R10=fp0 ; int test_core_flavors(void *ctx) 0: (85) call unknown#195896080 invalid func unknown#195896080 processed 1 insns (limit 1000000) max_states_per_insn 0 total_states 0 peak_states 0 mark_read 0 -- END PROG LOAD LOG -- libbpf: failed to load program 'test_core_flavors' libbpf: failed to load object 'test_core_reloc_flavors.o' #38/5 core_reloc/flavors__err_wrong_name:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/6 core_reloc/nesting:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/7 core_reloc/nesting___anon_embed:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/8 core_reloc/nesting___struct_union_mixup:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/9 core_reloc/nesting___extra_nesting:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/10 core_reloc/nesting___dup_compat_types:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: prog 'test_core_nesting': BPF program load failed: Invalid argument libbpf: prog 'test_core_nesting': -- BEGIN PROG LOAD LOG -- arg#0 reference type('UNKNOWN ') size cannot be determined: -22 0: R1=ctx(id=0,off=0,imm=0) R10=fp0 ; int test_core_nesting(void *ctx) 0: (b7) r1 = 0 ; R1_w=inv0 1: (18) r6 = 0xc008000003110000 ; R6_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 3: (18) r3 = 0xc008000003110000 ; R3_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 5: (0f) r3 += r1 ; R1_w=invP0 R3_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) ; if (CORE_READ(&out->a.a.a, &in->a.a.a)) 6: (18) r1 = 0xc008000003110000 ; R1_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 8: (07) r1 += 256 ; R1_w=map_value(id=0,off=256,ks=4,vs=512,imm=0) 9: (b7) r2 = 4 ; R2_w=inv4 10: (85) call bpf_probe_read_kernel#113 ; R0_w=inv(id=0) 11: (bf) r1 = r0 ; R0_w=inv(id=1) R1_w=inv(id=1) 12: (b7) r0 = 1 ; R0_w=inv1 ; if (CORE_READ(&out->a.a.a, &in->a.a.a)) 13: (55) if r1 != 0x0 goto pc+12 ; R1_w=inv0 14: (85) call unknown#195896080 invalid func unknown#195896080 processed 12 insns (limit 1000000) max_states_per_insn 0 total_states 0 peak_states 0 mark_read 0 -- END PROG LOAD LOG -- libbpf: failed to load program 'test_core_nesting' libbpf: failed to load object 'test_core_reloc_nesting.o' #38/11 core_reloc/nesting___err_missing_field:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: prog 'test_core_nesting': BPF program load failed: Invalid argument libbpf: prog 'test_core_nesting': -- BEGIN PROG LOAD LOG -- arg#0 reference type('UNKNOWN ') size cannot be determined: -22 0: R1=ctx(id=0,off=0,imm=0) R10=fp0 ; int test_core_nesting(void *ctx) 0: (b7) r1 = 0 ; R1_w=inv0 1: (18) r6 = 0xc008000003c40000 ; R6_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 3: (18) r3 = 0xc008000003c40000 ; R3_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 5: (0f) r3 += r1 ; R1_w=invP0 R3_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) ; if (CORE_READ(&out->a.a.a, &in->a.a.a)) 6: (18) r1 = 0xc008000003c40000 ; R1_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 8: (07) r1 += 256 ; R1_w=map_value(id=0,off=256,ks=4,vs=512,imm=0) 9: (b7) r2 = 4 ; R2_w=inv4 10: (85) call bpf_probe_read_kernel#113 ; R0_w=inv(id=0) 11: (bf) r1 = r0 ; R0_w=inv(id=1) R1_w=inv(id=1) 12: (b7) r0 = 1 ; R0_w=inv1 ; if (CORE_READ(&out->a.a.a, &in->a.a.a)) 13: (55) if r1 != 0x0 goto pc+12 ; R1_w=inv0 14: (85) call unknown#195896080 invalid func unknown#195896080 processed 12 insns (limit 1000000) max_states_per_insn 0 total_states 0 peak_states 0 mark_read 0 -- END PROG LOAD LOG -- libbpf: failed to load program 'test_core_nesting' libbpf: failed to load object 'test_core_reloc_nesting.o' #38/12 core_reloc/nesting___err_array_field:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: prog 'test_core_nesting': BPF program load failed: Invalid argument libbpf: prog 'test_core_nesting': -- BEGIN PROG LOAD LOG -- arg#0 reference type('UNKNOWN ') size cannot be determined: -22 0: R1=ctx(id=0,off=0,imm=0) R10=fp0 ; int test_core_nesting(void *ctx) 0: (b7) r1 = 0 ; R1_w=inv0 1: (18) r6 = 0xc008000004070000 ; R6_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 3: (18) r3 = 0xc008000004070000 ; R3_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 5: (0f) r3 += r1 ; R1_w=invP0 R3_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) ; if (CORE_READ(&out->a.a.a, &in->a.a.a)) 6: (18) r1 = 0xc008000004070000 ; R1_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 8: (07) r1 += 256 ; R1_w=map_value(id=0,off=256,ks=4,vs=512,imm=0) 9: (b7) r2 = 4 ; R2_w=inv4 10: (85) call bpf_probe_read_kernel#113 ; R0_w=inv(id=0) 11: (bf) r1 = r0 ; R0_w=inv(id=1) R1_w=inv(id=1) 12: (b7) r0 = 1 ; R0_w=inv1 ; if (CORE_READ(&out->a.a.a, &in->a.a.a)) 13: (55) if r1 != 0x0 goto pc+12 ; R1_w=inv0 14: (85) call unknown#195896080 invalid func unknown#195896080 processed 12 insns (limit 1000000) max_states_per_insn 0 total_states 0 peak_states 0 mark_read 0 -- END PROG LOAD LOG -- libbpf: failed to load program 'test_core_nesting' libbpf: failed to load object 'test_core_reloc_nesting.o' #38/13 core_reloc/nesting___err_missing_container:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: prog 'test_core_nesting': BPF program load failed: Invalid argument libbpf: prog 'test_core_nesting': -- BEGIN PROG LOAD LOG -- arg#0 reference type('UNKNOWN ') size cannot be determined: -22 0: R1=ctx(id=0,off=0,imm=0) R10=fp0 ; int test_core_nesting(void *ctx) 0: (b7) r1 = 0 ; R1_w=inv0 1: (18) r6 = 0xc0080000041e0000 ; R6_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 3: (18) r3 = 0xc0080000041e0000 ; R3_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 5: (0f) r3 += r1 ; R1_w=invP0 R3_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) ; if (CORE_READ(&out->a.a.a, &in->a.a.a)) 6: (18) r1 = 0xc0080000041e0000 ; R1_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 8: (07) r1 += 256 ; R1_w=map_value(id=0,off=256,ks=4,vs=512,imm=0) 9: (b7) r2 = 4 ; R2_w=inv4 10: (85) call bpf_probe_read_kernel#113 ; R0_w=inv(id=0) 11: (bf) r1 = r0 ; R0_w=inv(id=1) R1_w=inv(id=1) 12: (b7) r0 = 1 ; R0_w=inv1 ; if (CORE_READ(&out->a.a.a, &in->a.a.a)) 13: (55) if r1 != 0x0 goto pc+12 ; R1_w=inv0 14: (85) call unknown#195896080 invalid func unknown#195896080 processed 12 insns (limit 1000000) max_states_per_insn 0 total_states 0 peak_states 0 mark_read 0 -- END PROG LOAD LOG -- libbpf: failed to load program 'test_core_nesting' libbpf: failed to load object 'test_core_reloc_nesting.o' #38/14 core_reloc/nesting___err_nonstruct_container:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: prog 'test_core_nesting': BPF program load failed: Invalid argument libbpf: prog 'test_core_nesting': -- BEGIN PROG LOAD LOG -- arg#0 reference type('UNKNOWN ') size cannot be determined: -22 0: R1=ctx(id=0,off=0,imm=0) R10=fp0 ; int test_core_nesting(void *ctx) 0: (b7) r1 = 0 ; R1_w=inv0 1: (18) r6 = 0xc008000004650000 ; R6_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 3: (18) r3 = 0xc008000004650000 ; R3_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 5: (0f) r3 += r1 ; R1_w=invP0 R3_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) ; if (CORE_READ(&out->a.a.a, &in->a.a.a)) 6: (18) r1 = 0xc008000004650000 ; R1_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 8: (07) r1 += 256 ; R1_w=map_value(id=0,off=256,ks=4,vs=512,imm=0) 9: (b7) r2 = 4 ; R2_w=inv4 10: (85) call bpf_probe_read_kernel#113 ; R0_w=inv(id=0) 11: (bf) r1 = r0 ; R0_w=inv(id=1) R1_w=inv(id=1) 12: (b7) r0 = 1 ; R0_w=inv1 ; if (CORE_READ(&out->a.a.a, &in->a.a.a)) 13: (55) if r1 != 0x0 goto pc+12 ; R1_w=inv0 14: (85) call unknown#195896080 invalid func unknown#195896080 processed 12 insns (limit 1000000) max_states_per_insn 0 total_states 0 peak_states 0 mark_read 0 -- END PROG LOAD LOG -- libbpf: failed to load program 'test_core_nesting' libbpf: failed to load object 'test_core_reloc_nesting.o' #38/15 core_reloc/nesting___err_array_container:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: prog 'test_core_nesting': relo #1: field offset ambiguity: 64 != 32 libbpf: prog 'test_core_nesting': relo #1: failed to relocate: -22 libbpf: failed to perform CO-RE relocations: -22 libbpf: failed to load object 'test_core_reloc_nesting.o' #38/16 core_reloc/nesting___err_dup_incompat_types:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: prog 'test_core_nesting': BPF program load failed: Invalid argument libbpf: prog 'test_core_nesting': -- BEGIN PROG LOAD LOG -- arg#0 reference type('UNKNOWN ') size cannot be determined: -22 0: R1=ctx(id=0,off=0,imm=0) R10=fp0 ; int test_core_nesting(void *ctx) 0: (b7) r1 = 0 ; R1_w=inv0 1: (18) r6 = 0xc0080000048a0000 ; R6_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 3: (18) r3 = 0xc0080000048a0000 ; R3_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 5: (0f) r3 += r1 ; R1_w=invP0 R3_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) ; if (CORE_READ(&out->a.a.a, &in->a.a.a)) 6: (18) r1 = 0xc0080000048a0000 ; R1_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 8: (07) r1 += 256 ; R1_w=map_value(id=0,off=256,ks=4,vs=512,imm=0) 9: (b7) r2 = 4 ; R2_w=inv4 10: (85) call bpf_probe_read_kernel#113 ; R0_w=inv(id=0) 11: (bf) r1 = r0 ; R0_w=inv(id=1) R1_w=inv(id=1) 12: (b7) r0 = 1 ; R0_w=inv1 ; if (CORE_READ(&out->a.a.a, &in->a.a.a)) 13: (55) if r1 != 0x0 goto pc+12 ; R1_w=inv0 14: (85) call unknown#195896080 invalid func unknown#195896080 processed 12 insns (limit 1000000) max_states_per_insn 0 total_states 0 peak_states 0 mark_read 0 -- END PROG LOAD LOG -- libbpf: failed to load program 'test_core_nesting' libbpf: failed to load object 'test_core_reloc_nesting.o' #38/17 core_reloc/nesting___err_partial_match_dups:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: prog 'test_core_nesting': relo #1: error matching candidate #0 [4] struct core_reloc_nesting___err_too_deep.b.b (0:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0 @ offset 4): -7 libbpf: prog 'test_core_nesting': relo #1: failed to relocate: -7 libbpf: failed to perform CO-RE relocations: -7 libbpf: failed to load object 'test_core_reloc_nesting.o' #38/18 core_reloc/nesting___err_too_deep:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/19 core_reloc/arrays:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/20 core_reloc/arrays___diff_arr_dim:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/21 core_reloc/arrays___diff_arr_val_sz:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/22 core_reloc/arrays___equiv_zero_sz_arr:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/23 core_reloc/arrays___fixed_arr:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: prog 'test_core_arrays': BPF program load failed: Invalid argument libbpf: prog 'test_core_arrays': -- BEGIN PROG LOAD LOG -- arg#0 reference type('UNKNOWN ') size cannot be determined: -22 0: R1=ctx(id=0,off=0,imm=0) R10=fp0 ; int test_core_arrays(void *ctx) 0: (85) call unknown#195896080 invalid func unknown#195896080 processed 1 insns (limit 1000000) max_states_per_insn 0 total_states 0 peak_states 0 mark_read 0 -- END PROG LOAD LOG -- libbpf: failed to load program 'test_core_arrays' libbpf: failed to load object 'test_core_reloc_arrays.o' #38/24 core_reloc/arrays___err_too_small:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: prog 'test_core_arrays': BPF program load failed: Invalid argument libbpf: prog 'test_core_arrays': -- BEGIN PROG LOAD LOG -- arg#0 reference type('UNKNOWN ') size cannot be determined: -22 0: R1=ctx(id=0,off=0,imm=0) R10=fp0 ; int test_core_arrays(void *ctx) 0: (b7) r1 = 8 ; R1_w=inv8 1: (18) r7 = 0xc008000003c70000 ; R7_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 3: (18) r3 = 0xc008000003c70000 ; R3_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 5: (0f) r3 += r1 ; R1_w=invP8 R3_w=map_value(id=0,off=8,ks=4,vs=512,imm=0) ; if (CORE_READ(&out->a2, &in->a[2])) 6: (18) r1 = 0xc008000003c70000 ; R1_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 8: (07) r1 += 256 ; R1_w=map_value(id=0,off=256,ks=4,vs=512,imm=0) 9: (b7) r2 = 4 ; R2_w=inv4 10: (85) call bpf_probe_read_kernel#113 ; R0_w=inv(id=0) 11: (b7) r6 = 1 ; R6_w=inv1 ; if (CORE_READ(&out->a2, &in->a[2])) 12: (55) if r0 != 0x0 goto pc+43 ; R0_w=inv0 13: (85) call unknown#195896080 invalid func unknown#195896080 processed 11 insns (limit 1000000) max_states_per_insn 0 total_states 0 peak_states 0 mark_read 0 -- END PROG LOAD LOG -- libbpf: failed to load program 'test_core_arrays' libbpf: failed to load object 'test_core_reloc_arrays.o' #38/25 core_reloc/arrays___err_too_shallow:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: prog 'test_core_arrays': BPF program load failed: Invalid argument libbpf: prog 'test_core_arrays': -- BEGIN PROG LOAD LOG -- arg#0 reference type('UNKNOWN ') size cannot be determined: -22 0: R1=ctx(id=0,off=0,imm=0) R10=fp0 ; int test_core_arrays(void *ctx) 0: (85) call unknown#195896080 invalid func unknown#195896080 processed 1 insns (limit 1000000) max_states_per_insn 0 total_states 0 peak_states 0 mark_read 0 -- END PROG LOAD LOG -- libbpf: failed to load program 'test_core_arrays' libbpf: failed to load object 'test_core_reloc_arrays.o' #38/26 core_reloc/arrays___err_non_array:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: prog 'test_core_arrays': BPF program load failed: Invalid argument libbpf: prog 'test_core_arrays': -- BEGIN PROG LOAD LOG -- arg#0 reference type('UNKNOWN ') size cannot be determined: -22 0: R1=ctx(id=0,off=0,imm=0) R10=fp0 ; int test_core_arrays(void *ctx) 0: (b7) r1 = 8 ; R1_w=inv8 1: (18) r7 = 0xc0080000041e0000 ; R7_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 3: (18) r3 = 0xc0080000041e0000 ; R3_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 5: (0f) r3 += r1 ; R1_w=invP8 R3_w=map_value(id=0,off=8,ks=4,vs=512,imm=0) ; if (CORE_READ(&out->a2, &in->a[2])) 6: (18) r1 = 0xc0080000041e0000 ; R1_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 8: (07) r1 += 256 ; R1_w=map_value(id=0,off=256,ks=4,vs=512,imm=0) 9: (b7) r2 = 4 ; R2_w=inv4 10: (85) call bpf_probe_read_kernel#113 ; R0_w=inv(id=0) 11: (b7) r6 = 1 ; R6_w=inv1 ; if (CORE_READ(&out->a2, &in->a[2])) 12: (55) if r0 != 0x0 goto pc+43 ; R0_w=inv0 13: (b7) r1 = 43 ; R1_w=inv43 14: (18) r3 = 0xc0080000041e0000 ; R3_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 16: (0f) r3 += r1 ; R1_w=invP43 R3_w=map_value(id=0,off=43,ks=4,vs=512,imm=0) ; if (CORE_READ(&out->b123, &in->b[1][2][3])) 17: (07) r7 += 260 ; R7_w=map_value(id=0,off=260,ks=4,vs=512,imm=0) 18: (b7) r6 = 1 ; R6_w=inv1 19: (bf) r1 = r7 ; R1_w=map_value(id=0,off=260,ks=4,vs=512,imm=0) R7_w=map_value(id=0,off=260,ks=4,vs=512,imm=0) 20: (b7) r2 = 1 ; R2_w=inv1 21: (85) call bpf_probe_read_kernel#113 ; R0=inv(id=0) ; if (CORE_READ(&out->b123, &in->b[1][2][3])) 22: (55) if r0 != 0x0 goto pc+33 ; R0=inv0 23: (85) call unknown#195896080 invalid func unknown#195896080 processed 20 insns (limit 1000000) max_states_per_insn 0 total_states 1 peak_states 1 mark_read 1 -- END PROG LOAD LOG -- libbpf: failed to load program 'test_core_arrays' libbpf: failed to load object 'test_core_reloc_arrays.o' #38/27 core_reloc/arrays___err_wrong_val_type:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: prog 'test_core_arrays': BPF program load failed: Invalid argument libbpf: prog 'test_core_arrays': -- BEGIN PROG LOAD LOG -- arg#0 reference type('UNKNOWN ') size cannot be determined: -22 0: R1=ctx(id=0,off=0,imm=0) R10=fp0 ; int test_core_arrays(void *ctx) 0: (b7) r1 = 8 ; R1_w=inv8 1: (18) r7 = 0xc008000004650000 ; R7_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 3: (18) r3 = 0xc008000004650000 ; R3_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 5: (0f) r3 += r1 ; R1_w=invP8 R3_w=map_value(id=0,off=8,ks=4,vs=512,imm=0) ; if (CORE_READ(&out->a2, &in->a[2])) 6: (18) r1 = 0xc008000004650000 ; R1_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 8: (07) r1 += 256 ; R1_w=map_value(id=0,off=256,ks=4,vs=512,imm=0) 9: (b7) r2 = 4 ; R2_w=inv4 10: (85) call bpf_probe_read_kernel#113 ; R0_w=inv(id=0) 11: (b7) r6 = 1 ; R6_w=inv1 ; if (CORE_READ(&out->a2, &in->a[2])) 12: (55) if r0 != 0x0 goto pc+43 ; R0_w=inv0 13: (b7) r1 = 43 ; R1_w=inv43 14: (18) r3 = 0xc008000004650000 ; R3_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 16: (0f) r3 += r1 ; R1_w=invP43 R3_w=map_value(id=0,off=43,ks=4,vs=512,imm=0) ; if (CORE_READ(&out->b123, &in->b[1][2][3])) 17: (07) r7 += 260 ; R7_w=map_value(id=0,off=260,ks=4,vs=512,imm=0) 18: (b7) r6 = 1 ; R6_w=inv1 19: (bf) r1 = r7 ; R1_w=map_value(id=0,off=260,ks=4,vs=512,imm=0) R7_w=map_value(id=0,off=260,ks=4,vs=512,imm=0) 20: (b7) r2 = 1 ; R2_w=inv1 21: (85) call bpf_probe_read_kernel#113 ; R0=inv(id=0) ; if (CORE_READ(&out->b123, &in->b[1][2][3])) 22: (55) if r0 != 0x0 goto pc+33 ; R0=inv0 23: (b7) r1 = 52 ; R1_w=inv52 24: (18) r7 = 0xc008000004650000 ; R7_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 26: (18) r3 = 0xc008000004650000 ; R3_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 28: (0f) r3 += r1 ; R1_w=invP52 R3_w=map_value(id=0,off=52,ks=4,vs=512,imm=0) ; if (CORE_READ(&out->c1c, &in->c[1].c)) 29: (18) r1 = 0xc008000004650000 ; R1_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 31: (07) r1 += 264 ; R1_w=map_value(id=0,off=264,ks=4,vs=512,imm=0) 32: (b7) r2 = 4 ; R2_w=inv4 33: (85) call bpf_probe_read_kernel#113 ; R0=inv(id=0) ; if (CORE_READ(&out->c1c, &in->c[1].c)) 34: (55) if r0 != 0x0 goto pc+21 ; R0=inv0 35: (b7) r1 = 72 ; R1_w=inv72 36: (18) r3 = 0xc008000004650000 ; R3_w=map_value(id=0,off=0,ks=4,vs=512,imm=0) 38: (0f) r3 += r1 ; R1_w=invP72 R3_w=map_value(id=0,off=72,ks=4,vs=512,imm=0) ; if (CORE_READ(&out->d00d, &in->d[0][0].d)) 39: (07) r7 += 268 ; R7_w=map_value(id=0,off=268,ks=4,vs=512,imm=0) 40: (bf) r1 = r7 ; R1_w=map_value(id=0,off=268,ks=4,vs=512,imm=0) R7_w=map_value(id=0,off=268,ks=4,vs=512,imm=0) 41: (b7) r2 = 4 ; R2_w=inv4 42: (85) call bpf_probe_read_kernel#113 ; R0=inv(id=0) ; if (CORE_READ(&out->d00d, &in->d[0][0].d)) 43: (55) if r0 != 0x0 goto pc+12 ; R0=inv0 44: (85) call unknown#195896080 invalid func unknown#195896080 processed 37 insns (limit 1000000) max_states_per_insn 0 total_states 3 peak_states 3 mark_read 1 -- END PROG LOAD LOG -- libbpf: failed to load program 'test_core_arrays' libbpf: failed to load object 'test_core_reloc_arrays.o' #38/28 core_reloc/arrays___err_bad_zero_sz_arr:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/29 core_reloc/primitives:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/30 core_reloc/primitives___diff_enum_def:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/31 core_reloc/primitives___diff_func_proto:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/32 core_reloc/primitives___diff_ptr_type:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: prog 'test_core_primitives': BPF program load failed: Invalid argument libbpf: prog 'test_core_primitives': -- BEGIN PROG LOAD LOG -- arg#0 reference type('UNKNOWN ') size cannot be determined: -22 0: R1=ctx(id=0,off=0,imm=0) R10=fp0 ; int test_core_primitives(void *ctx) 0: (85) call unknown#195896080 invalid func unknown#195896080 processed 1 insns (limit 1000000) max_states_per_insn 0 total_states 0 peak_states 0 mark_read 0 -- END PROG LOAD LOG -- libbpf: failed to load program 'test_core_primitives' libbpf: failed to load object 'test_core_reloc_primitives.o' #38/33 core_reloc/primitives___err_non_enum:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: prog 'test_core_primitives': BPF program load failed: Invalid argument libbpf: prog 'test_core_primitives': -- BEGIN PROG LOAD LOG -- arg#0 reference type('UNKNOWN ') size cannot be determined: -22 0: R1=ctx(id=0,off=0,imm=0) R10=fp0 ; int test_core_primitives(void *ctx) 0: (85) call unknown#195896080 invalid func unknown#195896080 processed 1 insns (limit 1000000) max_states_per_insn 0 total_states 0 peak_states 0 mark_read 0 -- END PROG LOAD LOG -- libbpf: failed to load program 'test_core_primitives' libbpf: failed to load object 'test_core_reloc_primitives.o' #38/34 core_reloc/primitives___err_non_int:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: prog 'test_core_primitives': BPF program load failed: Invalid argument libbpf: prog 'test_core_primitives': -- BEGIN PROG LOAD LOG -- arg#0 reference type('UNKNOWN ') size cannot be determined: -22 0: R1=ctx(id=0,off=0,imm=0) R10=fp0 ; int test_core_primitives(void *ctx) 0: (85) call unknown#195896080 invalid func unknown#195896080 processed 1 insns (limit 1000000) max_states_per_insn 0 total_states 0 peak_states 0 mark_read 0 -- END PROG LOAD LOG -- libbpf: failed to load program 'test_core_primitives' libbpf: failed to load object 'test_core_reloc_primitives.o' #38/35 core_reloc/primitives___err_non_ptr:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/36 core_reloc/mods:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/37 core_reloc/mods___mod_swap:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/38 core_reloc/mods___typedefs:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/39 core_reloc/ptr_as_arr:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/40 core_reloc/ptr_as_arr___diff_sz:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/41 core_reloc/ints:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/42 core_reloc/ints___bool:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/43 core_reloc/ints___reverse_sign:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/44 core_reloc/misc:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/45 core_reloc/existence:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/46 core_reloc/existence___minimal:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/47 core_reloc/existence___wrong_field_defs:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/48 core_reloc/probed:bitfields:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/49 core_reloc/direct:bitfields:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/50 core_reloc/probed:bitfields___bit_sz_change:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/51 core_reloc/direct:bitfields___bit_sz_change:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/52 core_reloc/probed:bitfields___bitfield_vs_int:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/53 core_reloc/direct:bitfields___bitfield_vs_int:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/54 core_reloc/probed:bitfields___just_big_enough:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/55 core_reloc/direct:bitfields___just_big_enough:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: prog 'test_core_bitfields': relo 0 at insn #22 can't be satisfied for bitfield libbpf: prog 'test_core_bitfields': relo #6: failed to relocate: -7 libbpf: failed to perform CO-RE relocations: -7 libbpf: failed to load object 'test_core_reloc_bitfields_probed.o' #38/56 core_reloc/probed:bitfields___err_too_big_bitfield:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: prog 'test_core_bitfields_direct': relo 0 at insn #28 can't be satisfied for bitfield libbpf: prog 'test_core_bitfields_direct': relo #6: failed to relocate: -7 libbpf: failed to perform CO-RE relocations: -7 libbpf: failed to load object 'test_core_reloc_bitfields_direct.o' #38/57 core_reloc/direct:bitfields___err_too_big_bitfield:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/58 core_reloc/size:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/59 core_reloc/size___diff_sz:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: prog 'test_core_size': relo #0: relocation decision ambiguity: success 1 != success 4 libbpf: prog 'test_core_size': relo #0: failed to relocate: -22 libbpf: failed to perform CO-RE relocations: -22 libbpf: failed to load object 'test_core_reloc_size.o' #38/60 core_reloc/size___err_ambiguous:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/61 core_reloc/type_based:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/62 core_reloc/type_based___all_missing:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/63 core_reloc/type_based___diff_sz:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/64 core_reloc/type_based___incompat:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/65 core_reloc/type_based___fn_wrong_args:OK setup_type_id_case_local:PASS:local_btf 0 nsec setup_type_id_case_local:PASS:targ_btf 0 nsec find_btf_type:PASS:find_type_id 0 nsec find_btf_type:PASS:find_type_id 0 nsec find_btf_type:PASS:find_type_id 0 nsec find_btf_type:PASS:find_type_id 0 nsec find_btf_type:PASS:find_type_id 0 nsec find_btf_type:PASS:find_type_id 0 nsec find_btf_type:PASS:find_type_id 0 nsec find_btf_type:PASS:find_type_id 0 nsec find_btf_type:PASS:find_type_id 0 nsec find_btf_type:PASS:find_type_id 0 nsec find_btf_type:PASS:find_type_id 0 nsec find_btf_type:PASS:find_type_id 0 nsec find_btf_type:PASS:find_type_id 0 nsec find_btf_type:PASS:find_type_id 0 nsec test_core_reloc:PASS:test_setup 0 nsec test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/66 core_reloc/type_id:OK setup_type_id_case_local:PASS:local_btf 0 nsec setup_type_id_case_local:PASS:targ_btf 0 nsec find_btf_type:PASS:find_type_id 0 nsec find_btf_type:PASS:find_type_id 0 nsec find_btf_type:PASS:find_type_id 0 nsec find_btf_type:PASS:find_type_id 0 nsec find_btf_type:PASS:find_type_id 0 nsec find_btf_type:PASS:find_type_id 0 nsec find_btf_type:PASS:find_type_id 0 nsec test_core_reloc:PASS:test_setup 0 nsec test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/67 core_reloc/type_id___missing_targets:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/68 core_reloc/enumval:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/69 core_reloc/enumval___diff:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec test_core_reloc:PASS:find_data_map 0 nsec test_core_reloc:PASS:mmap 0 nsec test_core_reloc:PASS:attach_raw_tp 0 nsec test_core_reloc:PASS:obj_load_should_fail 0 nsec test_core_reloc:PASS:check_result 0 nsec #38/70 core_reloc/enumval___val3_missing:OK test_core_reloc:PASS:btf_src_file 0 nsec test_core_reloc:PASS:obj_open 0 nsec test_core_reloc:PASS:find_probe 0 nsec libbpf: prog 'test_core_enumval': BPF program load failed: Invalid argument libbpf: prog 'test_core_enumval': -- BEGIN PROG LOAD LOG -- arg#0 reference type('UNKNOWN ') size cannot be determined: -22 0: R1=ctx(id=0,off=0,imm=0) R10=fp0 ; int test_core_enumval(void *ctx) 0: (18) r2 = 0x1 ; R2_w=inv1 ; out->named_val1_exists = bpf_core_enum_value_exists(named, NAMED_ENUM_VAL1); 2: (18) r1 = 0xc0080000028d0000 ; R1_w=map_value(id=0,off=0,ks=4,vs=513,imm=0) ; out->named_val1 = bpf_core_enum_value(named, NAMED_ENUM_VAL1); 4: (63) *(u32 *)(r1 +264) = r2 ; R1_w=map_value(id=0,off=0,ks=4,vs=513,imm=0) R2_w=inv1 5: (85) call unknown#195896080 invalid func unknown#195896080 processed 4 insns (limit 1000000) max_states_per_insn 0 total_states 0 peak_states 0 mark_read 0 -- END PROG LOAD LOG -- libbpf: failed to load program 'test_core_enumval' libbpf: failed to load object 'test_core_reloc_enumval.o' #38/71 core_reloc/enumval___err_missing:OK Summary: 0/69 PASSED, 0 SKIPPED, 1 FAILED :: [ FAIL ] :: Command './test_progs-no_alu32 -t core_reloc' (Expected 0, got 1, score 10) === Dmesg result === :: [ FAIL ] :: Test '38..224 selftests: bpf_test_progs:core_reloc [FAIL]'