* 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:
Ingo Weinhold
2009-12-22 15:15:07 +00:00
parent 42f2c2d099
commit a38f850360
14 changed files with 60 additions and 108 deletions
+1 -1
View File
@@ -1348,7 +1348,7 @@ SystemProfiler::_DoSample()
// get the samples
int32 count = arch_debug_get_stack_trace(cpuData.buffer, fStackDepth, 1,
0, false);
0, STACK_TRACE_KERNEL | STACK_TRACE_USER);
InterruptsSpinLocker locker(fLock);