/linux-6.12.1/tools/testing/selftests/bpf/prog_tests/ |
D | fexit_bpf2bpf.c | 59 const char **prog_name, in test_fexit_bpf2bpf_common() argument 117 tgt_name = strstr(prog_name[i], "/"); in test_fexit_bpf2bpf_common() 125 if (pos_sec_name && !strcmp(pos_sec_name, prog_name[i])) { in test_fexit_bpf2bpf_common() 130 if (!ASSERT_OK_PTR(prog[i], prog_name[i])) in test_fexit_bpf2bpf_common() 176 const char *prog_name[] = { in test_target_no_callees() local 181 ARRAY_SIZE(prog_name), in test_target_no_callees() 182 prog_name, true, NULL); in test_target_no_callees() 187 const char *prog_name[] = { in test_target_yes_callees() local 195 ARRAY_SIZE(prog_name), in test_target_yes_callees() 196 prog_name, true, NULL); in test_target_yes_callees() [all …]
|
D | rdonly_maps.c | 12 const char *prog_name; member 50 prog = bpf_object__find_program_by_name(obj, t->prog_name); in test_rdonly_maps() 52 t->prog_name)) in test_rdonly_maps() 74 "prog '%s' didn't run?\n", t->prog_name)) in test_rdonly_maps() 78 t->prog_name, bss.iters, t->exp_iters)) in test_rdonly_maps() 82 t->prog_name, bss.sum, t->exp_sum)) in test_rdonly_maps()
|
D | kfunc_dynptr_param.c | 14 const char *prog_name; member 64 static void verify_success(const char *prog_name, int expected_runtime_err) in verify_success() argument 83 prog = bpf_object__find_program_by_name(skel->obj, prog_name); in verify_success() 112 if (!test__start_subtest(kfunc_dynptr_tests[i].prog_name)) in test_kfunc_dynptr_param() 115 verify_success(kfunc_dynptr_tests[i].prog_name, in test_kfunc_dynptr_param()
|
D | tailcalls.c | 21 char prog_name[32]; in test_tailcall_1() local 51 snprintf(prog_name, sizeof(prog_name), "classifier_%d", i); in test_tailcall_1() 53 prog = bpf_object__find_program_by_name(obj, prog_name); in test_tailcall_1() 81 snprintf(prog_name, sizeof(prog_name), "classifier_%d", i); in test_tailcall_1() 83 prog = bpf_object__find_program_by_name(obj, prog_name); in test_tailcall_1() 102 snprintf(prog_name, sizeof(prog_name), "classifier_%d", j); in test_tailcall_1() 104 prog = bpf_object__find_program_by_name(obj, prog_name); in test_tailcall_1() 157 char prog_name[32]; in test_tailcall_2() local 187 snprintf(prog_name, sizeof(prog_name), "classifier_%d", i); in test_tailcall_2() 189 prog = bpf_object__find_program_by_name(obj, prog_name); in test_tailcall_2() [all …]
|
D | dynptr.c | 16 const char *prog_name; member 35 static void verify_success(const char *prog_name, enum test_setup_type setup_type) in verify_success() argument 48 prog = bpf_object__find_program_by_name(skel->obj, prog_name); in verify_success() 136 if (!test__start_subtest(success_tests[i].prog_name)) in test_dynptr() 139 verify_success(success_tests[i].prog_name, success_tests[i].type); in test_dynptr()
|
D | kfunc_call.c | 24 const char *prog_name; member 33 .prog_name = #name, \ 42 .prog_name = #name, \ 121 prog = bpf_object__find_program_by_name(skel->obj, param->prog_name); in verify_success() 127 if (!ASSERT_OK(err, param->prog_name)) in verify_success() 142 if (!ASSERT_OK(err, param->prog_name)) in verify_success() 186 prog = bpf_object__find_program_by_name(skel->obj, param->prog_name); in verify_fail() 205 if (!ASSERT_EQ(err, param->retval, param->prog_name)) in verify_fail() 224 if (!test__start_subtest(kfunc_tests[i].prog_name)) in test_main()
|
D | spin_lock.c | 12 const char *prog_name; member 73 static void test_spin_lock_fail_prog(const char *prog_name, const char *err_msg) in test_spin_lock_fail_prog() argument 86 prog = bpf_object__find_program_by_name(skel->obj, prog_name); in test_spin_lock_fail_prog() 166 if (!test__start_subtest(spin_lock_fail_tests[i].prog_name)) in test_spin_lock() 168 test_spin_lock_fail_prog(spin_lock_fail_tests[i].prog_name, in test_spin_lock()
|
D | core_reloc.c | 33 .prog_name = pg_name, \ 50 .prog_name = "test_core_flavors" \ 75 .prog_name = "test_core_nesting" \ 103 .prog_name = "test_core_arrays" \ 137 .prog_name = "test_core_primitives" \ 173 .prog_name = "test_core_mods", \ 191 .prog_name = "test_core_ptr_as_arr", \ 210 .prog_name = "test_core_ints" 230 .prog_name = "test_core_existence" 246 .prog_name = "test_core_bitfields", \ [all …]
|
D | stacktrace_map_raw_tp.c | 6 const char *prog_name = "oncpu"; in test_stacktrace_map_raw_tp() local 19 prog = bpf_object__find_program_by_name(obj, prog_name); in test_stacktrace_map_raw_tp() 20 if (CHECK(!prog, "find_prog", "prog '%s' not found\n", prog_name)) in test_stacktrace_map_raw_tp()
|
D | stacktrace_map.c | 7 const char *prog_name = "oncpu"; in test_stacktrace_map() local 19 prog = bpf_object__find_program_by_name(obj, prog_name); in test_stacktrace_map() 20 if (CHECK(!prog, "find_prog", "prog '%s' not found\n", prog_name)) in test_stacktrace_map()
|
D | bpf_nf.c | 11 const char *prog_name; member 145 static void test_bpf_nf_ct_fail(const char *prog_name, const char *err_msg) in test_bpf_nf_ct_fail() argument 158 prog = bpf_object__find_program_by_name(skel->obj, prog_name); in test_bpf_nf_ct_fail() 185 if (test__start_subtest(test_bpf_nf_fail_tests[i].prog_name)) in test_bpf_nf() 186 test_bpf_nf_ct_fail(test_bpf_nf_fail_tests[i].prog_name, in test_bpf_nf()
|
D | obj_name.c | 30 ncopy = name_len < sizeof(attr.prog_name) ? in test_obj_name() 31 name_len : sizeof(attr.prog_name); in test_obj_name() 37 memcpy(attr.prog_name, tests[i].name, ncopy); in test_obj_name()
|
D | get_stack_raw_tp.c | 89 const char *prog_name = "bpf_prog1"; in test_get_stack_raw_tp() local 107 prog = bpf_object__find_program_by_name(obj, prog_name); in test_get_stack_raw_tp() 108 if (CHECK(!prog, "find_probe", "prog '%s' not found\n", prog_name)) in test_get_stack_raw_tp()
|
D | cb_refs.c | 11 const char *prog_name; member 38 prog = bpf_object__find_program_by_name(skel->obj, cb_refs_tests[i].prog_name); in test_cb_refs()
|
D | cpumask.c | 30 static void verify_success(const char *prog_name) in verify_success() argument 49 prog = bpf_object__find_program_by_name(skel->obj, prog_name); in verify_success()
|
D | task_kfunc.c | 34 static void run_success_test(const char *prog_name) in run_success_test() argument 49 prog = bpf_object__find_program_by_name(skel->obj, prog_name); in run_success_test()
|
/linux-6.12.1/arch/alpha/boot/tools/ |
D | objstrip.c | 39 const char * prog_name; variable 47 " %s [-vb] file [secondary]\n", prog_name, prog_name); in usage() 66 prog_name = argv[0]; in main() 154 prog_name, inname); in main() 159 prog_name, elf->e_machine); in main() 165 prog_name, elf->e_phnum); in main() 192 prog_name, (long) elf_phdr->p_vaddr, in main() 202 prog_name, inname); in main() 208 prog_name, inname); in main() 214 prog_name, inname); in main() [all …]
|
/linux-6.12.1/samples/bpf/ |
D | xdp_fwd_user.c | 54 char prog_name[BPF_OBJ_NAME_LEN]; in do_detach() local 85 snprintf(prog_name, sizeof(prog_name), "%s_prog", app_name); in do_detach() 86 prog_name[BPF_OBJ_NAME_LEN - 1] = '\0'; in do_detach() 88 if (strcmp(prog_info.name, prog_name)) { in do_detach() 121 const char *prog_name = "xdp_fwd"; in main() local 144 prog_name = "xdp_fwd_direct"; in main() 187 if (sec_name && !strcmp(sec_name, prog_name)) { in main() 215 err = do_detach(idx, argv[i], prog_name); in main()
|
/linux-6.12.1/tools/lib/bpf/ |
D | relo_core.c | 56 #define libbpf_print(level, fmt, ...) bpf_log((void *)prog_name, fmt, ##__VA_ARGS__) 263 int bpf_core_parse_spec(const char *prog_name, const struct btf *btf, in bpf_core_parse_spec() argument 387 prog_name, relo->type_id, spec_str, i, id, btf_kind_str(t)); in bpf_core_parse_spec() 678 static int bpf_core_calc_field_relo(const char *prog_name, in bpf_core_calc_field_relo() argument 722 prog_name, relo->kind, relo->insn_off / 8); in bpf_core_calc_field_relo() 744 prog_name, relo->kind, relo->insn_off / 8); in bpf_core_calc_field_relo() 879 static int bpf_core_calc_relo(const char *prog_name, in bpf_core_calc_relo() argument 897 err = bpf_core_calc_field_relo(prog_name, relo, local_spec, in bpf_core_calc_relo() 900 err = err ?: bpf_core_calc_field_relo(prog_name, relo, targ_spec, in bpf_core_calc_relo() 958 prog_name, relo_idx, core_relo_kind_str(relo->kind), in bpf_core_calc_relo() [all …]
|
D | relo_core.h | 82 int bpf_core_calc_relo_insn(const char *prog_name, 89 int bpf_core_patch_insn(const char *prog_name, struct bpf_insn *insn, 93 int bpf_core_parse_spec(const char *prog_name, const struct btf *btf,
|
/linux-6.12.1/tools/testing/selftests/bpf/ |
D | veristat.c | 85 char *prog_name; member 93 char *prog_name; member 407 static bool should_process_file_prog(const char *filename, const char *prog_name) in should_process_file_prog() argument 419 if (f->any_glob && prog_name && glob_matches(prog_name, f->any_glob)) in should_process_file_prog() 423 if (f->prog_glob && prog_name && glob_matches(prog_name, f->prog_glob)) in should_process_file_prog() 442 if (!prog_name || glob_matches(prog_name, f->any_glob)) in should_process_file_prog() 447 if (f->prog_glob && prog_name && !glob_matches(prog_name, f->prog_glob)) in should_process_file_prog() 815 free(stats[i].prog_name); in free_verif_stats() 940 const char *prog_name = bpf_program__name(prog); in fixup_obj() local 950 id = btf__find_by_name_kind(btf, prog_name, BTF_KIND_FUNC); in fixup_obj() [all …]
|
D | test_cpp.cpp | 62 std::string prog_name; in try_skeleton_template() local 90 prog_name = bpf_program__name(skel->progs.handle_sys_enter); in try_skeleton_template() 91 if (prog_name != "handle_sys_enter") in try_skeleton_template() 92 fprintf(stderr, "Unexpected program name: %s\n", prog_name.c_str()); in try_skeleton_template()
|
D | flow_dissector_load.h | 11 const char *prog_name, in bpf_flow_load() argument 27 main_prog = bpf_object__find_program_by_name(*obj, prog_name); in bpf_flow_load()
|
/linux-6.12.1/tools/testing/selftests/net/ |
D | lib.sh | 132 local prog_name=$1; shift 134 if ! which $prog_name >/dev/null 2>/dev/null; then 136 if ! which $prog_name >/dev/null; then 137 echo "'$prog_name' command not found; skipping tests"
|
/linux-6.12.1/tools/bpf/bpftool/ |
D | cgroup.c | 134 char prog_name[MAX_PROG_FULL_NAME]; in show_bpf_prog() local 165 get_prog_full_name(&info, prog_fd, prog_name, sizeof(prog_name)); in show_bpf_prog() 175 jsonw_string_field(json_wtr, "name", prog_name); in show_bpf_prog() 188 printf(" %-15s", prog_name); in show_bpf_prog() 190 printf(" %-15s %-15s", attach_flags_str, prog_name); in show_bpf_prog()
|