Home
last modified time | relevance | path

Searched refs:prog_attach_flags (Results 1 – 10 of 10) sorted by relevance

/openbmc/linux/tools/bpf/bpftool/
H A Dcgroup.c231 __u32 prog_attach_flags[1024] = {0}; in show_attached_bpf_progs() local
241 p.prog_attach_flags = prog_attach_flags; in show_attached_bpf_progs()
253 attach_flags = prog_attach_flags[iter] ?: p.attach_flags; in show_attached_bpf_progs()
H A Dnet.c462 optq.prog_attach_flags = prog_flags; in __show_dev_tc_bpf()
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/
H A Dlsm_cgroup.c40 p.prog_attach_flags = malloc(sizeof(u32) * p.prog_cnt); in query_prog_cnt()
60 free(p.prog_attach_flags); in query_prog_cnt()
H A Dtc_opts.c717 optq.prog_attach_flags = prog_flags; in test_tc_opts_replace_target()
734 ASSERT_EQ(optq.prog_attach_flags[0], 0, "prog_flags[0]"); in test_tc_opts_replace_target()
735 ASSERT_EQ(optq.prog_attach_flags[1], 0, "prog_flags[1]"); in test_tc_opts_replace_target()
736 ASSERT_EQ(optq.prog_attach_flags[2], 0, "prog_flags[2]"); in test_tc_opts_replace_target()
1521 optq.prog_attach_flags = prog_flags; in test_tc_opts_mixed_target()
1538 ASSERT_EQ(optq.prog_attach_flags[0], 0, "prog_flags[0]"); in test_tc_opts_mixed_target()
1542 ASSERT_EQ(optq.prog_attach_flags[1], 0, "prog_flags[1]"); in test_tc_opts_mixed_target()
1546 ASSERT_EQ(optq.prog_attach_flags[2], 0, "prog_flags[2]"); in test_tc_opts_mixed_target()
1550 ASSERT_EQ(optq.prog_attach_flags[3], 0, "prog_flags[3]"); in test_tc_opts_mixed_target()
2571 ASSERT_EQ(attr.query.prog_attach_flags, 0, "prog_attach_flags"); in test_tc_opts_query_target()
[all …]
/openbmc/linux/kernel/bpf/
H A Dcgroup.c1023 __u32 __user *prog_attach_flags = u64_to_user_ptr(attr->query.prog_attach_flags); in __cgroup_bpf_query() local
1034 if (effective_query && prog_attach_flags) in __cgroup_bpf_query()
1039 prog_ids && !prog_attach_flags) in __cgroup_bpf_query()
1102 if (prog_attach_flags) { in __cgroup_bpf_query()
1106 if (copy_to_user(prog_attach_flags + i, in __cgroup_bpf_query()
1109 prog_attach_flags += cnt; in __cgroup_bpf_query()
H A Dmprog.c421 uprog_flags = u64_to_user_ptr(attr->query.prog_attach_flags); in bpf_mprog_query()
/openbmc/linux/tools/lib/bpf/
H A Dbpf.h563 __u32 *prog_attach_flags; member
H A Dbpf.c922 attr.query.prog_attach_flags = ptr_to_u64(OPTS_GET(opts, prog_attach_flags, NULL)); in bpf_prog_query_opts()
/openbmc/linux/tools/include/uapi/linux/
H A Dbpf.h1545 __aligned_u64 prog_attach_flags; member
/openbmc/linux/include/uapi/linux/
H A Dbpf.h1545 __aligned_u64 prog_attach_flags; member