| /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 | 1339 static u64 notrace __bpf_prog_enter_recur(struct bpf_prog *prog, struct bpf_tramp_run_ctx *run_ctx) in __bpf_prog_exit_recur() 1344 run_ctx->saved_run_ctx = bpf_set_run_ctx(&run_ctx->run_ctx); in __bpf_prog_enter_lsm_cgroup() argument 1384 struct bpf_tramp_run_ctx *run_ctx) in __bpf_prog_exit_sleepable_recur() 1387 bpf_reset_run_ctx(run_ctx->saved_run_ctx); in __bpf_prog_exit_sleepable_recur() 1395 struct bpf_tramp_run_ctx *run_ctx) in __bpf_prog_enter_sleepable() 1403 run_ctx->saved_run_ctx = bpf_set_run_ctx(&run_ctx->run_ctx); in __bpf_prog_enter_sleepable() 1288 __bpf_prog_enter_recur(struct bpf_prog * prog,struct bpf_tramp_run_ctx * run_ctx) __bpf_prog_enter_recur() argument 1333 __bpf_prog_exit_recur(struct bpf_prog * prog,u64 start,struct bpf_tramp_run_ctx * run_ctx) __bpf_prog_exit_recur() argument 1358 __bpf_prog_exit_lsm_cgroup(struct bpf_prog * prog,u64 start,struct bpf_tramp_run_ctx * run_ctx) __bpf_prog_exit_lsm_cgroup() argument 1367 __bpf_prog_enter_sleepable_recur(struct bpf_prog * prog,struct bpf_tramp_run_ctx * run_ctx) __bpf_prog_enter_sleepable_recur() argument 1385 __bpf_prog_exit_sleepable_recur(struct bpf_prog * prog,u64 start,struct bpf_tramp_run_ctx * run_ctx) __bpf_prog_exit_sleepable_recur() argument 1396 __bpf_prog_enter_sleepable(struct bpf_prog * prog,struct bpf_tramp_run_ctx * run_ctx) __bpf_prog_enter_sleepable() argument 1408 __bpf_prog_exit_sleepable(struct bpf_prog * prog,u64 start,struct bpf_tramp_run_ctx * run_ctx) __bpf_prog_exit_sleepable() argument 1418 __bpf_prog_enter(struct bpf_prog * prog,struct bpf_tramp_run_ctx * run_ctx) __bpf_prog_enter() argument 1429 __bpf_prog_exit(struct bpf_prog * prog,u64 start,struct bpf_tramp_run_ctx * run_ctx) __bpf_prog_exit() argument [all...] |
| H A D | bpf_lsm.c | 214 struct bpf_trace_run_ctx *run_ctx; in BPF_CALL_1() local 216 run_ctx = container_of(current->bpf_ctx, struct bpf_trace_run_ctx, run_ctx); in BPF_CALL_1() 217 return run_ctx->bpf_cookie; in BPF_CALL_1()
|
| H A D | cgroup.c | 93 struct bpf_cg_run_ctx run_ctx; in bpf_prog_run_array_cg() local 96 run_ctx.retval = retval; in bpf_prog_run_array_cg() 100 old_run_ctx = bpf_set_run_ctx(&run_ctx.run_ctx); in bpf_prog_run_array_cg() 102 run_ctx.prog_item = item; in bpf_prog_run_array_cg() 109 !IS_ERR_VALUE((long)run_ctx.retval)) in bpf_prog_run_array_cg() 110 run_ctx.retval = -EPERM; in bpf_prog_run_array_cg() 115 return run_ctx.retval; in bpf_prog_run_array_cg() 1827 ctx = container_of(current->bpf_ctx, struct bpf_cg_run_ctx, run_ctx); in BPF_CALL_2() 1849 container_of(current->bpf_ctx, struct bpf_cg_run_ctx, run_ctx); in BPF_CALL_0() 1863 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 | 6549 struct bpf_tramp_run_ctx __maybe_unused run_ctx; in kern_sys_bpf() 6569 run_ctx.bpf_cookie = 0; 6570 if (!__bpf_prog_enter_sleepable_recur(prog, &run_ctx)) { 6572 __bpf_prog_exit_sleepable_recur(prog, 0, &run_ctx); 6578 &run_ctx); 6532 struct bpf_tramp_run_ctx __maybe_unused run_ctx; kern_sys_bpf() local
|
| /linux/kernel/trace/ |
| H A D | bpf_trace.c | 1086 struct bpf_trace_run_ctx *run_ctx __maybe_unused; in BPF_CALL_1() 1090 run_ctx = container_of(current->bpf_ctx, struct bpf_trace_run_ctx, run_ctx); in BPF_CALL_1() 1091 if (run_ctx->is_uprobe) in BPF_CALL_1() 1160 struct bpf_trace_run_ctx *run_ctx; in BPF_CALL_1() local 1162 run_ctx = container_of(current->bpf_ctx, struct bpf_trace_run_ctx, run_ctx); in BPF_CALL_1() 1163 return run_ctx->bpf_cookie; in BPF_CALL_1() 1187 struct bpf_trace_run_ctx *run_ctx; in BPF_CALL_1() local 1189 run_ctx = container_of(current->bpf_ctx, struct bpf_trace_run_ctx, run_ctx); in BPF_CALL_1() 1190 return run_ctx->bpf_cookie; in BPF_CALL_1() 2110 struct bpf_trace_run_ctx run_ctx; in __bpf_trace_run() local [all …]
|
| /linux/include/linux/ |
| H A D | bpf.h | 1327 struct bpf_tramp_run_ctx *run_ctx); 1329 struct bpf_tramp_run_ctx *run_ctx); 1333 struct bpf_tramp_run_ctx *run_ctx); 1335 struct bpf_tramp_run_ctx *run_ctx); in bpf_trampoline_use_jmp() 2577 struct bpf_run_ctx run_ctx; 2583 struct bpf_run_ctx run_ctx; in bpf_prog_run_array() 2589 struct bpf_run_ctx run_ctx; in bpf_prog_run_array() local 2626 struct bpf_trace_run_ctx run_ctx; in bpf_prog_run_array_uprobe() 2634 run_ctx.is_uprobe = false; in bpf_prog_run_array_uprobe() 2637 old_run_ctx = bpf_set_run_ctx(&run_ctx in bpf_prog_run_array_uprobe() 2540 struct bpf_run_ctx run_ctx; global() member 2546 struct bpf_run_ctx run_ctx; global() member 2552 struct bpf_run_ctx run_ctx; global() member 2629 struct bpf_trace_run_ctx run_ctx; bpf_prog_run_array_uprobe() local 3232 struct bpf_trace_run_ctx run_ctx; bpf_prog_run_array_sleepable() local [all...] |
| /linux/net/bpf/ |
| H A D | test_run.c | 394 struct bpf_cg_run_ctx run_ctx; in bpf_test_run() local 413 old_ctx = bpf_set_run_ctx(&run_ctx.run_ctx); in bpf_test_run() 415 run_ctx.prog_item = &item; in bpf_test_run() 750 struct bpf_trace_run_ctx run_ctx = {}; in __bpf_prog_test_run_raw_tp() local 753 old_run_ctx = bpf_set_run_ctx(&run_ctx.run_ctx); in __bpf_prog_test_run_raw_tp()
|