| /linux/tools/testing/selftests/bpf/progs/ |
| H A D | string_kfuncs_failure1.c | 32 SEC("syscall") __retval(USER_PTR_ERR) int test_strcmp_null1(void *ctx) { return bpf_strcmp(NULL, "hello"); } in __retval() 33 SEC("syscall") __retval(USER_PTR_ERR)int test_strcmp_null2(void *ctx) { return bpf_strcmp("hello", NULL); } in __retval() 34 SEC("syscall") __retval(USER_PTR_ERR) int test_strcasecmp_null1(void *ctx) { return bpf_strcasecmp(NULL, "HELLO"); } in __retval() 35 SEC("syscall") __retval(USER_PTR_ERR)int test_strcasecmp_null2(void *ctx) { return bpf_strcasecmp("HELLO", NULL); } in __retval() 36 SEC("syscall") __retval(USER_PTR_ERR)int test_strncasecmp_null1(void *ctx) { return bpf_strncasecmp(NULL, "HELLO", 5); } in __retval() 37 SEC("syscall") __retval(USER_PTR_ERR)int test_strncasecmp_null2(void *ctx) { return bpf_strncasecmp("HELLO", NULL, 5); } in __retval() 38 SEC("syscall") __retval(USER_PTR_ERR)int test_strchr_null(void *ctx) { return bpf_strchr(NULL, 'a'); } in __retval() 39 SEC("syscall") __retval(USER_PTR_ERR)int test_strchrnul_null(void *ctx) { return bpf_strchrnul(NULL, 'a'); } in __retval() 40 SEC("syscall") __retval(USER_PTR_ERR)int test_strnchr_null(void *ctx) { return bpf_strnchr(NULL, 1, 'a'); } in __retval() 41 SEC("syscal in __retval() [all...] |
| H A D | verifier_sock_addr.c | 9 SEC("cgroup/recvmsg4") 16 SEC("cgroup/recvmsg4") 23 SEC("cgroup/recvmsg6") 30 SEC("cgroup/recvmsg6") 37 SEC("cgroup/recvmsg_unix") 44 SEC("cgroup/recvmsg_unix") 51 SEC("cgroup/sendmsg4") 58 SEC("cgroup/sendmsg4") 65 SEC("cgroup/sendmsg4") 72 SEC("cgroup/sendmsg6") [all …]
|
| H A D | verifier_sdiv.c | 14 SEC("socket") 26 SEC("socket") 38 SEC("socket") 50 SEC("socket") 62 SEC("socket") 74 SEC("socket") 86 SEC("socket") 98 SEC("socket") 110 SEC("socket") 123 SEC("socket") [all …]
|
| H A D | verifier_bounds.c | 14 } map_hash_8b SEC(".maps"); 16 SEC("socket") 47 SEC("socket") 78 SEC("socket") 111 SEC("socket") 141 SEC("socket") 172 SEC("socket") 203 SEC("tc") 232 SEC("tc") 262 SEC("socket") [all …]
|
| H A D | verifier_unpriv.c | 31 } map_hash_8b SEC(".maps"); 42 } map_prog1_socket SEC(".maps") = { 50 SEC("socket") 57 SEC("socket") 64 SEC("socket") 80 SEC("socket") 92 SEC("socket") 104 SEC("socket") 117 SEC("socket") 130 SEC("socke [all...] |
| H A D | verifier_bounds_deduction_non_const.c | 7 SEC("socket") 28 SEC("socket") 49 SEC("socket") 71 SEC("socket") 93 SEC("socket") 114 SEC("socket") 135 SEC("socket") 157 SEC("socket") 179 SEC("socket") 198 SEC("socket") [all …]
|
| H A D | verifier_subreg.c | 21 SEC("socket") 38 SEC("socket") 68 SEC("socket") 85 SEC("socket") 109 SEC("socket") 126 SEC("socket") 150 SEC("socket") 167 SEC("socket") 191 SEC("socket") 208 SEC("socke [all...] |
| H A D | verifier_stack_ptr.c | 21 } map_array_48b SEC(".maps"); 23 SEC("socket") 38 SEC("socket") 54 SEC("socket") 70 SEC("socket") 86 SEC("socket") 102 SEC("socket") 117 SEC("socket") 131 SEC("socket") 148 SEC("socket") [all …]
|
| H A D | verifier_helper_access_var_len.c | 20 } map_hash_48b SEC(".maps"); 27 } map_hash_8b SEC(".maps"); 32 } map_ringbuf SEC(".maps"); 34 SEC("tracepoint") 66 SEC("socket") 101 SEC("tracepoint") 124 SEC("tracepoint") 156 SEC("tracepoint") 188 SEC("tracepoint") 212 SEC("tracepoint") [all …]
|
| H A D | verifier_helper_value_access.c | 18 } map_hash_16b SEC(".maps"); 32 } map_hash_48b SEC(".maps"); 39 } map_hash_8b SEC(".maps"); 41 SEC("tracepoint") 67 SEC("tracepoint") 97 SEC("tracepoint") 124 SEC("tracepoint") 153 SEC("tracepoint") 179 SEC("tracepoint") 204 SEC("tracepoint") [all …]
|
| H A D | verifier_value_ptr_arith.c | 21 } map_array_48b SEC(".maps"); 33 } map_hash_16b SEC(".maps"); 40 } map_hash_48b SEC(".maps"); 42 SEC("socket") 80 SEC("socket") 118 SEC("socket") 154 SEC("socket") 188 SEC("socket") 226 SEC("socket") 271 SEC("socket") [all …]
|
| H A D | verifier_spill_fill.c | 12 } map_ringbuf SEC(".maps"); 14 SEC("socket") 32 SEC("socket") 48 SEC("socket") 85 SEC("socket") 121 SEC("socket") 144 SEC("socket") 159 SEC("socket") 174 SEC("tc") 200 SEC("socket") [all …]
|
| H A D | verifier_xdp_direct_packet_access.c | 8 SEC("xdp") 29 SEC("xdp") 50 SEC("xdp") 70 SEC("xdp") 91 SEC("xdp") 112 SEC("xdp") 132 SEC("xdp") 153 SEC("xdp") 174 SEC("xdp") 196 SEC("xdp") [all …]
|
| H A D | verifier_sock.c | 13 } map_reuseport_array SEC(".maps"); 20 } map_sockhash SEC(".maps"); 27 } map_sockmap SEC(".maps"); 34 } map_xskmap SEC(".maps"); 47 } sk_storage_map SEC(".maps"); 54 } jmp_table SEC(".maps"); 56 SEC("cgroup/skb") 72 SEC("cgroup/skb") 91 SEC("cgroup/skb") 111 SEC("cgroup/skb") [all …]
|
| H A D | verifier_ref_tracking.c | 56 } map_array_48b SEC(".maps"); 61 } map_ringbuf SEC(".maps"); 72 } map_prog1_tc SEC(".maps") = { 80 SEC("tc") 87 SEC("tc") 94 SEC("tc") 110 SEC("tc") 125 SEC("tc") 140 SEC("tc") 158 SEC("tc") [all …]
|
| H A D | string_kfuncs_failure2.c | 9 SEC("syscall") int test_strcmp_too_long(void *ctx) { return bpf_strcmp(long_str, long_str); } in test_strcmp_too_long() 10 SEC("syscall") int test_strcasecmp_too_long(void *ctx) { return bpf_strcasecmp(long_str, long_str); } in test_strcasecmp_too_long() 11 SEC("syscall") int test_strncasecmp_too_long(void *ctx) { return bpf_strncasecmp(long_str, long_str, sizeof(long_str)); } in test_strchr_too_long() 12 SEC("syscall") int test_strchr_too_long(void *ctx) { return bpf_strchr(long_str, 'b'); } in test_strchrnul_too_long() 13 SEC("syscall") int test_strchrnul_too_long(void *ctx) { return bpf_strchrnul(long_str, 'b'); } in test_strnchr_too_long() 14 SEC("syscall") int test_strnchr_too_long(void *ctx) { return bpf_strnchr(long_str, sizeof(long_str), 'b'); } in test_strrchr_too_long() 15 SEC("syscall") int test_strrchr_too_long(void *ctx) { return bpf_strrchr(long_str, 'b'); } in test_strlen_too_long() 16 SEC("syscall") int test_strlen_too_long(void *ctx) { return bpf_strlen(long_str); } in test_strnlen_too_long() 17 SEC("syscall") int test_strnlen_too_long(void *ctx) { return bpf_strnlen(long_str, sizeof(long_str)); } in test_strspn_str_too_long() 18 SEC("syscal in test_strspn_str_too_long() [all...] |
| H A D | verifier_iterating_callbacks.c | 10 } map SEC(".maps"); 15 } ringbuf SEC(".maps"); 44 SEC("?raw_tp") 61 SEC("?raw_tp") 77 SEC("?raw_tp") 96 SEC("?raw_tp") 124 SEC("?raw_tp") 139 SEC("?raw_tp") 154 SEC("?raw_tp") 171 SEC("?raw_tp") [all …]
|
| H A D | dynptr_fail.c | 14 char _license[] SEC("license") = "GPL"; 26 } array_map1 SEC(".maps"); 33 } array_map2 SEC(".maps"); 40 } array_map3 SEC(".maps"); 47 } array_map4 SEC(".maps"); 58 } ringbuf SEC(".maps"); 80 SEC("?raw_tp") 93 SEC("?raw_tp") 129 SEC("?raw_tp") 138 SEC(" [all...] |
| H A D | verifier_linked_scalars.c | 8 SEC("socket") 43 SEC("socket") 68 SEC("socket") 89 SEC("socket") 110 SEC("socket") 131 SEC("socket") 152 SEC("socket") 173 SEC("socket") 194 SEC("socket") 220 SEC("socket") [all …]
|
| H A D | trigger_bench.c | 9 char _license[] SEC("license") = "GPL"; 37 } stack_heap SEC(".maps"); in bench_trigger_uprobe_multi() 56 SEC("?uprobe") 63 SEC("?uprobe.multi") in trigger_driver() 72 SEC("?raw_tp") in trigger_driver_kfunc() 85 SEC("?raw_tp") in bench_trigger_kprobe() 98 SEC("?raw_tp") in bench_trigger_kprobe_multi() 109 SEC("?kprobe/bpf_get_numa_node_id") in bench_trigger_kretprobe_multi() 116 SEC("?kretprobe/bpf_get_numa_node_id") in bench_kretprobe_multi_empty() 123 SEC(" in bench_trigger_fentry() [all...] |
| H A D | verifier_masking.c | 8 SEC("socket") 28 SEC("socket") 48 SEC("socket") 68 SEC("socket") 88 SEC("socket") 108 SEC("socket") 128 SEC("socket") 148 SEC("socket") 168 SEC("socket") 188 SEC("socket") [all …]
|
| H A D | verifier_loops1.c | 8 SEC("xdp") 21 SEC("tracepoint") 34 SEC("tracepoint") 50 SEC("tracepoint") 65 SEC("tracepoint") 78 SEC("socket") 93 SEC("xdp") 107 SEC("tracepoint") 124 SEC("tracepoint") 138 SEC("tracepoint") [all …]
|
| H A D | verifier_movsx.c | 13 SEC("socket") 25 SEC("socket") 37 SEC("socket") 49 SEC("socket") 61 SEC("socket") 74 SEC("socket") 96 SEC("socket") 118 SEC("socket") 139 SEC("socket") 161 SEC("socket") [all …]
|
| H A D | irq.c | 14 struct bpf_res_spin_lock lockA __hidden SEC(".data.A"); 15 struct bpf_res_spin_lock lockB __hidden SEC(".data.B"); 17 SEC("?tc") 25 SEC("?tc") 33 SEC("?tc") 45 SEC("?tc") 59 SEC("?tc") 85 SEC("?tc") 95 SEC("?tc") 107 SEC("?tc") [all …]
|
| /linux/tools/testing/selftests/hid/progs/ |
| H A D | hid.c | 5 char _license[] SEC("license") = "GPL"; 17 SEC("?struct_ops/hid_device_event") 32 SEC(".struct_ops.link") 50 SEC("?struct_ops/hid_device_event") 56 SEC(".struct_ops.link") 62 SEC("?struct_ops/hid_device_event") 75 SEC(".struct_ops.link") 80 SEC("?struct_ops/hid_device_event") 93 SEC(".struct_ops.link") 108 SEC("syscall") [all …]
|