| Asterisk - The Open Source Telephony Project GIT-master-27fb039
    | 
Asterisk backtrace generation. More...
#include "asterisk.h"#include "asterisk/backtrace.h"#include "asterisk/vector.h"#include <execinfo.h>#include <pthread.h>
Go to the source code of this file.
| Macros | |
| #define | _ASTERISK_LOCK_H | 
| #define | ast_calloc(n, x) calloc(n, x) | 
| #define | ast_free(x) free(x) | 
| #define | ast_malloc(x) malloc(x) | 
| #define | ASTMM_LIBC ASTMM_IGNORE | 
| #define | S_OR(a, b) (a && a[0] != '\0') ? a : b | 
| Functions | |
| struct ast_bt * | __ast_bt_create (void) | 
| void * | __ast_bt_destroy (struct ast_bt *bt) | 
| void | __ast_bt_free_symbols (struct ast_vector_string *symbols) | 
| int | __ast_bt_get_addresses (struct ast_bt *bt) | 
| struct ast_vector_string * | __ast_bt_get_symbols (void **addresses, size_t num_frames) | 
Asterisk backtrace generation.
This file provides backtrace generation utilities
Definition in file backtrace.c.
| #define _ASTERISK_LOCK_H | 
Definition at line 33 of file backtrace.c.
| #define ast_calloc | ( | n, | |
| x | |||
| ) | calloc(n, x) | 
Definition at line 52 of file backtrace.c.
| #define ast_free | ( | x | ) | free(x) | 
Definition at line 51 of file backtrace.c.
| #define ast_malloc | ( | x | ) | malloc(x) | 
Definition at line 53 of file backtrace.c.
| #define ASTMM_LIBC ASTMM_IGNORE | 
Definition at line 39 of file backtrace.c.
| struct ast_bt * __ast_bt_create | ( | void | ) | 
Definition at line 78 of file backtrace.c.
References ast_bt::alloced, ast_bt_get_addresses, and NULL.
| void * __ast_bt_destroy | ( | struct ast_bt * | bt | ) | 
Definition at line 98 of file backtrace.c.
References ast_bt::alloced, free(), and NULL.
| void __ast_bt_free_symbols | ( | struct ast_vector_string * | symbols | ) | 
Definition at line 308 of file backtrace.c.
References AST_VECTOR_CALLBACK_VOID, AST_VECTOR_PTR_FREE, and free().
| int __ast_bt_get_addresses | ( | struct ast_bt * | bt | ) | 
Definition at line 92 of file backtrace.c.
References ast_bt::addresses, AST_MAX_BT_FRAMES, and ast_bt::num_frames.
| struct ast_vector_string * __ast_bt_get_symbols | ( | void ** | addresses, | 
| size_t | num_frames | ||
| ) | 
Definition at line 281 of file backtrace.c.
References AST_VECTOR_APPEND, AST_VECTOR_INIT, free(), malloc(), and NULL.