Lines Matching refs:prog

687 tracing_func_proto(enum bpf_func_id func_id, const struct bpf_prog *prog)  in tracing_func_proto()  argument
744 kprobe_prog_func_proto(enum bpf_func_id func_id, const struct bpf_prog *prog) in kprobe_prog_func_proto() argument
760 return tracing_func_proto(func_id, prog); in kprobe_prog_func_proto()
766 const struct bpf_prog *prog, in kprobe_prog_is_valid_access() argument
860 tp_prog_func_proto(enum bpf_func_id func_id, const struct bpf_prog *prog) in tp_prog_func_proto() argument
870 return tracing_func_proto(func_id, prog); in tp_prog_func_proto()
875 const struct bpf_prog *prog, in tp_prog_is_valid_access() argument
924 pe_prog_func_proto(enum bpf_func_id func_id, const struct bpf_prog *prog) in pe_prog_func_proto() argument
936 return tracing_func_proto(func_id, prog); in pe_prog_func_proto()
1051 raw_tp_prog_func_proto(enum bpf_func_id func_id, const struct bpf_prog *prog) in raw_tp_prog_func_proto() argument
1061 return tracing_func_proto(func_id, prog); in raw_tp_prog_func_proto()
1067 const struct bpf_prog *prog, in raw_tp_prog_is_valid_access() argument
1090 const struct bpf_prog *prog, in raw_tp_writable_prog_is_valid_access() argument
1098 return raw_tp_prog_is_valid_access(off, size, type, prog, info); in raw_tp_writable_prog_is_valid_access()
1110 const struct bpf_prog *prog, in pe_prog_is_valid_access() argument
1150 struct bpf_prog *prog, u32 *target_size) in pe_prog_convert_ctx_access() argument
1197 struct bpf_prog *prog) in perf_event_attach_bpf_prog() argument
1207 if (prog->kprobe_override && in perf_event_attach_bpf_prog()
1214 if (event->prog) in perf_event_attach_bpf_prog()
1224 ret = bpf_prog_array_copy(old_array, NULL, prog, &new_array); in perf_event_attach_bpf_prog()
1229 event->prog = prog; in perf_event_attach_bpf_prog()
1246 if (!event->prog) in perf_event_detach_bpf_prog()
1250 ret = bpf_prog_array_copy(old_array, event->prog, NULL, &new_array); in perf_event_detach_bpf_prog()
1254 bpf_prog_array_delete_safe(old_array, event->prog); in perf_event_detach_bpf_prog()
1260 bpf_prog_put(event->prog); in perf_event_detach_bpf_prog()
1261 event->prog = NULL; in perf_event_detach_bpf_prog()
1332 void __bpf_trace_run(struct bpf_prog *prog, u64 *args) in __bpf_trace_run() argument
1336 (void) BPF_PROG_RUN(prog, args); in __bpf_trace_run()
1365 void bpf_trace_run##x(struct bpf_prog *prog, \
1370 __bpf_trace_run(prog, args); \
1386 static int __bpf_probe_register(struct bpf_raw_event_map *btp, struct bpf_prog *prog) in __bpf_probe_register() argument
1394 if (prog->aux->max_ctx_offset > btp->num_args * sizeof(u64)) in __bpf_probe_register()
1397 if (prog->aux->max_tp_access > btp->writable_size) in __bpf_probe_register()
1400 return tracepoint_probe_register(tp, (void *)btp->bpf_func, prog); in __bpf_probe_register()
1403 int bpf_probe_register(struct bpf_raw_event_map *btp, struct bpf_prog *prog) in bpf_probe_register() argument
1405 return __bpf_probe_register(btp, prog); in bpf_probe_register()
1408 int bpf_probe_unregister(struct bpf_raw_event_map *btp, struct bpf_prog *prog) in bpf_probe_unregister() argument
1410 return tracepoint_probe_unregister(btp->tp, (void *)btp->bpf_func, prog); in bpf_probe_unregister()
1418 struct bpf_prog *prog; in bpf_get_perf_event_info() local
1421 prog = event->prog; in bpf_get_perf_event_info()
1422 if (!prog) in bpf_get_perf_event_info()
1426 if (prog->type == BPF_PROG_TYPE_PERF_EVENT) in bpf_get_perf_event_info()
1429 *prog_id = prog->aux->id; in bpf_get_perf_event_info()