Lines Matching refs:binary_path
11682 char *probe_type = NULL, *binary_path = NULL, *func_name = NULL; in attach_uprobe_multi() local
11689 &probe_type, &binary_path, &func_name); in attach_uprobe_multi()
11697 *link = bpf_program__attach_uprobe_multi(prog, -1, binary_path, func_name, &opts); in attach_uprobe_multi()
11706 free(binary_path); in attach_uprobe_multi()
11712 const char *binary_path, uint64_t offset) in gen_uprobe_legacy_event_name() argument
11716 snprintf(buf, buf_sz, "libbpf_%u_%s_0x%zx", getpid(), binary_path, (size_t)offset); in gen_uprobe_legacy_event_name()
11726 const char *binary_path, size_t offset) in add_uprobe_event_legacy() argument
11731 probe_name, binary_path, offset); in add_uprobe_event_legacy()
11751 const char *binary_path, size_t offset, int pid) in perf_event_uprobe_open_legacy() argument
11757 err = add_uprobe_event_legacy(probe_name, retprobe, binary_path, offset); in perf_event_uprobe_open_legacy()
11760 binary_path, (size_t)offset, err); in perf_event_uprobe_open_legacy()
11767 binary_path, offset, err); in perf_event_uprobe_open_legacy()
12057 const char *binary_path, size_t func_offset, in bpf_program__attach_uprobe_opts() argument
12079 if (!binary_path) in bpf_program__attach_uprobe_opts()
12083 archive_sep = strstr(binary_path, "!/"); in bpf_program__attach_uprobe_opts()
12086 libbpf_strlcpy(full_path, binary_path, in bpf_program__attach_uprobe_opts()
12087 min(sizeof(full_path), (size_t)(archive_sep - binary_path + 1))); in bpf_program__attach_uprobe_opts()
12089 binary_path = archive_sep + 2; in bpf_program__attach_uprobe_opts()
12090 } else if (!strchr(binary_path, '/')) { in bpf_program__attach_uprobe_opts()
12091 err = resolve_full_path(binary_path, full_path, sizeof(full_path)); in bpf_program__attach_uprobe_opts()
12094 prog->name, binary_path, err); in bpf_program__attach_uprobe_opts()
12097 binary_path = full_path; in bpf_program__attach_uprobe_opts()
12104 sym_off = elf_find_func_offset_from_archive(archive_path, binary_path, in bpf_program__attach_uprobe_opts()
12106 binary_path = archive_path; in bpf_program__attach_uprobe_opts()
12108 sym_off = elf_find_func_offset_from_file(binary_path, func_name); in bpf_program__attach_uprobe_opts()
12137 pfd = perf_event_open_probe(true /* uprobe */, retprobe, binary_path, in bpf_program__attach_uprobe_opts()
12146 binary_path, func_offset); in bpf_program__attach_uprobe_opts()
12153 binary_path, func_offset, pid); in bpf_program__attach_uprobe_opts()
12159 binary_path, func_offset, in bpf_program__attach_uprobe_opts()
12170 binary_path, func_offset, in bpf_program__attach_uprobe_opts()
12204 char *probe_type = NULL, *binary_path = NULL, *func_name = NULL, *func_off; in attach_uprobe() local
12211 &probe_type, &binary_path, &func_name); in attach_uprobe()
12241 *link = bpf_program__attach_uprobe_opts(prog, -1, binary_path, offset, &opts); in attach_uprobe()
12250 free(binary_path); in attach_uprobe()
12258 const char *binary_path, in bpf_program__attach_uprobe() argument
12263 return bpf_program__attach_uprobe_opts(prog, pid, binary_path, func_offset, &opts); in bpf_program__attach_uprobe()
12267 pid_t pid, const char *binary_path, in bpf_program__attach_usdt() argument
12286 if (!binary_path) in bpf_program__attach_usdt()
12289 if (!strchr(binary_path, '/')) { in bpf_program__attach_usdt()
12290 err = resolve_full_path(binary_path, resolved_path, sizeof(resolved_path)); in bpf_program__attach_usdt()
12293 prog->name, binary_path, err); in bpf_program__attach_usdt()
12296 binary_path = resolved_path; in bpf_program__attach_usdt()
12311 link = usdt_manager_attach_usdt(obj->usdt_man, prog, pid, binary_path, in bpf_program__attach_usdt()