Home
last modified time | relevance | path

Searched refs:SharedString (Results 1 – 25 of 32) sorted by relevance

12

/system/unwinding/libunwindstack/include/unwindstack/
DSharedString.h27 class SharedString {
29 SharedString() : data_() {} in SharedString() function
30 SharedString(std::string&& s) : data_(std::make_shared<const std::string>(std::move(s))) {} in SharedString() function
31 SharedString(const std::string& s) : SharedString(std::string(s)) {} in SharedString() function
32 SharedString(const char* s) : SharedString(std::string(s)) {} in SharedString() function
50 static inline bool operator==(const SharedString& a, SharedString& b) {
53 static inline bool operator==(const SharedString& a, std::string_view b) {
56 static inline bool operator==(std::string_view a, const SharedString& b) {
59 static inline bool operator!=(const SharedString& a, SharedString& b) {
62 static inline bool operator!=(const SharedString& a, std::string_view b) {
[all …]
DMapInfo.h42 uint64_t flags, SharedString name) in MapInfo()
77 std::atomic<SharedString*> build_id_;
98 inline SharedString& name() { return name_; } in name()
99 inline void set_name(SharedString& value) { name_ = value; } in set_name()
115 inline std::atomic<SharedString*>& build_id() { return GetElfFields().build_id_; } in build_id()
116 inline void set_build_id(SharedString* value) { GetElfFields().build_id_ = value; } in set_build_id()
137 bool GetFunctionName(uint64_t addr, SharedString* name, uint64_t* func_offset);
140 SharedString GetBuildID();
143 SharedString SetBuildID(std::string&& new_build_id);
167 SharedString name_;
DUnwinder.h49 SharedString function_name;
52 SharedString map_name;
DElfInterface.h82 virtual bool GetFunctionName(uint64_t addr, SharedString* name, uint64_t* offset) = 0;
206 bool GetFunctionName(uint64_t addr, SharedString* name, uint64_t* func_offset) override;
DElf.h56 bool GetFunctionName(uint64_t addr, SharedString* name, uint64_t* func_offset);
/system/unwinding/libunwindstack/tests/
DDexFilesTest.cpp179 SharedString method_name = "nothing"; in TEST_F()
188 SharedString method_name = "nothing"; in TEST_F()
203 SharedString method_name = "nothing"; in TEST_F()
216 SharedString method_name = "nothing"; in TEST_F()
232 SharedString method_name = "nothing"; in TEST_F()
246 SharedString method_name = "nothing"; in TEST_F()
265 SharedString method_name = "nothing"; in TEST_F()
297 SharedString method_name = "nothing"; in TEST_F()
324 SharedString method_name = "nothing"; in TEST_F()
349 SharedString method_name = "nothing"; in TEST_F()
[all …]
DElfFake.cpp36 bool ElfInterfaceFake::GetFunctionName(uint64_t, SharedString* name, uint64_t* offset) { in GetFunctionName()
41 *name = SharedString(std::move(entry.name)); in GetFunctionName()
DSymbolsTest.cpp71 SharedString name; in TYPED_TEST_P()
99 SharedString name; in TYPED_TEST_P()
145 SharedString name; in TYPED_TEST_P()
207 SharedString name; in TYPED_TEST_P()
242 SharedString name; in TYPED_TEST_P()
286 SharedString name; in TYPED_TEST_P()
333 SharedString name; in TYPED_TEST_P()
392 SharedString name; in TYPED_TEST_P()
DDexFileTest.cpp175 SharedString method; in TEST()
193 SharedString method; in TEST()
212 SharedString method; in TEST()
DMapInfoTest.cpp70 SharedString name; in TEST()
/system/unwinding/libunwindstack/
DMapInfo.cpp274 bool MapInfo::GetFunctionName(uint64_t addr, SharedString* name, uint64_t* func_offset) { in GetFunctionName()
324 SharedString MapInfo::GetBuildID() { in GetBuildID()
325 SharedString* id = build_id().load(); in GetBuildID()
354 SharedString MapInfo::SetBuildID(std::string&& new_build_id) { in SetBuildID()
355 std::unique_ptr<SharedString> new_build_id_ptr(new SharedString(std::move(new_build_id))); in SetBuildID()
356 SharedString* expected_id = nullptr; in SetBuildID()
DSymbols.h38 SharedString name;
47 bool GetName(uint64_t addr, Memory* elf_memory, SharedString* name, uint64_t* func_offset);
DDexFile.h41 SharedString name;
49 bool GetFunctionName(uint64_t dex_pc, SharedString* method_name, uint64_t* method_offset);
DSymbols.cpp126 bool Symbols::GetName(uint64_t addr, Memory* elf_memory, SharedString* name, in GetName()
160 info->name = SharedString(std::move(symbol_name)); in GetName()
203 template bool Symbols::GetName<Elf32_Sym>(uint64_t, Memory*, SharedString*, uint64_t*);
204 template bool Symbols::GetName<Elf64_Sym>(uint64_t, Memory*, SharedString*, uint64_t*);
DLocalUnwinder.cpp112 SharedString func_name; in Unwind()
DElfInterfaceArm.h80 bool GetFunctionName(uint64_t addr, SharedString* name, uint64_t* offset) override;
DElfInterfaceArm.cpp173 bool ElfInterfaceArm::GetFunctionName(uint64_t addr, SharedString* name, uint64_t* offset) { in GetFunctionName()
DGlobalDebugImpl.h171 bool GetFunctionName(Maps* maps, uint64_t pc, SharedString* name, uint64_t* offset) { in GetFunctionName()
184 SharedString name; in Find()
DDexFile.cpp129 bool DexFile::GetFunctionName(uint64_t dex_pc, SharedString* method_name, uint64_t* method_offset) { in GetFunctionName()
/system/unwinding/libunwindstack/tools/
Dunwind_symbols.cpp93 unwindstack::SharedString cur_name; in main()
112 unwindstack::SharedString cur_name; in main()
Dunwind_info.cpp53 SharedString name; in DumpArm()
93 SharedString name; in DumpDwarfSection()
/system/unwinding/libunwindstack/include/
DGlobalDebugInterface.h34 virtual bool GetFunctionName(Maps* maps, uint64_t pc, SharedString* name, uint64_t* offset) = 0;
/system/unwinding/libunwindstack/benchmarks/
DElfBenchmark.cpp115 unwindstack::SharedString* id = build_id_map_info->build_id(); in BM_elf_get_build_id_from_object()
133 unwindstack::SharedString* id = build_id_map_info->build_id(); in BM_elf_get_build_id_from_file()
DSymbolBenchmark.cpp53 unwindstack::SharedString name; in BenchmarkSymbolLookup()
/system/unwinding/libbacktrace/
DUnwindStackMap.cpp136 unwindstack::SharedString name; in GetFunctionName()

12