Home
last modified time | relevance | path

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

/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/bpf/
H A Dtrampoline.c1288 static u64 notrace __bpf_prog_enter_recur(struct bpf_prog *prog, struct bpf_tramp_run_ctx *run_ctx) in __bpf_prog_enter_recur() argument
1293 run_ctx->saved_run_ctx = bpf_set_run_ctx(&run_ctx->run_ctx); in __bpf_prog_enter_recur()
1333 struct bpf_tramp_run_ctx *run_ctx) in __bpf_prog_exit_recur() argument
1336 bpf_reset_run_ctx(run_ctx->saved_run_ctx); in __bpf_prog_exit_recur()
1344 struct bpf_tramp_run_ctx *run_ctx) in __bpf_prog_enter_lsm_cgroup() argument
1352 run_ctx->saved_run_ctx = bpf_set_run_ctx(&run_ctx->run_ctx); in __bpf_prog_enter_lsm_cgroup()
1358 struct bpf_tramp_run_ctx *run_ctx) in __bpf_prog_exit_lsm_cgroup() argument
1361 bpf_reset_run_ctx(run_ctx->saved_run_ctx); in __bpf_prog_exit_lsm_cgroup()
1367 struct bpf_tramp_run_ctx *run_ctx) in __bpf_prog_enter_sleepable_recur() argument
1373 run_ctx->saved_run_ctx = bpf_set_run_ctx(&run_ctx->run_ctx); in __bpf_prog_enter_sleepable_recur()
[all …]
H A Dbpf_lsm.c214 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 Dcgroup.c93 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 Dbpf_iter.c682 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 Dsyscall.c6529 struct bpf_tramp_run_ctx __maybe_unused run_ctx; in kern_sys_bpf() local
6549 run_ctx.bpf_cookie = 0; in kern_sys_bpf()
6550 if (!__bpf_prog_enter_sleepable_recur(prog, &run_ctx)) { in kern_sys_bpf()
6552 __bpf_prog_exit_sleepable_recur(prog, 0, &run_ctx); in kern_sys_bpf()
6558 &run_ctx); in kern_sys_bpf()
/linux/kernel/trace/
H A Dbpf_trace.c1086 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 Dbpf.h1321 struct bpf_tramp_run_ctx *run_ctx);
1323 struct bpf_tramp_run_ctx *run_ctx);
1327 struct bpf_tramp_run_ctx *run_ctx);
1329 struct bpf_tramp_run_ctx *run_ctx);
2538 struct bpf_run_ctx run_ctx; member
2544 struct bpf_run_ctx run_ctx; member
2550 struct bpf_run_ctx run_ctx; member
2587 struct bpf_trace_run_ctx run_ctx; in bpf_prog_run_array() local
2595 run_ctx.is_uprobe = false; in bpf_prog_run_array()
2598 old_run_ctx = bpf_set_run_ctx(&run_ctx.run_ctx); in bpf_prog_run_array()
[all …]
/linux/net/bpf/
H A Dtest_run.c394 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()