Home
last modified time | relevance | path

Searched refs:skeletons (Results 1 – 5 of 5) sorted by relevance

/linux/tools/testing/selftests/bpf/prog_tests/
H A Dtest_xdp_veth.c34 struct skeletons { struct
72 static int attach_programs_to_veth_pair(struct skeletons *skeletons, int index) in attach_programs_to_veth_pair() argument
82 local_prog = skeletons->xdp_redirect_maps->progs.xdp_redirect_map_0; in attach_programs_to_veth_pair()
83 local_link = &skeletons->xdp_redirect_maps->links.xdp_redirect_map_0; in attach_programs_to_veth_pair()
84 remote_prog = skeletons->xdp_dummy->progs.xdp_dummy_prog; in attach_programs_to_veth_pair()
85 remote_link = &skeletons->xdp_dummy->links.xdp_dummy_prog; in attach_programs_to_veth_pair()
88 local_prog = skeletons->xdp_redirect_maps->progs.xdp_redirect_map_1; in attach_programs_to_veth_pair()
89 local_link = &skeletons->xdp_redirect_maps->links.xdp_redirect_map_1; in attach_programs_to_veth_pair()
90 remote_prog = skeletons->xdp_tx->progs.xdp_tx; in attach_programs_to_veth_pair()
91 remote_link = &skeletons->xdp_tx->links.xdp_tx; in attach_programs_to_veth_pair()
[all …]
H A Dxdp_bonding.c90 struct skeletons { struct
99 static int xdp_attach(struct skeletons *skeletons, struct bpf_program *prog, char *iface) in xdp_attach() argument
108 if (!ASSERT_LE(skeletons->nlinks+1, MAX_BPF_LINKS, "too many XDP programs attached")) in xdp_attach()
115 skeletons->links[skeletons->nlinks++] = link; in xdp_attach()
142 static int bonding_setup(struct skeletons *skeletons, int mode, int xmit_policy, in bonding_setup() argument
162 if (xdp_attach(skeletons, skeletons->xdp_dummy->progs.xdp_dummy_prog, "veth1_2")) in bonding_setup()
176 if (xdp_attach(skeletons, skeletons->xdp_dummy->progs.xdp_dummy_prog, "bond1")) in bonding_setup()
183 if (xdp_attach(skeletons, skeletons->xdp_tx->progs.xdp_tx, "bond2")) in bonding_setup()
194 static void bonding_cleanup(struct skeletons *skeletons) in bonding_cleanup() argument
197 while (skeletons->nlinks) { in bonding_cleanup()
[all …]
/linux/tools/bpf/bpftool/Documentation/
H A Dcommon_options.rst11 dump jited**) and usage of BPF skeletons (some features like **bpftool prog
H A Dbpftool-gen.rst138 Subskeletons are similar to skeletons, except they do not own the
185 For skeletons, generate a "light" skeleton (also known as "loader"
/linux/tools/perf/
H A DMakefile.config694 $(warning Warning: Disabled BPF skeletons as libelf is required by bpftool)
697 $(warning Warning: Disabled BPF skeletons as zlib is required by bpftool)
700 $(warning Warning: Disabled BPF skeletons as libbpf is required)
703 $(warning Warning: Disabled BPF skeletons as clang ($(CLANG)) is missing)
708 …$(warning Warning: Disabled BPF skeletons as reliable BTF generation needs at least $(CLANG) versi…
715 $(warning Warning: Disabled BPF skeletons as clang is too old)