bonefish + zooey:
* added tracing of stack traces to userspace entries git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28122 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
ab8b37cf9f
commit
bc6a5f8697
@ -430,6 +430,10 @@ class UserTraceEntry : public AbstractTraceEntry {
|
||||
{
|
||||
fMessage = alloc_tracing_buffer_strcpy(message, 256, true);
|
||||
|
||||
#if KTRACE_PRINTF_STACK_TRACE
|
||||
fStackTrace = capture_tracing_stack_trace(
|
||||
KTRACE_PRINTF_STACK_TRACE, 1, false);
|
||||
#endif
|
||||
Initialized();
|
||||
}
|
||||
|
||||
@ -438,8 +442,18 @@ class UserTraceEntry : public AbstractTraceEntry {
|
||||
out.Print("user: %s", fMessage);
|
||||
}
|
||||
|
||||
#if KTRACE_PRINTF_STACK_TRACE
|
||||
virtual void DumpStackTrace(TraceOutput& out)
|
||||
{
|
||||
out.PrintStackTrace(fStackTrace);
|
||||
}
|
||||
#endif
|
||||
|
||||
private:
|
||||
char* fMessage;
|
||||
#if KTRACE_PRINTF_STACK_TRACE
|
||||
tracing_stack_trace* fStackTrace;
|
||||
#endif
|
||||
};
|
||||
|
||||
#endif // ENABLE_TRACING
|
||||
|
Loading…
Reference in New Issue
Block a user