* 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:
@@ -18,6 +18,11 @@ struct kernel_args;
|
||||
struct thread;
|
||||
|
||||
|
||||
// arch_debug_get_stack_trace() flags
|
||||
#define STACK_TRACE_KERNEL 0x01
|
||||
#define STACK_TRACE_USER 0x02
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
@@ -26,7 +31,7 @@ status_t arch_debug_init(kernel_args *args);
|
||||
void arch_debug_stack_trace(void);
|
||||
void *arch_debug_get_caller(void);
|
||||
int32 arch_debug_get_stack_trace(addr_t* returnAddresses, int32 maxCount,
|
||||
int32 skipIframes, int32 skipFrames, bool userOnly);
|
||||
int32 skipIframes, int32 skipFrames, uint32 flags);
|
||||
void* arch_debug_get_interrupt_pc(bool* _isSyscall);
|
||||
bool arch_debug_contains_call(struct thread *thread, const char *symbol,
|
||||
addr_t start, addr_t end);
|
||||
|
||||
@@ -208,7 +208,7 @@ uint8* alloc_tracing_buffer_memcpy(const void* source, size_t size, bool user);
|
||||
char* alloc_tracing_buffer_strcpy(const char* source, size_t maxSize,
|
||||
bool user);
|
||||
struct tracing_stack_trace* capture_tracing_stack_trace(int32 maxCount,
|
||||
int32 skipFrames, bool userOnly);
|
||||
int32 skipFrames, bool kernelOnly);
|
||||
void lock_tracing_buffer();
|
||||
void unlock_tracing_buffer();
|
||||
status_t tracing_init(void);
|
||||
|
||||
Reference in New Issue
Block a user