Home
last modified time | relevance | path

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

12345

/tools/testing/selftests/bpf/progs/
Dtest_attach_probe.c16 int handle_sys_nanosleep_entry(struct pt_regs *ctx) in handle_sys_nanosleep_entry()
25 int handle_sys_getpid_return(struct pt_regs *ctx) in handle_sys_getpid_return()
34 int handle_uprobe_entry(struct pt_regs *ctx) in handle_uprobe_entry()
43 int handle_uprobe_return(struct pt_regs *ctx) in handle_uprobe_return()
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_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_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()
Dsocket_cookie_prog.c23 int set_cookie(struct bpf_sock_addr *ctx) in set_cookie()
42 int update_cookie(struct bpf_sock_ops *ctx) in update_cookie()
Dsockopt_sk.c26 int _getsockopt(struct bpf_sockopt *ctx) in _getsockopt()
79 int _setsockopt(struct bpf_sockopt *ctx) in _setsockopt()
Dxdping_kern.c59 static __always_inline int icmp_check(struct xdp_md *ctx, int type) in icmp_check()
90 int xdping_client(struct xdp_md *ctx) in xdping_client()
154 int xdping_server(struct xdp_md *ctx) in xdping_server()
Dtest_sysctl_prog.c22 static __always_inline int is_tcp_mem(struct bpf_sysctl *ctx) in is_tcp_mem()
43 int sysctl_tcp_mem(struct bpf_sysctl *ctx) in sysctl_tcp_mem()
Dtest_sysctl_loop1.c21 static __always_inline int is_tcp_mem(struct bpf_sysctl *ctx) in is_tcp_mem()
42 int sysctl_tcp_mem(struct bpf_sysctl *ctx) in sysctl_tcp_mem()
Dtest_sysctl_loop2.c21 static __attribute__((noinline)) int is_tcp_mem(struct bpf_sysctl *ctx) in is_tcp_mem()
43 int sysctl_tcp_mem(struct bpf_sysctl *ctx) in sysctl_tcp_mem()
Dtest_tcp_check_syncookie_kern.c45 static __always_inline void check_syncookie(void *ctx, void *data, in check_syncookie()
160 int check_syncookie_xdp(struct xdp_md *ctx) in check_syncookie_xdp()
Dloop2.c14 int while_true(volatile struct pt_regs* ctx) in while_true()
Dxdp_dummy.c8 int xdp_dummy_prog(struct xdp_md *ctx) in xdp_dummy_prog()
/tools/perf/util/
Dstat-shadow.c30 int ctx; member
103 int ctx, in saved_value_lookup()
153 int ctx = 0; in evsel_context() local
198 int ctx, int cpu, u64 count) in update_runtime_stat()
215 int ctx = evsel_context(counter); in perf_stat__update_shadow_stats() local
402 enum stat_type type, int ctx, int cpu) in runtime_stat_avg()
414 enum stat_type type, int ctx, int cpu) in runtime_stat_n()
433 int ctx = evsel_context(evsel); in print_stalled_cycles_frontend() local
457 int ctx = evsel_context(evsel); in print_stalled_cycles_backend() local
478 int ctx = evsel_context(evsel); in print_branch_misses() local
[all …]
/tools/testing/selftests/x86/
Dsigreturn.c307 static unsigned short *ssptr(ucontext_t *ctx) in ssptr()
313 static unsigned short *csptr(ucontext_t *ctx) in csptr()
323 static greg_t *ssptr(ucontext_t *ctx) in ssptr()
328 static greg_t *csptr(ucontext_t *ctx) in csptr()
394 static void validate_signal_ss(int sig, ucontext_t *ctx) in validate_signal_ss()
440 ucontext_t *ctx = (ucontext_t*)ctx_void; in sigusr1() local
480 ucontext_t *ctx = (ucontext_t*)ctx_void; in sigtrap() local
525 ucontext_t *ctx = (ucontext_t*)ctx_void; in sigusr2() local
Dsysret_rip.c71 ucontext_t *ctx = (ucontext_t*)ctx_void; in sigsegv_for_sigreturn_test() local
87 ucontext_t *ctx = (ucontext_t*)ctx_void; in sigusr1() local
115 ucontext_t *ctx = (ucontext_t*)ctx_void; in sigsegv_for_fallthrough() local
Dmov_ss_trap.c119 ucontext_t *ctx = ctx_void; in sigtrap() local
128 ucontext_t *ctx = ctx_void; in handle_and_return() local
136 ucontext_t *ctx = ctx_void; in handle_and_longjmp() local
Dsyscall_arg_fault.c69 ucontext_t *ctx = (ucontext_t*)ctx_void; in sigsegv_or_sigbus() local
93 ucontext_t *ctx = (ucontext_t*)ctx_void; in sigtrap() local
110 ucontext_t *ctx = (ucontext_t*)ctx_void; in sigill() local
/tools/perf/tests/
Dexpr.c9 static int test(struct parse_ctx *ctx, const char *e, double val2) in test()
25 struct parse_ctx ctx; in test__expr() local
/tools/perf/arch/x86/tests/
Dintel-pt-pkt-decoder-test.c23 enum intel_pt_pkt_ctx ctx; member
230 enum intel_pt_pkt_ctx ctx) in test_ctx_unchanged()
248 enum intel_pt_pkt_ctx ctx = d->ctx; in test_one() local
/tools/perf/bench/
Dsched-messaging.c82 static void *sender(struct sender_context *ctx) in sender()
110 static void *receiver(struct receiver_context* ctx) in receiver()
137 static pthread_t create_worker(void *ctx, void *(*func)(void *)) in create_worker() argument
206 struct receiver_context *ctx = malloc(sizeof(*ctx)); in group() local
/tools/perf/ui/gtk/
Dutil.c13 struct perf_gtk_context *ctx; in perf_gtk__activate_context() local
22 int perf_gtk__deactivate_context(struct perf_gtk_context **ctx) in perf_gtk__deactivate_context()
/tools/lib/subcmd/
Dparse-options.c493 static void parse_options_start(struct parse_opt_ctx_t *ctx, in parse_options_start()
511 static int parse_options_step(struct parse_opt_ctx_t *ctx, in parse_options_step()
622 static int parse_options_end(struct parse_opt_ctx_t *ctx) in parse_options_end()
632 struct parse_opt_ctx_t ctx; in parse_options_subcommand() local
824 static bool option__in_argv(const struct option *opt, const struct parse_opt_ctx_t *ctx) in option__in_argv()
857 struct parse_opt_ctx_t *ctx) in usage_with_options_internal()
/tools/testing/selftests/bpf/
Dtest_hashmap.c22 size_t hash_fn(const void *k, void *ctx) in hash_fn()
27 bool equal_fn(const void *a, const void *b, void *ctx) in equal_fn()
252 size_t collision_hash_fn(const void *k, void *ctx) in collision_hash_fn()

12345