* Added stack traced to the Abort tracing output.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31870 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
61efcc328d
commit
0a5bfde225
16
src/system/kernel/cache/block_cache.cpp
vendored
16
src/system/kernel/cache/block_cache.cpp
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user