Searched refs:prog (Results 1 - 25 of 462) sorted by relevance

1234567891011>>

/linux-master/tools/testing/selftests/bpf/prog_tests/
H A Dexceptions.c44 ASSERT_OK(ret, #_prog " prog run ret"); \
45 ASSERT_EQ(ropts.retval, return_val, #_prog " prog run retval"); \
94 struct bpf_program *prog = NULL; \
99 ASSERT_OK_PTR(bpf_program__name(prog), bpf_program__name(prog)); \
112 if (!ASSERT_ERR_PTR(link = bpf_program__attach(prog), "attach err")) \
115 if (!ASSERT_OK_PTR(link = bpf_program__attach(prog), "attach ok")) \
124 prog = eskel->progs.pfentry;
125 bpf_program__set_autoload(prog, true);
126 if (!ASSERT_OK(bpf_program__set_attach_target(prog,
[all...]
H A Dhelper_restricted.c21 struct bpf_program *prog = *test->skeleton->progs[j].prog; local
23 bpf_program__set_autoload(prog, true);
H A Dtrampoline_count.c13 struct bpf_program *prog; local
26 prog = bpf_object__find_program_by_name(obj, name);
27 if (!ASSERT_OK_PTR(prog, "obj_find_prog"))
30 return prog;
39 struct bpf_program *prog; local
53 prog = load_prog(file, progs[i % ARRAY_SIZE(progs)], &inst[i]);
54 if (!prog)
57 link = bpf_program__attach(prog);
65 prog = load_prog(file, "fmod_ret_test", &inst[i]);
66 if (!prog)
[all...]
H A Dsignal_pending.c12 struct bpf_insn prog[4096]; local
25 for (i = 0; i < ARRAY_SIZE(prog); i++)
26 prog[i] = BPF_ALU64_IMM(BPF_MOV, BPF_REG_0, 0);
27 prog[ARRAY_SIZE(prog) - 1] = BPF_EXIT_INSN();
29 prog_fd = bpf_test_load_program(prog_type, prog, ARRAY_SIZE(prog),
H A Dcb_refs.c25 struct bpf_program *prog; local
38 prog = bpf_object__find_program_by_name(skel->obj, cb_refs_tests[i].prog_name);
39 bpf_program__set_autoload(prog, true);
41 bpf_prog_test_run_opts(bpf_program__fd(prog), &run_opts);
H A Dtrace_ext.c24 struct bpf_program *prog; local
42 prog = skel_pkt->progs.test_pkt_md_access;
43 pkt_fd = bpf_program__fd(prog);
51 prog = skel_ext->progs.test_pkt_md_access_new;
52 bpf_program__set_attach_target(prog, pkt_fd, "test_pkt_md_access");
66 prog = skel_ext->progs.test_pkt_md_access_new;
67 ext_fd = bpf_program__fd(prog);
75 prog = skel_trace->progs.fentry;
76 bpf_program__set_attach_target(prog, ext_fd, "test_pkt_md_access_new");
79 prog
[all...]
/linux-master/tools/rcu/
H A Drcu-cbs.py20 def get_rdp0(prog):
22 rdp0 = prog.variable('rcu_preempt_data', 'kernel/rcu/tree.c');
28 rdp0 = prog.variable('rcu_sched_data',
34 rdp0 = prog.variable('rcu_data', 'kernel/rcu/tree.c');
37 rdp0 = get_rdp0(prog);
41 for cpu in for_each_possible_cpu(prog):
/linux-master/include/net/netfilter/
H A Dnf_bpf_link.h9 int bpf_nf_link_attach(const union bpf_attr *attr, struct bpf_prog *prog);
11 static inline int bpf_nf_link_attach(const union bpf_attr *attr, struct bpf_prog *prog) argument
/linux-master/arch/riscv/net/
H A Dbpf_jit_core.c21 const struct bpf_prog *prog = ctx->prog; local
24 for (i = 0; i < prog->len; i++) {
25 const struct bpf_insn *insn = &prog->insnsi[i];
45 struct bpf_prog *bpf_int_jit_compile(struct bpf_prog *prog) argument
49 struct bpf_prog *tmp, *orig_prog = prog;
54 if (!prog->jit_requested)
57 tmp = bpf_jit_blind_constants(prog);
60 if (tmp != prog) {
62 prog
260 bpf_jit_free(struct bpf_prog *prog) argument
[all...]
/linux-master/drivers/clk/at91/
H A Dclk-programmable.c35 struct clk_programmable *prog = to_clk_programmable(hw); local
36 const struct clk_programmable_layout *layout = prog->layout;
40 regmap_read(prog->regmap, AT91_PMC_PCKR(prog->id), &pckr);
53 struct clk_programmable *prog = to_clk_programmable(hw); local
54 const struct clk_programmable_layout *layout = prog->layout;
105 struct clk_programmable *prog = to_clk_programmable(hw); local
106 const struct clk_programmable_layout *layout = prog->layout;
113 if (prog->mux_table)
114 pckr = clk_mux_index_to_val(prog
130 struct clk_programmable *prog = to_clk_programmable(hw); local
151 struct clk_programmable *prog = to_clk_programmable(hw); local
183 struct clk_programmable *prog = to_clk_programmable(hw); local
195 struct clk_programmable *prog = to_clk_programmable(hw); local
222 struct clk_programmable *prog; local
[all...]
/linux-master/net/sched/
H A Dcls_bpf.c87 struct cls_bpf_prog *prog; local
90 list_for_each_entry_rcu(prog, &head->plist, link) {
93 qdisc_skb_cb(skb)->tc_classid = prog->res.classid;
95 if (tc_skip_sw(prog->gen_flags)) {
96 filter_res = prog->exts_integrated ? TC_ACT_UNSPEC : 0;
101 filter_res = bpf_prog_run(prog->filter, skb);
105 filter_res = bpf_prog_run(prog->filter, skb);
110 if (prog->exts_integrated) {
112 res->classid = TC_H_MAJ(prog->res.classid) |
127 *res = prog
140 cls_bpf_is_ebpf(const struct cls_bpf_prog *prog) argument
145 cls_bpf_offload_cmd(struct tcf_proto *tp, struct cls_bpf_prog *prog, struct cls_bpf_prog *oldprog, struct netlink_ext_ack *extack) argument
197 cls_bpf_offload(struct tcf_proto *tp, struct cls_bpf_prog *prog, struct cls_bpf_prog *oldprog, struct netlink_ext_ack *extack) argument
216 cls_bpf_stop_offload(struct tcf_proto *tp, struct cls_bpf_prog *prog, struct netlink_ext_ack *extack) argument
227 cls_bpf_offload_update_stats(struct tcf_proto *tp, struct cls_bpf_prog *prog) argument
258 cls_bpf_free_parms(struct cls_bpf_prog *prog) argument
269 __cls_bpf_delete_prog(struct cls_bpf_prog *prog) argument
280 struct cls_bpf_prog *prog = container_of(to_rcu_work(work), local
288 __cls_bpf_delete(struct tcf_proto *tp, struct cls_bpf_prog *prog, struct netlink_ext_ack *extack) argument
317 struct cls_bpf_prog *prog, *tmp; local
329 struct cls_bpf_prog *prog; local
339 cls_bpf_prog_from_ops(struct nlattr **tb, struct cls_bpf_prog *prog) argument
376 cls_bpf_prog_from_efd(struct nlattr **tb, struct cls_bpf_prog *prog, u32 gen_flags, const struct tcf_proto *tp) argument
420 struct cls_bpf_prog *prog; local
538 cls_bpf_dump_bpf_info(const struct cls_bpf_prog *prog, struct sk_buff *skb) argument
556 cls_bpf_dump_ebpf_info(const struct cls_bpf_prog *prog, struct sk_buff *skb) argument
580 struct cls_bpf_prog *prog = fh; local
633 struct cls_bpf_prog *prog = fh; local
642 struct cls_bpf_prog *prog; local
656 struct cls_bpf_prog *prog; local
[all...]
/linux-master/include/net/
H A Dnetkit.h9 int netkit_prog_attach(const union bpf_attr *attr, struct bpf_prog *prog);
10 int netkit_link_attach(const union bpf_attr *attr, struct bpf_prog *prog);
11 int netkit_prog_detach(const union bpf_attr *attr, struct bpf_prog *prog);
16 struct bpf_prog *prog)
22 struct bpf_prog *prog)
28 struct bpf_prog *prog)
15 netkit_prog_attach(const union bpf_attr *attr, struct bpf_prog *prog) argument
21 netkit_link_attach(const union bpf_attr *attr, struct bpf_prog *prog) argument
27 netkit_prog_detach(const union bpf_attr *attr, struct bpf_prog *prog) argument
/linux-master/kernel/bpf/
H A Dprog_iter.c16 struct bpf_prog *prog; local
18 prog = bpf_prog_get_curr_or_next(&info->prog_id);
19 if (!prog)
24 return prog;
39 __bpf_md_ptr(struct bpf_prog *, prog);
42 DEFINE_BPF_ITER_FUNC(bpf_prog, struct bpf_iter_meta *meta, struct bpf_prog *prog)
48 struct bpf_prog *prog; local
52 ctx.prog = v;
54 prog = bpf_iter_get_info(&meta, in_stop);
55 if (prog)
[all...]
H A Dmprog.c20 if (type && link->prog->type != type) {
26 tuple->prog = link->prog;
34 struct bpf_prog *prog = ERR_PTR(-EINVAL); local
38 prog = bpf_prog_by_id(id_or_fd);
40 prog = bpf_prog_get(id_or_fd);
41 if (IS_ERR(prog))
42 return PTR_ERR(prog);
43 if (type && prog->type != type) {
44 bpf_prog_put(prog);
303 struct bpf_prog *prog; local
328 bpf_mprog_detach(struct bpf_mprog_entry *entry, struct bpf_mprog_entry **entry_new, struct bpf_prog *prog, struct bpf_link *link, u32 flags, u32 id_or_fd, u64 revision) argument
402 struct bpf_prog *prog; local
[all...]
H A Ddispatcher.c26 struct bpf_dispatcher *d, struct bpf_prog *prog)
31 if (prog == d->progs[i].prog)
44 struct bpf_prog *prog)
48 if (!prog)
51 entry = bpf_dispatcher_find_prog(d, prog);
61 bpf_prog_inc(prog);
62 entry->prog = prog;
69 struct bpf_prog *prog)
25 bpf_dispatcher_find_prog( struct bpf_dispatcher *d, struct bpf_prog *prog) argument
43 bpf_dispatcher_add_prog(struct bpf_dispatcher *d, struct bpf_prog *prog) argument
68 bpf_dispatcher_remove_prog(struct bpf_dispatcher *d, struct bpf_prog *prog) argument
[all...]
/linux-master/samples/bpf/
H A Dtracex5_user.c27 struct sock_fprog prog = { local
31 if (prctl(PR_SET_SECCOMP, 2, &prog))
38 struct bpf_program *prog; local
52 prog = bpf_object__find_program_by_name(obj, "bpf_prog1");
53 if (!prog) {
54 printf("finding a prog in obj file failed\n");
64 link = bpf_program__attach(prog);
77 bpf_object__for_each_program(prog, obj) {
78 section = bpf_program__section_name(prog);
83 fd = bpf_program__fd(prog);
[all...]
H A Dtest_overhead_raw_tp.bpf.c7 int prog(struct bpf_raw_tracepoint_args *ctx) function
H A Dtest_overhead_tp.bpf.c12 int prog(struct trace_event_raw_task_rename *ctx) function
H A Dtracex7_user.c10 struct bpf_program *prog; local
29 prog = bpf_object__find_program_by_name(obj, "bpf_prog1");
30 if (!prog) {
31 fprintf(stderr, "ERROR: finding a prog in obj file failed\n");
41 link = bpf_program__attach(prog);
H A Dtracex1_user.c10 struct bpf_program *prog; local
22 prog = bpf_object__find_program_by_name(obj, "bpf_prog1");
23 if (!prog) {
24 fprintf(stderr, "ERROR: finding a prog in obj file failed\n");
34 link = bpf_program__attach(prog);
/linux-master/arch/parisc/net/
H A Dbpf_jit_core.c18 const struct bpf_prog *prog = ctx->prog; local
22 for (i = 0; i < prog->len; i++) {
23 const struct bpf_insn *insn = &prog->insnsi[i];
44 struct bpf_prog *bpf_int_jit_compile(struct bpf_prog *prog) argument
48 struct bpf_prog *tmp, *orig_prog = prog;
53 if (!prog->jit_requested)
56 tmp = bpf_jit_blind_constants(prog);
59 if (tmp != prog) {
61 prog
[all...]
/linux-master/tools/workqueue/
H A Dwq_dump.py95 worker_pool_idr = prog['worker_pool_idr']
96 workqueues = prog['workqueues']
97 wq_unbound_cpumask = prog['wq_unbound_cpumask']
98 wq_pod_types = prog['wq_pod_types']
99 wq_affn_dfl = prog['wq_affn_dfl']
100 wq_affn_names = prog['wq_affn_names']
102 WQ_BH = prog['WQ_BH']
103 WQ_UNBOUND = prog['WQ_UNBOUND']
104 WQ_ORDERED = prog['__WQ_ORDERED']
105 WQ_MEM_RECLAIM = prog['WQ_MEM_RECLAI
[all...]
/linux-master/tools/testing/selftests/bpf/progs/
H A Dmetadata_unused.c10 int prog(struct xdp_md *ctx) function
H A Dmetadata_used.c10 int prog(struct xdp_md *ctx) function
/linux-master/include/linux/
H A Dbpf-netns.h32 struct bpf_prog *prog);
35 struct bpf_prog *prog);
44 struct bpf_prog *prog)
56 struct bpf_prog *prog)
43 netns_bpf_prog_attach(const union bpf_attr *attr, struct bpf_prog *prog) argument
55 netns_bpf_link_create(const union bpf_attr *attr, struct bpf_prog *prog) argument

Completed in 458 milliseconds

1234567891011>>