diff options
Diffstat (limited to 'src/utils.h')
| -rw-r--r-- | src/utils.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/utils.h b/src/utils.h index a26358a3ab..e1c00accf0 100644 --- a/src/utils.h +++ b/src/utils.h @@ -280,6 +280,12 @@ std::string GetSchedulerGroupName(pid_t tid); // implementation-defined limit. void SetThreadName(const char* thread_name); +// Dumps the native stack for thread 'tid' to 'os'. +void DumpNativeStack(std::ostream& os, pid_t tid, const char* prefix = "", bool include_count = true); + +// Dumps the kernel stack for thread 'tid' to 'os'. Note that this is only available on linux-x86. +void DumpKernelStack(std::ostream& os, pid_t tid, const char* prefix = "", bool include_count = true); + // Find $ANDROID_ROOT, /system, or abort const char* GetAndroidRoot(); |