* 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:
+16
@@ -524,6 +524,12 @@ public:
|
|||||||
}
|
}
|
||||||
} else
|
} else
|
||||||
fNumBlocks = 0;
|
fNumBlocks = 0;
|
||||||
|
|
||||||
|
#if KTRACE_PRINTF_STACK_TRACE
|
||||||
|
fStackTrace = capture_tracing_stack_trace(KTRACE_PRINTF_STACK_TRACE, 1,
|
||||||
|
false);
|
||||||
|
#endif
|
||||||
|
|
||||||
Initialized();
|
Initialized();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -535,12 +541,22 @@ public:
|
|||||||
out.Print(" %Ld", fBlocks[i]);
|
out.Print(" %Ld", fBlocks[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if KTRACE_PRINTF_STACK_TRACE
|
||||||
|
virtual void DumpStackTrace(TraceOutput& out)
|
||||||
|
{
|
||||||
|
out.PrintStackTrace(fStackTrace);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
private:
|
private:
|
||||||
block_cache* fCache;
|
block_cache* fCache;
|
||||||
cache_transaction* fTransaction;
|
cache_transaction* fTransaction;
|
||||||
int32 fID;
|
int32 fID;
|
||||||
off_t* fBlocks;
|
off_t* fBlocks;
|
||||||
int32 fNumBlocks;
|
int32 fNumBlocks;
|
||||||
|
#if KTRACE_PRINTF_STACK_TRACE
|
||||||
|
tracing_stack_trace* fStackTrace;
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace TransactionTracing
|
} // namespace TransactionTracing
|
||||||
|
|||||||
Reference in New Issue
Block a user