Searched refs:attach_flags (Results 1 – 11 of 11) sorted by relevance
| /Linux-v5.4/tools/bpf/bpftool/ |
| D | cgroup.c | 126 __u32 attach_flags; in show_attached_bpf_progs() local 131 ret = bpf_prog_query(cgroup_fd, type, query_flags, &attach_flags, in show_attached_bpf_progs() 139 switch (attach_flags) { in show_attached_bpf_progs() 150 snprintf(buf, sizeof(buf), "unknown(%x)", attach_flags); in show_attached_bpf_progs() 378 int attach_flags = 0; in do_attach() local 407 attach_flags |= BPF_F_ALLOW_MULTI; in do_attach() 409 attach_flags |= BPF_F_ALLOW_OVERRIDE; in do_attach() 416 if (bpf_prog_attach(prog_fd, cgroup_fd, attach_type, attach_flags)) { in do_attach()
|
| D | net.c | 221 __u32 attach_flags; in query_flow_dissector() local 235 &attach_flags, prog_ids, &prog_cnt); in query_flow_dissector()
|
| /Linux-v5.4/tools/testing/selftests/bpf/ |
| D | test_cgroup_attach.c | 291 __u32 prog_ids[4], prog_cnt = 0, attach_flags, saved_prog_id; in test_multiprog() local 372 &attach_flags, prog_ids, &prog_cnt) == 0); in test_multiprog() 374 assert(attach_flags == 0); in test_multiprog() 380 &attach_flags, prog_ids, &prog_cnt) == -1 && in test_multiprog() 432 &attach_flags, prog_ids, &prog_cnt) == 0); in test_multiprog() 434 assert(attach_flags == 0); in test_multiprog() 461 __u32 prog_cnt = 4, attach_flags; in test_autodetach() local 494 assert(bpf_prog_query(cg, BPF_CGROUP_INET_EGRESS, 0, &attach_flags, in test_autodetach()
|
| /Linux-v5.4/drivers/media/rc/ |
| D | bpf-lirc.c | 252 if (attr->attach_flags) in lirc_prog_attach() 272 if (attr->attach_flags) in lirc_prog_detach() 326 if (copy_to_user(&uattr->query.attach_flags, &flags, sizeof(flags))) { in lirc_prog_query()
|
| /Linux-v5.4/tools/lib/bpf/ |
| D | bpf.c | 471 attr.attach_flags = flags; in bpf_prog_attach() 500 __u32 *attach_flags, __u32 *prog_ids, __u32 *prog_cnt) in bpf_prog_query() argument 513 if (attach_flags) in bpf_prog_query() 514 *attach_flags = attr.query.attach_flags; in bpf_prog_query()
|
| D | bpf.h | 165 __u32 query_flags, __u32 *attach_flags,
|
| /Linux-v5.4/include/uapi/linux/ |
| D | bpf.h | 435 __u32 attach_flags; member 480 __u32 attach_flags; member
|
| /Linux-v5.4/tools/include/uapi/linux/ |
| D | bpf.h | 435 __u32 attach_flags; member 480 __u32 attach_flags; member
|
| /Linux-v5.4/kernel/bpf/ |
| D | cgroup.c | 509 if (copy_to_user(&uattr->query.attach_flags, &flags, sizeof(flags))) in __cgroup_bpf_query() 550 attr->attach_flags); in cgroup_bpf_prog_attach()
|
| D | syscall.c | 1891 #define BPF_PROG_ATTACH_LAST_FIELD attach_flags 1908 if (attr->attach_flags & ~BPF_F_ATTACH_MASK) in bpf_prog_attach()
|
| /Linux-v5.4/net/core/ |
| D | flow_dissector.c | 98 if (copy_to_user(&uattr->query.attach_flags, &flags, sizeof(flags))) in skb_flow_dissector_prog_query()
|