Searched refs:run_ctx (Results 1 – 7 of 7) sorted by relevance
| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A D | free_timer.c | 10 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/kernel/bpf/ |
| H A D | trampoline.c | 1143 static u64 notrace __bpf_prog_enter_recur(struct bpf_prog *prog, struct bpf_tramp_run_ctx *run_ctx) in __bpf_prog_enter_recur() argument 1148 run_ctx->saved_run_ctx = bpf_set_run_ctx(&run_ctx->run_ctx); in __bpf_prog_enter_recur() 1188 struct bpf_tramp_run_ctx *run_ctx) in __bpf_prog_exit_recur() argument 1191 bpf_reset_run_ctx(run_ctx->saved_run_ctx); in __bpf_prog_exit_recur() 1199 struct bpf_tramp_run_ctx *run_ctx) in __bpf_prog_enter_lsm_cgroup() argument 1207 run_ctx->saved_run_ctx = bpf_set_run_ctx(&run_ctx->run_ctx); in __bpf_prog_enter_lsm_cgroup() 1213 struct bpf_tramp_run_ctx *run_ctx) in __bpf_prog_exit_lsm_cgroup() argument 1216 bpf_reset_run_ctx(run_ctx->saved_run_ctx); in __bpf_prog_exit_lsm_cgroup() 1222 struct bpf_tramp_run_ctx *run_ctx) in __bpf_prog_enter_sleepable_recur() argument 1228 run_ctx->saved_run_ctx = bpf_set_run_ctx(&run_ctx->run_ctx); in __bpf_prog_enter_sleepable_recur() [all …]
|
| H A D | cgroup.c | 71 struct bpf_cg_run_ctx run_ctx; in bpf_prog_run_array_cg() local 74 run_ctx.retval = retval; in bpf_prog_run_array_cg() 78 old_run_ctx = bpf_set_run_ctx(&run_ctx.run_ctx); in bpf_prog_run_array_cg() 80 run_ctx.prog_item = item; in bpf_prog_run_array_cg() 86 if (!func_ret && !IS_ERR_VALUE((long)run_ctx.retval)) in bpf_prog_run_array_cg() 87 run_ctx.retval = -EPERM; in bpf_prog_run_array_cg() 92 return run_ctx.retval; in bpf_prog_run_array_cg() 1764 ctx = container_of(current->bpf_ctx, struct bpf_cg_run_ctx, run_ctx); in BPF_CALL_2() 1786 container_of(current->bpf_ctx, struct bpf_cg_run_ctx, run_ctx); in BPF_CALL_0() 1800 container_of(current->bpf_ctx, struct bpf_cg_run_ctx, run_ctx); in BPF_CALL_1() [all …]
|
| H A D | bpf_iter.c | 682 struct bpf_run_ctx run_ctx, *old_run_ctx; in bpf_iter_run_prog() local 689 old_run_ctx = bpf_set_run_ctx(&run_ctx); in bpf_iter_run_prog() 696 old_run_ctx = bpf_set_run_ctx(&run_ctx); in bpf_iter_run_prog()
|
| H A D | syscall.c | 6405 struct bpf_tramp_run_ctx __maybe_unused run_ctx; in kern_sys_bpf() local 6425 run_ctx.bpf_cookie = 0; in kern_sys_bpf() 6426 if (!__bpf_prog_enter_sleepable_recur(prog, &run_ctx)) { in kern_sys_bpf() 6428 __bpf_prog_exit_sleepable_recur(prog, 0, &run_ctx); in kern_sys_bpf() 6434 &run_ctx); in kern_sys_bpf()
|
| /linux/kernel/trace/ |
| H A D | bpf_trace.c | 1056 struct bpf_trace_run_ctx *run_ctx __maybe_unused; in BPF_CALL_1() 1060 run_ctx = container_of(current->bpf_ctx, struct bpf_trace_run_ctx, run_ctx); in BPF_CALL_1() 1061 if (run_ctx->is_uprobe) in BPF_CALL_1() 1130 struct bpf_trace_run_ctx *run_ctx; in BPF_CALL_1() local 1132 run_ctx = container_of(current->bpf_ctx, struct bpf_trace_run_ctx, run_ctx); in BPF_CALL_1() 1133 return run_ctx->bpf_cookie; in BPF_CALL_1() 1157 struct bpf_trace_run_ctx *run_ctx; in BPF_CALL_1() local 1159 run_ctx = container_of(current->bpf_ctx, struct bpf_trace_run_ctx, run_ctx); in BPF_CALL_1() 1160 return run_ctx->bpf_cookie; in BPF_CALL_1() 2077 struct bpf_trace_run_ctx run_ctx; in __bpf_trace_run() local [all …]
|
| /linux/include/linux/ |
| H A D | bpf.h | 1275 struct bpf_tramp_run_ctx *run_ctx); 1277 struct bpf_tramp_run_ctx *run_ctx); 1281 struct bpf_tramp_run_ctx *run_ctx); 1283 struct bpf_tramp_run_ctx *run_ctx); 2408 struct bpf_run_ctx run_ctx; member 2414 struct bpf_run_ctx run_ctx; member 2420 struct bpf_run_ctx run_ctx; member 2457 struct bpf_trace_run_ctx run_ctx; in bpf_prog_run_array() local 2465 run_ctx.is_uprobe = false; in bpf_prog_run_array() 2468 old_run_ctx = bpf_set_run_ctx(&run_ctx.run_ctx); in bpf_prog_run_array() [all …]
|