Searched refs:run_ctx (Results 1 – 8 of 8) sorted by relevance
/Linux-v6.6/kernel/bpf/ |
D | trampoline.c | 848 static u64 notrace __bpf_prog_enter_recur(struct bpf_prog *prog, struct bpf_tramp_run_ctx *run_ctx) in __bpf_prog_enter_recur() argument 854 run_ctx->saved_run_ctx = bpf_set_run_ctx(&run_ctx->run_ctx); in __bpf_prog_enter_recur() 886 struct bpf_tramp_run_ctx *run_ctx) in __bpf_prog_exit_recur() argument 889 bpf_reset_run_ctx(run_ctx->saved_run_ctx); in __bpf_prog_exit_recur() 898 struct bpf_tramp_run_ctx *run_ctx) in __bpf_prog_enter_lsm_cgroup() argument 907 run_ctx->saved_run_ctx = bpf_set_run_ctx(&run_ctx->run_ctx); in __bpf_prog_enter_lsm_cgroup() 913 struct bpf_tramp_run_ctx *run_ctx) in __bpf_prog_exit_lsm_cgroup() argument 916 bpf_reset_run_ctx(run_ctx->saved_run_ctx); in __bpf_prog_exit_lsm_cgroup() 923 struct bpf_tramp_run_ctx *run_ctx) in __bpf_prog_enter_sleepable_recur() argument 929 run_ctx->saved_run_ctx = bpf_set_run_ctx(&run_ctx->run_ctx); in __bpf_prog_enter_sleepable_recur() [all …]
|
D | bpf_lsm.c | 183 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()
|
D | cgroup.c | 40 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() 1553 ctx = container_of(current->bpf_ctx, struct bpf_cg_run_ctx, run_ctx); in BPF_CALL_2() 1575 container_of(current->bpf_ctx, struct bpf_cg_run_ctx, run_ctx); in BPF_CALL_0() 1589 container_of(current->bpf_ctx, struct bpf_cg_run_ctx, run_ctx); in BPF_CALL_1() [all …]
|
D | bpf_iter.c | 697 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()
|
D | syscall.c | 5493 struct bpf_tramp_run_ctx __maybe_unused run_ctx; in kern_sys_bpf() local 5513 run_ctx.bpf_cookie = 0; in kern_sys_bpf() 5514 if (!__bpf_prog_enter_sleepable_recur(prog, &run_ctx)) { in kern_sys_bpf() 5516 __bpf_prog_exit_sleepable_recur(prog, 0, &run_ctx); in kern_sys_bpf() 5522 &run_ctx); in kern_sys_bpf()
|
/Linux-v6.6/kernel/trace/ |
D | bpf_trace.c | 1062 struct bpf_trace_run_ctx *run_ctx __maybe_unused; in BPF_CALL_1() 1066 run_ctx = container_of(current->bpf_ctx, struct bpf_trace_run_ctx, run_ctx); in BPF_CALL_1() 1067 if (run_ctx->is_uprobe) in BPF_CALL_1() 1136 struct bpf_trace_run_ctx *run_ctx; in BPF_CALL_1() local 1138 run_ctx = container_of(current->bpf_ctx, struct bpf_trace_run_ctx, run_ctx); in BPF_CALL_1() 1139 return run_ctx->bpf_cookie; in BPF_CALL_1() 1163 struct bpf_trace_run_ctx *run_ctx; in BPF_CALL_1() local 1165 run_ctx = container_of(current->bpf_ctx, struct bpf_trace_run_ctx, run_ctx); in BPF_CALL_1() 1166 return run_ctx->bpf_cookie; in BPF_CALL_1() 2517 struct bpf_run_ctx run_ctx; member [all …]
|
/Linux-v6.6/include/linux/ |
D | bpf.h | 1076 struct bpf_tramp_run_ctx *run_ctx); 1078 struct bpf_tramp_run_ctx *run_ctx); 1082 struct bpf_tramp_run_ctx *run_ctx); 1084 struct bpf_tramp_run_ctx *run_ctx); 1862 struct bpf_run_ctx run_ctx; member 1868 struct bpf_run_ctx run_ctx; member 1874 struct bpf_run_ctx run_ctx; member 1911 struct bpf_trace_run_ctx run_ctx; in bpf_prog_run_array() local 1919 run_ctx.is_uprobe = false; in bpf_prog_run_array() 1922 old_run_ctx = bpf_set_run_ctx(&run_ctx.run_ctx); in bpf_prog_run_array() [all …]
|
/Linux-v6.6/net/bpf/ |
D | test_run.c | 397 struct bpf_cg_run_ctx run_ctx; in bpf_test_run() local 416 old_ctx = bpf_set_run_ctx(&run_ctx.run_ctx); in bpf_test_run() 418 run_ctx.prog_item = &item; in bpf_test_run()
|