Home
last modified time | relevance | path

Searched refs:run_ctx (Results 1 – 9 of 9) sorted by relevance

/linux-6.15/tools/testing/selftests/bpf/prog_tests/
H A Dfree_timer.c10 struct run_ctx { struct
19 static void start_threads(struct run_ctx *ctx) in start_threads() argument
24 static void stop_threads(struct run_ctx *ctx) in stop_threads()
31 static int wait_for_start(struct run_ctx *ctx) in wait_for_start()
41 struct run_ctx *ctx = arg; in overwrite_timer_fn()
80 struct run_ctx *ctx = arg; in start_timer_fn()
121 struct run_ctx ctx; in test_free_timer()
/linux-6.15/kernel/bpf/
H A Dtrampoline.c903 run_ctx->saved_run_ctx = bpf_set_run_ctx(&run_ctx->run_ctx); in __bpf_prog_enter_recur()
938 struct bpf_tramp_run_ctx *run_ctx) in __bpf_prog_exit_recur() argument
941 bpf_reset_run_ctx(run_ctx->saved_run_ctx); in __bpf_prog_exit_recur()
959 run_ctx->saved_run_ctx = bpf_set_run_ctx(&run_ctx->run_ctx); in __bpf_prog_enter_lsm_cgroup()
968 bpf_reset_run_ctx(run_ctx->saved_run_ctx); in __bpf_prog_exit_lsm_cgroup()
981 run_ctx->saved_run_ctx = bpf_set_run_ctx(&run_ctx->run_ctx); in __bpf_prog_enter_sleepable_recur()
995 bpf_reset_run_ctx(run_ctx->saved_run_ctx); in __bpf_prog_exit_sleepable_recur()
1010 run_ctx->saved_run_ctx = bpf_set_run_ctx(&run_ctx->run_ctx); in __bpf_prog_enter_sleepable()
1026 struct bpf_tramp_run_ctx *run_ctx) in __bpf_prog_enter() argument
1032 run_ctx->saved_run_ctx = bpf_set_run_ctx(&run_ctx->run_ctx); in __bpf_prog_enter()
[all …]
H A Dbpf_lsm.c209 struct bpf_trace_run_ctx *run_ctx; in BPF_CALL_1() local
211 run_ctx = container_of(current->bpf_ctx, struct bpf_trace_run_ctx, run_ctx); in BPF_CALL_1()
212 return run_ctx->bpf_cookie; in BPF_CALL_1()
H A Dcgroup.c57 struct bpf_cg_run_ctx run_ctx; in bpf_prog_run_array_cg() local
60 run_ctx.retval = retval; in bpf_prog_run_array_cg()
65 old_run_ctx = bpf_set_run_ctx(&run_ctx.run_ctx); in bpf_prog_run_array_cg()
67 run_ctx.prog_item = item; in bpf_prog_run_array_cg()
73 if (!func_ret && !IS_ERR_VALUE((long)run_ctx.retval)) in bpf_prog_run_array_cg()
74 run_ctx.retval = -EPERM; in bpf_prog_run_array_cg()
80 return run_ctx.retval; in bpf_prog_run_array_cg()
1598 ctx = container_of(current->bpf_ctx, struct bpf_cg_run_ctx, run_ctx); in BPF_CALL_2()
1620 container_of(current->bpf_ctx, struct bpf_cg_run_ctx, run_ctx); in BPF_CALL_0()
1634 container_of(current->bpf_ctx, struct bpf_cg_run_ctx, run_ctx); in BPF_CALL_1()
[all …]
H A Dbpf_iter.c695 struct bpf_run_ctx run_ctx, *old_run_ctx; in bpf_iter_run_prog() local
702 old_run_ctx = bpf_set_run_ctx(&run_ctx); in bpf_iter_run_prog()
710 old_run_ctx = bpf_set_run_ctx(&run_ctx); in bpf_iter_run_prog()
H A Dsyscall.c5986 struct bpf_tramp_run_ctx __maybe_unused run_ctx; in kern_sys_bpf() local
6006 run_ctx.bpf_cookie = 0; in kern_sys_bpf()
6007 if (!__bpf_prog_enter_sleepable_recur(prog, &run_ctx)) { in kern_sys_bpf()
6009 __bpf_prog_exit_sleepable_recur(prog, 0, &run_ctx); in kern_sys_bpf()
6015 &run_ctx); in kern_sys_bpf()
/linux-6.15/kernel/trace/
H A Dbpf_trace.c1062 run_ctx = container_of(current->bpf_ctx, struct bpf_trace_run_ctx, run_ctx); in BPF_CALL_1()
1063 if (run_ctx->is_uprobe) in BPF_CALL_1()
1134 run_ctx = container_of(current->bpf_ctx, struct bpf_trace_run_ctx, run_ctx); in BPF_CALL_1()
1135 return run_ctx->bpf_cookie; in BPF_CALL_1()
1161 run_ctx = container_of(current->bpf_ctx, struct bpf_trace_run_ctx, run_ctx); in BPF_CALL_1()
2360 old_run_ctx = bpf_set_run_ctx(&run_ctx.run_ctx); in __bpf_trace_run()
2773 link = run_ctx->link; in bpf_kprobe_multi_cookie()
2791 return run_ctx->entry_ip; in bpf_kprobe_multi_entry_ip()
2820 old_run_ctx = bpf_set_run_ctx(&run_ctx.session_ctx.run_ctx); in kprobe_multi_link_prog_run()
3294 old_run_ctx = bpf_set_run_ctx(&run_ctx.session_ctx.run_ctx); in uprobe_prog_run()
[all …]
/linux-6.15/include/linux/
H A Dbpf.h2151 struct bpf_run_ctx run_ctx; member
2157 struct bpf_run_ctx run_ctx; member
2163 struct bpf_run_ctx run_ctx; member
2200 struct bpf_trace_run_ctx run_ctx; in bpf_prog_run_array() local
2208 run_ctx.is_uprobe = false; in bpf_prog_run_array()
2211 old_run_ctx = bpf_set_run_ctx(&run_ctx.run_ctx); in bpf_prog_run_array()
2214 run_ctx.bpf_cookie = item->bpf_cookie; in bpf_prog_run_array()
2240 struct bpf_trace_run_ctx run_ctx; in bpf_prog_run_array_uprobe() local
2251 run_ctx.is_uprobe = true; in bpf_prog_run_array_uprobe()
2253 old_run_ctx = bpf_set_run_ctx(&run_ctx.run_ctx); in bpf_prog_run_array_uprobe()
[all …]
/linux-6.15/net/bpf/
H A Dtest_run.c406 struct bpf_cg_run_ctx run_ctx; in bpf_test_run() local
425 old_ctx = bpf_set_run_ctx(&run_ctx.run_ctx); in bpf_test_run()
427 run_ctx.prog_item = &item; in bpf_test_run()
738 struct bpf_trace_run_ctx run_ctx = {}; in __bpf_prog_test_run_raw_tp() local
741 old_run_ctx = bpf_set_run_ctx(&run_ctx.run_ctx); in __bpf_prog_test_run_raw_tp()