Home
last modified time | relevance | path

Searched defs:ctx (Results 1 – 25 of 508) sorted by relevance

12345678910>>...21

/tools/testing/selftests/bpf/progs/
Dverifier_sock_addr.c11 int recvmsg4_good_return_code(struct bpf_sock_addr *ctx) in recvmsg4_good_return_code()
18 int recvmsg4_bad_return_code(struct bpf_sock_addr *ctx) in recvmsg4_bad_return_code()
25 int recvmsg6_good_return_code(struct bpf_sock_addr *ctx) in recvmsg6_good_return_code()
32 int recvmsg6_bad_return_code(struct bpf_sock_addr *ctx) in recvmsg6_bad_return_code()
39 int recvmsg_unix_good_return_code(struct bpf_sock_addr *ctx) in recvmsg_unix_good_return_code()
46 int recvmsg_unix_bad_return_code(struct bpf_sock_addr *ctx) in recvmsg_unix_bad_return_code()
53 int sendmsg4_good_return_code_0(struct bpf_sock_addr *ctx) in sendmsg4_good_return_code_0()
60 int sendmsg4_good_return_code_1(struct bpf_sock_addr *ctx) in sendmsg4_good_return_code_1()
67 int sendmsg4_bad_return_code(struct bpf_sock_addr *ctx) in sendmsg4_bad_return_code()
74 int sendmsg6_good_return_code_0(struct bpf_sock_addr *ctx) in sendmsg6_good_return_code_0()
[all …]
Dlinked_list_fail.c171 int map_compat_kprobe(void *ctx) in map_compat_kprobe()
178 int map_compat_kretprobe(void *ctx) in map_compat_kretprobe()
185 int map_compat_tp(void *ctx) in map_compat_tp()
192 int map_compat_perf(void *ctx) in map_compat_perf()
199 int map_compat_raw_tp(void *ctx) in map_compat_raw_tp()
206 int map_compat_raw_tp_w(void *ctx) in map_compat_raw_tp_w()
213 int obj_type_id_oor(void *ctx) in obj_type_id_oor()
220 int obj_new_no_composite(void *ctx) in obj_new_no_composite()
227 int obj_new_no_struct(void *ctx) in obj_new_no_struct()
235 int obj_drop_non_zero_off(void *ctx) in obj_drop_non_zero_off()
[all …]
Dverifier_lsm.c10 __naked int errno_zero_retval_test1(void *ctx) in errno_zero_retval_test1()
21 __naked int errno_zero_retval_test2(void *ctx) in errno_zero_retval_test2()
32 __naked int errno_zero_retval_test4(void *ctx) in errno_zero_retval_test4()
43 __naked int errno_zero_retval_test5(void *ctx) in errno_zero_retval_test5()
54 __naked int errno_zero_retval_test6(void *ctx) in errno_zero_retval_test6()
65 __naked int bool_retval_test1(void *ctx) in bool_retval_test1()
77 __naked int bool_retval_test2(void *ctx) in bool_retval_test2()
88 __naked int bool_retval_test3(void *ctx) in bool_retval_test3()
99 __naked int bool_retval_test4(void *ctx) in bool_retval_test4()
110 __naked int void_retval_test1(void *ctx) in void_retval_test1()
[all …]
Dtest_global_func_ctx_args.c17 __weak int kprobe_typedef_ctx_subprog(bpf_user_pt_regs_t *ctx) in kprobe_typedef_ctx_subprog()
24 int kprobe_typedef_ctx(void *ctx) in kprobe_typedef_ctx()
48 __weak int kprobe_struct_ctx_subprog(pt_regs_struct_t *ctx) in kprobe_struct_ctx_subprog()
55 int kprobe_resolved_ctx(void *ctx) in kprobe_resolved_ctx()
65 __weak int kprobe_workaround_ctx_subprog(struct bpf_user_pt_regs_t *ctx) in kprobe_workaround_ctx_subprog()
72 int kprobe_workaround_ctx(void *ctx) in kprobe_workaround_ctx()
81 __weak int raw_tp_ctx_subprog(struct bpf_raw_tracepoint_args *ctx) in raw_tp_ctx_subprog()
88 int raw_tp_ctx(void *ctx) in raw_tp_ctx()
97 __weak int raw_tp_writable_ctx_subprog(struct bpf_raw_tracepoint_args *ctx) in raw_tp_writable_ctx_subprog()
104 int raw_tp_writable_ctx(void *ctx) in raw_tp_writable_ctx()
[all …]
Dtrigger_bench.c29 int bench_trigger_uprobe(void *ctx) in bench_trigger_uprobe()
36 int bench_trigger_uprobe_multi(void *ctx) in bench_trigger_uprobe_multi()
45 int trigger_count(void *ctx) in trigger_count()
56 int trigger_driver(void *ctx) in trigger_driver()
69 int trigger_driver_kfunc(void *ctx) in trigger_driver_kfunc()
80 int bench_trigger_kprobe(void *ctx) in bench_trigger_kprobe()
87 int bench_trigger_kretprobe(void *ctx) in bench_trigger_kretprobe()
94 int bench_trigger_kprobe_multi(void *ctx) in bench_trigger_kprobe_multi()
101 int bench_trigger_kretprobe_multi(void *ctx) in bench_trigger_kretprobe_multi()
108 int bench_trigger_fentry(void *ctx) in bench_trigger_fentry()
[all …]
Drcu_read_lock.c30 int get_cgroup_id(void *ctx) in get_cgroup_id()
51 int task_succ(void *ctx) in task_succ()
80 int no_lock(void *ctx) in no_lock()
92 int two_regions(void *ctx) in two_regions()
111 int non_sleepable_1(void *ctx) in non_sleepable_1()
127 int non_sleepable_2(void *ctx) in non_sleepable_2()
146 int task_acquire(void *ctx) in task_acquire()
174 int miss_lock(void *ctx) in miss_lock()
188 int miss_unlock(void *ctx) in miss_unlock()
200 int non_sleepable_rcu_mismatch(void *ctx) in non_sleepable_rcu_mismatch()
[all …]
Dpreempt_lock.c10 int preempt_lock_missing_1(struct __sk_buff *ctx) in preempt_lock_missing_1()
18 int preempt_lock_missing_2(struct __sk_buff *ctx) in preempt_lock_missing_2()
27 int preempt_lock_missing_3(struct __sk_buff *ctx) in preempt_lock_missing_3()
37 int preempt_lock_missing_3_minus_2(struct __sk_buff *ctx) in preempt_lock_missing_3_minus_2()
59 int preempt_lock_missing_1_subprog(struct __sk_buff *ctx) in preempt_lock_missing_1_subprog()
67 int preempt_lock_missing_2_subprog(struct __sk_buff *ctx) in preempt_lock_missing_2_subprog()
76 int preempt_lock_missing_2_minus_1_subprog(struct __sk_buff *ctx) in preempt_lock_missing_2_minus_1_subprog()
91 __success int preempt_balance(struct __sk_buff *ctx) in preempt_balance()
98 __success int preempt_balance_subprog_test(struct __sk_buff *ctx) in preempt_balance_subprog_test()
106 int preempt_sleepable_helper(void *ctx) in preempt_sleepable_helper()
[all …]
Dtest_sk_lookup.c76 int lookup_pass(struct bpf_sk_lookup *ctx) in lookup_pass()
82 int lookup_drop(struct bpf_sk_lookup *ctx) in lookup_drop()
88 int check_ifindex(struct bpf_sk_lookup *ctx) in check_ifindex()
96 int reuseport_pass(struct sk_reuseport_md *ctx) in reuseport_pass()
102 int reuseport_drop(struct sk_reuseport_md *ctx) in reuseport_drop()
109 int redir_port(struct bpf_sk_lookup *ctx) in redir_port()
128 int redir_ip4(struct bpf_sk_lookup *ctx) in redir_ip4()
151 int redir_ip6(struct bpf_sk_lookup *ctx) in redir_ip6()
176 int select_sock_a(struct bpf_sk_lookup *ctx) in select_sock_a()
191 int select_sock_a_no_reuseport(struct bpf_sk_lookup *ctx) in select_sock_a_no_reuseport()
[all …]
Ddynptr_fail.c82 int ringbuf_missing_release1(void *ctx) in ringbuf_missing_release1()
95 int ringbuf_missing_release2(void *ctx) in ringbuf_missing_release2()
131 int ringbuf_missing_release_callback(void *ctx) in ringbuf_missing_release_callback()
140 int ringbuf_release_uninit_dynptr(void *ctx) in ringbuf_release_uninit_dynptr()
153 int use_after_invalid(void *ctx) in use_after_invalid()
173 int ringbuf_invalid_api(void *ctx) in ringbuf_invalid_api()
196 int add_dynptr_to_map1(void *ctx) in add_dynptr_to_map1()
214 int add_dynptr_to_map2(void *ctx) in add_dynptr_to_map2()
232 int data_slice_out_of_bounds_ringbuf(void *ctx) in data_slice_out_of_bounds_ringbuf()
274 int data_slice_out_of_bounds_map_value(void *ctx) in data_slice_out_of_bounds_map_value()
[all …]
Diters_state_safety.c19 int force_clang_to_emit_btf_for_externs(void *ctx) in force_clang_to_emit_btf_for_externs()
34 int create_and_destroy(void *ctx) in create_and_destroy()
57 int create_and_forget_to_destroy_fail(void *ctx) in create_and_forget_to_destroy_fail()
77 int destroy_without_creating_fail(void *ctx) in destroy_without_creating_fail()
95 int compromise_iter_w_direct_write_fail(void *ctx) in compromise_iter_w_direct_write_fail()
122 int compromise_iter_w_direct_write_and_skip_destroy_fail(void *ctx) in compromise_iter_w_direct_write_and_skip_destroy_fail()
147 int compromise_iter_w_helper_write_fail(void *ctx) in compromise_iter_w_helper_write_fail()
190 int leak_iter_from_subprog_fail(void *ctx) in leak_iter_from_subprog_fail()
200 int valid_stack_reuse(void *ctx) in valid_stack_reuse()
234 int double_create_fail(void *ctx) in double_create_fail()
[all …]
Dexceptions_fail.c97 int reject_async_callback_throw(struct __sk_buff *ctx) in reject_async_callback_throw()
107 __noinline static int subprog_lock(struct __sk_buff *ctx) in subprog_lock()
119 int reject_with_lock(void *ctx) in reject_with_lock()
128 int reject_subprog_with_lock(void *ctx) in reject_subprog_with_lock()
135 int reject_with_rcu_read_lock(void *ctx) in reject_with_rcu_read_lock()
142 __noinline static int throwing_subprog(struct __sk_buff *ctx) in throwing_subprog()
151 int reject_subprog_with_rcu_read_lock(void *ctx) in reject_subprog_with_rcu_read_lock()
165 int reject_with_rbtree_add_throw(void *ctx) in reject_with_rbtree_add_throw()
180 int reject_with_reference(void *ctx) in reject_with_reference()
191 __noinline static int subprog_ref(struct __sk_buff *ctx) in subprog_ref()
[all …]
Dexceptions.c46 int exception_throw_always_1(struct __sk_buff *ctx) in exception_throw_always_1()
57 int exception_throw_always_2(struct __sk_buff *ctx) in exception_throw_always_2()
63 int exception_throw_unwind_1(struct __sk_buff *ctx) in exception_throw_unwind_1()
69 int exception_throw_unwind_2(struct __sk_buff *ctx) in exception_throw_unwind_2()
75 int exception_throw_default(struct __sk_buff *ctx) in exception_throw_default()
82 int exception_throw_default_value(struct __sk_buff *ctx) in exception_throw_default_value()
89 int exception_tail_call_target(struct __sk_buff *ctx) in exception_tail_call_target()
96 int exception_tail_call_subprog(struct __sk_buff *ctx) in exception_tail_call_subprog()
105 int exception_tail_call(struct __sk_buff *ctx) { in exception_tail_call()
112 __noinline int exception_ext_global(struct __sk_buff *ctx) in exception_ext_global()
[all …]
Dmap_kptr_fail.c25 int size_not_bpf_dw(struct __sk_buff *ctx) in size_not_bpf_dw()
40 int non_const_var_off(struct __sk_buff *ctx) in non_const_var_off()
59 int non_const_var_off_kptr_xchg(struct __sk_buff *ctx) in non_const_var_off_kptr_xchg()
78 int misaligned_access_write(struct __sk_buff *ctx) in misaligned_access_write()
94 int misaligned_access_read(struct __sk_buff *ctx) in misaligned_access_read()
108 int reject_var_off_store(struct __sk_buff *ctx) in reject_var_off_store()
132 int reject_bad_type_match(struct __sk_buff *ctx) in reject_bad_type_match()
153 int marked_as_untrusted_or_null(struct __sk_buff *ctx) in marked_as_untrusted_or_null()
168 int correct_btf_id_check_size(struct __sk_buff *ctx) in correct_btf_id_check_size()
186 int inherit_untrusted_on_walk(struct __sk_buff *ctx) in inherit_untrusted_on_walk()
[all …]
Diters.c31 int iter_err_unsafe_c_loop(const void *ctx) in iter_err_unsafe_c_loop()
51 int iter_err_unsafe_asm_loop(const void *ctx) in iter_err_unsafe_asm_loop()
93 int iter_while_loop(const void *ctx) in iter_while_loop()
111 int iter_while_loop_auto_cleanup(const void *ctx) in iter_while_loop_auto_cleanup()
129 int iter_for_loop(const void *ctx) in iter_for_loop()
147 int iter_bpf_for_each_macro(const void *ctx) in iter_bpf_for_each_macro()
162 int iter_bpf_for_macro(const void *ctx) in iter_bpf_for_macro()
177 int iter_pragma_unroll_loop(const void *ctx) in iter_pragma_unroll_loop()
197 int iter_manual_unroll_loop(const void *ctx) in iter_manual_unroll_loop()
220 int iter_multiple_sequential_loops(const void *ctx) in iter_multiple_sequential_loops()
[all …]
Diters_num.c14 int num_empty_zero(const void *ctx) in num_empty_zero()
28 int num_empty_int_min(const void *ctx) in num_empty_int_min()
42 int num_empty_int_max(const void *ctx) in num_empty_int_max()
56 int num_empty_minus_one(const void *ctx) in num_empty_minus_one()
70 int num_simple_sum(const void *ctx) in num_simple_sum()
84 int num_neg_sum(const void *ctx) in num_neg_sum()
98 int num_very_neg_sum(const void *ctx) in num_very_neg_sum()
112 int num_very_big_sum(const void *ctx) in num_very_big_sum()
126 int num_neg_pos_sum(const void *ctx) in num_neg_pos_sum()
140 int num_invalid_range(const void *ctx) in num_invalid_range()
[all …]
Dtest_spin_lock_fail.c35 int lock_id_kptr_preserve(void *ctx) in lock_id_kptr_preserve()
47 int lock_id_global_zero(void *ctx) in lock_id_global_zero()
54 int lock_id_mapval_preserve(void *ctx) in lock_id_mapval_preserve()
67 int lock_id_innermapval_preserve(void *ctx) in lock_id_innermapval_preserve()
124 int lock_id_mismatch_mapval_mapval(void *ctx) in lock_id_mismatch_mapval_mapval()
148 int lock_id_mismatch_innermapval_innermapval1(void *ctx) in lock_id_mismatch_innermapval_innermapval1()
172 int lock_id_mismatch_innermapval_innermapval2(void *ctx) in lock_id_mismatch_innermapval_innermapval2()
205 int global_subprog(struct __sk_buff *ctx) in global_subprog()
215 static int static_subprog_call_global(struct __sk_buff *ctx) in static_subprog_call_global()
225 int lock_global_subprog_call1(struct __sk_buff *ctx) in lock_global_subprog_call1()
[all …]
Dtest_bpf_cookie.c25 static void update(void *ctx, __u64 *res) in update()
34 int handle_kprobe(struct pt_regs *ctx) in handle_kprobe()
41 int handle_kretprobe(struct pt_regs *ctx) in handle_kretprobe()
48 int handle_uprobe(struct pt_regs *ctx) in handle_uprobe()
55 int handle_uretprobe(struct pt_regs *ctx) in handle_uretprobe()
67 int handle_tp1(struct pt_regs *ctx) in handle_tp1()
73 int handle_tp2(struct pt_regs *ctx) in handle_tp2()
79 int handle_tp3(void *ctx) in handle_tp3()
86 int handle_pe(struct pt_regs *ctx) in handle_pe()
93 int handle_raw_tp(void *ctx) in handle_raw_tp()
[all …]
Dexceptions_ext.c7 int pfentry(void *ctx) in pfentry()
13 int throwing_fentry(void *ctx) in throwing_fentry()
25 int extension(struct __sk_buff *ctx) in extension()
47 int pfexit(void *ctx) in pfexit()
53 int throwing_fexit(void *ctx) in throwing_fexit()
60 int pfmod_ret(void *ctx) in pfmod_ret()
66 int throwing_fmod_ret(void *ctx) in throwing_fmod_ret()
Drbtree_fail.c33 long rbtree_api_nolock_add(void *ctx) in rbtree_api_nolock_add()
47 long rbtree_api_nolock_remove(void *ctx) in rbtree_api_nolock_remove()
65 long rbtree_api_nolock_first(void *ctx) in rbtree_api_nolock_first()
73 long rbtree_api_remove_unadded_node(void *ctx) in rbtree_api_remove_unadded_node()
109 long rbtree_api_remove_no_drop(void *ctx) in rbtree_api_remove_no_drop()
137 long rbtree_api_add_to_multiple_trees(void *ctx) in rbtree_api_add_to_multiple_trees()
156 long rbtree_api_use_unchecked_remove_retval(void *ctx) in rbtree_api_use_unchecked_remove_retval()
182 long rbtree_api_add_release_unlock_escape(void *ctx) in rbtree_api_add_release_unlock_escape()
206 long rbtree_api_first_release_unlock_escape(void *ctx) in rbtree_api_first_release_unlock_escape()
284 long rbtree_api_add_bad_cb_bad_fn_call_add(void *ctx) in rbtree_api_add_bad_cb_bad_fn_call_add()
[all …]
Dtest_tcp_custom_syncookie.c73 static int tcp_load_headers(struct tcp_syncookie *ctx) in tcp_load_headers()
126 static int tcp_reload_headers(struct tcp_syncookie *ctx) in tcp_reload_headers()
161 static __sum16 tcp_v4_csum(struct tcp_syncookie *ctx, __wsum csum) in tcp_v4_csum()
167 static __sum16 tcp_v6_csum(struct tcp_syncookie *ctx, __wsum csum) in tcp_v6_csum()
173 static int tcp_validate_header(struct tcp_syncookie *ctx) in tcp_validate_header()
202 static __always_inline void *next(struct tcp_syncookie *ctx, __u32 sz) in next()
220 static int tcp_parse_option(__u32 index, struct tcp_syncookie *ctx) in tcp_parse_option()
284 static void tcp_parse_options(struct tcp_syncookie *ctx) in tcp_parse_options()
291 static int tcp_validate_sysctl(struct tcp_syncookie *ctx) in tcp_validate_sysctl()
314 static void tcp_prepare_cookie(struct tcp_syncookie *ctx) in tcp_prepare_cookie()
[all …]
Duser_ringbuf_fail.c45 int user_ringbuf_callback_bad_access1(void *ctx) in user_ringbuf_callback_bad_access1()
68 int user_ringbuf_callback_bad_access2(void *ctx) in user_ringbuf_callback_bad_access2()
88 int user_ringbuf_callback_write_forbidden(void *ctx) in user_ringbuf_callback_write_forbidden()
108 int user_ringbuf_callback_null_context_write(void *ctx) in user_ringbuf_callback_null_context_write()
130 int user_ringbuf_callback_null_context_read(void *ctx) in user_ringbuf_callback_null_context_read()
150 int user_ringbuf_callback_discard_dynptr(void *ctx) in user_ringbuf_callback_discard_dynptr()
170 int user_ringbuf_callback_submit_dynptr(void *ctx) in user_ringbuf_callback_submit_dynptr()
188 int user_ringbuf_callback_invalid_return(void *ctx) in user_ringbuf_callback_invalid_return()
211 int user_ringbuf_callback_reinit_dynptr_mem(void *ctx) in user_ringbuf_callback_reinit_dynptr_mem()
219 int user_ringbuf_callback_reinit_dynptr_ringbuf(void *ctx) in user_ringbuf_callback_reinit_dynptr_ringbuf()
[all …]
Dhtab_mem_bench.c29 static int write_htab(unsigned int i, struct update_ctx *ctx, unsigned int flags) in write_htab()
37 static int overwrite_htab(unsigned int i, struct update_ctx *ctx) in overwrite_htab()
42 static int newwrite_htab(unsigned int i, struct update_ctx *ctx) in newwrite_htab()
47 static int del_htab(unsigned int i, struct update_ctx *ctx) in del_htab()
56 int overwrite(void *ctx) in overwrite()
68 int batch_add_batch_del(void *ctx) in batch_add_batch_del()
84 int add_only(void *ctx) in add_only()
96 int del_only(void *ctx) in del_only()
Dtest_helper_restricted.c60 int raw_tp_timer(void *ctx) in raw_tp_timer()
68 int tp_timer(void *ctx) in tp_timer()
76 int kprobe_timer(void *ctx) in kprobe_timer()
84 int perf_event_timer(void *ctx) in perf_event_timer()
92 int raw_tp_spin_lock(void *ctx) in raw_tp_spin_lock()
100 int tp_spin_lock(void *ctx) in tp_spin_lock()
108 int kprobe_spin_lock(void *ctx) in kprobe_spin_lock()
116 int perf_event_spin_lock(void *ctx) in perf_event_spin_lock()
/tools/testing/selftests/filesystems/epoll/
Depoll_wakeup_test.c43 static void kill_timeout(struct epoll_mtcontext *ctx) in kill_timeout()
53 struct epoll_mtcontext *ctx = data; in waiter_entry1a() local
65 struct epoll_mtcontext *ctx = data; in waiter_entry1ap() local
80 struct epoll_mtcontext *ctx = data; in waiter_entry1o() local
92 struct epoll_mtcontext *ctx = data; in waiter_entry1op() local
107 struct epoll_mtcontext *ctx = data; in waiter_entry2a() local
119 struct epoll_mtcontext *ctx = data; in waiter_entry2ap() local
133 struct epoll_mtcontext *ctx = data; in emitter_entry1() local
145 struct epoll_mtcontext *ctx = data; in emitter_entry2() local
476 struct epoll_mtcontext ctx = { 0 }; in TEST() local
[all …]
/tools/testing/selftests/bpf/benchs/
Dbench_bloom_filter_map.c11 static struct ctx { struct
29 } ctx = { argument

12345678910>>...21