/linux/tools/testing/selftests/bpf/ |
H A D | test_loader.c | 87 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 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()
|
H A D | testing_helpers.c | 259 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 D | test_verifier.c | 1568 opts.prog_flags = pflags; in do_test_single()
|
/linux/kernel/bpf/ |
H A D | offload.c | 237 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 D | syscall.c | 2748 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 D | verifier.c | 19814 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 D | test-bpf.c | 41 attr.prog_flags = 0; in main()
|
/linux/tools/bpf/bpftool/ |
H A D | net.c | 461 __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 D | xdp_dev_bound_only.c | 13 opts.prog_flags = flags; in load_dummy_prog()
|
H A D | token.c | 663 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 D | custom_sec_handlers.c | 25 opts->prog_flags |= BPF_F_SLEEPABLE; in custom_prepare_load_prog()
|
H A D | tc_opts.c | 672 __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 D | align.c | 608 .prog_flags = BPF_F_STRICT_ALIGNMENT, in do_test_single()
|
H A D | reg_bounds.c | 856 .prog_flags = testing_prog_flags(), in load_range_cmp_prog()
|
/linux/tools/lib/bpf/ |
H A D | libbpf_probes.c | 156 opts.prog_flags = BPF_F_SLEEPABLE; in probe_prog_load()
|
H A D | skel_internal.h | 340 attr.prog_flags = BPF_F_SLEEPABLE; in bpf_load_and_run()
|
H A D | bpf.h | 79 __u32 prog_flags; member
|
H A D | libbpf.c | 496 __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 D | bpf.h | 1541 __u32 prog_flags; member
|
/linux/tools/include/uapi/linux/ |
H A D | bpf.h | 1541 __u32 prog_flags; member
|