Home
last modified time | relevance | path

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

/linux/kernel/bpf/
H A Dtrampoline.c899 static u64 notrace __bpf_prog_enter_recur(struct bpf_prog *prog, struct bpf_tramp_run_ctx *run_ctx) in __bpf_prog_enter_recur() argument
904 run_ctx->saved_run_ctx = bpf_set_run_ctx(&run_ctx->run_ctx); in __bpf_prog_enter_recur()
944 struct bpf_tramp_run_ctx *run_ctx) in __bpf_prog_exit_recur() argument
947 bpf_reset_run_ctx(run_ctx->saved_run_ctx); in __bpf_prog_exit_recur()
955 struct bpf_tramp_run_ctx *run_ctx) in __bpf_prog_enter_lsm_cgroup() argument
963 run_ctx->saved_run_ctx = bpf_set_run_ctx(&run_ctx->run_ctx); in __bpf_prog_enter_lsm_cgroup()
969 struct bpf_tramp_run_ctx *run_ctx) in __bpf_prog_exit_lsm_cgroup() argument
972 bpf_reset_run_ctx(run_ctx->saved_run_ctx); in __bpf_prog_exit_lsm_cgroup()
978 struct bpf_tramp_run_ctx *run_ctx) in __bpf_prog_enter_sleepable_recur() argument
984 run_ctx->saved_run_ctx = bpf_set_run_ctx(&run_ctx->run_ctx); in __bpf_prog_enter_sleepable_recur()
[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.c71 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()
1768 ctx = container_of(current->bpf_ctx, struct bpf_cg_run_ctx, run_ctx); in BPF_CALL_2()
1790 container_of(current->bpf_ctx, struct bpf_cg_run_ctx, run_ctx); in BPF_CALL_0()
1804 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()
709 old_run_ctx = bpf_set_run_ctx(&run_ctx); in bpf_iter_run_prog()
H A Dsyscall.c6304 struct bpf_tramp_run_ctx __maybe_unused run_ctx; in kern_sys_bpf() local
6324 run_ctx.bpf_cookie = 0; in kern_sys_bpf()
6325 if (!__bpf_prog_enter_sleepable_recur(prog, &run_ctx)) { in kern_sys_bpf()
6327 __bpf_prog_exit_sleepable_recur(prog, 0, &run_ctx); in kern_sys_bpf()
6333 &run_ctx); in kern_sys_bpf()
/linux/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/kernel/trace/
H A Dbpf_trace.c1056 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()
2063 struct bpf_trace_run_ctx run_ctx; in __bpf_trace_run() local
[all …]
/linux/include/linux/
H A Dbpf.h1241 struct bpf_tramp_run_ctx *run_ctx);
1243 struct bpf_tramp_run_ctx *run_ctx);
1247 struct bpf_tramp_run_ctx *run_ctx);
1249 struct bpf_tramp_run_ctx *run_ctx);
2254 struct bpf_run_ctx run_ctx; member
2260 struct bpf_run_ctx run_ctx; member
2266 struct bpf_run_ctx run_ctx; member
2303 struct bpf_trace_run_ctx run_ctx; in bpf_prog_run_array() local
2311 run_ctx.is_uprobe = false; in bpf_prog_run_array()
2314 old_run_ctx = bpf_set_run_ctx(&run_ctx.run_ctx); in bpf_prog_run_array()
[all …]
/linux/net/bpf/
H A Dtest_run.c395 struct bpf_cg_run_ctx run_ctx; in bpf_test_run() local
414 old_ctx = bpf_set_run_ctx(&run_ctx.run_ctx); in bpf_test_run()
416 run_ctx.prog_item = &item; in bpf_test_run()
733 struct bpf_trace_run_ctx run_ctx = {}; in __bpf_prog_test_run_raw_tp() local
736 old_run_ctx = bpf_set_run_ctx(&run_ctx.run_ctx); in __bpf_prog_test_run_raw_tp()