Home
last modified time | relevance | path

Searched refs:expected_build_id (Results 1 – 9 of 9) sorted by relevance

/system/extras/simpleperf/scripts/
Dbinary_cache_builder.py116 expected_build_id = self.binaries.get(binary)
117 if expected_build_id == build_id:
119 expected_build_id, binary)
122 def _copy_to_binary_cache(self, from_path, expected_build_id, target_file): argument
127 if not self._need_to_copy(from_path, target_file, expected_build_id):
136 def _need_to_copy(self, source_file, target_file, expected_build_id): argument
139 if self._read_build_id(target_file) != expected_build_id:
164 def _check_and_pull_binary(self, binary, expected_build_id, binary_cache_file): argument
171 if expected_build_id:
173 if expected_build_id != build_id:
Dsimpleperf_utils.py477 expected_build_id: Optional[str]) -> Optional[Path]:
481 if expected_build_id:
482 path = self.build_id_map.get(expected_build_id)
483 if path and self._check_path(path, expected_build_id):
488 if self._check_path(path, expected_build_id):
492 if self._check_path(path, expected_build_id):
496 def _check_path(self, path: Path, expected_build_id: Optional[str]) -> bool:
499 if expected_build_id is not None:
500 return self.readelf.get_build_id(path) == expected_build_id
803 def get_dso_info(self, dso_path: str, expected_build_id: Optional[str]
[all …]
/system/core/init/
Dproperty_service_test.cpp104 std::string expected_build_id = legacy_build_id + "." + vbmeta_digest.substr(0, 8); in TEST() local
105 ASSERT_EQ(expected_build_id, build_id); in TEST()
117 expected_build_id, in TEST()
/system/unwinding/libunwindstack/tests/
DMapInfoGetBuildIDTest.cpp59 void MultipleThreadTest(std::string expected_build_id);
95 void MapInfoGetBuildIDTest::MultipleThreadTest(std::string expected_build_id) { in MultipleThreadTest() argument
123 EXPECT_EQ(expected_build_id, build_id_values[i]) << "Thread " << i << " mismatched."; in MultipleThreadTest()
/system/extras/simpleperf/scripts/test/
Dbinary_cache_builder_test.py40 expected_build_id = readelf.get_build_id(origin_file)
42 binary_cache_builder.binaries['simpleperf_runtest_two_functions_arm'] = expected_build_id
/system/extras/simpleperf/
Dread_elf.h88 const BuildId* expected_build_id, ElfStatus* status);
Dread_elf.cpp501 const BuildId* expected_build_id, ElfStatus* status) { in Open() argument
530 if (elf && expected_build_id != nullptr && !expected_build_id->IsEmpty()) { in Open()
536 if (*expected_build_id != real_build_id) { in Open()
Dread_elf_test.cpp46 BuildId expected_build_id(build_id_data, 20); in TEST() local
61 ASSERT_TRUE(build_id == expected_build_id); in TEST()
Dcmd_inject.cpp336 auto check_build_id = [](Dso* dso, const BuildId& expected_build_id) { in ProcessBranchListFile() argument
337 if (expected_build_id.IsEmpty()) { in ProcessBranchListFile()
342 build_id == expected_build_id; in ProcessBranchListFile()