/openbmc/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | tc_opts.c | 48 optq.prog_ids = prog_ids; in serial_test_tc_opts_basic() 153 optq.prog_ids = prog_ids; in test_tc_opts_before_target() 305 optq.prog_ids = prog_ids; in test_tc_opts_after_target() 508 optq.prog_ids = prog_ids; in test_tc_opts_revision_target() 718 optq.prog_ids = prog_ids; in test_tc_opts_replace_target() 1072 optq.prog_ids = prog_ids; in test_tc_opts_prepend_target() 1212 optq.prog_ids = prog_ids; in test_tc_opts_append_target() 1520 optq.prog_ids = prog_ids; in test_tc_opts_mixed_target() 1705 optq.prog_ids = prog_ids; in test_tc_opts_detach_target() 1876 optq.prog_ids = prog_ids; in test_tc_opts_detach_before_target() [all …]
|
H A D | tc_links.c | 52 optq.prog_ids = prog_ids; in serial_test_tc_links_basic() 55 memset(prog_ids, 0, sizeof(prog_ids)); in serial_test_tc_links_basic() 88 memset(prog_ids, 0, sizeof(prog_ids)); in serial_test_tc_links_basic() 174 optq.prog_ids = prog_ids; in test_tc_links_before_target() 177 memset(prog_ids, 0, sizeof(prog_ids)); in test_tc_links_before_target() 230 memset(prog_ids, 0, sizeof(prog_ids)); in test_tc_links_before_target() 328 optq.prog_ids = prog_ids; in test_tc_links_after_target() 487 optq.prog_ids = prog_ids; in test_tc_links_revision_target() 691 optq.prog_ids = prog_ids; in test_tc_links_replace_target() 1230 optq.prog_ids = prog_ids; in test_tc_links_prepend_target() [all …]
|
H A D | cgroup_attach_multi.c | 79 __u32 prog_ids[4], prog_cnt = 0, attach_flags, saved_prog_id; in serial_test_cgroup_attach_multi() local 161 prog_ids, &prog_cnt)); in serial_test_cgroup_attach_multi() 164 saved_prog_id = prog_ids[0]; in serial_test_cgroup_attach_multi() 166 prog_ids[0] = 0; in serial_test_cgroup_attach_multi() 170 prog_ids, &prog_cnt) >= 0); in serial_test_cgroup_attach_multi() 174 CHECK_FAIL(prog_ids[0] != saved_prog_id); in serial_test_cgroup_attach_multi() 176 prog_ids[0] = 0; in serial_test_cgroup_attach_multi() 178 prog_ids, &prog_cnt)); in serial_test_cgroup_attach_multi() 180 CHECK_FAIL(prog_ids[0] != saved_prog_id); in serial_test_cgroup_attach_multi() 275 prog_ids, &prog_cnt)); in serial_test_cgroup_attach_multi() [all …]
|
H A D | cgroup_attach_autodetach.c | 28 __u32 prog_ids[2] = {0}; in serial_test_cgroup_attach_autodetach() local 60 prog_ids, &prog_cnt), in serial_test_cgroup_attach_autodetach() 86 for (i = 0; i < ARRAY_SIZE(prog_ids); i++) { in serial_test_cgroup_attach_autodetach() 88 int fd = bpf_prog_get_fd_by_id(prog_ids[i]); in serial_test_cgroup_attach_autodetach()
|
H A D | cgroup_link.c | 41 __u32 prog_ids[ARRAY_SIZE(cgs)], prog_cnt = 0, attach_flags, prog_id; in serial_test_cgroup_link() local 93 BPF_F_QUERY_EFFECTIVE, NULL, prog_ids, in serial_test_cgroup_link() 100 CHECK(prog_ids[i - 1] != prog_ids[i], "prog_id_check", in serial_test_cgroup_link() 102 i, prog_ids[i - 1], prog_ids[i]); in serial_test_cgroup_link()
|
H A D | lsm_cgroup.c | 39 p.prog_ids = malloc(sizeof(u32) * p.prog_cnt); in query_prog_cnt() 48 fd = bpf_prog_get_fd_by_id(p.prog_ids[i]); in query_prog_cnt() 59 free(p.prog_ids); in query_prog_cnt()
|
H A D | sk_lookup.c | 519 __u32 prog_ids[3] = {}; in query_lookup_prog() local 542 &attach_flags, prog_ids, &prog_cnt); in query_lookup_prog() 556 CHECK(prog_ids[0] != prog_id, "bpf_prog_query", in query_lookup_prog() 558 prog_ids[0], prog_id); in query_lookup_prog() 562 CHECK(prog_ids[1] != prog_id, "bpf_prog_query", in query_lookup_prog() 564 prog_ids[1], prog_id); in query_lookup_prog() 568 CHECK(prog_ids[2] != prog_id, "bpf_prog_query", in query_lookup_prog() 570 prog_ids[2], prog_id); in query_lookup_prog() 580 CHECK(prog_ids[0] != prog_id, "bpf_prog_query", in query_lookup_prog() 582 prog_ids[0], prog_id); in query_lookup_prog()
|
H A D | sockmap_basic.c | 320 __u32 prog_ids[3] = {}; in test_sockmap_progs_query() local 335 &attach_flags, prog_ids, &prog_cnt); in test_sockmap_progs_query() 346 &attach_flags, prog_ids, &prog_cnt); in test_sockmap_progs_query() 350 ASSERT_EQ(prog_ids[0], query_prog_id(verdict_fd), in test_sockmap_progs_query()
|
H A D | flow_dissector_reattach.c | 23 __u32 prog_ids[1] = {}; in query_attached_prog_id() local 24 __u32 prog_cnt = ARRAY_SIZE(prog_ids); in query_attached_prog_id() 28 prog_ids, &prog_cnt); in query_attached_prog_id() 34 return prog_cnt == 1 ? prog_ids[0] : 0; in query_attached_prog_id()
|
H A D | unpriv_bpf_disabled.c | 157 __u32 prog_ids[3] = {}; in test_unpriv_bpf_disabled_negative() local 203 ASSERT_EQ(bpf_prog_query(prog_fd, BPF_TRACE_FENTRY, 0, &attach_flags, prog_ids, in test_unpriv_bpf_disabled_negative()
|
/openbmc/linux/tools/bpf/bpftool/ |
H A D | cgroup.c | 206 __u32 prog_ids[1024] = {0}; in show_effective_bpf_progs() local 211 p.prog_cnt = ARRAY_SIZE(prog_ids); in show_effective_bpf_progs() 212 p.prog_ids = prog_ids; in show_effective_bpf_progs() 222 show_bpf_prog(prog_ids[iter], type, NULL, level); in show_effective_bpf_progs() 233 __u32 prog_ids[1024] = {0}; in show_attached_bpf_progs() local 239 p.prog_cnt = ARRAY_SIZE(prog_ids); in show_attached_bpf_progs() 240 p.prog_ids = prog_ids; in show_attached_bpf_progs() 270 show_bpf_prog(prog_ids[iter], type, in show_attached_bpf_progs()
|
H A D | net.c | 456 __u32 prog_ids[64] = {}, link_ids[64] = {}; in __show_dev_tc_bpf() local 461 optq.prog_ids = prog_ids; in __show_dev_tc_bpf() 465 optq.count = ARRAY_SIZE(prog_ids); in __show_dev_tc_bpf() 475 ret = __show_dev_tc_bpf_name(prog_ids[i], prog_name, in __show_dev_tc_bpf() 479 NET_DUMP_UINT("prog_id", " prog_id %u ", prog_ids[i]); in __show_dev_tc_bpf() 575 __u32 prog_ids[1]; in query_flow_dissector() local 586 prog_cnt = ARRAY_SIZE(prog_ids); in query_flow_dissector() 588 &attach_flags, prog_ids, &prog_cnt); in query_flow_dissector() 603 attach_info->flow_dissector_id = prog_ids[0]; in query_flow_dissector()
|
/openbmc/linux/tools/testing/selftests/bpf/ |
H A D | test_lirc_mode2_user.c | 55 u32 prog_ids[10], prog_flags[10], prog_cnt; in main() local 89 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()
|
/openbmc/linux/drivers/media/rc/ |
H A D | bpf-lirc.c | 297 __u32 __user *prog_ids = u64_to_user_ptr(attr->query.prog_ids); in lirc_prog_query() local 332 if (attr->query.prog_cnt != 0 && prog_ids && cnt) in lirc_prog_query() 333 ret = bpf_prog_array_copy_to_user(progs, prog_ids, in lirc_prog_query()
|
/openbmc/linux/kernel/bpf/ |
H A D | net_namespace.c | 251 __u32 __user *prog_ids = u64_to_user_ptr(attr->query.prog_ids); in __netns_bpf_prog_query() local 264 if (!attr->query.prog_cnt || !prog_ids || !prog_cnt) in __netns_bpf_prog_query() 267 return bpf_prog_array_copy_to_user(run_array, prog_ids, in __netns_bpf_prog_query()
|
H A D | cgroup.c | 1042 __u32 __user *prog_ids = u64_to_user_ptr(attr->query.prog_ids); in __cgroup_bpf_query() local 1056 prog_ids && !prog_attach_flags) in __cgroup_bpf_query() 1086 if (attr->query.prog_cnt == 0 || !prog_ids || !total_cnt) in __cgroup_bpf_query() 1100 ret = bpf_prog_array_copy_to_user(effective, prog_ids, cnt); in __cgroup_bpf_query() 1113 if (copy_to_user(prog_ids + i, &id, sizeof(id))) in __cgroup_bpf_query() 1130 prog_ids += cnt; in __cgroup_bpf_query()
|
H A D | core.c | 2486 u32 *prog_ids, in bpf_prog_array_copy_core() argument 2495 prog_ids[i] = item->prog->aux->id; in bpf_prog_array_copy_core() 2506 __u32 __user *prog_ids, u32 cnt) in bpf_prog_array_copy_to_user() argument 2522 err = copy_to_user(prog_ids, ids, cnt * sizeof(u32)); in bpf_prog_array_copy_to_user() 2670 u32 *prog_ids, u32 request_cnt, in bpf_prog_array_copy_info() argument 2685 return bpf_prog_array_copy_core(array, prog_ids, request_cnt) ? -ENOSPC in bpf_prog_array_copy_info()
|
H A D | mprog.c | 420 uprog_id = u64_to_user_ptr(attr->query.prog_ids); in bpf_mprog_query()
|
/openbmc/linux/tools/lib/bpf/ |
H A D | bpf.h | 557 __u32 *prog_ids; member 586 __u32 *prog_ids, __u32 *prog_cnt);
|
H A D | bpf.c | 920 attr.query.prog_ids = ptr_to_u64(OPTS_GET(opts, prog_ids, NULL)); in bpf_prog_query_opts() 935 __u32 *attach_flags, __u32 *prog_ids, __u32 *prog_cnt) in bpf_prog_query() argument 941 opts.prog_ids = prog_ids; in bpf_prog_query()
|
/openbmc/linux/net/core/ |
H A D | sock_map.c | 1520 __u32 __user *prog_ids = u64_to_user_ptr(attr->query.prog_ids); in sock_map_bpf_prog_query() local 1546 if (!attr->query.prog_cnt || !prog_ids || !prog_cnt) in sock_map_bpf_prog_query() 1560 (id != 0 && copy_to_user(prog_ids, &id, sizeof(u32))) || in sock_map_bpf_prog_query()
|
/openbmc/linux/include/linux/ |
H A D | bpf.h | 1889 __u32 __user *prog_ids, u32 cnt); 1897 u32 *prog_ids, u32 request_cnt,
|
/openbmc/linux/tools/include/uapi/linux/ |
H A D | bpf.h | 1553 __aligned_u64 prog_ids; member
|
/openbmc/linux/include/uapi/linux/ |
H A D | bpf.h | 1553 __aligned_u64 prog_ids; member
|