Home
last modified time | relevance | path

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

/OK3568_Linux_fs/kernel/tools/bpf/bpftool/
H A Dcgroup.c129 __u32 attach_flags; in show_attached_bpf_progs() local
134 ret = bpf_prog_query(cgroup_fd, type, query_flags, &attach_flags, in show_attached_bpf_progs()
142 switch (attach_flags) { in show_attached_bpf_progs()
153 snprintf(buf, sizeof(buf), "unknown(%x)", attach_flags); in show_attached_bpf_progs()
384 int attach_flags = 0; in do_attach() local
413 attach_flags |= BPF_F_ALLOW_MULTI; in do_attach()
415 attach_flags |= BPF_F_ALLOW_OVERRIDE; in do_attach()
422 if (bpf_prog_attach(prog_fd, cgroup_fd, attach_type, attach_flags)) { in do_attach()
H A Dnet.c486 __u32 attach_flags; in query_flow_dissector() local
500 &attach_flags, prog_ids, &prog_cnt); in query_flow_dissector()
/OK3568_Linux_fs/kernel/tools/testing/selftests/bpf/prog_tests/
H A Dcgroup_link.c41 __u32 prog_ids[ARRAY_SIZE(cgs)], prog_cnt = 0, attach_flags, prog_id; in test_cgroup_link() local
77 BPF_F_QUERY_EFFECTIVE, &attach_flags, NULL, in test_cgroup_link()
80 CHECK_FAIL(attach_flags != BPF_F_ALLOW_MULTI); in test_cgroup_link()
89 CHECK_FAIL(attach_flags != BPF_F_ALLOW_MULTI); in test_cgroup_link()
96 BPF_F_QUERY_EFFECTIVE, &attach_flags, in test_cgroup_link()
99 CHECK_FAIL(attach_flags != BPF_F_ALLOW_MULTI); in test_cgroup_link()
H A Dcgroup_attach_multi.c79 __u32 prog_ids[4], prog_cnt = 0, attach_flags, saved_prog_id; in test_cgroup_attach_multi() local
160 BPF_F_QUERY_EFFECTIVE, &attach_flags, in test_cgroup_attach_multi()
163 CHECK_FAIL(attach_flags != 0); in test_cgroup_attach_multi()
169 BPF_F_QUERY_EFFECTIVE, &attach_flags, in test_cgroup_attach_multi()
274 BPF_F_QUERY_EFFECTIVE, &attach_flags, in test_cgroup_attach_multi()
277 CHECK_FAIL(attach_flags != 0); in test_cgroup_attach_multi()
H A Dcgroup_attach_autodetach.c26 __u32 duration = 0, prog_cnt = 4, attach_flags; in test_cgroup_attach_autodetach() local
59 if (CHECK(bpf_prog_query(cg, BPF_CGROUP_INET_EGRESS, 0, &attach_flags, in test_cgroup_attach_autodetach()
H A Dsk_lookup.c520 __u32 attach_flags = 0; in query_lookup_prog() local
544 &attach_flags, prog_ids, &prog_cnt); in query_lookup_prog()
551 if (CHECK(attach_flags != 0, "bpf_prog_query", in query_lookup_prog()
552 "wrong attach_flags on query: %u", attach_flags)) in query_lookup_prog()
/OK3568_Linux_fs/kernel/drivers/media/rc/
H A Dbpf-lirc.c249 if (attr->attach_flags) in lirc_prog_attach()
269 if (attr->attach_flags) in lirc_prog_detach()
323 if (copy_to_user(&uattr->query.attach_flags, &flags, sizeof(flags))) { in lirc_prog_query()
/OK3568_Linux_fs/kernel/tools/lib/bpf/
H A Dbpf.c556 attr.attach_flags = OPTS_GET(opts, flags, 0); in bpf_prog_attach_xattr()
656 __u32 *attach_flags, __u32 *prog_ids, __u32 *prog_cnt) in bpf_prog_query() argument
669 if (attach_flags) in bpf_prog_query()
670 *attach_flags = attr.query.attach_flags; in bpf_prog_query()
H A Dbpf.h235 __u32 query_flags, __u32 *attach_flags,
/OK3568_Linux_fs/kernel/kernel/bpf/
H A Dnet_namespace.c259 if (copy_to_user(&uattr->query.attach_flags, &flags, sizeof(flags))) in __netns_bpf_prog_query()
304 if (attr->target_fd || attr->attach_flags || attr->replace_bpf_fd) in netns_bpf_prog_attach()
H A Dcgroup.c783 if (copy_to_user(&uattr->query.attach_flags, &flags, sizeof(flags))) in __cgroup_bpf_query()
825 if ((attr->attach_flags & BPF_F_ALLOW_MULTI) && in cgroup_bpf_prog_attach()
826 (attr->attach_flags & BPF_F_REPLACE)) { in cgroup_bpf_prog_attach()
835 attr->attach_type, attr->attach_flags); in cgroup_bpf_prog_attach()
H A Dsyscall.c3002 if (attr->attach_flags & ~BPF_F_ATTACH_MASK) in bpf_prog_attach()
/OK3568_Linux_fs/prebuilts/gcc/linux-x86/arm/gcc-arm-10.3-2021.07-x86_64-arm-none-linux-gnueabihf/arm-none-linux-gnueabihf/libc/usr/include/linux/
H A Dbpf.h350 __u32 attach_flags; member
385 __u32 attach_flags; member
/OK3568_Linux_fs/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/aarch64-none-linux-gnu/libc/usr/include/linux/
H A Dbpf.h350 __u32 attach_flags; member
385 __u32 attach_flags; member
/OK3568_Linux_fs/kernel/tools/include/uapi/linux/
H A Dbpf.h572 __u32 attach_flags; member
624 __u32 attach_flags; member
/OK3568_Linux_fs/kernel/include/uapi/linux/
H A Dbpf.h572 __u32 attach_flags; member
624 __u32 attach_flags; member
/OK3568_Linux_fs/kernel/net/core/
H A Dsock_map.c74 if (attr->attach_flags || attr->replace_bpf_fd) in sock_map_get_from_fd()
94 if (attr->attach_flags || attr->replace_bpf_fd) in sock_map_prog_detach()