/system/core/debuggerd/ |
elf_utils.h | 23 class Backtrace; 25 bool elf_get_build_id(Backtrace*, uintptr_t, std::string*);
|
machine.h | 22 #include <backtrace/Backtrace.h> 26 void dump_memory_and_code(log_t* log, Backtrace* backtrace);
|
backtrace.h | 27 class Backtrace; 30 // Dumps a backtrace using a format similar to what Dalvik uses so that the result 35 /* Dumps the backtrace in the backtrace data structure to the log. */ 36 void dump_backtrace_to_log(Backtrace* backtrace, log_t* log, const char* prefix);
|
utility.h | 26 #include <backtrace/Backtrace.h> 69 BACKTRACE, 82 void dump_memory(log_t* log, Backtrace* backtrace, uintptr_t addr, const char* fmt, ...);
|
elf_utils.cpp | 26 #include <backtrace/Backtrace.h> 36 Backtrace* backtrace, uintptr_t base_addr, uint8_t* e_ident, std::string* build_id) { 42 if (backtrace->Read(base_addr + EI_NIDENT, reinterpret_cast<uint8_t*>(&hdr) + EI_NIDENT, 49 if (backtrace->Read(base_addr + hdr.e_phoff + i * hdr.e_phentsize, 59 if (backtrace->Read(addr, reinterpret_cast<uint8_t*>(&nhdr), sizeof(nhdr)) != sizeof(nhdr)) { 72 if (backtrace->Read(addr, build_id_data, nhdr.n_descsz) != nhdr.n_descsz) { 98 bool elf_get_build_id(Backtrace* backtrace, uintptr_t addr, std::string* build_id) [all...] |
backtrace.cpp | 34 #include <backtrace/Backtrace.h> 38 #include "backtrace.h" 59 _LOG(log, logtype::BACKTRACE, "\n\n----- pid %d at %s -----\n", pid, timestr); 62 _LOG(log, logtype::BACKTRACE, "Cmd line: %s\n", procname); 64 _LOG(log, logtype::BACKTRACE, "ABI: '%s'\n", ABI_STRING); 68 _LOG(log, logtype::BACKTRACE, "\n----- end %d -----\n", pid); 89 _LOG(log, logtype::BACKTRACE, "\n\"%s\" sysTid=%d\n", threadname ? threadname : "<unknown>", tid); 91 std::unique_ptr<Backtrace> backtrace(Backtrace::Create(pid, tid, map)) [all...] |
/external/libchrome/base/trace_event/ |
heap_profiler_allocation_context.h | 22 // The backtrace in the allocation context is a snapshot of the stack. For now, 25 // case, |Backtrace| and |AllocationContextTracker::GetContextSnapshot| might 28 // The number of stack frames stored in the backtrace is a trade off between 40 struct BASE_EXPORT Backtrace { 41 // Unused backtrace frames are filled with nullptr frames. If the stack is 48 bool BASE_EXPORT operator==(const Backtrace& lhs, const Backtrace& rhs); 56 // An allocation context with empty backtrace and unknown type. 59 Backtrace backtrace; member in struct:base::trace_event::AllocationContext [all...] |
heap_profiler_allocation_context.cc | 22 for (size_t i = 0; i < arraysize(ctx.backtrace.frames); i++) 23 ctx.backtrace.frames[i] = nullptr; 30 bool operator==(const Backtrace& lhs, const Backtrace& rhs) { 37 return (lhs.backtrace == rhs.backtrace) && (lhs.type_name == rhs.type_name); 45 using base::trace_event::Backtrace; 47 size_t hash<Backtrace>::operator()(const Backtrace& backtrace) const [all...] |
/system/core/libbacktrace/ |
BacktracePtrace.h | 23 #include <backtrace/Backtrace.h> 27 class BacktracePtrace : public Backtrace { 29 BacktracePtrace(pid_t pid, pid_t tid, BacktraceMap* map) : Backtrace(pid, tid, map) {}
|
Backtrace.cpp | 27 #include <backtrace/Backtrace.h> 28 #include <backtrace/BacktraceMap.h> 38 // Backtrace functions. 40 Backtrace::Backtrace(pid_t pid, pid_t tid, BacktraceMap* map) 48 Backtrace::~Backtrace() { 55 std::string Backtrace::GetFunctionName(uintptr_t pc, uintptr_t* offset) { 60 bool Backtrace::VerifyReadWordArgs(uintptr_t ptr, word_t* out_value) [all...] |
BacktraceCurrent.h | 24 #include <backtrace/Backtrace.h> 38 class BacktraceCurrent : public Backtrace { 40 BacktraceCurrent(pid_t pid, pid_t tid, BacktraceMap* map) : Backtrace(pid, tid, map) {}
|
backtrace_test.cpp | 42 #include <backtrace/Backtrace.h> 43 #include <backtrace/BacktraceMap.h> 76 Backtrace* backtrace; member in struct:dump_thread_t 94 std::string DumpFrames(Backtrace* backtrace) { 95 if (backtrace->NumFrames() == 0) { 100 for (size_t i = 0; i < backtrace->NumFrames(); i++) { 101 frame += " " + backtrace->FormatFrameData(i) + '\n' 1429 Backtrace* backtrace = Backtrace::Create(pid, tid); local 1440 Backtrace* backtrace = Backtrace::Create(pid, tid); local [all...] |
UnwindCurrent.h | 26 #include <backtrace/Backtrace.h> 27 #include <backtrace/BacktraceMap.h>
|
BacktraceOffline.h | 28 #include <backtrace/Backtrace.h> 60 class BacktraceOffline : public Backtrace { 64 : Backtrace(pid, tid, map),
|
/system/core/debuggerd/test/ |
elf_fake.cpp | 21 class Backtrace; 29 bool elf_get_build_id(Backtrace*, uintptr_t, std::string* build_id) {
|
BacktraceMock.h | 28 #include <backtrace/Backtrace.h> 29 #include <backtrace/BacktraceMap.h> 42 class BacktraceMock : public Backtrace { 44 BacktraceMock(BacktraceMapMock* map) : Backtrace(0, 0, map) {
|
/system/core/libmemunreachable/ |
Leak.h | 25 // Custom std::hash specialization so that Leak::Backtrace can be used 30 struct hash<Leak::Backtrace> { 31 std::size_t operator()(const Leak::Backtrace& key) const { 52 static bool operator==(const Leak::Backtrace& lhs, const Leak::Backtrace& rhs) {
|
/external/valgrind/none/tests/ |
vgprintf.stderr.exp | 4 Backtrace line one
|
/art/test/137-cfi/ |
cfi.cc | 28 #include <backtrace/Backtrace.h> 64 static bool CheckStack(Backtrace* bt, const std::vector<std::string>& seq) { 68 for (Backtrace::const_iterator it = bt->begin(); it != bt->end(); ++it) { 80 printf("Cannot find %s in backtrace:\n", seq[cur_search_index].c_str()); 81 for (Backtrace::const_iterator it = bt->begin(); it != bt->end(); ++it) { 119 std::unique_ptr<Backtrace> bt(Backtrace::Create(BACKTRACE_CURRENT_PROCESS, GetTid())); 222 std::unique_ptr<Backtrace> bt(Backtrace::Create(pid, BACKTRACE_CURRENT_THREAD)) [all...] |
/system/core/libutils/ |
CallStack.cpp | 26 #include <backtrace/Backtrace.h> 44 std::unique_ptr<Backtrace> backtrace(Backtrace::Create(BACKTRACE_CURRENT_PROCESS, tid)); 45 if (!backtrace->Unwind(ignoreDepth)) { 48 for (size_t i = 0; i < backtrace->NumFrames(); i++) { 49 mFrameLines.push_back(String8(backtrace->FormatFrameData(i).c_str()));
|
/system/core/include/backtrace/ |
Backtrace.h | 26 #include <backtrace/backtrace_constants.h> 27 #include <backtrace/BacktraceMap.h> 79 class Backtrace { 81 // Create the correct Backtrace object based on what is to be unwound. 82 // If pid < 0 or equals the current pid, then the Backtrace object 84 // If pid < 0 or equals the current pid and tid >= 0, then the Backtrace 86 // If pid >= 0 and tid < 0, then the Backtrace object corresponds to a 91 static Backtrace* Create(pid_t pid, pid_t tid, BacktraceMap* map = NULL); 93 // Create an offline Backtrace object that can be used to do an unwind without a process 96 // that subsequent calls to create offline Backtrace objects will continue to use the sam [all...] |
/system/core/debuggerd/x86/ |
machine.cpp | 24 #include <backtrace/Backtrace.h> 30 void dump_memory_and_code(log_t* log, Backtrace* backtrace) { 32 if (ptrace(PTRACE_GETREGS, backtrace->Tid(), 0, &r) == -1) { 37 dump_memory(log, backtrace, static_cast<uintptr_t>(r.eax), "memory near eax:"); 38 dump_memory(log, backtrace, static_cast<uintptr_t>(r.ebx), "memory near ebx:"); 39 dump_memory(log, backtrace, static_cast<uintptr_t>(r.ecx), "memory near ecx:"); 40 dump_memory(log, backtrace, static_cast<uintptr_t>(r.edx), "memory near edx:"); 41 dump_memory(log, backtrace, static_cast<uintptr_t>(r.esi), "memory near esi:") [all...] |
/system/core/debuggerd/x86_64/ |
machine.cpp | 25 #include <backtrace/Backtrace.h> 31 void dump_memory_and_code(log_t* log, Backtrace* backtrace) { 33 if (ptrace(PTRACE_GETREGS, backtrace->Tid(), 0, &r) == -1) { 38 dump_memory(log, backtrace, static_cast<uintptr_t>(r.rax), "memory near rax:"); 39 dump_memory(log, backtrace, static_cast<uintptr_t>(r.rbx), "memory near rbx:"); 40 dump_memory(log, backtrace, static_cast<uintptr_t>(r.rcx), "memory near rcx:"); 41 dump_memory(log, backtrace, static_cast<uintptr_t>(r.rdx), "memory near rdx:"); 42 dump_memory(log, backtrace, static_cast<uintptr_t>(r.rsi), "memory near rsi:") [all...] |
/system/core/debuggerd/arm/ |
machine.cpp | 25 #include <backtrace/Backtrace.h> 31 void dump_memory_and_code(log_t* log, Backtrace* backtrace) { 33 if (ptrace(PTRACE_GETREGS, backtrace->Tid(), 0, ®s)) { 41 dump_memory(log, backtrace, regs.uregs[reg], "memory near %.2s:", ®_names[reg * 2]); 44 dump_memory(log, backtrace, static_cast<uintptr_t>(regs.ARM_pc), "code around pc:"); 47 dump_memory(log, backtrace, static_cast<uintptr_t>(regs.ARM_lr), "code around lr:");
|
/system/core/debuggerd/arm64/ |
machine.cpp | 27 #include <backtrace/Backtrace.h> 33 void dump_memory_and_code(log_t* log, Backtrace* backtrace) { 39 if (ptrace(PTRACE_GETREGSET, backtrace->Tid(), reinterpret_cast<void*>(NT_PRSTATUS), &io) == -1) { 45 dump_memory(log, backtrace, regs.regs[reg], "memory near x%d:", reg); 48 dump_memory(log, backtrace, static_cast<uintptr_t>(regs.pc), "code around pc:"); 51 dump_memory(log, backtrace, static_cast<uintptr_t>(regs.sp), "code around sp:");
|