Searched refs:run_ctx (Results 1 – 8 of 8) sorted by relevance
/openbmc/linux/kernel/bpf/ |
H A 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 …]
|
H A 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()
|
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() 1583 ctx = container_of(current->bpf_ctx, struct bpf_cg_run_ctx, run_ctx); in BPF_CALL_2() 1605 container_of(current->bpf_ctx, struct bpf_cg_run_ctx, run_ctx); in BPF_CALL_0() 1619 container_of(current->bpf_ctx, struct bpf_cg_run_ctx, run_ctx); in BPF_CALL_1() [all …]
|
H A 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()
|
H A D | syscall.c | 5615 struct bpf_tramp_run_ctx __maybe_unused run_ctx; in kern_sys_bpf() local 5635 run_ctx.bpf_cookie = 0; in kern_sys_bpf() 5636 if (!__bpf_prog_enter_sleepable_recur(prog, &run_ctx)) { in kern_sys_bpf() 5638 __bpf_prog_exit_sleepable_recur(prog, 0, &run_ctx); in kern_sys_bpf() 5644 &run_ctx); in kern_sys_bpf()
|
/openbmc/linux/kernel/trace/ |
H A D | bpf_trace.c | 1066 struct bpf_trace_run_ctx *run_ctx __maybe_unused; in BPF_CALL_1() 1070 run_ctx = container_of(current->bpf_ctx, struct bpf_trace_run_ctx, run_ctx); in BPF_CALL_1() 1071 if (run_ctx->is_uprobe) in BPF_CALL_1() 1140 struct bpf_trace_run_ctx *run_ctx; in BPF_CALL_1() local 1142 run_ctx = container_of(current->bpf_ctx, struct bpf_trace_run_ctx, run_ctx); in BPF_CALL_1() 1143 return run_ctx->bpf_cookie; in BPF_CALL_1() 1167 struct bpf_trace_run_ctx *run_ctx; in BPF_CALL_1() local 1169 run_ctx = container_of(current->bpf_ctx, struct bpf_trace_run_ctx, run_ctx); in BPF_CALL_1() 1170 return run_ctx->bpf_cookie; in BPF_CALL_1() 2533 struct bpf_run_ctx run_ctx; member [all …]
|
/openbmc/linux/include/linux/ |
H A D | bpf.h | 1108 struct bpf_tramp_run_ctx *run_ctx); 1110 struct bpf_tramp_run_ctx *run_ctx); 1114 struct bpf_tramp_run_ctx *run_ctx); 1116 struct bpf_tramp_run_ctx *run_ctx); 1908 struct bpf_run_ctx run_ctx; member 1914 struct bpf_run_ctx run_ctx; member 1920 struct bpf_run_ctx run_ctx; member 1957 struct bpf_trace_run_ctx run_ctx; in bpf_prog_run_array() local 1965 run_ctx.is_uprobe = false; in bpf_prog_run_array() 1968 old_run_ctx = bpf_set_run_ctx(&run_ctx.run_ctx); in bpf_prog_run_array() [all …]
|
/openbmc/linux/net/bpf/ |
H A D | test_run.c | 398 struct bpf_cg_run_ctx run_ctx; in bpf_test_run() local 417 old_ctx = bpf_set_run_ctx(&run_ctx.run_ctx); in bpf_test_run() 419 run_ctx.prog_item = &item; in bpf_test_run() 708 struct bpf_trace_run_ctx run_ctx = {}; in __bpf_prog_test_run_raw_tp() local 711 old_run_ctx = bpf_set_run_ctx(&run_ctx.run_ctx); in __bpf_prog_test_run_raw_tp()
|