Lines Matching refs:Backtrace
87 Backtrace* backtrace;
92 typedef Backtrace* (*create_func_t)(pid_t, pid_t, BacktraceMap*);
95 static void VerifyLevelDump(Backtrace* backtrace, create_func_t create_func = nullptr,
97 static void VerifyMaxDump(Backtrace* backtrace, create_func_t create_func = nullptr,
123 static std::string DumpFrames(Backtrace* backtrace) { in DumpFrames()
180 static bool ReadyLevelBacktrace(Backtrace* backtrace) { in ReadyLevelBacktrace()
183 for (Backtrace::const_iterator it = backtrace->begin(); it != backtrace->end(); ++it) { in ReadyLevelBacktrace()
193 static void VerifyLevelDump(Backtrace* backtrace, create_func_t, map_create_func_t) { in VerifyLevelDump()
222 std::unique_ptr<Backtrace> backtrace( in VerifyLevelBacktrace()
223 Backtrace::Create(BACKTRACE_CURRENT_PROCESS, BACKTRACE_CURRENT_THREAD)); in VerifyLevelBacktrace()
231 static bool ReadyMaxBacktrace(Backtrace* backtrace) { in ReadyMaxBacktrace()
235 static void VerifyMaxDump(Backtrace* backtrace, create_func_t, map_create_func_t) { in VerifyMaxDump()
244 std::unique_ptr<Backtrace> backtrace( in VerifyMaxBacktrace()
245 Backtrace::Create(BACKTRACE_CURRENT_PROCESS, BACKTRACE_CURRENT_THREAD)); in VerifyMaxBacktrace()
275 std::unique_ptr<Backtrace> backtrace(Backtrace::Create(getpid(), getpid())); in TEST_F()
295 std::unique_ptr<Backtrace> backtrace(Backtrace::Create(getpid(), getpid())); in TEST_F()
328 static void VerifyIgnoreFrames(Backtrace* bt_all, Backtrace* bt_ign1, Backtrace* bt_ign2, in VerifyIgnoreFrames()
358 std::unique_ptr<Backtrace> all( in VerifyLevelIgnoreFrames()
359 Backtrace::Create(BACKTRACE_CURRENT_PROCESS, BACKTRACE_CURRENT_THREAD)); in VerifyLevelIgnoreFrames()
364 std::unique_ptr<Backtrace> ign1( in VerifyLevelIgnoreFrames()
365 Backtrace::Create(BACKTRACE_CURRENT_PROCESS, BACKTRACE_CURRENT_THREAD)); in VerifyLevelIgnoreFrames()
370 std::unique_ptr<Backtrace> ign2( in VerifyLevelIgnoreFrames()
371 Backtrace::Create(BACKTRACE_CURRENT_PROCESS, BACKTRACE_CURRENT_THREAD)); in VerifyLevelIgnoreFrames()
387 static void VerifyProcTest(pid_t pid, pid_t tid, bool (*ReadyFunc)(Backtrace*), in VerifyProcTest() argument
388 void (*VerifyFunc)(Backtrace*, create_func_t, map_create_func_t), in VerifyProcTest() argument
407 std::unique_ptr<Backtrace> backtrace(create_func(pid, tid, map.get())); in VerifyProcTest()
431 Backtrace::Create, BacktraceMap::Create); in TEST_F()
444 VerifyProcTest(pid, BACKTRACE_CURRENT_THREAD, ReadyMaxBacktrace, VerifyMaxDump, Backtrace::Create, in TEST_F()
452 static void VerifyProcessIgnoreFrames(Backtrace* bt_all, create_func_t create_func, in VerifyProcessIgnoreFrames()
455 std::unique_ptr<Backtrace> ign1(create_func(bt_all->Pid(), BACKTRACE_CURRENT_THREAD, map.get())); in VerifyProcessIgnoreFrames()
460 std::unique_ptr<Backtrace> ign2(create_func(bt_all->Pid(), BACKTRACE_CURRENT_THREAD, map.get())); in VerifyProcessIgnoreFrames()
475 Backtrace::Create, BacktraceMap::Create); in TEST_F()
538 VerifyProcTest(pid, *it, ReadyLevelBacktrace, VerifyLevelDump, Backtrace::Create, in TEST_F()
546 std::unique_ptr<Backtrace> backtrace(Backtrace::Create(getpid(), android::base::GetThreadId())); in VerifyLevelThread()
559 std::unique_ptr<Backtrace> backtrace(Backtrace::Create(getpid(), android::base::GetThreadId())); in VerifyMaxThread()
601 std::unique_ptr<Backtrace> backtrace(Backtrace::Create(getpid(), thread_data.tid)); in TEST_F()
641 std::unique_ptr<Backtrace> all(Backtrace::Create(getpid(), thread_data.tid)); in TEST_F()
646 std::unique_ptr<Backtrace> ign1(Backtrace::Create(getpid(), thread_data.tid)); in TEST_F()
651 std::unique_ptr<Backtrace> ign2(Backtrace::Create(getpid(), thread_data.tid)); in TEST_F()
683 std::unique_ptr<Backtrace> backtrace(Backtrace::Create(getpid(), thread_data.tid)); in TEST_F()
703 dump->backtrace = Backtrace::Create(getpid(), dump->thread.tid, dump->map); in ThreadDump()
780 Backtrace* back1 = Backtrace::Create(getpid(), BACKTRACE_CURRENT_THREAD, map1); in TEST_F()
787 Backtrace* back2 = Backtrace::Create(getpid(), BACKTRACE_CURRENT_THREAD, map2); in TEST_F()
794 Backtrace* back3 = Backtrace::Create(getpid(), BACKTRACE_CURRENT_THREAD, map3); in TEST_F()
822 std::unique_ptr<Backtrace> backtrace(Backtrace::Create(getpid(), BACKTRACE_CURRENT_THREAD)); in TEST_F()
1054 static void RunReadTest(Backtrace* backtrace, uint64_t read_addr) { in RunReadTest()
1102 std::unique_ptr<Backtrace> backtrace(Backtrace::Create(getpid(), thread_data.tid)); in TEST_F()
1158 std::unique_ptr<Backtrace> backtrace(Backtrace::Create(pid, pid)); in TEST_F()
1244 std::unique_ptr<Backtrace> backtrace(Backtrace::Create(BACKTRACE_CURRENT_PROCESS, in TEST_F()
1317 std::unique_ptr<Backtrace> backtrace(Backtrace::Create(pid, BACKTRACE_CURRENT_THREAD)); in TEST_F()
1359 static bool FindFuncFrameInBacktrace(Backtrace* backtrace, uint64_t test_func, size_t* frame_num) { in FindFuncFrameInBacktrace()
1368 for (Backtrace::const_iterator it = backtrace->begin(); it != backtrace->end(); ++it) { in FindFuncFrameInBacktrace()
1378 static void VerifyUnreadableElfFrame(Backtrace* backtrace, uint64_t test_func, size_t frame_num) { in VerifyUnreadableElfFrame()
1391 std::unique_ptr<Backtrace> backtrace(Backtrace::Create(BACKTRACE_CURRENT_PROCESS, in VerifyUnreadableElfBacktrace()
1468 std::unique_ptr<Backtrace> backtrace(Backtrace::Create(pid, BACKTRACE_CURRENT_THREAD)); in TEST_F()
1496 std::unique_ptr<Backtrace> backtrace( in TEST_F()
1497 Backtrace::Create(BACKTRACE_CURRENT_PROCESS, 99999999)); in TEST_F()
1504 std::unique_ptr<Backtrace> backtrace( in TEST_F()
1505 Backtrace::Create(BACKTRACE_CURRENT_PROCESS, BACKTRACE_CURRENT_THREAD)); in TEST_F()
1519 std::unique_ptr<Backtrace> backtrace(Backtrace::Create(pid, pid)); in TEST_F()
1595 static void UnwindFromDevice(Backtrace* backtrace, void* device_map) { in UnwindFromDevice()
1663 std::unique_ptr<Backtrace> backtrace( in TEST_F()
1664 Backtrace::Create(BACKTRACE_CURRENT_PROCESS, BACKTRACE_CURRENT_THREAD)); in TEST_F()
1681 std::unique_ptr<Backtrace> backtrace(Backtrace::Create(pid, pid)); in TEST_F()
1750 std::unique_ptr<Backtrace> backtrace(create_func(pid, pid, map.get())); in UnwindThroughSignal()
1766 Backtrace::const_iterator frame_iter; in UnwindThroughSignal()
1769 std::unique_ptr<Backtrace> backtrace; in UnwindThroughSignal()
1836 UnwindThroughSignal(false, Backtrace::Create, BacktraceMap::Create); in TEST_F()
1840 UnwindThroughSignal(true, Backtrace::Create, BacktraceMap::Create); in TEST_F()
1845 std::unique_ptr<Backtrace> backtrace( in TestFrameSkipNumbering()
1853 TestFrameSkipNumbering(Backtrace::Create, BacktraceMap::Create); in TEST_F()
1865 Backtrace* backtrace = Backtrace::Create(pid, tid, map.get()); in CheckForLeak()