Home
last modified time | relevance | path

Searched refs:prog_name (Results 1 – 23 of 23) sorted by relevance

/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/
Dfexit_bpf2bpf.c56 const char **prog_name, in test_fexit_bpf2bpf_common() argument
91 prog[i] = bpf_object__find_program_by_title(obj, prog_name[i]); in test_fexit_bpf2bpf_common()
92 if (CHECK(!prog[i], "find_prog", "prog %s not found\n", prog_name[i])) in test_fexit_bpf2bpf_common()
130 const char *prog_name[] = { in test_target_no_callees() local
135 ARRAY_SIZE(prog_name), in test_target_no_callees()
136 prog_name, true, NULL); in test_target_no_callees()
141 const char *prog_name[] = { in test_target_yes_callees() local
149 ARRAY_SIZE(prog_name), in test_target_yes_callees()
150 prog_name, true, NULL); in test_target_yes_callees()
155 const char *prog_name[] = { in test_func_replace() local
[all …]
Dtailcalls.c16 char prog_name[32]; in test_tailcall_1() local
41 snprintf(prog_name, sizeof(prog_name), "classifier/%i", i); in test_tailcall_1()
43 prog = bpf_object__find_program_by_title(obj, prog_name); in test_tailcall_1()
73 snprintf(prog_name, sizeof(prog_name), "classifier/%i", i); in test_tailcall_1()
75 prog = bpf_object__find_program_by_title(obj, prog_name); in test_tailcall_1()
95 snprintf(prog_name, sizeof(prog_name), "classifier/%i", j); in test_tailcall_1()
97 prog = bpf_object__find_program_by_title(obj, prog_name); in test_tailcall_1()
154 char prog_name[32]; in test_tailcall_2() local
179 snprintf(prog_name, sizeof(prog_name), "classifier/%i", i); in test_tailcall_2()
181 prog = bpf_object__find_program_by_title(obj, prog_name); in test_tailcall_2()
[all …]
Drdonly_maps.c12 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()
62 t->prog_name, PTR_ERR(link))) { in test_rdonly_maps()
77 "prog '%s' didn't run?\n", t->prog_name)) in test_rdonly_maps()
81 t->prog_name, bss.iters, t->exp_iters)) in test_rdonly_maps()
85 t->prog_name, bss.sum, t->exp_sum)) in test_rdonly_maps()
Dstacktrace_map_raw_tp.c6 const char *prog_name = "tracepoint/sched/sched_switch"; in test_stacktrace_map_raw_tp() local
19 prog = bpf_object__find_program_by_title(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()
Dstacktrace_map.c7 const char *prog_name = "tracepoint/sched/sched_switch"; in test_stacktrace_map() local
19 prog = bpf_object__find_program_by_title(obj, prog_name); in test_stacktrace_map()
20 if (CHECK(!prog, "find_prog", "prog '%s' not found\n", prog_name)) in test_stacktrace_map()
Dprobe_user.c6 const char *prog_name = "kprobe/__sys_connect"; in test_probe_user() local
21 kprobe_prog = bpf_object__find_program_by_title(obj, prog_name); in test_probe_user()
23 "prog '%s' not found\n", prog_name)) in test_probe_user()
Dobj_name.c30 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()
Dget_stack_raw_tp.c86 const char *prog_name = "raw_tracepoint/sys_enter"; in test_get_stack_raw_tp() local
105 prog = bpf_object__find_program_by_title(obj, prog_name); in test_get_stack_raw_tp()
106 if (CHECK(!prog, "find_probe", "prog '%s' not found\n", prog_name)) in test_get_stack_raw_tp()
Dflow_dissector.c454 char prog_name[32]; in init_prog_array() local
461 snprintf(prog_name, sizeof(prog_name), "flow_dissector/%i", i); in init_prog_array()
463 prog = bpf_object__find_program_by_title(obj, prog_name); in init_prog_array()
/kernel/linux/linux-5.10/arch/alpha/boot/tools/
Dobjstrip.c39 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 …]
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/
Dtest_socket_cookie.c136 const char *prog_name; in run_test() local
154 prog_name = bpf_program__section_name(prog); in run_test()
156 if (libbpf_attach_type_by_name(prog_name, &attach_type)) in run_test()
162 log_err("Failed to attach prog %s", prog_name); in run_test()
/kernel/linux/linux-5.10/samples/bpf/
Dxdp_fwd_user.c79 const char *prog_name = "xdp_fwd"; in main() local
100 prog_name = "xdp_fwd_direct"; in main()
135 prog = bpf_object__find_program_by_title(obj, prog_name); in main()
Dxdp_redirect_cpu_user.c354 char *prog_name, char *mprog_name, int mprog_fd) in stats_print() argument
368 printf("Running XDP/eBPF prog_name:%s\n", prog_name); in stats_print()
656 static void stats_poll(int interval, bool use_separators, char *prog_name, in stats_poll() argument
675 stats_print(record, prev, prog_name, mprog_name, mprog_fd); in stats_poll()
720 static int load_cpumap_prog(char *file_name, char *prog_name, in load_cpumap_prog() argument
757 prog = bpf_object__find_program_by_title(obj, prog_name); in load_cpumap_prog()
769 char *prog_name = "xdp_cpu_map5_lb_hash_ip_pairs"; in main() local
872 prog_name = optarg; in main()
951 prog = bpf_object__find_program_by_title(obj, prog_name); in main()
976 stats_poll(interval, use_separators, prog_name, mprog_name, in main()
Dxsk_fwd.c763 print_usage(char *prog_name) in print_usage() argument
785 prog_name, in print_usage()
/kernel/linux/linux-5.10/tools/bpf/bpftool/
Dbtf_dumper.c37 const char *prog_name = NULL; in dump_prog_id_as_func_ptr() local
75 prog_name = btf__name_by_offset(prog_btf, func_type->name_off); in dump_prog_id_as_func_ptr()
81 else if (prog_name) in dump_prog_id_as_func_ptr()
84 " %s/prog_id:%u", prog_name, prog_id); in dump_prog_id_as_func_ptr()
/kernel/linux/linux-5.10/tools/bpf/bpftool/Documentation/
Dbpftool-btf.rst219 **# bpftool btf dump prog pinned /sys/fs/bpf/prog_name**
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/linux/
Dbpf.h220 char prog_name[BPF_OBJ_NAME_LEN]; member
/kernel/linux/linux-5.10/tools/include/uapi/linux/
Dbpf.h544 char prog_name[BPF_OBJ_NAME_LEN]; member
/kernel/linux/linux-5.10/include/uapi/linux/
Dbpf.h544 char prog_name[BPF_OBJ_NAME_LEN]; member
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/
Dbpf.h330 char prog_name[BPF_OBJ_NAME_LEN]; member
/kernel/linux/linux-5.10/tools/lib/bpf/
Dbpf.c267 memcpy(attr.prog_name, load_attr->name, in bpf_load_program_xattr()
/kernel/linux/linux-5.10/tools/perf/
Dbuiltin-trace.c3236 const char *prog_name, const char *type) argument
3240 if (prog_name == NULL) {
3255 prog = trace__find_bpf_program_by_title(trace, prog_name);
3263 prog_name, type, sc->name);
/kernel/linux/linux-5.10/kernel/bpf/
Dsyscall.c2222 err = bpf_obj_name_cpy(prog->aux->name, attr->prog_name, in bpf_prog_load()
2223 sizeof(attr->prog_name)); in bpf_prog_load()