| /linux/tools/lib/bpf/ |
| H A D | features.c | 39 attr.prog_flags |= BPF_F_TOKEN_FD; in probe_kern_prog_name() 61 .prog_flags = token_fd ? BPF_F_TOKEN_FD : 0, in probe_kern_global_data() 228 .prog_flags = token_fd ? BPF_F_TOKEN_FD : 0, in probe_kern_exp_attach_type() 249 .prog_flags = token_fd ? BPF_F_TOKEN_FD : 0, in probe_kern_probe_read_kernel() 277 .prog_flags = token_fd ? BPF_F_TOKEN_FD : 0, in probe_prog_bind_map() 340 .prog_flags = token_fd ? BPF_F_TOKEN_FD : 0, in probe_perf_link() 367 .prog_flags = token_fd ? BPF_F_TOKEN_FD : 0, in probe_uprobe_multi_link() 435 .prog_flags = token_fd ? BPF_F_TOKEN_FD : 0, in probe_kern_bpf_cookie() 489 .prog_flags = token_fd ? BPF_F_TOKEN_FD : 0, in probe_kern_arg_ctx_tag() 520 .prog_flags = token_fd ? BPF_F_TOKEN_FD : 0, in probe_ldimm64_full_range_off() [all …]
|
| H A D | libbpf_probes.c | 156 opts.prog_flags = BPF_F_SLEEPABLE; in probe_prog_load()
|
| H A D | skel_internal.h | 406 attr.prog_flags = BPF_F_SLEEPABLE; in bpf_load_and_run()
|
| H A D | gen_loader.c | 1041 attr.prog_flags = tgt_endian(load_attr->prog_flags); in bpf_gen__prog_load()
|
| H A D | libbpf.c | 517 __u32 prog_flags; member 7893 opts->prog_flags |= BPF_F_SLEEPABLE; in libbpf_prepare_prog_load() 7896 opts->prog_flags |= BPF_F_XDP_HAS_FRAGS; in libbpf_prepare_prog_load() 8020 load_attr.prog_flags = prog->prog_flags; in bpf_object_load_prog() 8025 load_attr.prog_flags |= BPF_F_TOKEN_FD; in bpf_object_load_prog() 9922 return prog->prog_flags; in bpf_program__flags() 9930 prog->prog_flags = flags; in bpf_program__set_flags() 10015 attr.prog_flags = OPTS_GET(opts, prog_flags, 0) ?: prog->prog_flags; in bpf_program__clone() 10022 attr.prog_flags |= BPF_F_TOKEN_FD; in bpf_program__clone()
|
| /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()
|
| H A D | testing_helpers.c | 262 static int prog_flags[] = { BPF_F_TEST_RND_HI32, BPF_F_TEST_REG_INVARIANTS }; in testing_prog_flags() 273 for (i = 0; i < ARRAY_SIZE(prog_flags); i++) { in testing_prog_flags() 274 opts.prog_flags = prog_flags[i]; in testing_prog_flags() 278 flags |= prog_flags[i]; in testing_prog_flags() 334 .prog_flags = testing_prog_flags(), in bpf_test_load_program() 260 static int prog_flags[] = { BPF_F_TEST_RND_HI32, BPF_F_TEST_REG_INVARIANTS }; testing_prog_flags() local
|
| H A D | test_loader.c | 68 int prog_flags; member 431 spec->prog_flags = testing_prog_flags(); in parse_test_spec() 558 update_flags(&spec->prog_flags, BPF_F_STRICT_ALIGNMENT, clear); in parse_test_spec() 560 update_flags(&spec->prog_flags, BPF_F_ANY_ALIGNMENT, clear); in parse_test_spec() 562 update_flags(&spec->prog_flags, BPF_F_TEST_RND_HI32, clear); in parse_test_spec() 564 update_flags(&spec->prog_flags, BPF_F_TEST_STATE_FREQ, clear); in parse_test_spec() 566 update_flags(&spec->prog_flags, BPF_F_SLEEPABLE, clear); in parse_test_spec() 568 update_flags(&spec->prog_flags, BPF_F_XDP_HAS_FRAGS, clear); in parse_test_spec() 570 update_flags(&spec->prog_flags, BPF_F_TEST_REG_INVARIANTS, clear); in parse_test_spec() 575 update_flags(&spec->prog_flags, flags, clear); in parse_test_spec() [all …]
|
| H A D | test_verifier.c | 1568 opts.prog_flags = pflags; in do_test_single()
|
| /linux/tools/build/feature/ |
| H A D | test-bpf.c | 43 attr.prog_flags = 0; in main()
|
| /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 | signed_loader.c | 49 attr.prog_flags = BPF_F_SLEEPABLE; in load_loader() 96 attr.prog_flags = BPF_F_SLEEPABLE; in run_gen_loader() 502 attr.prog_flags = BPF_F_SLEEPABLE; in signed_btf_fd_array_rejected() 546 attr.prog_flags = BPF_F_SLEEPABLE; in signature_failure_logs() 1396 attr.prog_flags = BPF_F_SLEEPABLE; in loadtime_drive() 1566 attr.prog_flags = BPF_F_SLEEPABLE; in signed_no_fd_array() 1637 attr.prog_flags = BPF_F_SLEEPABLE; in signed_map_by_fd_rejected() 1699 attr.prog_flags = BPF_F_SLEEPABLE; in signed_sparse_fd_array_rejected() 1759 attr.prog_flags = BPF_F_SLEEPABLE; in signed_module_kfunc_rejected()
|
| H A D | token.c | 671 prog_opts.prog_flags = BPF_F_TOKEN_FD; in userns_prog_load() 682 prog_opts.prog_flags = 0; in userns_prog_load() 696 prog_opts.prog_flags = BPF_F_TOKEN_FD; in userns_prog_load() 706 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() 1401 __u32 prog_flags[4], link_flags[4]; in test_tc_opts_mixed_target() local 1519 optq.prog_attach_flags = prog_flags; in test_tc_opts_mixed_target() 1524 memset(prog_flags, 0, sizeof(prog_flags)); in test_tc_opts_mixed_target()
|
| H A D | align.c | |
| H A D | reg_bounds.c | 978 .prog_flags = testing_prog_flags(), in load_range_cmp_prog()
|
| /linux/tools/bpf/bpftool/ |
| H A D | net.c | 467 __u32 prog_flags[64] = {}, link_flags[64] = {}, i, j; in __show_dev_tc_bpf() local 474 optq.prog_attach_flags = prog_flags; in __show_dev_tc_bpf() 492 if (prog_flags[i] || json_output) { in __show_dev_tc_bpf() 493 NET_START_ARRAY("prog_flags", "%s "); in __show_dev_tc_bpf() 494 for (j = 0; prog_flags[i] && j < 32; j++) { in __show_dev_tc_bpf() 495 if (!(prog_flags[i] & (1U << j))) in __show_dev_tc_bpf()
|
| /linux/kernel/bpf/ |
| H A D | syscall.c | 2931 if (attr->prog_flags & ~(BPF_F_STRICT_ALIGNMENT | in BTF_ID_LIST_GLOBAL_SINGLE() 2944 if (attr->prog_flags & BPF_F_TOKEN_FD) { in BTF_ID_LIST_GLOBAL_SINGLE() 2964 (attr->prog_flags & BPF_F_ANY_ALIGNMENT) && in BTF_ID_LIST_GLOBAL_SINGLE() 3053 prog->sleepable = !!(attr->prog_flags & BPF_F_SLEEPABLE); in BTF_ID_LIST_GLOBAL_SINGLE() 3062 prog->aux->xdp_has_frags = attr->prog_flags & BPF_F_XDP_HAS_FRAGS; in BTF_ID_LIST_GLOBAL_SINGLE()
|
| H A D | fixups.c | 652 rnd_hi32 = attr->prog_flags & BPF_F_TEST_RND_HI32; in bpf_opt_subreg_zext_lo32_rnd_hi32()
|
| H A D | verifier.c | 21066 env->strict_alignment = !!(attr->prog_flags & BPF_F_STRICT_ALIGNMENT); in bpf_check() 21069 if (attr->prog_flags & BPF_F_ANY_ALIGNMENT) in bpf_check() 21073 env->test_state_freq = attr->prog_flags & BPF_F_TEST_STATE_FREQ; in bpf_check() 21074 env->test_reg_invariants = attr->prog_flags & BPF_F_TEST_REG_INVARIANTS; in bpf_check()
|
| /linux/tools/include/uapi/linux/ |
| H A D | bpf.h | 1617 __u32 prog_flags; member
|
| /linux/include/uapi/linux/ |
| H A D | bpf.h | 1617 __u32 prog_flags; member
|