Searched refs:run_ctx (Results 1 – 8 of 8) sorted by relevance
/linux/kernel/bpf/ |
H A D | trampoline.c | 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() 921 run_ctx->saved_run_ctx = bpf_set_run_ctx(&run_ctx->run_ctx); in __bpf_prog_enter_lsm_cgroup() 930 bpf_reset_run_ctx(run_ctx->saved_run_ctx); in __bpf_prog_exit_lsm_cgroup() 943 run_ctx->saved_run_ctx = bpf_set_run_ctx(&run_ctx->run_ctx); in __bpf_prog_enter_sleepable_recur() 955 bpf_reset_run_ctx(run_ctx->saved_run_ctx); in __bpf_prog_exit_sleepable_recur() 970 run_ctx->saved_run_ctx = bpf_set_run_ctx(&run_ctx->run_ctx); in __bpf_prog_enter_sleepable() 986 struct bpf_tramp_run_ctx *run_ctx) in __bpf_prog_enter() argument 992 run_ctx->saved_run_ctx = bpf_set_run_ctx(&run_ctx->run_ctx); in __bpf_prog_enter() [all …]
|
H A 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()
|
H A 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 …]
|
H A 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()
|
H A 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/kernel/trace/ |
H A D | bpf_trace.c | 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() 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() 1154 run_ctx = container_of(current->bpf_ctx, struct bpf_trace_run_ctx, run_ctx); in BPF_CALL_1() 2313 old_run_ctx = bpf_set_run_ctx(&run_ctx.run_ctx); in __bpf_trace_run() 2712 link = run_ctx->link; in bpf_kprobe_multi_cookie() 2730 return run_ctx->entry_ip; in bpf_kprobe_multi_entry_ip() 2757 old_run_ctx = bpf_set_run_ctx(&run_ctx.session_ctx.run_ctx); in kprobe_multi_link_prog_run() 3220 old_run_ctx = bpf_set_run_ctx(&run_ctx.run_ctx); in uprobe_prog_run() [all …]
|
/linux/include/linux/ |
H A D | bpf.h | 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() 2130 run_ctx.bpf_cookie = item->bpf_cookie; in bpf_prog_run_array() 2157 struct bpf_trace_run_ctx run_ctx; in bpf_prog_run_array_uprobe() local 2165 run_ctx.is_uprobe = true; in bpf_prog_run_array_uprobe() 2170 old_run_ctx = bpf_set_run_ctx(&run_ctx.run_ctx); in bpf_prog_run_array_uprobe() [all …]
|
/linux/net/bpf/ |
H A 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()
|