Home
last modified time | relevance | path

Searched refs:prog (Results 1 – 22 of 22) sorted by relevance

/include/linux/
Dbpf-netns.h32 struct bpf_prog *prog);
35 struct bpf_prog *prog);
44 struct bpf_prog *prog) in netns_bpf_prog_attach() argument
56 struct bpf_prog *prog) in netns_bpf_link_create() argument
Dbpf_lsm.h28 const struct bpf_prog *prog);
45 void bpf_lsm_find_cgroup_shim(const struct bpf_prog *prog, bpf_func_t *bpf_func);
55 const struct bpf_prog *prog) in bpf_lsm_verify_prog() argument
70 static inline void bpf_lsm_find_cgroup_shim(const struct bpf_prog *prog, in bpf_lsm_find_cgroup_shim() argument
Dbpf.h614 bool (*allowed)(const struct bpf_prog *prog);
718 int (*test_run)(struct bpf_prog *prog, const union bpf_attr *kattr,
726 const struct bpf_prog *prog);
732 const struct bpf_prog *prog,
735 const struct bpf_prog *prog);
741 struct bpf_prog *prog, u32 *target_size);
760 int (*prepare)(struct bpf_prog *prog);
761 int (*translate)(struct bpf_prog *prog);
762 void (*destroy)(struct bpf_prog *prog);
767 struct bpf_prog *prog; member
[all …]
Dfilter.h565 struct bpf_prog *prog; member
581 static __always_inline u32 __bpf_prog_run(const struct bpf_prog *prog, in __bpf_prog_run() argument
593 ret = dfunc(ctx, prog->insnsi, prog->bpf_func); in __bpf_prog_run()
594 stats = this_cpu_ptr(prog->stats); in __bpf_prog_run()
600 ret = dfunc(ctx, prog->insnsi, prog->bpf_func); in __bpf_prog_run()
605 static __always_inline u32 bpf_prog_run(const struct bpf_prog *prog, const void *ctx) in bpf_prog_run() argument
607 return __bpf_prog_run(prog, ctx, bpf_dispatcher_nop_func); in bpf_prog_run()
618 static inline u32 bpf_prog_run_pin_on_cpu(const struct bpf_prog *prog, in bpf_prog_run_pin_on_cpu() argument
624 ret = bpf_prog_run(prog, ctx); in bpf_prog_run_pin_on_cpu()
717 static inline u32 __bpf_prog_run_save_cb(const struct bpf_prog *prog, in __bpf_prog_run_save_cb() argument
[all …]
Dbpf_lirc.h8 int lirc_prog_attach(const union bpf_attr *attr, struct bpf_prog *prog);
13 struct bpf_prog *prog) in lirc_prog_attach() argument
Dbpf_verifier.h497 struct bpf_prog *prog; /* eBPF program being verified */ member
583 int bpf_prog_offload_verifier_prep(struct bpf_prog *prog);
628 const struct bpf_prog *prog,
651 static inline enum bpf_prog_type resolve_prog_type(const struct bpf_prog *prog) in resolve_prog_type() argument
653 return prog->type == BPF_PROG_TYPE_EXT ? in resolve_prog_type()
654 prog->aux->dst_prog->type : prog->type; in resolve_prog_type()
657 static inline bool bpf_prog_check_recur(const struct bpf_prog *prog) in bpf_prog_check_recur() argument
659 switch (resolve_prog_type(prog)) { in bpf_prog_check_recur()
661 return prog->expected_attach_type != BPF_TRACE_ITER; in bpf_prog_check_recur()
Dtrace_events.h741 int perf_event_attach_bpf_prog(struct perf_event *event, struct bpf_prog *prog, u64 bpf_cookie);
744 int bpf_probe_register(struct bpf_raw_event_map *btp, struct bpf_prog *prog);
745 int bpf_probe_unregister(struct bpf_raw_event_map *btp, struct bpf_prog *prog);
751 int bpf_kprobe_multi_link_attach(const union bpf_attr *attr, struct bpf_prog *prog);
759 perf_event_attach_bpf_prog(struct perf_event *event, struct bpf_prog *prog, u64 bpf_cookie) in perf_event_attach_bpf_prog() argument
794 bpf_kprobe_multi_link_attach(const union bpf_attr *attr, struct bpf_prog *prog) in bpf_kprobe_multi_link_attach() argument
875 int perf_event_set_bpf_prog(struct perf_event *event, struct bpf_prog *prog, u64 bpf_cookie);
878 void bpf_trace_run1(struct bpf_prog *prog, u64 arg1);
879 void bpf_trace_run2(struct bpf_prog *prog, u64 arg1, u64 arg2);
880 void bpf_trace_run3(struct bpf_prog *prog, u64 arg1, u64 arg2,
[all …]
Dbpf-cgroup.h106 struct bpf_prog *prog; member
163 struct bpf_cgroup_storage *bpf_cgroup_storage_alloc(struct bpf_prog *prog,
411 enum bpf_prog_type ptype, struct bpf_prog *prog);
414 int cgroup_bpf_link_attach(const union bpf_attr *attr, struct bpf_prog *prog);
419 cgroup_common_func_proto(enum bpf_func_id func_id, const struct bpf_prog *prog);
421 cgroup_current_func_proto(enum bpf_func_id func_id, const struct bpf_prog *prog);
429 struct bpf_prog *prog) in cgroup_bpf_prog_attach() argument
441 struct bpf_prog *prog) in cgroup_bpf_link_attach() argument
453 cgroup_common_func_proto(enum bpf_func_id func_id, const struct bpf_prog *prog) in cgroup_common_func_proto() argument
459 cgroup_current_func_proto(enum bpf_func_id func_id, const struct bpf_prog *prog) in cgroup_current_func_proto() argument
[all …]
Dskmsg.h465 struct bpf_prog *prog) in psock_set_prog() argument
467 prog = xchg(pprog, prog); in psock_set_prog()
468 if (prog) in psock_set_prog()
469 bpf_prog_put(prog); in psock_set_prog()
473 struct bpf_prog *prog, in psock_replace_prog() argument
476 if (cmpxchg(pprog, old, prog) != old) in psock_replace_prog()
Dperf_event.h795 struct bpf_prog *prog; member
1314 extern void perf_event_bpf_event(struct bpf_prog *prog,
1610 static inline void perf_event_bpf_event(struct bpf_prog *prog, in perf_event_bpf_event() argument
Dbtf.h411 struct btf *bpf_prog_get_target_btf(const struct bpf_prog *prog);
Dsecurity.h2004 extern int security_bpf_prog(struct bpf_prog *prog);
2021 static inline int security_bpf_prog(struct bpf_prog *prog) in security_bpf_prog() argument
Dlsm_hook_defs.h394 LSM_HOOK(int, 0, bpf_prog, struct bpf_prog *prog)
Dnetdevice.h1030 struct bpf_prog *prog; member
1040 struct bpf_prog *prog; member
3954 int bpf_xdp_link_attach(const union bpf_attr *attr, struct bpf_prog *prog);
Dskbuff.h1489 u32 bpf_flow_dissect(struct bpf_prog *prog, struct bpf_flow_dissector *ctx,
/include/net/
Dsock_reuseport.h28 struct bpf_prog __rcu *prog; /* optional BPF sock selector */ member
44 extern int reuseport_attach_prog(struct sock *sk, struct bpf_prog *prog);
Dflow_dissector.h435 struct bpf_prog *prog);
Dxdp.h402 struct bpf_prog *prog; member
Dpkt_cls.h785 struct bpf_prog *prog; member
/include/sound/
Dopl3.h253 unsigned char prog; member
363 int prog, int bank, int type,
367 struct fm_patch *snd_opl3_find_patch(struct snd_opl3 *opl3, int prog, int bank,
/include/uapi/sound/
Dasound_fm.h112 unsigned char prog; member
/include/trace/
Dbpf_probe.h84 struct bpf_prog *prog = __data; \
85 CONCATENATE(bpf_trace_run, COUNT_ARGS(args))(prog, CAST_TO_U64(args)); \