diff options
author | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-05-23 22:35:50 +0000 |
---|---|---|
committer | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-05-23 22:35:50 +0000 |
commit | c0ca2a427bbbe205b9fd8d7a2c8b119cb56c6c80 (patch) | |
tree | c8d0825b33b156cc9ea02bc81363305f700e8393 /utils/hashtest2.c | |
parent | 972905a6358c269996d5d7abaa89a4f2d5d350fa (diff) |
A new feature thanks to the fine folks at Switchvox!
If a deadlock is detected, then the typical lock information will be
printed along with a backtrace of the stack for the offending threads.
Use of this requires compiling with DETECT_DEADLOCKS and having glibc
installed.
Furthermore, issuing the "core show locks" CLI command will print the
normal lock information as well as a backtraces for each lock. This
requires that DEBUG_THREADS is enabled and that glibc is installed.
All the backtrace features may be disabled by running the configure
script with --without-execinfo as an argument
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@118173 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'utils/hashtest2.c')
-rw-r--r-- | utils/hashtest2.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/utils/hashtest2.c b/utils/hashtest2.c index 2865822ab..27ed30722 100644 --- a/utils/hashtest2.c +++ b/utils/hashtest2.c @@ -378,3 +378,20 @@ void ast_register_thread(char *name) void ast_unregister_thread(void *id) { } + +#ifdef HAVE_BKTR +struct ast_bt* ast_bt_create(void) +{ + return NULL; +} + +int ast_bt_get_addresses(struct ast_bt *bt) +{ + return -1; +} + +void *ast_bt_destroy(struct ast_bt *bt) +{ + return NULL; +} +#endif |