Searched refs:run_ctx (Results 1 – 8 of 8) sorted by relevance
/linux-6.12.1/kernel/bpf/ |
D | trampoline.c | 861 static u64 notrace __bpf_prog_enter_recur(struct bpf_prog *prog, struct bpf_tramp_run_ctx *run_ctx) in __bpf_prog_enter_recur() argument 867 run_ctx->saved_run_ctx = bpf_set_run_ctx(&run_ctx->run_ctx); in __bpf_prog_enter_recur() 900 struct bpf_tramp_run_ctx *run_ctx) in __bpf_prog_exit_recur() argument 903 bpf_reset_run_ctx(run_ctx->saved_run_ctx); in __bpf_prog_exit_recur() 912 struct bpf_tramp_run_ctx *run_ctx) in __bpf_prog_enter_lsm_cgroup() argument 921 run_ctx->saved_run_ctx = bpf_set_run_ctx(&run_ctx->run_ctx); in __bpf_prog_enter_lsm_cgroup() 927 struct bpf_tramp_run_ctx *run_ctx) in __bpf_prog_exit_lsm_cgroup() argument 930 bpf_reset_run_ctx(run_ctx->saved_run_ctx); in __bpf_prog_exit_lsm_cgroup() 937 struct bpf_tramp_run_ctx *run_ctx) in __bpf_prog_enter_sleepable_recur() argument 943 run_ctx->saved_run_ctx = bpf_set_run_ctx(&run_ctx->run_ctx); in __bpf_prog_enter_sleepable_recur() [all …]
|
D | bpf_lsm.c | 209 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()
|
D | cgroup.c | 57 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() 1581 ctx = container_of(current->bpf_ctx, struct bpf_cg_run_ctx, run_ctx); in BPF_CALL_2() 1603 container_of(current->bpf_ctx, struct bpf_cg_run_ctx, run_ctx); in BPF_CALL_0() 1617 container_of(current->bpf_ctx, struct bpf_cg_run_ctx, run_ctx); in BPF_CALL_1() [all …]
|
D | bpf_iter.c | 696 struct bpf_run_ctx run_ctx, *old_run_ctx; in bpf_iter_run_prog() local 703 old_run_ctx = bpf_set_run_ctx(&run_ctx); in bpf_iter_run_prog() 711 old_run_ctx = bpf_set_run_ctx(&run_ctx); in bpf_iter_run_prog()
|
D | syscall.c | 5805 struct bpf_tramp_run_ctx __maybe_unused run_ctx; in kern_sys_bpf() local 5825 run_ctx.bpf_cookie = 0; in kern_sys_bpf() 5826 if (!__bpf_prog_enter_sleepable_recur(prog, &run_ctx)) { in kern_sys_bpf() 5828 __bpf_prog_exit_sleepable_recur(prog, 0, &run_ctx); in kern_sys_bpf() 5834 &run_ctx); in kern_sys_bpf()
|
/linux-6.12.1/kernel/trace/ |
D | bpf_trace.c | 1051 struct bpf_trace_run_ctx *run_ctx __maybe_unused; in BPF_CALL_1() 1055 run_ctx = container_of(current->bpf_ctx, struct bpf_trace_run_ctx, run_ctx); in BPF_CALL_1() 1056 if (run_ctx->is_uprobe) in BPF_CALL_1() 1125 struct bpf_trace_run_ctx *run_ctx; in BPF_CALL_1() local 1127 run_ctx = container_of(current->bpf_ctx, struct bpf_trace_run_ctx, run_ctx); in BPF_CALL_1() 1128 return run_ctx->bpf_cookie; in BPF_CALL_1() 1152 struct bpf_trace_run_ctx *run_ctx; in BPF_CALL_1() local 1154 run_ctx = container_of(current->bpf_ctx, struct bpf_trace_run_ctx, run_ctx); in BPF_CALL_1() 1155 return run_ctx->bpf_cookie; in BPF_CALL_1() 2304 struct bpf_trace_run_ctx run_ctx; in __bpf_trace_run() local [all …]
|
/linux-6.12.1/include/linux/ |
D | bpf.h | 1156 struct bpf_tramp_run_ctx *run_ctx); 1158 struct bpf_tramp_run_ctx *run_ctx); 1162 struct bpf_tramp_run_ctx *run_ctx); 1164 struct bpf_tramp_run_ctx *run_ctx); 2067 struct bpf_run_ctx run_ctx; member 2073 struct bpf_run_ctx run_ctx; member 2079 struct bpf_run_ctx run_ctx; member 2116 struct bpf_trace_run_ctx run_ctx; in bpf_prog_run_array() local 2124 run_ctx.is_uprobe = false; in bpf_prog_run_array() 2127 old_run_ctx = bpf_set_run_ctx(&run_ctx.run_ctx); in bpf_prog_run_array() [all …]
|
/linux-6.12.1/net/bpf/ |
D | test_run.c | 406 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() 741 struct bpf_trace_run_ctx run_ctx = {}; in __bpf_prog_test_run_raw_tp() local 744 old_run_ctx = bpf_set_run_ctx(&run_ctx.run_ctx); in __bpf_prog_test_run_raw_tp()
|