Home
last modified time | relevance | path

Searched refs:prog_flags (Results 1 – 21 of 21) sorted by relevance

/linux/tools/testing/selftests/bpf/
H A Dtest_loader.c87 int prog_flags;
415 spec->prog_flags = testing_prog_flags(); in parse_test_spec()
539 update_flags(&spec->prog_flags, BPF_F_STRICT_ALIGNMENT, clear); in parse_test_spec()
541 update_flags(&spec->prog_flags, BPF_F_ANY_ALIGNMENT, clear); in parse_test_spec()
543 update_flags(&spec->prog_flags, BPF_F_TEST_RND_HI32, clear); in parse_test_spec()
545 update_flags(&spec->prog_flags, BPF_F_TEST_STATE_FREQ, clear); in parse_test_spec()
547 update_flags(&spec->prog_flags, BPF_F_SLEEPABLE, clear); in parse_test_spec()
549 update_flags(&spec->prog_flags, BPF_F_XDP_HAS_FRAGS, clear); in parse_test_spec()
551 update_flags(&spec->prog_flags, BPF_F_TEST_REG_INVARIANTS, clear); in parse_test_spec()
556 update_flags(&spec->prog_flags, flag in parse_test_spec()
85 int prog_flags; global() member
612 int min_log_level = 0, prog_flags; prepare_case() local
[all...]
H A Dtest_lirc_mode2_user.c55 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()
H A Dtesting_helpers.c259 static int prog_flags[] = { BPF_F_TEST_RND_HI32, BPF_F_TEST_REG_INVARIANTS }; in testing_prog_flags() local
270 for (i = 0; i < ARRAY_SIZE(prog_flags); i++) { in testing_prog_flags()
271 opts.prog_flags = prog_flags[i]; in testing_prog_flags()
275 flags |= prog_flags[i]; in testing_prog_flags()
331 .prog_flags = testing_prog_flags(), in bpf_test_load_program()
H A Dtest_verifier.c1568 opts.prog_flags = pflags; in do_test_single()
/linux/kernel/bpf/
H A Doffload.c237 if (attr->prog_flags & ~(BPF_F_XDP_DEV_BOUND_ONLY | BPF_F_XDP_HAS_FRAGS)) in bpf_prog_dev_bound_init()
243 if (attr->prog_flags & BPF_F_XDP_HAS_FRAGS && in bpf_prog_dev_bound_init()
244 !(attr->prog_flags & BPF_F_XDP_DEV_BOUND_ONLY)) in bpf_prog_dev_bound_init()
248 attr->prog_flags & BPF_F_XDP_DEV_BOUND_ONLY) in bpf_prog_dev_bound_init()
259 prog->aux->offload_requested = !(attr->prog_flags & BPF_F_XDP_DEV_BOUND_ONLY); in bpf_prog_dev_bound_init()
H A Dsyscall.c2748 if (attr->prog_flags & ~(BPF_F_STRICT_ALIGNMENT | in bpf_prog_load()
2761 if (attr->prog_flags & BPF_F_TOKEN_FD) { in bpf_prog_load()
2781 (attr->prog_flags & BPF_F_ANY_ALIGNMENT) && in bpf_prog_load()
2868 prog->sleepable = !!(attr->prog_flags & BPF_F_SLEEPABLE); in bpf_prog_load()
2873 prog->aux->xdp_has_frags = attr->prog_flags & BPF_F_XDP_HAS_FRAGS; in bpf_prog_load()
H A Dverifier.c19814 rnd_hi32 = attr->prog_flags & BPF_F_TEST_RND_HI32; in opt_subreg_zext_lo32_rnd_hi32()
22610 env->strict_alignment = !!(attr->prog_flags & BPF_F_STRICT_ALIGNMENT); in bpf_check()
22613 if (attr->prog_flags & BPF_F_ANY_ALIGNMENT) in bpf_check()
22617 env->test_state_freq = attr->prog_flags & BPF_F_TEST_STATE_FREQ; in bpf_check()
22618 env->test_reg_invariants = attr->prog_flags & BPF_F_TEST_REG_INVARIANTS; in bpf_check()
/linux/tools/build/feature/
H A Dtest-bpf.c41 attr.prog_flags = 0; in main()
/linux/tools/bpf/bpftool/
H A Dnet.c461 __u32 prog_flags[64] = {}, link_flags[64] = {}, i, j; in __show_dev_tc_bpf() local
468 optq.prog_attach_flags = prog_flags; in __show_dev_tc_bpf()
486 if (prog_flags[i] || json_output) { in __show_dev_tc_bpf()
488 for (j = 0; prog_flags[i] && j < 32; j++) { in __show_dev_tc_bpf()
489 if (!(prog_flags[i] & (1U << j))) in __show_dev_tc_bpf()
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dxdp_dev_bound_only.c13 opts.prog_flags = flags; in load_dummy_prog()
H A Dtoken.c663 prog_opts.prog_flags = BPF_F_TOKEN_FD; in userns_prog_load()
674 prog_opts.prog_flags = 0; in userns_prog_load()
688 prog_opts.prog_flags = BPF_F_TOKEN_FD; in userns_prog_load()
698 prog_opts.prog_flags = 0; in userns_prog_load()
H A Dcustom_sec_handlers.c25 opts->prog_flags |= BPF_F_SLEEPABLE; in custom_prepare_load_prog()
H A Dtc_opts.c672 __u32 prog_ids[4], prog_flags[4]; in test_tc_opts_replace_target() local
717 optq.prog_attach_flags = prog_flags; in test_tc_opts_replace_target()
720 memset(prog_flags, 0, sizeof(prog_flags)); in test_tc_opts_replace_target()
1403 __u32 prog_flags[4], link_flags[4]; in test_tc_opts_mixed_target() local
1521 optq.prog_attach_flags = prog_flags; in test_tc_opts_mixed_target()
1526 memset(prog_flags, 0, sizeof(prog_flags)); in test_tc_opts_mixed_target()
H A Dalign.c608 .prog_flags = BPF_F_STRICT_ALIGNMENT, in do_test_single()
H A Dreg_bounds.c856 .prog_flags = testing_prog_flags(), in load_range_cmp_prog()
/linux/tools/lib/bpf/
H A Dlibbpf_probes.c156 opts.prog_flags = BPF_F_SLEEPABLE; in probe_prog_load()
H A Dskel_internal.h340 attr.prog_flags = BPF_F_SLEEPABLE; in bpf_load_and_run()
H A Dbpf.h79 __u32 prog_flags; member
H A Dlibbpf.c496 __u32 prog_flags; member
5011 .prog_flags = obj->token_fd ? BPF_F_TOKEN_FD : 0, in bpf_object__probe_loading()
7394 opts->prog_flags |= BPF_F_SLEEPABLE; in libbpf_prepare_prog_load()
7397 opts->prog_flags |= BPF_F_XDP_HAS_FRAGS; in libbpf_prepare_prog_load()
7509 load_attr.prog_flags = prog->prog_flags; in bpf_object_load_prog()
7514 load_attr.prog_flags |= BPF_F_TOKEN_FD; in bpf_object_load_prog()
9335 return prog->prog_flags; in bpf_program__flags()
9343 prog->prog_flags = flags; in bpf_program__set_flags()
/linux/include/uapi/linux/
H A Dbpf.h1541 __u32 prog_flags; member
/linux/tools/include/uapi/linux/
H A Dbpf.h1541 __u32 prog_flags; member