/openbmc/linux/tools/testing/selftests/bpf/ |
H A D | test_loader.c | 62 int prog_flags; member 257 spec->prog_flags |= BPF_F_STRICT_ALIGNMENT; in parse_test_spec() 259 spec->prog_flags |= BPF_F_ANY_ALIGNMENT; in parse_test_spec() 261 spec->prog_flags |= BPF_F_TEST_RND_HI32; in parse_test_spec() 263 spec->prog_flags |= BPF_F_TEST_STATE_FREQ; in parse_test_spec() 265 spec->prog_flags |= BPF_F_SLEEPABLE; in parse_test_spec() 267 spec->prog_flags |= BPF_F_XDP_HAS_FRAGS; in parse_test_spec() 272 spec->prog_flags |= tmp; in parse_test_spec() 346 int min_log_level = 0, prog_flags; in prepare_case() local 364 prog_flags = bpf_program__flags(prog); in prepare_case() [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 | 302 .prog_flags = BPF_F_TEST_RND_HI32, in bpf_test_load_program()
|
H A D | test_verifier.c | 1611 opts.prog_flags = pflags; in do_test_single()
|
/openbmc/linux/tools/build/feature/ |
H A D | test-bpf.c | 41 attr.prog_flags = 0; in main()
|
/openbmc/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 | 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()
|
/openbmc/linux/tools/bpf/bpftool/ |
H A D | net.c | 455 __u32 prog_flags[64] = {}, link_flags[64] = {}, i, j; in __show_dev_tc_bpf() local 462 optq.prog_attach_flags = prog_flags; in __show_dev_tc_bpf() 480 if (prog_flags[i] || json_output) { in __show_dev_tc_bpf() 482 for (j = 0; prog_flags[i] && j < 32; j++) { in __show_dev_tc_bpf() 483 if (!(prog_flags[i] & (1U << j))) in __show_dev_tc_bpf()
|
/openbmc/linux/kernel/bpf/ |
H A D | offload.c | 237 if (attr->prog_flags & ~BPF_F_XDP_DEV_BOUND_ONLY) in bpf_prog_dev_bound_init() 241 attr->prog_flags & BPF_F_XDP_DEV_BOUND_ONLY) in bpf_prog_dev_bound_init() 252 prog->aux->offload_requested = !(attr->prog_flags & BPF_F_XDP_DEV_BOUND_ONLY); in bpf_prog_dev_bound_init()
|
H A D | syscall.c | 2598 if (attr->prog_flags & ~(BPF_F_STRICT_ALIGNMENT | in bpf_prog_load() 2608 (attr->prog_flags & BPF_F_ANY_ALIGNMENT) && in bpf_prog_load() 2689 prog->aux->sleepable = attr->prog_flags & BPF_F_SLEEPABLE; in bpf_prog_load() 2690 prog->aux->xdp_has_frags = attr->prog_flags & BPF_F_XDP_HAS_FRAGS; in bpf_prog_load()
|
H A D | verifier.c | 18172 rnd_hi32 = attr->prog_flags & BPF_F_TEST_RND_HI32; in opt_subreg_zext_lo32_rnd_hi32() 20280 env->strict_alignment = !!(attr->prog_flags & BPF_F_STRICT_ALIGNMENT); in bpf_check() 20283 if (attr->prog_flags & BPF_F_ANY_ALIGNMENT) in bpf_check() 20293 env->test_state_freq = attr->prog_flags & BPF_F_TEST_STATE_FREQ; in bpf_check()
|
/openbmc/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 | 75 __u32 prog_flags; member
|
H A D | gen_loader.c | 957 attr.prog_flags = load_attr->prog_flags; in bpf_gen__prog_load()
|
H A D | bpf.c | 261 attr.prog_flags = OPTS_GET(opts, prog_flags, 0); in bpf_prog_load()
|
H A D | libbpf.c | 456 __u32 prog_flags; member 6834 opts->prog_flags |= BPF_F_SLEEPABLE; in libbpf_prepare_prog_load() 6837 opts->prog_flags |= BPF_F_XDP_HAS_FRAGS; in libbpf_prepare_prog_load() 6938 load_attr.prog_flags = prog->prog_flags; in bpf_object_load_prog() 8711 return prog->prog_flags; in bpf_program__flags() 8719 prog->prog_flags = flags; in bpf_program__set_flags()
|
/openbmc/linux/include/uapi/linux/ |
H A D | bpf.h | 1441 __u32 prog_flags; member
|
/openbmc/linux/tools/include/uapi/linux/ |
H A D | bpf.h | 1441 __u32 prog_flags; member
|