/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | fexit_bpf2bpf.c | 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() 201 const char *prog_name[] = { in test_func_replace() local 213 ARRAY_SIZE(prog_name), in test_func_replace() 219 const char *prog_name[] = { in test_func_replace_verify() local 224 ARRAY_SIZE(prog_name), in test_func_replace_verify() 274 const char *prog_name[] = { in test_func_replace_multi() local [all …]
|
H A 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()
|
H A 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()
|
H A 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() 81 snprintf(prog_name, sizeof(prog_name), "classifier_%d", i); in test_tailcall_1() 102 snprintf(prog_name, sizeof(prog_name), "classifier_%d", j); 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() 456 snprintf(prog_name, sizeof(prog_name), "classifier_%d", i); in test_tailcall_4() 546 snprintf(prog_name, sizeof(prog_name), "classifier_%d", i); in test_tailcall_5() 627 snprintf(prog_name, sizeof(prog_name), "classifier_%d", i); in test_tailcall_bpf2bpf_1() 790 snprintf(prog_name, sizeof(prog_name), "classifier_%d", i); in test_tailcall_bpf2bpf_3() [all …]
|
H A 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()
|
H A 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()
|
H A 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()
|
H A D | core_reloc.c | 33 .prog_name = pg_name, \ 50 .prog_name = "test_core_flavors" \ 75 .prog_name = "test_core_nesting" \ 210 .prog_name = "test_core_ints" 230 .prog_name = "test_core_existence" 279 .prog_name = "test_core_size" 338 .prog_name = "test_core_type_id" 357 .prog_name = "test_core_enumval" 407 const char *prog_name; member 563 .prog_name = "test_core_kernel", [all …]
|
H A 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()
|
H A 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()
|
H A 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()
|
H A 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()
|
H A 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()
|
H A 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()
|
H A 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()
|
H A 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/arch/alpha/boot/tools/ |
H A 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/samples/bpf/ |
H A 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/tools/lib/bpf/ |
H A D | relo_core.c | 973 prog_name, relo_idx, insn_idx); in bpf_core_poison_insn() 1054 prog_name, relo_idx, in bpf_core_patch_insn() 1062 prog_name, relo_idx, insn_idx, in bpf_core_patch_insn() 1082 prog_name, relo_idx, insn_idx); in bpf_core_patch_insn() 1122 prog_name, relo_idx, insn_idx); in bpf_core_patch_insn() 1129 prog_name, relo_idx, in bpf_core_patch_insn() 1138 prog_name, relo_idx, insn_idx, in bpf_core_patch_insn() 1144 prog_name, relo_idx, insn_idx, insn->code, in bpf_core_patch_insn() 1343 prog_name, relo_idx, i, spec_buf, err); in bpf_core_calc_relo_insn() 1376 prog_name, relo_idx, in bpf_core_calc_relo_insn() [all …]
|
H A 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/tools/testing/selftests/bpf/ |
H A D | veristat.c | 85 char *prog_name; member 93 char *prog_name; member 419 if (f->any_glob && prog_name && glob_matches(prog_name, f->any_glob)) in should_process_file_prog() 442 if (!prog_name || glob_matches(prog_name, f->any_glob)) in should_process_file_prog() 1153 cmp = strcmp(s1->prog_name, s2->prog_name); in cmp_stat() 1198 return strcmp(s1->prog_name, s2->prog_name); in cmp_prog_stats() 1300 return strcmp(s1->prog_name, s2->prog_name); in cmp_join_stats() 1763 return strcmp(base->prog_name, comp->prog_name); in cmp_stats_key() 1911 join->prog_name = base->prog_name; in handle_comparison_mode() 1918 join->prog_name = base->prog_name; in handle_comparison_mode() [all …]
|
H A 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()
|
H A 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/tools/testing/selftests/net/ |
H A 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/tools/bpf/bpftool/ |
H A 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()
|