| /tools/testing/selftests/bpf/progs/ |
| A D | verifier_xdp_direct_packet_access.c | 24 : __imm_const(xdp_md_data, offsetof(struct xdp_md, data)), in end_mangling_bad_access_1() 45 : __imm_const(xdp_md_data, offsetof(struct xdp_md, data)), in end_mangling_bad_access_2() 65 : __imm_const(xdp_md_data, offsetof(struct xdp_md, data)), in __flag() 86 : __imm_const(xdp_md_data, offsetof(struct xdp_md, data)), in __flag() 107 : __imm_const(xdp_md_data, offsetof(struct xdp_md, data)), in __flag() 127 : __imm_const(xdp_md_data, offsetof(struct xdp_md, data)), in __flag() 148 : __imm_const(xdp_md_data, offsetof(struct xdp_md, data)), in __flag() 169 : __imm_const(xdp_md_data, offsetof(struct xdp_md, data)), in __flag() 191 : __imm_const(xdp_md_data, offsetof(struct xdp_md, data)), in __flag() 212 : __imm_const(xdp_md_data, offsetof(struct xdp_md, data)), in __flag() [all …]
|
| A D | verifier_cgroup_skb.c | 32 : __imm_const(__sk_buff_data, offsetof(struct __sk_buff, data)), in test_1_for_cgroup_skb() 33 __imm_const(__sk_buff_data_end, offsetof(struct __sk_buff, data_end)), in test_1_for_cgroup_skb() 34 __imm_const(__sk_buff_len, offsetof(struct __sk_buff, len)), in test_1_for_cgroup_skb() 35 __imm_const(__sk_buff_mark, offsetof(struct __sk_buff, mark)), in test_1_for_cgroup_skb() 59 : __imm_const(__sk_buff_hash, offsetof(struct __sk_buff, hash)), in test_2_for_cgroup_skb() 88 : __imm_const(__sk_buff_cb_0, offsetof(struct __sk_buff, cb[0])), in test_3_for_cgroup_skb() 89 __imm_const(__sk_buff_cb_1, offsetof(struct __sk_buff, cb[1])), in test_3_for_cgroup_skb() 90 __imm_const(__sk_buff_cb_2, offsetof(struct __sk_buff, cb[2])), in test_3_for_cgroup_skb() 91 __imm_const(__sk_buff_cb_3, offsetof(struct __sk_buff, cb[3])), in test_3_for_cgroup_skb() 92 __imm_const(__sk_buff_cb_4, offsetof(struct __sk_buff, cb[4])), in test_3_for_cgroup_skb() [all …]
|
| A D | verifier_direct_packet_access.c | 19 : __imm_const(__sk_buff_data, offsetof(struct __sk_buff, data)), in __retval() 39 : __imm_const(__sk_buff_data, offsetof(struct __sk_buff, data)), in direct_packet_access_test1() 73 : __imm_const(__sk_buff_data, offsetof(struct __sk_buff, data)), in direct_packet_access_test2() 75 __imm_const(__sk_buff_len, offsetof(struct __sk_buff, len)) in direct_packet_access_test2() 90 : __imm_const(__sk_buff_data, offsetof(struct __sk_buff, data)) in direct_packet_access_test3() 109 : __imm_const(__sk_buff_data, offsetof(struct __sk_buff, data)), in direct_packet_access_test4_write() 131 : __imm_const(__sk_buff_data, offsetof(struct __sk_buff, data)), in pkt_end_reg_good_access() 153 : __imm_const(__sk_buff_data, offsetof(struct __sk_buff, data)), in pkt_end_reg_bad_access() 176 : __imm_const(__sk_buff_data, offsetof(struct __sk_buff, data)), in pkt_end_reg_both_accesses() 200 : __imm_const(__sk_buff_data, offsetof(struct __sk_buff, data)), in test8_double_test_variant_1() [all …]
|
| A D | verifier_meta_access.c | 23 : __imm_const(xdp_md_data, offsetof(struct xdp_md, data)), in meta_access_test1() 45 : __imm_const(xdp_md_data, offsetof(struct xdp_md, data)), in meta_access_test2() 86 : __imm_const(xdp_md_data, offsetof(struct xdp_md, data)), in meta_access_test4() 110 __imm_const(xdp_md_data, offsetof(struct xdp_md, data)), in meta_access_test5() 132 : __imm_const(xdp_md_data, offsetof(struct xdp_md, data)), in meta_access_test6() 154 : __imm_const(xdp_md_data, offsetof(struct xdp_md, data)), in meta_access_test7() 174 : __imm_const(xdp_md_data, offsetof(struct xdp_md, data)), in meta_access_test8() 195 : __imm_const(xdp_md_data, offsetof(struct xdp_md, data)), in meta_access_test9() 224 : __imm_const(xdp_md_data, offsetof(struct xdp_md, data)), in meta_access_test10() 253 : __imm_const(xdp_md_data, offsetof(struct xdp_md, data)), in meta_access_test11() [all …]
|
| A D | verifier_helper_packet_access.c | 35 __imm_const(xdp_md_data, offsetof(struct xdp_md, data)), in test1_valid_packet_ptr_range() 36 __imm_const(xdp_md_data_end, offsetof(struct xdp_md, data_end)) in test1_valid_packet_ptr_range() 54 __imm_const(xdp_md_data, offsetof(struct xdp_md, data)) in packet_test2_unchecked_packet_ptr() 83 __imm_const(xdp_md_data, offsetof(struct xdp_md, data)), in to_packet_test3_variable_add() 84 __imm_const(xdp_md_data_end, offsetof(struct xdp_md, data_end)) in to_packet_test3_variable_add() 108 __imm_const(xdp_md_data, offsetof(struct xdp_md, data)), in packet_ptr_with_bad_range_1() 109 __imm_const(xdp_md_data_end, offsetof(struct xdp_md, data_end)) in packet_ptr_with_bad_range_1() 132 __imm_const(xdp_md_data, offsetof(struct xdp_md, data)), in ptr_with_too_short_range_1() 133 __imm_const(xdp_md_data_end, offsetof(struct xdp_md, data_end)) in ptr_with_too_short_range_1() 157 __imm_const(__sk_buff_data, offsetof(struct __sk_buff, data)), in cls_valid_packet_ptr_range() [all …]
|
| A D | verifier_ctx_sk_msg.c | 17 : __imm_const(sk_msg_md_family, offsetof(struct sk_msg_md, family)) in access_family_in_sk_msg() 30 : __imm_const(sk_msg_md_remote_ip4, offsetof(struct sk_msg_md, remote_ip4)) in remote_ip4_in_sk_msg() 43 : __imm_const(sk_msg_md_local_ip4, offsetof(struct sk_msg_md, local_ip4)) in local_ip4_in_sk_msg() 120 : __imm_const(sk_msg_md_size, offsetof(struct sk_msg_md, size)) in access_size_in_sk_msg() 134 : __imm_const(sk_msg_md_size, offsetof(struct sk_msg_md, size)) in __flag() 147 : __imm_const(__imm_0, offsetof(struct sk_msg_md, size) + 4) in past_end_of_sk_msg() 161 : __imm_const(__imm_0, offsetof(struct sk_msg_md, family) + 1) in __flag() 180 : __imm_const(sk_msg_md_data, offsetof(struct sk_msg_md, data)), in packet_read_for_sk_msg() 181 __imm_const(sk_msg_md_data_end, offsetof(struct sk_msg_md, data_end)) in packet_read_for_sk_msg() 200 : __imm_const(sk_msg_md_data, offsetof(struct sk_msg_md, data)), in packet_write_for_sk_msg() [all …]
|
| A D | verifier_lwt.c | 23 : __imm_const(__sk_buff_data, offsetof(struct __sk_buff, data)), in packet_write_for_lwt_in() 24 __imm_const(__sk_buff_data_end, offsetof(struct __sk_buff, data_end)) in packet_write_for_lwt_in() 43 : __imm_const(__sk_buff_data, offsetof(struct __sk_buff, data)), in packet_write_for_lwt_out() 44 __imm_const(__sk_buff_data_end, offsetof(struct __sk_buff, data_end)) in packet_write_for_lwt_out() 63 : __imm_const(__sk_buff_data, offsetof(struct __sk_buff, data)), in packet_write_for_lwt_xmit() 64 __imm_const(__sk_buff_data_end, offsetof(struct __sk_buff, data_end)) in packet_write_for_lwt_xmit() 83 : __imm_const(__sk_buff_data, offsetof(struct __sk_buff, data)), in packet_read_for_lwt_in() 103 : __imm_const(__sk_buff_data, offsetof(struct __sk_buff, data)), in packet_read_for_lwt_out() 123 : __imm_const(__sk_buff_data, offsetof(struct __sk_buff, data)), in packet_read_for_lwt_xmit() 146 : __imm_const(__sk_buff_data, offsetof(struct __sk_buff, data)), in checks_for_direct_packet_access() [all …]
|
| A D | verifier_sock.c | 10 (offsetof(TYPE, MEMBER) + sizeof_field(TYPE, MEMBER)) 72 : __imm_const(__sk_buff_sk, offsetof(struct __sk_buff, sk)) in skb_sk_no_null_check() 90 : __imm_const(__sk_buff_sk, offsetof(struct __sk_buff, sk)), in sk_family_non_fullsock_field_1() 110 : __imm_const(__sk_buff_sk, offsetof(struct __sk_buff, sk)), in sk_sk_type_fullsock_field_1() 111 __imm_const(bpf_sock_type, offsetof(struct bpf_sock, type)) in sk_sk_type_fullsock_field_1() 128 __imm_const(__sk_buff_sk, offsetof(struct __sk_buff, sk)) in sk_no_skb_sk_check_1() 149 __imm_const(__sk_buff_sk, offsetof(struct __sk_buff, sk)), in no_null_check_on_ret_1() 173 __imm_const(__sk_buff_sk, offsetof(struct __sk_buff, sk)), in sk_sk_type_fullsock_field_2() 196 __imm_const(__sk_buff_sk, offsetof(struct __sk_buff, sk)), in sk_family_non_fullsock_field_2() 220 __imm_const(__sk_buff_sk, offsetof(struct __sk_buff, sk)), in sk_sk_state_narrow_load() [all …]
|
| A D | verifier_jeq_infer_not_null.c | 56 __imm_const(__sk_buff_sk, offsetof(struct __sk_buff, sk)), in socket_for_jne_false_branch() 57 __imm_const(bpf_sock_type, offsetof(struct bpf_sock, type)) in socket_for_jne_false_branch() 94 __imm_const(__sk_buff_sk, offsetof(struct __sk_buff, sk)), in unchanged_for_jne_true_branch() 95 __imm_const(bpf_sock_type, offsetof(struct bpf_sock, type)) in unchanged_for_jne_true_branch() 130 __imm_const(__sk_buff_sk, offsetof(struct __sk_buff, sk)), in socket_for_jeq_true_branch() 131 __imm_const(bpf_sock_type, offsetof(struct bpf_sock, type)) in socket_for_jeq_true_branch() 166 __imm_const(__sk_buff_sk, offsetof(struct __sk_buff, sk)), in unchanged_for_jeq_false_branch() 167 __imm_const(bpf_sock_type, offsetof(struct bpf_sock, type)) in unchanged_for_jeq_false_branch() 209 __imm_const(bpf_xdp_sock_queue_id, offsetof(struct bpf_xdp_sock, queue_id)) in null_ptr_to_map_value()
|
| A D | verifier_helper_value_access.c | 228 __imm_const(test_val_foo, offsetof(struct test_val, foo)) in via_const_imm_full_range() 255 __imm_const(test_val_foo, offsetof(struct test_val, foo)) in via_const_imm_partial_range() 281 __imm_const(test_val_foo, offsetof(struct test_val, foo)) in via_const_imm_empty_range() 309 __imm_const(test_val_foo, offsetof(struct test_val, foo)) in imm_out_of_bound_range() 336 __imm_const(test_val_foo, offsetof(struct test_val, foo)) in const_imm_negative_range_adjustment_1() 363 __imm_const(test_val_foo, offsetof(struct test_val, foo)) in const_imm_negative_range_adjustment_2() 392 __imm_const(test_val_foo, offsetof(struct test_val, foo)) in via_const_reg_full_range() 420 __imm_const(test_val_foo, offsetof(struct test_val, foo)) in via_const_reg_partial_range() 475 __imm_const(test_val_foo, offsetof(struct test_val, foo)) in reg_out_of_bound_range() 503 __imm_const(test_val_foo, offsetof(struct test_val, foo)) in const_reg_negative_range_adjustment_1() [all …]
|
| A D | verifier_ldsx.c | 157 : __imm_const(xdp_md_data, offsetof(struct xdp_md, data)) in ldsx_ctx_1() 171 : __imm_const(xdp_md_data_end, offsetof(struct xdp_md, data_end)) in ldsx_ctx_2() 185 : __imm_const(xdp_md_data_meta, offsetof(struct xdp_md, data_meta)) in ldsx_ctx_3() 199 : __imm_const(sk_buff_data, offsetof(struct __sk_buff, data)) in ldsx_ctx_4() 213 : __imm_const(sk_buff_data_end, offsetof(struct __sk_buff, data_end)) in ldsx_ctx_5() 227 : __imm_const(sk_buff_data_meta, offsetof(struct __sk_buff, data_meta)) in ldsx_ctx_6() 241 : __imm_const(sk_buff_data, offsetof(struct __sk_buff, data)) in ldsx_ctx_7() 255 : __imm_const(sk_buff_data_end, offsetof(struct __sk_buff, data_end)) in ldsx_ctx_8()
|
| A D | verifier_array_access.c | 72 __imm_const(test_val_foo, offsetof(struct test_val, foo)) in an_array_with_a_constant_1() 99 __imm_const(test_val_foo, offsetof(struct test_val, foo)) in __flag() 553 val->index = offsetof(struct test_val, foo); in an_array_with_a_constant_no_nullness() 570 val->index = offsetof(struct test_val, foo); in multiple_array_with_a_constant_no_nullness() 573 val2->index = offsetof(struct test_val, foo); in multiple_array_with_a_constant_no_nullness() 591 val->index = offsetof(struct test_val, foo); in an_array_with_a_32bit_constant_0_no_nullness() 606 val->index = offsetof(struct test_val, foo); in a_pcpu_array_with_a_constant_no_nullness() 621 val->index = offsetof(struct test_val, foo); in an_array_with_a_constant_no_nullness_out_of_bounds() 644 val->index = offsetof(struct test_val, foo); in an_array_with_a_constant_too_small() 662 val->index = offsetof(struct test_val, foo); in an_array_with_a_constant_too_big() [all …]
|
| A D | verifier_raw_stack.c | 146 __imm_const(__sk_buff_mark, offsetof(struct __sk_buff, mark)), in bytes_spilled_regs_around_bounds() 147 __imm_const(__sk_buff_priority, offsetof(struct __sk_buff, priority)) in bytes_spilled_regs_around_bounds() 170 __imm_const(__sk_buff_mark, offsetof(struct __sk_buff, mark)) in __flag() 201 __imm_const(__sk_buff_mark, offsetof(struct __sk_buff, mark)), in __flag() 202 __imm_const(__sk_buff_pkt_type, offsetof(struct __sk_buff, pkt_type)), in __flag() 203 __imm_const(__sk_buff_priority, offsetof(struct __sk_buff, priority)) in __flag() 232 __imm_const(__sk_buff_mark, offsetof(struct __sk_buff, mark)), in load_bytes_spilled_regs_data() 233 __imm_const(__sk_buff_priority, offsetof(struct __sk_buff, priority)) in load_bytes_spilled_regs_data()
|
| A D | verifier_spill_fill.c | 44 : __imm_const(__sk_buff_mark, offsetof(struct __sk_buff, mark)) in valid_spill_fill_skb_mark() 195 : __imm_const(__sk_buff_data, offsetof(struct __sk_buff, data)), in scalar_offset_to_skb_data_1() 196 __imm_const(__sk_buff_data_end, offsetof(struct __sk_buff, data_end)) in scalar_offset_to_skb_data_1() 245 : __imm_const(__sk_buff_data, offsetof(struct __sk_buff, data)), in u16_offset_to_skb_data() 246 __imm_const(__sk_buff_data_end, offsetof(struct __sk_buff, data_end)) in u16_offset_to_skb_data() 271 : __imm_const(__sk_buff_data, offsetof(struct __sk_buff, data)), in u64_offset_to_skb_data() 272 __imm_const(__sk_buff_data_end, offsetof(struct __sk_buff, data_end)) in u64_offset_to_skb_data() 303 : __imm_const(__sk_buff_data, offsetof(struct __sk_buff, data)), in _6_offset_to_skb_data() 330 : __imm_const(__sk_buff_data, offsetof(struct __sk_buff, data)), in addr_offset_to_skb_data() 364 : __imm_const(__sk_buff_data, offsetof(struct __sk_buff, data)), in scalar_offset_to_skb_data_2() [all …]
|
| A D | verifier_ctx.c | 20 : __imm_const(__sk_buff_mark, offsetof(struct __sk_buff, mark)) in context_stores_via_bpf_atomic() 35 offsetof(struct __sk_buff, data) - offsetof(struct __sk_buff, mark)), in make_ptr_to_ctx_unusable() 36 __imm_const(__sk_buff_mark, offsetof(struct __sk_buff, mark)) in make_ptr_to_ctx_unusable() 234 : __imm_const(off, offsetof(struct ctx, field) + 4) \ 260 __imm_const(off, offsetof(struct ctx, field) + 1) \
|
| /tools/testing/selftests/bpf/verifier/ |
| A D | ctx_sk_lookup.c | 6 offsetof(struct bpf_sk_lookup, family)), 8 offsetof(struct bpf_sk_lookup, family) + 1), 10 offsetof(struct bpf_sk_lookup, family) + 2), 12 offsetof(struct bpf_sk_lookup, family) + 3), 15 offsetof(struct bpf_sk_lookup, family)), 20 offsetof(struct bpf_sk_lookup, family)), 24 offsetof(struct bpf_sk_lookup, protocol)), 252 offsetof(struct bpf_sk_lookup, sk)), 391 offsetof(struct bpf_sk_lookup, sk)), 404 offsetof(struct bpf_sk_lookup, sk)), [all …]
|
| A D | ctx_skb.c | 5 offsetof(struct __sk_buff, len)), 8 offsetof(struct __sk_buff, mark)), 11 offsetof(struct __sk_buff, pkt_type)), 17 offsetof(struct __sk_buff, protocol)), 23 offsetof(struct __sk_buff, vlan_tci)), 26 offsetof(struct __sk_buff, napi_id)), 89 offsetof(struct __sk_buff, len)), 274 offsetof(struct __sk_buff, mark)), 286 offsetof(struct __sk_buff, mark)), 319 offsetof(struct __sk_buff, data)), [all …]
|
| A D | perf_event_sample_period.c | 7 offsetof(struct bpf_perf_event_data, sample_period)), 10 offsetof(struct bpf_perf_event_data, sample_period) + 7), 23 offsetof(struct bpf_perf_event_data, sample_period)), 26 offsetof(struct bpf_perf_event_data, sample_period) + 6), 39 offsetof(struct bpf_perf_event_data, sample_period)), 42 offsetof(struct bpf_perf_event_data, sample_period) + 4), 54 offsetof(struct bpf_perf_event_data, sample_period)),
|
| /tools/lib/bpf/ |
| A D | btf_iter.c | 57 1, {offsetof(struct btf_member, type)} in btf_field_iter_init() 62 1, {offsetof(struct btf_type, type)}, in btf_field_iter_init() 64 1, {offsetof(struct btf_param, type)} in btf_field_iter_init() 71 1, {offsetof(struct btf_var_secinfo, type)} in btf_field_iter_init() 98 1, {offsetof(struct btf_type, name_off)} in btf_field_iter_init() 103 1, {offsetof(struct btf_type, name_off)}, in btf_field_iter_init() 105 1, {offsetof(struct btf_enum, name_off)} in btf_field_iter_init() 110 1, {offsetof(struct btf_type, name_off)}, in btf_field_iter_init() 118 1, {offsetof(struct btf_type, name_off)}, in btf_field_iter_init() 125 1, {offsetof(struct btf_type, name_off)}, in btf_field_iter_init() [all …]
|
| A D | usdt.c | 1379 return offsetof(struct user_pt_regs, sp); in calc_pt_regs_off() 1522 { "r0", offsetof(struct pt_regs, uregs[0]) }, in calc_pt_regs_off() 1523 { "r1", offsetof(struct pt_regs, uregs[1]) }, in calc_pt_regs_off() 1524 { "r2", offsetof(struct pt_regs, uregs[2]) }, in calc_pt_regs_off() 1525 { "r3", offsetof(struct pt_regs, uregs[3]) }, in calc_pt_regs_off() 1526 { "r4", offsetof(struct pt_regs, uregs[4]) }, in calc_pt_regs_off() 1527 { "r5", offsetof(struct pt_regs, uregs[5]) }, in calc_pt_regs_off() 1528 { "r6", offsetof(struct pt_regs, uregs[6]) }, in calc_pt_regs_off() 1529 { "r7", offsetof(struct pt_regs, uregs[7]) }, in calc_pt_regs_off() 1530 { "r8", offsetof(struct pt_regs, uregs[8]) }, in calc_pt_regs_off() [all …]
|
| /tools/perf/util/ |
| A D | bpf-utils.c | 26 offsetof(struct bpf_prog_info, jited_prog_len), 35 offsetof(struct bpf_prog_info, map_ids), 36 offsetof(struct bpf_prog_info, nr_map_ids), 40 offsetof(struct bpf_prog_info, jited_ksyms), 41 offsetof(struct bpf_prog_info, nr_jited_ksyms), 50 offsetof(struct bpf_prog_info, func_info), 51 offsetof(struct bpf_prog_info, nr_func_info), 55 offsetof(struct bpf_prog_info, line_info), 56 offsetof(struct bpf_prog_info, nr_line_info), 65 offsetof(struct bpf_prog_info, prog_tags), [all …]
|
| /tools/testing/selftests/bpf/prog_tests/ |
| A D | sockopt.c | 114 offsetof(struct bpf_sockopt, optval)), 133 offsetof(struct bpf_sockopt, level)), 140 offsetof(struct bpf_sockopt, retval)), 163 offsetof(struct bpf_sockopt, level)), 176 offsetof(struct bpf_sockopt, optname)), 183 offsetof(struct bpf_sockopt, retval)), 205 offsetof(struct bpf_sockopt, retval)), 237 offsetof(struct bpf_sockopt, optlen)), 244 offsetof(struct bpf_sockopt, retval)), 267 offsetof(struct bpf_sockopt, optlen)), [all …]
|
| A D | sock_create.c | 34 offsetof(struct bpf_sock, priority)), 55 offsetof(struct bpf_sock, priority)), 86 offsetof(struct bpf_sock, mark)), 117 offsetof(struct bpf_sock, mark)), 138 offsetof(struct bpf_sock, bound_dev_if)), 181 offsetof(struct bpf_sock, family)), 186 offsetof(struct bpf_sock, type)), 191 offsetof(struct bpf_sock, protocol)), 214 offsetof(struct bpf_sock, family)), 219 offsetof(struct bpf_sock, type)), [all …]
|
| A D | uprobe_syscall.c | 126 case offsetof(struct pt_regs, rax): in test_uretprobe_regs_equal() 143 case offsetof(struct pt_regs, orig_rax): in test_uretprobe_regs_equal() 144 case offsetof(struct pt_regs, rip): in test_uretprobe_regs_equal() 145 case offsetof(struct pt_regs, cs): in test_uretprobe_regs_equal() 146 case offsetof(struct pt_regs, rsp): in test_uretprobe_regs_equal() 147 case offsetof(struct pt_regs, ss): in test_uretprobe_regs_equal() 202 case offsetof(struct pt_regs, rax): in test_uretprobe_regs_change() 205 case offsetof(struct pt_regs, rcx): in test_uretprobe_regs_change() 208 case offsetof(struct pt_regs, r11): in test_uretprobe_regs_change()
|
| /tools/perf/arch/x86/tests/ |
| A D | bp-modify.c | 82 offsetof(struct user, u_debugreg[0]), bp_2)) { in bp_modify1() 89 offsetof(struct user, u_debugreg[0]), bp_1)) { in bp_modify1() 96 offsetof(struct user, u_debugreg[7]), dr7)) { in bp_modify1() 113 offsetof(struct user_regs_struct, rip), NULL); in bp_modify1() 159 offsetof(struct user, u_debugreg[0]), bp_1)) { in bp_modify2() 166 offsetof(struct user, u_debugreg[7]), dr7)) { in bp_modify2() 172 offsetof(struct user, u_debugreg[0]), (unsigned long) (-1))) { in bp_modify2() 189 offsetof(struct user_regs_struct, rip), NULL); in bp_modify2()
|