Home
last modified time | relevance | path

Searched refs:run_ctx (Results 1 – 7 of 7) 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.c1241 static u64 notrace __bpf_prog_enter_recur(struct bpf_prog *prog, struct bpf_tramp_run_ctx *run_ctx) in __bpf_prog_exit_sleepable_recur()
1246 run_ctx->saved_run_ctx = bpf_set_run_ctx(&run_ctx->run_ctx); in __bpf_prog_exit_sleepable_recur()
1286 struct bpf_tramp_run_ctx *run_ctx) in __bpf_prog_exit()
1289 bpf_reset_run_ctx(run_ctx->saved_run_ctx); in __bpf_prog_exit()
1297 struct bpf_tramp_run_ctx *run_ctx)
1305 run_ctx->saved_run_ctx = bpf_set_run_ctx(&run_ctx->run_ctx); in bpf_trampoline_enter()
1143 __bpf_prog_enter_recur(struct bpf_prog * prog,struct bpf_tramp_run_ctx * run_ctx) __bpf_prog_enter_recur() argument
1188 __bpf_prog_exit_recur(struct bpf_prog * prog,u64 start,struct bpf_tramp_run_ctx * run_ctx) __bpf_prog_exit_recur() argument
1199 __bpf_prog_enter_lsm_cgroup(struct bpf_prog * prog,struct bpf_tramp_run_ctx * run_ctx) __bpf_prog_enter_lsm_cgroup() argument
1213 __bpf_prog_exit_lsm_cgroup(struct bpf_prog * prog,u64 start,struct bpf_tramp_run_ctx * run_ctx) __bpf_prog_exit_lsm_cgroup() argument
1222 __bpf_prog_enter_sleepable_recur(struct bpf_prog * prog,struct bpf_tramp_run_ctx * run_ctx) __bpf_prog_enter_sleepable_recur() argument
1240 __bpf_prog_exit_sleepable_recur(struct bpf_prog * prog,u64 start,struct bpf_tramp_run_ctx * run_ctx) __bpf_prog_exit_sleepable_recur() argument
1251 __bpf_prog_enter_sleepable(struct bpf_prog * prog,struct bpf_tramp_run_ctx * run_ctx) __bpf_prog_enter_sleepable() argument
1263 __bpf_prog_exit_sleepable(struct bpf_prog * prog,u64 start,struct bpf_tramp_run_ctx * run_ctx) __bpf_prog_exit_sleepable() argument
1273 __bpf_prog_enter(struct bpf_prog * prog,struct bpf_tramp_run_ctx * run_ctx) __bpf_prog_enter() argument
1284 __bpf_prog_exit(struct bpf_prog * prog,u64 start,struct bpf_tramp_run_ctx * run_ctx) __bpf_prog_exit() argument
[all...]
H A Dcgroup.c93 struct bpf_cg_run_ctx run_ctx; in bpf_prog_run_array_cg()
96 run_ctx.retval = retval; in __cgroup_bpf_run_lsm_sock()
100 old_run_ctx = bpf_set_run_ctx(&run_ctx.run_ctx); in __cgroup_bpf_run_lsm_sock()
102 run_ctx.prog_item = item; in __cgroup_bpf_run_lsm_sock()
109 !IS_ERR_VALUE((long)run_ctx.retval)) in __cgroup_bpf_run_lsm_sock()
110 run_ctx.retval = -EPERM; in __cgroup_bpf_run_lsm_sock()
115 return run_ctx.retval; in __cgroup_bpf_run_lsm_sock()
1802 ctx = container_of(current->bpf_ctx, struct bpf_cg_run_ctx, run_ctx); in BPF_CALL_1()
1824 container_of(current->bpf_ctx, struct bpf_cg_run_ctx, run_ctx); in cgroup_dev_func_proto()
71 struct bpf_cg_run_ctx run_ctx; bpf_prog_run_array_cg() local
[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.c6581 struct bpf_tramp_run_ctx __maybe_unused run_ctx; in bpf_stats_handler()
6601 run_ctx.bpf_cookie = 0; in bpf_unpriv_handler()
6602 if (!__bpf_prog_enter_sleepable_recur(prog, &run_ctx)) { in bpf_unpriv_handler()
6604 __bpf_prog_exit_sleepable_recur(prog, 0, &run_ctx); in bpf_unpriv_handler()
6610 &run_ctx); in bpf_unpriv_handler()
6431 struct bpf_tramp_run_ctx __maybe_unused run_ctx; kern_sys_bpf() local
/linux/kernel/trace/
H A Dbpf_trace.c1086 struct bpf_trace_run_ctx *run_ctx __maybe_unused;
1090 run_ctx = container_of(current->bpf_ctx, struct bpf_trace_run_ctx, run_ctx);
1091 if (run_ctx->is_uprobe)
1160 struct bpf_trace_run_ctx *run_ctx; in BPF_CALL_1()
1162 run_ctx = container_of(current->bpf_ctx, struct bpf_trace_run_ctx, run_ctx);
1163 return run_ctx->bpf_cookie;
1187 struct bpf_trace_run_ctx *run_ctx;
1189 run_ctx
1130 struct bpf_trace_run_ctx *run_ctx; BPF_CALL_1() local
1157 struct bpf_trace_run_ctx *run_ctx; BPF_CALL_1() local
2077 struct bpf_trace_run_ctx run_ctx; __bpf_trace_run() local
2285 struct bpf_run_ctx run_ctx; global() member
2518 struct bpf_kprobe_multi_run_ctx *run_ctx; bpf_kprobe_multi_cookie() local
2541 struct bpf_kprobe_multi_run_ctx *run_ctx; bpf_kprobe_multi_entry_ip() local
2553 struct bpf_kprobe_multi_run_ctx run_ctx = { kprobe_multi_link_prog_run() local
3085 struct bpf_uprobe_multi_run_ctx run_ctx = { uprobe_prog_run() local
3157 struct bpf_uprobe_multi_run_ctx *run_ctx; bpf_uprobe_multi_entry_ip() local
3166 struct bpf_uprobe_multi_run_ctx *run_ctx; bpf_uprobe_multi_cookie() local
[all...]
/linux/include/linux/
H A Dbpf.h1324 struct bpf_tramp_run_ctx *run_ctx);
1326 struct bpf_tramp_run_ctx *run_ctx);
1330 struct bpf_tramp_run_ctx *run_ctx);
1332 struct bpf_tramp_run_ctx *run_ctx);
2533 struct bpf_run_ctx run_ctx;
2539 struct bpf_run_ctx run_ctx;
2545 struct bpf_run_ctx run_ctx; in bpf_disable_instrumentation()
2582 struct bpf_trace_run_ctx run_ctx;
2590 run_ctx.is_uprobe = false;
2593 old_run_ctx = bpf_set_run_ctx(&run_ctx
2408 struct bpf_run_ctx run_ctx; global() member
2414 struct bpf_run_ctx run_ctx; global() member
2420 struct bpf_run_ctx run_ctx; global() member
2457 struct bpf_trace_run_ctx run_ctx; bpf_prog_run_array() local
2497 struct bpf_trace_run_ctx run_ctx; bpf_prog_run_array_uprobe() local
[all...]