| /linux/tools/testing/selftests/bpf/progs/ |
| 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 | 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_strchr_null(void *ctx) { return bpf_strchr(NULL, 'a'); } in __retval() 37 SEC("syscall") __retval(USER_PTR_ERR)int test_strchrnul_null(void *ctx) { return bpf_strchrnul(NULL, 'a'); } in __retval() 38 SEC("syscall") __retval(USER_PTR_ERR)int test_strnchr_null(void *ctx) { return bpf_strnchr(NULL, 1, 'a'); } in __retval() 39 SEC("syscall") __retval(USER_PTR_ERR)int test_strrchr_null(void *ctx) { return bpf_strrchr(NULL, 'a'); } in __retval() 40 SEC("syscall") __retval(USER_PTR_ERR)int test_strlen_null(void *ctx) { return bpf_strlen(NULL); } in __retval() 41 SEC("syscal in __retval() [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_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_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("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("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("socke [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_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("socke [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_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("socke [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_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_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_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 | 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 | 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") in skb_sk_no_null_check() 91 SEC("cgroup/skb") in sk_family_non_fullsock_field_1() 111 SEC("cgrou in sk_sk_type_fullsock_field_1() [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("tracepoin [all...] |
| H A D | verifier_div0.c | 8 SEC("socket") 22 SEC("socket") 36 SEC("socket") 50 SEC("socket") 64 SEC("socket") 78 SEC("socket") 92 SEC("tc") 107 SEC("tc") 120 SEC("tc") 133 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_strchr_too_long() 11 SEC("syscall") int test_strchr_too_long(void *ctx) { return bpf_strchr(long_str, 'b'); } in test_strchrnul_too_long() 12 SEC("syscall") int test_strchrnul_too_long(void *ctx) { return bpf_strchrnul(long_str, 'b'); } in test_strnchr_too_long() 13 SEC("syscall") int test_strnchr_too_long(void *ctx) { return bpf_strnchr(long_str, sizeof(long_str), 'b'); } in test_strrchr_too_long() 14 SEC("syscall") int test_strrchr_too_long(void *ctx) { return bpf_strrchr(long_str, 'b'); } in test_strlen_too_long() 15 SEC("syscall") int test_strlen_too_long(void *ctx) { return bpf_strlen(long_str); } in test_strnlen_too_long() 16 SEC("syscall") int test_strnlen_too_long(void *ctx) { return bpf_strnlen(long_str, sizeof(long_str)); } in test_strspn_str_too_long() 17 SEC("syscall") int test_strspn_str_too_long(void *ctx) { return bpf_strspn(long_str, "a"); } in test_strspn_accept_too_long() 18 SEC("syscal in test_strspn_accept_too_long() [all...] |
| H A D | trigger_bench.c | 9 char _license[] SEC("license") = "GPL"; 28 SEC("?uprobe") 35 SEC("?uprobe.multi") 44 SEC("?raw_tp") 57 SEC("?raw_tp") in trigger_driver() 70 SEC("?raw_tp") in trigger_driver_kfunc() 81 SEC("?kprobe/bpf_get_numa_node_id") in bench_trigger_kprobe() 88 SEC("?kretprobe/bpf_get_numa_node_id") in bench_trigger_kretprobe() 95 SEC("?kprobe.multi/bpf_get_numa_node_id") in bench_trigger_kprobe_multi() 102 SEC(" in bench_trigger_kretprobe_multi() [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(" [all...] |
| H A D | verifier_lsm.c | 7 SEC("lsm/file_permission") 18 SEC("lsm/file_permission") 29 SEC("lsm/file_mprotect") 40 SEC("lsm/file_mprotect") 51 SEC("lsm/file_mprotect") 62 SEC("lsm/audit_rule_known") 73 SEC("lsm/audit_rule_known") 85 SEC("lsm/audit_rule_known") 96 SEC("lsm/audit_rule_known") 107 SEC("ls [all...] |
| H A D | compute_live_registers.c | 14 } test_map SEC(".maps"); 20 } arena SEC(".maps"); 22 SEC("socket") 54 SEC("socket") 77 SEC("socket") 100 SEC("socket") 117 SEC("socket") 132 SEC("socket") 168 SEC("socket") 193 SEC("socket") [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 …]
|