/aosp_15_r20/external/libbpf/src/ |
H A D | elf.c | 25 int elf_open(const char *binary_path, struct elf_fd *elf_fd) in elf_open() argument 32 pr_warn("elf: failed to init libelf for %s\n", binary_path); in elf_open() 35 fd = open(binary_path, O_RDONLY | O_CLOEXEC); in elf_open() 38 pr_warn("elf: failed to open %s: %s\n", binary_path, in elf_open() 44 pr_warn("elf: could not read elf from %s: %s\n", binary_path, elf_errmsg(-1)); in elf_open() 97 Elf *elf, const char *binary_path, in elf_sym_iter_new() argument 107 pr_warn("elf: failed to get ehdr from %s: %s\n", binary_path, elf_errmsg(-1)); in elf_sym_iter_new() 114 binary_path); in elf_sym_iter_new() 125 binary_path, elf_errmsg(-1)); in elf_sym_iter_new() 147 pr_warn("elf: failed to get verdef ELF section in '%s'\n", binary_path); in elf_sym_iter_new() [all …]
|
H A D | libbpf_internal.h | 651 long elf_find_func_offset(Elf *elf, const char *binary_path, const char *name); 652 long elf_find_func_offset_from_file(const char *binary_path, const char *name); 659 int elf_open(const char *binary_path, struct elf_fd *elf_fd); 662 int elf_resolve_syms_offsets(const char *binary_path, int cnt, 665 int elf_resolve_pattern_offsets(const char *binary_path, const char *pattern,
|
/aosp_15_r20/external/pytorch/tools/linter/adapters/ |
H A D | s3_init.py | 66 def check(binary_path: Path, reference_hash: str) -> bool: 71 if not binary_path.exists(): 72 logging.info("%s does not exist.", binary_path) 75 existing_binary_hash = compute_file_sha256(str(binary_path)) 90 binary_path, 99 binary_path.unlink() 120 binary_path = Path(output_dir, name) 121 if check(binary_path, reference_bin_hash): 122 logging.info("Correct binary already exists at %s. Exiting.", binary_path) 126 binary_path.parent.mkdir(parents=True, exist_ok=True) [all …]
|
/aosp_15_r20/external/tensorflow/tensorflow/compiler/xla/stream_executor/gpu/ |
H A D | asm_compiler.cc | 41 const std::string& binary_path) { in GetPtxasVersionString() argument 47 auto it = seen_binary_paths->find(binary_path); in GetPtxasVersionString() 54 binary.SetProgram(binary_path, {binary_path, "--version"}); in GetPtxasVersionString() 58 absl::StrFormat("Couldn't invoke %s --version", binary_path)); in GetPtxasVersionString() 66 "Running %s --version returned %d", binary_path, exit_code)); in GetPtxasVersionString() 68 auto emplace_it = seen_binary_paths->emplace(binary_path, std::move(out)); in GetPtxasVersionString() 198 std::string binary_path; in FindCudaExecutable() local 201 binary_path = tensorflow::io::JoinPath(cuda_root, "bin", binary_filename); in FindCudaExecutable() 202 VLOG(2) << "Looking for " << binary_filename << " at " << binary_path; in FindCudaExecutable() 203 if (env->FileExists(binary_path).ok() && in FindCudaExecutable() [all …]
|
/aosp_15_r20/external/OpenCL-CTS/scripts/ |
H A D | test_opencl_cts.py | 43 def get_all_subtests(binary_path: str) -> List[str]: 62 def get_subtests(binary_path: str, subtests: List[str]) -> List[str]: 63 all_subtests = set(get_all_subtests(binary_path)) 80 def __init__(self, test_name: str, binary_path: str, args: List[str]): 83 self._binary_path = binary_path 122 subtests = get_subtests(args.binary_path, args.subtests) 124 suite.addTest(OpenCLTest(subtest, args.binary_path, args.test_args))
|
/aosp_15_r20/external/perfetto/tools/ |
H A D | size-report | 83 binary_path = os.path.join(out_directory, binary) 84 output = '{} - {}\n'.format(binary, binary_path) 86 subprocess.check_output(['dsymutil', binary_path]) 88 binary_path, binary) 89 cmd = [symbols, '-d', 'compileunits', '-n', '100', binary_path] 91 cmd = ['-d', 'compileunits', '-n', '100', binary_path]
|
H A D | heap_profile | 752 binary_path = os.getenv('PERFETTO_BINARY_PATH') 760 if binary_path is None: 761 binary_path = product_out_symbols 763 binary_path += os.pathsep + product_out_symbols 768 if binary_path is not None: 775 os.environ, PERFETTO_BINARY_PATH=binary_path),
|
/aosp_15_r20/external/bazelbuild-rules_rust/tools/runfiles/ |
H A D | runfiles.rs | 191 let mut binary_path = PathBuf::from(&exec_path); in find_runfiles_dir() localVariable 194 let mut runfiles_name = binary_path.file_name().unwrap().to_owned(); in find_runfiles_dir() 197 let runfiles_path = binary_path.with_file_name(&runfiles_name); in find_runfiles_dir() 205 let mut next = binary_path.parent(); in find_runfiles_dir() 217 if !fs::symlink_metadata(&binary_path)?.file_type().is_symlink() { in find_runfiles_dir() 221 let link_target = binary_path.read_link()?; in find_runfiles_dir() 222 binary_path = if link_target.is_absolute() { in find_runfiles_dir() 225 let link_dir = binary_path.parent().unwrap(); in find_runfiles_dir()
|
/aosp_15_r20/build/make/tools/edit_monitor/ |
H A D | daemon_manager.py | 57 binary_path: str, 62 self.binary_path = binary_path 101 if self.binary_path.startswith("/google/cog/"): 217 logging.info("Rebooting process based on binary %s.", self.binary_path) 223 if not os.path.exists(self.binary_path): 224 logging.info("binary %s no longer exists, exiting.", self.binary_path) 228 os.execv(self.binary_path, sys.argv) 388 hash_object.update(self.binary_path.encode("utf-8"))
|
/aosp_15_r20/system/libfmq/tests/ |
H A D | fmq_test.py | 71 def bitness(binary_path: str) -> str: 72 if "64" in binary_path: 76 def short_name(binary_path: str) -> str: 77 base = "rust" if "rust" in binary_path else "" 78 return base + bitness(binary_path)
|
/aosp_15_r20/external/bcc/libbpf-tools/ |
H A D | javagc.c | 157 char binary_path[BINARY_PATH_SIZE] = {0}; in main() local 170 err = get_jvmso_path(binary_path); in main() 190 binary_path, "hotspot", "mem__pool__gc__begin", NULL); in main() 198 binary_path, "hotspot", "mem__pool__gc__end", NULL); in main() 206 binary_path, "hotspot", "gc__begin", NULL); in main() 214 binary_path, "hotspot", "gc__end", NULL); in main()
|
/aosp_15_r20/external/bcc/src/cc/api/ |
H A D | BPF.cc | 258 StatusTuple BPF::attach_uprobe(const std::string& binary_path, in attach_uprobe() argument 273 TRY2(check_binary_symbol(binary_path, symbol, symbol_addr, module, offset, in attach_uprobe() 284 binary_path.c_str(), offset, pid, in attach_uprobe() 293 attach_type_debug(attach_type).c_str(), binary_path.c_str(), in attach_uprobe() 510 StatusTuple BPF::detach_uprobe(const std::string& binary_path, in detach_uprobe() argument 516 TRY2(check_binary_symbol(binary_path, symbol, symbol_addr, module, offset, in detach_uprobe() 524 binary_path.c_str(), symbol.c_str(), symbol_addr); in detach_uprobe() 761 StatusTuple BPF::check_binary_symbol(const std::string& binary_path, in check_binary_symbol() argument 768 int res = bcc_resolve_symname(binary_path.c_str(), symbol.c_str(), in check_binary_symbol() 773 binary_path.c_str(), symbol.c_str(), symbol_addr); in check_binary_symbol() [all …]
|
H A D | BPF.h | 47 USDT(const std::string& binary_path, const std::string& provider, 51 USDT(const std::string& binary_path, pid_t pid, const std::string& provider, 56 const std::string &binary_path() const { return binary_path_; } in binary_path() function 142 StatusTuple attach_uprobe(const std::string& binary_path, 150 StatusTuple detach_uprobe(const std::string& binary_path, 347 std::string get_uprobe_event(const std::string& binary_path, uint64_t offset, 389 StatusTuple check_binary_symbol(const std::string& binary_path,
|
/aosp_15_r20/external/autotest/client/cros/ |
H A D | chrome_binary_test.py | 115 binary_path = self.get_chrome_binary_path(binary_to_run) 121 cmd = ' '.join([env_vars, prefix, binary_path, extra_params]) 133 file_utils.recursive_path_permission(binary_path)) 135 (binary_path, path_permission)) 137 fail_reason = ('Command not found: %s' % binary_path)
|
/aosp_15_r20/packages/modules/Bluetooth/system/stack/test/a2dp/ |
D | test_util.cc | 25 base::FilePath binary_path; in GetBinaryPath() local 26 base::ReadSymbolicLink(base::FilePath("/proc/self/exe"), &binary_path); in GetBinaryPath() 27 return binary_path.DirName(); in GetBinaryPath()
|
/aosp_15_r20/external/perfetto/python/tools/ |
H A D | heap_profile.py | 486 binary_path = os.getenv('PERFETTO_BINARY_PATH') 494 if binary_path is None: 495 binary_path = product_out_symbols 497 binary_path += os.pathsep + product_out_symbols 502 if binary_path is not None: 509 os.environ, PERFETTO_BINARY_PATH=binary_path),
|
/aosp_15_r20/external/strace/ |
H A D | mmap_cache.c | 131 char binary_path[sizeof(buffer)]; in mmap_cache_rebuild_if_invalid() local 138 binary_path) != 10) in mmap_cache_rebuild_if_invalid() 173 filename, binary_path, start_addr, in mmap_cache_rebuild_if_invalid() 197 entry->binary_filename = xstrdup(binary_path); in mmap_cache_rebuild_if_invalid()
|
/aosp_15_r20/external/rust/android-crates-io/crates/libbpf-rs/src/ |
D | program.rs | 729 binary_path: T, in attach_uprobe() 732 let path = util::path_to_cstring(binary_path)?; in attach_uprobe() 755 binary_path: impl AsRef<Path>, in attach_uprobe_with_opts() 759 let path = util::path_to_cstring(binary_path)?; in attach_uprobe_with_opts() 956 binary_path: &Path, in attach_usdt_impl() 961 let path = util::path_to_cstring(binary_path)?; in attach_usdt_impl() 995 binary_path: impl AsRef<Path>, in attach_usdt() 1001 binary_path.as_ref(), in attach_usdt() 1014 binary_path: impl AsRef<Path>, in attach_usdt_with_opts() 1021 binary_path.as_ref(), in attach_usdt_with_opts()
|
/aosp_15_r20/system/apex/apexd/ |
H A D | apex_classpath.cpp | 52 std::string binary_path = in DeriveClassPath() local 69 const char* const argv[] = {binary_path.c_str(), scan_dirs_flag.c_str(), in DeriveClassPath() 75 binary_path; in DeriveClassPath()
|
/aosp_15_r20/external/tensorflow/tensorflow/core/distributed_runtime/rpc/ |
H A D | grpc_testlib.cc | 34 Status TestCluster::MakeTestCluster(const string& binary_path, in MakeTestCluster() argument 63 if (!options.env->FileExists(binary_path).ok()) { in MakeTestCluster() 67 {binary_path, /* see grpc_testlib_server.cc for flags */ in MakeTestCluster()
|
/aosp_15_r20/external/angle/scripts/ |
H A D | update_chrome_angle.py | 56 binary_path = os.path.join(path, binary_name) variable 57 if os.path.exists(binary_path): 58 binary_mtime = os.path.getmtime(binary_path)
|
/aosp_15_r20/bootable/recovery/tests/unit/ |
H A D | install_test.cpp | 124 std::string binary_path = std::string(td.path) + "/update_binary"; in TEST() local 125 Paths::Get().set_temporary_update_binary(binary_path); in TEST() 129 ASSERT_EQ(binary_path, cmd[0]); in TEST() 134 ASSERT_EQ(0, stat(binary_path.c_str(), &sb)); in TEST() 141 ASSERT_EQ(binary_path, cmd[0]); in TEST() 147 ASSERT_EQ(0, stat(binary_path.c_str(), &sb)); in TEST()
|
/aosp_15_r20/system/extras/simpleperf/scripts/ |
H A D | simpleperf_utils.py | 78 binary_path = os.path.join(arch_dir, binary_name) 79 if not os.path.isfile(binary_path): 80 log_fatal("can't find binary: %s" % binary_path) 81 return binary_path 99 binary_path = os.path.join(dirname, binary_name) 100 if not os.path.isfile(binary_path): 101 log_fatal("can't find binary: %s" % binary_path) 102 return binary_path 645 def _build_symbolizer_args(self, binary_path: Path) -> List[str]: 646 args = [self.symbolizer_path, '--print-address', '--inlining', '--obj=%s' % binary_path]
|
/aosp_15_r20/out/soong/.intermediates/external/libbpf/libbpf_headers/gen/bpf/ |
D | libbpf_internal.h | 651 long elf_find_func_offset(Elf *elf, const char *binary_path, const char *name); 652 long elf_find_func_offset_from_file(const char *binary_path, const char *name); 659 int elf_open(const char *binary_path, struct elf_fd *elf_fd); 662 int elf_resolve_syms_offsets(const char *binary_path, int cnt, 665 int elf_resolve_pattern_offsets(const char *binary_path, const char *pattern,
|
/aosp_15_r20/system/apex/tools/ |
H A D | apex_compression_tool.py | 41 binary_path = os.path.join(path, binary) 42 if os.path.exists(binary_path): 43 return binary_path
|