Home
last modified time | relevance | path

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

/linux-6.3-rc2/kernel/bpf/
A Dtrampoline.c876 run_ctx->saved_run_ctx = bpf_set_run_ctx(&run_ctx->run_ctx); in __bpf_prog_enter_recur()
908 struct bpf_tramp_run_ctx *run_ctx) in __bpf_prog_exit_recur() argument
911 bpf_reset_run_ctx(run_ctx->saved_run_ctx); in __bpf_prog_exit_recur()
929 run_ctx->saved_run_ctx = bpf_set_run_ctx(&run_ctx->run_ctx); in __bpf_prog_enter_lsm_cgroup()
938 bpf_reset_run_ctx(run_ctx->saved_run_ctx); in __bpf_prog_exit_lsm_cgroup()
956 run_ctx->saved_run_ctx = bpf_set_run_ctx(&run_ctx->run_ctx); in __bpf_prog_enter_sleepable_recur()
964 bpf_reset_run_ctx(run_ctx->saved_run_ctx); in __bpf_prog_exit_sleepable_recur()
979 run_ctx->saved_run_ctx = bpf_set_run_ctx(&run_ctx->run_ctx); in __bpf_prog_enter_sleepable()
995 struct bpf_tramp_run_ctx *run_ctx) in __bpf_prog_enter() argument
1001 run_ctx->saved_run_ctx = bpf_set_run_ctx(&run_ctx->run_ctx); in __bpf_prog_enter()
[all …]
A Dbpf_lsm.c183 struct bpf_trace_run_ctx *run_ctx; in BPF_CALL_1() local
185 run_ctx = container_of(current->bpf_ctx, struct bpf_trace_run_ctx, run_ctx); in BPF_CALL_1()
186 return run_ctx->bpf_cookie; in BPF_CALL_1()
A Dcgroup.c40 struct bpf_cg_run_ctx run_ctx; in bpf_prog_run_array_cg() local
43 run_ctx.retval = retval; in bpf_prog_run_array_cg()
48 old_run_ctx = bpf_set_run_ctx(&run_ctx.run_ctx); in bpf_prog_run_array_cg()
50 run_ctx.prog_item = item; in bpf_prog_run_array_cg()
56 if (!func_ret && !IS_ERR_VALUE((long)run_ctx.retval)) in bpf_prog_run_array_cg()
57 run_ctx.retval = -EPERM; in bpf_prog_run_array_cg()
63 return run_ctx.retval; in bpf_prog_run_array_cg()
1552 ctx = container_of(current->bpf_ctx, struct bpf_cg_run_ctx, run_ctx); in BPF_CALL_2()
1574 container_of(current->bpf_ctx, struct bpf_cg_run_ctx, run_ctx); in BPF_CALL_0()
1588 container_of(current->bpf_ctx, struct bpf_cg_run_ctx, run_ctx); in BPF_CALL_1()
[all …]
A Dbpf_iter.c697 struct bpf_run_ctx run_ctx, *old_run_ctx; in bpf_iter_run_prog() local
704 old_run_ctx = bpf_set_run_ctx(&run_ctx); in bpf_iter_run_prog()
712 old_run_ctx = bpf_set_run_ctx(&run_ctx); in bpf_iter_run_prog()
A Dsyscall.c5141 struct bpf_tramp_run_ctx __maybe_unused run_ctx; in kern_sys_bpf() local
5161 run_ctx.bpf_cookie = 0; in kern_sys_bpf()
5162 run_ctx.saved_run_ctx = NULL; in kern_sys_bpf()
5163 if (!__bpf_prog_enter_sleepable_recur(prog, &run_ctx)) { in kern_sys_bpf()
5170 &run_ctx); in kern_sys_bpf()
/linux-6.3-rc2/kernel/trace/
A Dbpf_trace.c1095 run_ctx = container_of(current->bpf_ctx, struct bpf_trace_run_ctx, run_ctx); in BPF_CALL_1()
1096 return run_ctx->bpf_cookie; in BPF_CALL_1()
1122 run_ctx = container_of(current->bpf_ctx, struct bpf_trace_run_ctx, run_ctx); in BPF_CALL_1()
1123 return run_ctx->bpf_cookie; in BPF_CALL_1()
2469 struct bpf_run_ctx run_ctx; member
2597 run_ctx = container_of(current->bpf_ctx, struct bpf_kprobe_multi_run_ctx, run_ctx); in bpf_kprobe_multi_cookie()
2598 link = run_ctx->link; in bpf_kprobe_multi_cookie()
2601 entry_ip = run_ctx->entry_ip; in bpf_kprobe_multi_cookie()
2614 run_ctx = container_of(current->bpf_ctx, struct bpf_kprobe_multi_run_ctx, run_ctx); in bpf_kprobe_multi_entry_ip()
2615 return run_ctx->entry_ip; in bpf_kprobe_multi_entry_ip()
[all …]
/linux-6.3-rc2/include/linux/
A Dbpf.h1019 struct bpf_tramp_run_ctx *run_ctx);
1021 struct bpf_tramp_run_ctx *run_ctx);
1712 struct bpf_run_ctx run_ctx; member
1718 struct bpf_run_ctx run_ctx; member
1723 struct bpf_run_ctx run_ctx; member
1760 struct bpf_trace_run_ctx run_ctx; in bpf_prog_run_array() local
1769 old_run_ctx = bpf_set_run_ctx(&run_ctx.run_ctx); in bpf_prog_run_array()
1772 run_ctx.bpf_cookie = item->bpf_cookie; in bpf_prog_run_array()
1799 struct bpf_trace_run_ctx run_ctx; in bpf_prog_run_array_sleepable() local
1810 old_run_ctx = bpf_set_run_ctx(&run_ctx.run_ctx); in bpf_prog_run_array_sleepable()
[all …]
/linux-6.3-rc2/net/bpf/
A Dtest_run.c384 struct bpf_cg_run_ctx run_ctx; in bpf_test_run() local
403 old_ctx = bpf_set_run_ctx(&run_ctx.run_ctx); in bpf_test_run()
405 run_ctx.prog_item = &item; in bpf_test_run()

Completed in 41 milliseconds