Home
last modified time | relevance | path

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

/Linux-v4.19/tools/bpf/bpftool/
Dcgroup.c116 __u32 attach_flags; in show_attached_bpf_progs() local
121 ret = bpf_prog_query(cgroup_fd, type, 0, &attach_flags, prog_ids, in show_attached_bpf_progs()
129 switch (attach_flags) { in show_attached_bpf_progs()
140 snprintf(buf, sizeof(buf), "unknown(%x)", attach_flags); in show_attached_bpf_progs()
337 int attach_flags = 0; in do_attach() local
366 attach_flags |= BPF_F_ALLOW_MULTI; in do_attach()
368 attach_flags |= BPF_F_ALLOW_OVERRIDE; in do_attach()
375 if (bpf_prog_attach(prog_fd, cgroup_fd, attach_type, attach_flags)) { in do_attach()
/Linux-v4.19/samples/bpf/
Dtest_cgrp2_attach2.c265 __u32 prog_ids[4], prog_cnt = 0, attach_flags, saved_prog_id; in test_multiprog() local
346 &attach_flags, prog_ids, &prog_cnt) == 0); in test_multiprog()
348 assert(attach_flags == 0); in test_multiprog()
354 &attach_flags, prog_ids, &prog_cnt) == -1 && in test_multiprog()
406 &attach_flags, prog_ids, &prog_cnt) == 0); in test_multiprog()
408 assert(attach_flags == 0); in test_multiprog()
/Linux-v4.19/drivers/media/rc/
Dbpf-lirc.c218 if (attr->attach_flags) in lirc_prog_attach()
238 if (attr->attach_flags) in lirc_prog_detach()
292 if (copy_to_user(&uattr->query.attach_flags, &flags, sizeof(flags))) { in lirc_prog_query()
/Linux-v4.19/tools/lib/bpf/
Dbpf.c342 attr.attach_flags = flags; in bpf_prog_attach()
371 __u32 *attach_flags, __u32 *prog_ids, __u32 *prog_cnt) in bpf_prog_query() argument
384 if (attach_flags) in bpf_prog_query()
385 *attach_flags = attr.query.attach_flags; in bpf_prog_query()
Dbpf.h107 __u32 *attach_flags, __u32 *prog_ids, __u32 *prog_cnt);
/Linux-v4.19/tools/include/uapi/linux/
Dbpf.h344 __u32 attach_flags; member
379 __u32 attach_flags; member
/Linux-v4.19/include/uapi/linux/
Dbpf.h344 __u32 attach_flags; member
379 __u32 attach_flags; member
/Linux-v4.19/kernel/bpf/
Dcgroup.c420 if (copy_to_user(&uattr->query.attach_flags, &flags, sizeof(flags))) in __cgroup_bpf_query()
462 attr->attach_flags); in cgroup_bpf_prog_attach()
Dsyscall.c1565 #define BPF_PROG_ATTACH_LAST_FIELD attach_flags
1582 if (attr->attach_flags & ~BPF_F_ATTACH_MASK) in bpf_prog_attach()