* arch_debug_get_stack_trace():
- Replaced the "userOnly" parameter by a "flags" parameter, that allows to
specify kernel and userland stack traces individually.
- x86, m68k: Don't always skip the first frame as that prevents the caller
from being able to record its own address.
* capture_tracing_stack_trace(): Replaced the "userOnly" parameter by
"kernelOnly", since one is probably always interested in the kernel stack
trace, but might not want the userland stack trace.
* Added stack trace support for VM cache kernel tracing.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34742 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1529,7 +1529,7 @@ alloc_tracing_buffer_strcpy(const char* source, size_t maxSize, bool user)
|
||||
|
||||
|
||||
tracing_stack_trace*
|
||||
capture_tracing_stack_trace(int32 maxCount, int32 skipFrames, bool userOnly)
|
||||
capture_tracing_stack_trace(int32 maxCount, int32 skipFrames, bool kernelOnly)
|
||||
{
|
||||
#if ENABLE_TRACING
|
||||
// TODO: page_fault_exception() doesn't allow us to gracefully handle
|
||||
@@ -1544,7 +1544,7 @@ capture_tracing_stack_trace(int32 maxCount, int32 skipFrames, bool userOnly)
|
||||
if (stackTrace != NULL) {
|
||||
stackTrace->depth = arch_debug_get_stack_trace(
|
||||
stackTrace->return_addresses, maxCount, 0, skipFrames + 1,
|
||||
userOnly);
|
||||
STACK_TRACE_KERNEL | (kernelOnly ? 0 : STACK_TRACE_KERNEL));
|
||||
}
|
||||
|
||||
return stackTrace;
|
||||
|
||||
Reference in New Issue
Block a user