From 0a5bfde2254f95f840ddacfed5179edd6b8baa41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Tue, 28 Jul 2009 21:50:42 +0000 Subject: [PATCH] * Added stack traced to the Abort tracing output. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31870 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/system/kernel/cache/block_cache.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/system/kernel/cache/block_cache.cpp b/src/system/kernel/cache/block_cache.cpp index 4516e892ed..ec4691c73c 100644 --- a/src/system/kernel/cache/block_cache.cpp +++ b/src/system/kernel/cache/block_cache.cpp @@ -524,6 +524,12 @@ public: } } else fNumBlocks = 0; + +#if KTRACE_PRINTF_STACK_TRACE + fStackTrace = capture_tracing_stack_trace(KTRACE_PRINTF_STACK_TRACE, 1, + false); +#endif + Initialized(); } @@ -535,12 +541,22 @@ public: out.Print(" %Ld", fBlocks[i]); } +#if KTRACE_PRINTF_STACK_TRACE + virtual void DumpStackTrace(TraceOutput& out) + { + out.PrintStackTrace(fStackTrace); + } +#endif + private: block_cache* fCache; cache_transaction* fTransaction; int32 fID; off_t* fBlocks; int32 fNumBlocks; +#if KTRACE_PRINTF_STACK_TRACE + tracing_stack_trace* fStackTrace; +#endif }; } // namespace TransactionTracing