Lines Matching defs:binary_path
11941 char *probe_type = NULL, *binary_path = NULL, *func_name = NULL;
11948 &probe_type, &binary_path, &func_name);
11958 *link = bpf_program__attach_uprobe_multi(prog, -1, binary_path, func_name, &opts);
11967 free(binary_path);
11973 const char *binary_path, size_t offset)
11978 probe_name, binary_path, offset);
11998 const char *binary_path, size_t offset, int pid)
12004 err = add_uprobe_event_legacy(probe_name, retprobe, binary_path, offset);
12007 binary_path, (size_t)offset, errstr(err));
12014 binary_path, offset, errstr(err));
12312 const char *binary_path, size_t func_offset,
12334 if (!binary_path)
12337 /* Check if "binary_path" refers to an archive. */
12338 archive_sep = strstr(binary_path, "!/");
12341 libbpf_strlcpy(full_path, binary_path,
12342 min(sizeof(full_path), (size_t)(archive_sep - binary_path + 1)));
12344 binary_path = archive_sep + 2;
12345 } else if (!strchr(binary_path, '/')) {
12346 err = resolve_full_path(binary_path, full_path, sizeof(full_path));
12349 prog->name, binary_path, errstr(err));
12352 binary_path = full_path;
12359 sym_off = elf_find_func_offset_from_archive(archive_path, binary_path,
12361 binary_path = archive_path;
12363 sym_off = elf_find_func_offset_from_file(binary_path, func_name);
12392 pfd = perf_event_open_probe(true /* uprobe */, retprobe, binary_path,
12401 strrchr(binary_path, '/') ? : binary_path,
12409 binary_path, func_offset, pid);
12415 binary_path, func_offset,
12426 binary_path, func_offset,
12460 char *probe_type = NULL, *binary_path = NULL, *func_name = NULL, *func_off;
12467 &probe_type, &binary_path, &func_name);
12497 *link = bpf_program__attach_uprobe_opts(prog, -1, binary_path, offset, &opts);
12506 free(binary_path);
12514 const char *binary_path,
12519 return bpf_program__attach_uprobe_opts(prog, pid, binary_path, func_offset, &opts);
12523 pid_t pid, const char *binary_path,
12542 if (!binary_path)
12545 if (!strchr(binary_path, '/')) {
12546 err = resolve_full_path(binary_path, resolved_path, sizeof(resolved_path));
12549 prog->name, binary_path, errstr(err));
12552 binary_path = resolved_path;
12567 link = usdt_manager_attach_usdt(obj->usdt_man, prog, pid, binary_path,