Home
last modified time | relevance | path

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

/linux-6.1.9/tools/testing/selftests/bpf/prog_tests/
Dcgroup_attach_multi.c155 CHECK_FAIL(bpf_prog_query(cg5, BPF_CGROUP_INET_EGRESS, in serial_test_cgroup_attach_multi()
159 CHECK_FAIL(bpf_prog_query(cg5, BPF_CGROUP_INET_EGRESS, in serial_test_cgroup_attach_multi()
168 CHECK_FAIL(bpf_prog_query(cg5, BPF_CGROUP_INET_EGRESS, in serial_test_cgroup_attach_multi()
177 CHECK_FAIL(bpf_prog_query(cg5, BPF_CGROUP_INET_EGRESS, 0, NULL, in serial_test_cgroup_attach_multi()
273 CHECK_FAIL(bpf_prog_query(cg5, BPF_CGROUP_INET_EGRESS, in serial_test_cgroup_attach_multi()
278 CHECK_FAIL(bpf_prog_query(cg5, BPF_CGROUP_INET_EGRESS, 0, NULL, in serial_test_cgroup_attach_multi()
Dcgroup_link.c75 err = bpf_prog_query(cgs[0].fd, BPF_CGROUP_INET_EGRESS, in serial_test_cgroup_link()
83 err = bpf_prog_query(cgs[last_cg].fd, BPF_CGROUP_INET_EGRESS, in serial_test_cgroup_link()
92 err = bpf_prog_query(cgs[last_cg].fd, BPF_CGROUP_INET_EGRESS, in serial_test_cgroup_link()
Dcgroup_attach_autodetach.c59 if (CHECK(bpf_prog_query(cg, BPF_CGROUP_INET_EGRESS, 0, &attach_flags, in serial_test_cgroup_attach_autodetach()
Dsockmap_basic.c329 err = bpf_prog_query(map_fd, attach_type, 0 /* query flags */, in test_sockmap_progs_query()
340 err = bpf_prog_query(map_fd, attach_type, 0 /* query flags */, in test_sockmap_progs_query()
Dunpriv_bpf_disabled.c199 ASSERT_EQ(bpf_prog_query(prog_fd, BPF_TRACE_FENTRY, 0, &attach_flags, prog_ids, in test_unpriv_bpf_disabled_negative()
Dflow_dissector_reattach.c27 err = bpf_prog_query(netns, BPF_FLOW_DISSECTOR, 0, NULL, in query_attached_prog_id()
Dsk_lookup.c542 err = bpf_prog_query(net_fd, BPF_SK_LOOKUP, 0 /* query flags */, in query_lookup_prog()
/linux-6.1.9/tools/testing/selftests/bpf/
Dtest_lirc_mode2_user.c89 ret = bpf_prog_query(lircfd, BPF_LIRC_MODE2, 0, prog_flags, prog_ids, in main()
157 ret = bpf_prog_query(lircfd, BPF_LIRC_MODE2, 0, prog_flags, prog_ids, in main()
Dtest_dev_cgroup.c51 if (bpf_prog_query(cgroup_fd, BPF_CGROUP_DEVICE, 0, NULL, NULL, in main()
/linux-6.1.9/tools/lib/bpf/
Dlibbpf.map40 bpf_prog_query;
Dbpf.h387 LIBBPF_API int bpf_prog_query(int target_fd, enum bpf_attach_type type,
Dbpf.c848 int bpf_prog_query(int target_fd, enum bpf_attach_type type, __u32 query_flags, in bpf_prog_query() function
/linux-6.1.9/tools/bpf/bpftool/
Dcgroup.c174 ret = bpf_prog_query(cgroup_fd, type, query_flags, NULL, in count_attached_bpf_progs()
Dnet.c499 err = bpf_prog_query(fd, BPF_FLOW_DISSECTOR, 0, in query_flow_dissector()
/linux-6.1.9/kernel/bpf/
Dsyscall.c3553 static int bpf_prog_query(const union bpf_attr *attr, in bpf_prog_query() function
4978 err = bpf_prog_query(&attr, uattr.user); in __sys_bpf()