Home
last modified time | relevance | path

Searched refs:attach_flags (Results 1 – 15 of 15) sorted by relevance

/tools/testing/selftests/bpf/prog_tests/
A Dtc_helpers.h26 __u32 count = 0, attach_flags = 0; in __assert_mprog_count() local
29 err = bpf_prog_query(ifindex, target, 0, &attach_flags, in __assert_mprog_count()
A Dcgroup_attach_multi.c79 __u32 prog_ids[4], prog_cnt = 0, attach_flags, saved_prog_id; in serial_test_cgroup_attach_multi() local
160 BPF_F_QUERY_EFFECTIVE, &attach_flags, in serial_test_cgroup_attach_multi()
163 CHECK_FAIL(attach_flags != 0); in serial_test_cgroup_attach_multi()
169 BPF_F_QUERY_EFFECTIVE, &attach_flags, in serial_test_cgroup_attach_multi()
274 BPF_F_QUERY_EFFECTIVE, &attach_flags, in serial_test_cgroup_attach_multi()
277 CHECK_FAIL(attach_flags != 0); in serial_test_cgroup_attach_multi()
A Dcgroup_attach_autodetach.c26 __u32 duration = 0, prog_cnt = 4, attach_flags; in serial_test_cgroup_attach_autodetach() local
59 if (CHECK(bpf_prog_query(cg, BPF_CGROUP_INET_EGRESS, 0, &attach_flags, in serial_test_cgroup_attach_autodetach()
A Dtest_xdp_veth.c322 static void xdp_veth_broadcast_redirect(u32 attach_flags, u64 redirect_flags) in xdp_veth_broadcast_redirect() argument
328 .local_flags = attach_flags, in xdp_veth_broadcast_redirect()
329 .remote_flags = attach_flags, in xdp_veth_broadcast_redirect()
334 .local_flags = attach_flags, in xdp_veth_broadcast_redirect()
335 .remote_flags = attach_flags, in xdp_veth_broadcast_redirect()
340 .local_flags = attach_flags, in xdp_veth_broadcast_redirect()
341 .remote_flags = attach_flags, in xdp_veth_broadcast_redirect()
A Dcgroup_link.c41 __u32 prog_ids[ARRAY_SIZE(cgs)], prog_cnt = 0, attach_flags, prog_id; in serial_test_cgroup_link() local
76 0, &attach_flags, NULL, &prog_cnt); in serial_test_cgroup_link()
78 CHECK_FAIL(attach_flags != BPF_F_ALLOW_MULTI); in serial_test_cgroup_link()
A Dunpriv_bpf_disabled.c157 __u32 attach_flags = 0; in test_unpriv_bpf_disabled_negative() local
204 ASSERT_EQ(bpf_prog_query(prog_fd, BPF_TRACE_FENTRY, 0, &attach_flags, prog_ids, in test_unpriv_bpf_disabled_negative()
A Dsockmap_basic.c446 __u32 attach_flags = 0; in test_sockmap_progs_query() local
462 &attach_flags, prog_ids, &prog_cnt); in test_sockmap_progs_query()
464 ASSERT_EQ(attach_flags, 0, "wrong attach_flags on query"); in test_sockmap_progs_query()
473 &attach_flags, prog_ids, &prog_cnt); in test_sockmap_progs_query()
475 ASSERT_EQ(attach_flags, 0, "wrong attach_flags on query"); in test_sockmap_progs_query()
A Dsk_lookup.c459 __u32 attach_flags = 0; in query_lookup_prog() local
483 &attach_flags, prog_ids, &prog_cnt); in query_lookup_prog()
490 if (CHECK(attach_flags != 0, "bpf_prog_query", in query_lookup_prog()
491 "wrong attach_flags on query: %u", attach_flags)) in query_lookup_prog()
A Dcgroup_mprog_opts.c9 __u32 count = 0, attach_flags = 0; in assert_mprog_count() local
12 err = bpf_prog_query(cg, atype, 0, &attach_flags, in assert_mprog_count()
A Dtc_opts.c2567 ASSERT_EQ(attr.query.attach_flags, 0, "attach_flags"); in test_tc_opts_query_target()
2585 ASSERT_EQ(attr.query.attach_flags, 0, "attach_flags"); in test_tc_opts_query_target()
2614 ASSERT_EQ(attr.query.attach_flags, 0, "attach_flags"); in test_tc_opts_query_target()
2643 ASSERT_EQ(attr.query.attach_flags, 0, "attach_flags"); in test_tc_opts_query_target()
2671 ASSERT_EQ(attr.query.attach_flags, 0, "attach_flags"); in test_tc_opts_query_target()
2699 ASSERT_EQ(attr.query.attach_flags, 0, "attach_flags"); in test_tc_opts_query_target()
2713 attr.query.attach_flags = 0; in test_tc_opts_query_target()
2720 attr.query.attach_flags = 1; in test_tc_opts_query_target()
/tools/bpf/bpftool/
A Dcgroup.c285 __u32 attach_flags; in show_attached_bpf_progs() local
287 attach_flags = prog_attach_flags[iter] ?: p.attach_flags; in show_attached_bpf_progs()
289 switch (attach_flags) { in show_attached_bpf_progs()
300 snprintf(buf, sizeof(buf), "unknown(%x)", attach_flags); in show_attached_bpf_progs()
548 int attach_flags = 0; in do_attach() local
577 attach_flags |= BPF_F_ALLOW_MULTI; in do_attach()
579 attach_flags |= BPF_F_ALLOW_OVERRIDE; in do_attach()
586 if (bpf_prog_attach(prog_fd, cgroup_fd, attach_type, attach_flags)) { in do_attach()
A Dnet.c586 __u32 attach_flags; in query_flow_dissector() local
600 &attach_flags, prog_ids, &prog_cnt); in query_flow_dissector()
/tools/lib/bpf/
A Dbpf.c667 attr.attach_flags = flags | BPF_F_ID; in bpf_prog_attach_opts()
670 attr.attach_flags = flags; in bpf_prog_attach_opts()
704 attr.attach_flags = flags | BPF_F_ID; in bpf_prog_detach_opts()
707 attr.attach_flags = flags; in bpf_prog_detach_opts()
998 OPTS_SET(opts, attach_flags, attr.query.attach_flags); in bpf_prog_query_opts()
1006 __u32 *attach_flags, __u32 *prog_ids, __u32 *prog_cnt) in bpf_prog_query() argument
1017 if (attach_flags) in bpf_prog_query()
1018 *attach_flags = opts.attach_flags; in bpf_prog_query()
A Dbpf.h597 __u32 attach_flags; /* output argument */ member
626 __u32 query_flags, __u32 *attach_flags,
/tools/include/uapi/linux/
A Dbpf.h1630 __u32 attach_flags; member
1689 __u32 attach_flags; member

Completed in 41 milliseconds