Home
last modified time | relevance | path

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

123456789

/tools/testing/selftests/bpf/progs/
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 reuseport_pass(struct sk_reuseport_md *ctx) in reuseport_pass()
94 int reuseport_drop(struct sk_reuseport_md *ctx) in reuseport_drop()
101 int redir_port(struct bpf_sk_lookup *ctx) in redir_port()
120 int redir_ip4(struct bpf_sk_lookup *ctx) in redir_ip4()
143 int redir_ip6(struct bpf_sk_lookup *ctx) in redir_ip6()
168 int select_sock_a(struct bpf_sk_lookup *ctx) in select_sock_a()
183 int select_sock_a_no_reuseport(struct bpf_sk_lookup *ctx) in select_sock_a_no_reuseport()
198 int select_sock_b(struct sk_reuseport_md *ctx) in select_sock_b()
[all …]
Dtrigger_bench.c14 int bench_trigger_tp(void *ctx) in bench_trigger_tp()
29 int bench_trigger_kprobe(void *ctx) in bench_trigger_kprobe()
36 int bench_trigger_fentry(void *ctx) in bench_trigger_fentry()
43 int bench_trigger_fentry_sleep(void *ctx) in bench_trigger_fentry_sleep()
50 int bench_trigger_fmodret(void *ctx) in bench_trigger_fmodret()
Dconnect4_prog.c37 int do_bind(struct bpf_sock_addr *ctx) in do_bind()
51 static __inline int verify_cc(struct bpf_sock_addr *ctx, in verify_cc()
70 static __inline int set_cc(struct bpf_sock_addr *ctx) in set_cc()
88 static __inline int bind_to_device(struct bpf_sock_addr *ctx) in bind_to_device()
111 static __inline int set_keepalive(struct bpf_sock_addr *ctx) in set_keepalive()
135 static __inline int set_notsent_lowat(struct bpf_sock_addr *ctx) in set_notsent_lowat()
148 int connect_v4_prog(struct bpf_sock_addr *ctx) in connect_v4_prog()
Dtest_send_signal_kern.c9 static __always_inline int bpf_send_signal_test(void *ctx) in bpf_send_signal_test()
29 int send_signal_tp(void *ctx) in send_signal_tp()
35 int send_signal_tp_sched(void *ctx) in send_signal_tp_sched()
41 int send_signal_perf(void *ctx) in send_signal_perf()
Dtest_xdp_with_cpumap_helpers.c16 int xdp_redir_prog(struct xdp_md *ctx) in xdp_redir_prog()
22 int xdp_dummy_prog(struct xdp_md *ctx) in xdp_dummy_prog()
28 int xdp_dummy_cm(struct xdp_md *ctx) in xdp_dummy_cm()
Dtest_xdp_with_devmap_helpers.c13 int xdp_redir_prog(struct xdp_md *ctx) in xdp_redir_prog()
22 int xdp_dummy_prog(struct xdp_md *ctx) in xdp_dummy_prog()
31 int xdp_dummy_dm(struct xdp_md *ctx) in xdp_dummy_dm()
Dtest_attach_probe.c15 int handle_kprobe(struct pt_regs *ctx) in handle_kprobe()
29 int handle_uprobe(struct pt_regs *ctx) in handle_uprobe()
36 int handle_uretprobe(struct pt_regs *ctx) in handle_uretprobe()
Dsockopt_multi.c10 int _getsockopt_child(struct bpf_sockopt *ctx) in _getsockopt_child()
33 int _getsockopt_parent(struct bpf_sockopt *ctx) in _getsockopt_parent()
56 int _setsockopt(struct bpf_sockopt *ctx) in _setsockopt()
Dtest_subprogs.c53 int prog1(void *ctx) in prog1()
68 int prog2(void *ctx) in prog2()
81 int prog3(void *ctx) in prog3()
94 int prog4(void *ctx) in prog4()
Dtest_autoload.c14 int prog1(const void *ctx) in prog1()
21 int prog2(const void *ctx) in prog2()
32 int prog3(const void *ctx) in prog3()
Dconnect_force_port4.c29 int connect4(struct bpf_sock_addr *ctx) in connect4()
59 int getsockname4(struct bpf_sock_addr *ctx) in getsockname4()
70 int getpeername4(struct bpf_sock_addr *ctx) in getpeername4()
Dconnect_force_port6.c28 int connect6(struct bpf_sock_addr *ctx) in connect6()
64 int getsockname6(struct bpf_sock_addr *ctx) in getsockname6()
78 int getpeername6(struct bpf_sock_addr *ctx) in getpeername6()
Dtest_xdp_meta.c9 #define ctx_ptr(ctx, mem) (void *)(unsigned long)ctx->mem argument
12 int ing_cls(struct __sk_buff *ctx) in ing_cls()
32 int ing_xdp(struct xdp_md *ctx) in ing_xdp()
Dsockopt_inherit.c38 static __inline struct sockopt_inherit *get_storage(struct bpf_sockopt *ctx) in get_storage()
52 int _getsockopt(struct bpf_sockopt *ctx) in _getsockopt()
77 int _setsockopt(struct bpf_sockopt *ctx) in _setsockopt()
Dtest_link_pinning.c12 int raw_tp_prog(const void *ctx) in raw_tp_prog()
19 int tp_btf_prog(const void *ctx) in tp_btf_prog()
Dtest_xdp_vlan.c106 int xdp_prognum0(struct xdp_md *ctx) in xdp_prognum0()
148 int xdp_prognum1(struct xdp_md *ctx) in xdp_prognum1()
182 int xdp_prognum2(struct xdp_md *ctx) in xdp_prognum2()
241 int xdp_prognum3(struct xdp_md *ctx) in xdp_prognum3()
271 int _tc_progA(struct __sk_buff *ctx) in _tc_progA()
Dtest_rdonly_maps.c25 int skip_loop(struct pt_regs *ctx) in skip_loop()
44 int part_loop(struct pt_regs *ctx) in part_loop()
63 int full_loop(struct pt_regs *ctx) in full_loop()
/tools/testing/selftests/filesystems/epoll/
Depoll_wakeup_test.c28 static void kill_timeout(struct epoll_mtcontext *ctx) in kill_timeout()
38 struct epoll_mtcontext *ctx = data; in waiter_entry1a() local
50 struct epoll_mtcontext *ctx = data; in waiter_entry1ap() local
65 struct epoll_mtcontext *ctx = data; in waiter_entry1o() local
77 struct epoll_mtcontext *ctx = data; in waiter_entry1op() local
92 struct epoll_mtcontext *ctx = data; in waiter_entry2a() local
104 struct epoll_mtcontext *ctx = data; in waiter_entry2ap() local
118 struct epoll_mtcontext *ctx = data; in emitter_entry1() local
130 struct epoll_mtcontext *ctx = data; in emitter_entry2() local
461 struct epoll_mtcontext ctx = { 0 }; in TEST() local
[all …]
/tools/perf/util/
Dexpr.c40 int expr__add_id(struct expr_parse_ctx *ctx, const char *id) in expr__add_id()
62 int expr__add_id_val(struct expr_parse_ctx *ctx, const char *id, double val) in expr__add_id_val()
83 int expr__add_ref(struct expr_parse_ctx *ctx, struct metric_ref *ref) in expr__add_ref()
133 int expr__get_id(struct expr_parse_ctx *ctx, const char *id, in expr__get_id()
139 int expr__resolve_id(struct expr_parse_ctx *ctx, const char *id, in expr__resolve_id()
167 void expr__del_id(struct expr_parse_ctx *ctx, const char *id) in expr__del_id()
178 void expr__ctx_init(struct expr_parse_ctx *ctx) in expr__ctx_init()
183 void expr__ctx_clear(struct expr_parse_ctx *ctx) in expr__ctx_clear()
196 __expr__parse(double *val, struct expr_parse_ctx *ctx, const char *expr, in __expr__parse()
228 int expr__parse(double *final_val, struct expr_parse_ctx *ctx, in expr__parse()
[all …]
Dstat-shadow.c29 int ctx; member
102 int ctx, in saved_value_lookup()
151 int ctx = 0; in evsel_context() local
196 int ctx, int cpu, u64 count) in update_runtime_stat()
213 int ctx = evsel_context(counter); in perf_stat__update_shadow_stats() local
338 struct expr_parse_ctx ctx; in perf_stat__collect_metric_expr() local
425 enum stat_type type, int ctx, int cpu) in runtime_stat_avg()
437 enum stat_type type, int ctx, int cpu) in runtime_stat_n()
456 int ctx = evsel_context(evsel); in print_stalled_cycles_frontend() local
480 int ctx = evsel_context(evsel); in print_stalled_cycles_backend() local
[all …]
/tools/testing/selftests/bpf/benchs/
Dbench_count.c13 struct count_global_ctx *ctx = &count_global_ctx; in count_global_producer() local
28 struct count_global_ctx *ctx = &count_global_ctx; in count_global_measure() local
41 struct count_local_ctx *ctx = &count_local_ctx; in count_local_setup() local
50 struct count_local_ctx *ctx = &count_local_ctx; in count_local_producer() local
66 struct count_local_ctx *ctx = &count_local_ctx; in count_local_measure() local
Dbench_rename.c8 static struct ctx { struct
12 } ctx; argument
Dbench_ringbufs.c129 struct ringbuf_libbpf_ctx *ctx = &ringbuf_libbpf_ctx; in ringbuf_libbpf_measure() local
164 static int buf_process_sample(void *ctx, void *data, size_t len) in buf_process_sample()
172 struct ringbuf_libbpf_ctx *ctx = &ringbuf_libbpf_ctx; in ringbuf_libbpf_setup() local
192 struct ringbuf_libbpf_ctx *ctx = &ringbuf_libbpf_ctx; in ringbuf_libbpf_consumer() local
220 struct ringbuf_custom_ctx *ctx = &ringbuf_custom_ctx; in ringbuf_custom_measure() local
228 struct ringbuf_custom_ctx *ctx = &ringbuf_custom_ctx; in ringbuf_custom_setup() local
327 struct ringbuf_custom_ctx *ctx = &ringbuf_custom_ctx; in ringbuf_custom_consumer() local
349 struct perfbuf_libbpf_ctx *ctx = &perfbuf_libbpf_ctx; in perfbuf_measure() local
395 struct perfbuf_libbpf_ctx *ctx = &perfbuf_libbpf_ctx; in perfbuf_libbpf_setup() local
441 struct perfbuf_libbpf_ctx *ctx = &perfbuf_libbpf_ctx; in perfbuf_libbpf_consumer() local
[all …]
/tools/bpf/runqslower/
Drunqslower.bpf.c41 int handle__sched_wakeup(u64 *ctx) in handle__sched_wakeup()
50 int handle__sched_wakeup_new(u64 *ctx) in handle__sched_wakeup_new()
59 int handle__sched_switch(u64 *ctx) in handle__sched_switch()
/tools/lib/bpf/
Dxsk.c78 struct xsk_ctx *ctx; member
359 struct xsk_ctx *ctx = xsk->ctx; in xsk_load_xdp_prog() local
443 struct xsk_ctx *ctx = xsk->ctx; in xsk_get_max_queues() local
480 struct xsk_ctx *ctx = xsk->ctx; in xsk_create_bpf_maps() local
500 struct xsk_ctx *ctx = xsk->ctx; in xsk_delete_bpf_maps() local
511 struct xsk_ctx *ctx = xsk->ctx; in xsk_lookup_bpf_maps() local
566 struct xsk_ctx *ctx = xsk->ctx; in xsk_set_bpf_maps() local
574 struct xsk_ctx *ctx = xsk->ctx; in xsk_setup_xdp_prog() local
618 struct xsk_ctx *ctx; in xsk_get_ctx() local
633 static void xsk_put_ctx(struct xsk_ctx *ctx, bool unmap) in xsk_put_ctx()
[all …]

123456789