Codename Pineapple

Home page | Mailing list | Docs

Last updated: Sat Feb 3 05:01:01 2007

Asterisk developer's documentation :: Codename Pineapple


astmm.h File Reference


Detailed Description

Asterisk memory usage debugging.

Definition in file astmm.h.

#include "asterisk.h"
#include <sys/types.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <stdarg.h>

Include dependency graph for astmm.h:

Go to the source code of this file.

Defines

#define __AST_DEBUG_MALLOC
#define asprintf(a, b, c...)   __ast_asprintf(__FILE__, __LINE__, __PRETTY_FUNCTION__, a, b, c)
#define ast_calloc_cache(a, b)   __ast_calloc_cache(a,b,__FILE__, __LINE__, __PRETTY_FUNCTION__)
#define calloc(a, b)   __ast_calloc(a,b,__FILE__, __LINE__, __PRETTY_FUNCTION__)
#define free(a)   __ast_free(a,__FILE__, __LINE__, __PRETTY_FUNCTION__)
#define malloc(a)   __ast_malloc(a,__FILE__, __LINE__, __PRETTY_FUNCTION__)
#define realloc(a, b)   __ast_realloc(a,b,__FILE__, __LINE__, __PRETTY_FUNCTION__)
#define strdup(a)   __ast_strdup(a,__FILE__, __LINE__, __PRETTY_FUNCTION__)
#define strndup(a, b)   __ast_strndup(a,b,__FILE__, __LINE__, __PRETTY_FUNCTION__)
#define vasprintf(a, b, c)   __ast_vasprintf(a,b,c,__FILE__, __LINE__, __PRETTY_FUNCTION__)

Functions

int __ast_asprintf (const char *file, int lineno, const char *func, char **strp, const char *format,...)
void * __ast_calloc (size_t nmemb, size_t size, const char *file, int lineno, const char *func)
void * __ast_calloc_cache (size_t nmemb, size_t size, const char *file, int lineno, const char *func)
void __ast_free (void *ptr, const char *file, int lineno, const char *func)
void * __ast_malloc (size_t size, const char *file, int lineno, const char *func)
void __ast_mm_init (void)
void * __ast_realloc (void *ptr, size_t size, const char *file, int lineno, const char *func)
char * __ast_strdup (const char *s, const char *file, int lineno, const char *func)
char * __ast_strndup (const char *s, size_t n, const char *file, int lineno, const char *func)
int __ast_vasprintf (char **strp, const char *format, va_list ap, const char *file, int lineno, const char *func)


Define Documentation

#define __AST_DEBUG_MALLOC
 

Definition at line 26 of file astmm.h.

#define asprintf a,
b,
c...   )     __ast_asprintf(__FILE__, __LINE__, __PRETTY_FUNCTION__, a, b, c)
 

Definition at line 81 of file astmm.h.

Referenced by aji_act_hook(), aji_create_client(), ast_pthread_create_stack(), build_filename(), build_peer(), complete_context_remove_extension(), features_new(), and zt_new().

#define ast_calloc_cache a,
 )     __ast_calloc_cache(a,b,__FILE__, __LINE__, __PRETTY_FUNCTION__)
 

Definition at line 63 of file astmm.h.

Referenced by ast_frame_header_new(), ast_frdup(), and iax_frame_new().

#define calloc a,
 )     __ast_calloc(a,b,__FILE__, __LINE__, __PRETTY_FUNCTION__)
 

Definition at line 60 of file astmm.h.

Referenced by _parse(), build_alias(), build_peer(), build_user(), check_macro_returns(), getSearchPath(), misdn_cfg_init(), new_exten(), new_prio(), and yyparse().

#define free  )     __ast_free(a,__FILE__, __LINE__, __PRETTY_FUNCTION__)
 

Definition at line 69 of file astmm.h.

Referenced by __ast_cli_generator(), __ast_cli_unregister(), __ast_http_load(), __ast_module_user_hangup_all(), __ast_module_user_remove(), __ast_pbx_run(), __login_exec(), __oh323_destroy(), __sip_ack(), __sip_destroy(), __unload_module(), _free_general_cfg(), _free_msn_list(), agent_cleanup(), agent_hangup(), agi_debug_cli(), aji_act_hook(), aji_buddy_destroy(), aji_client_destroy(), aji_create_client(), aji_handle_message(), aji_handle_presence(), answer_exec_disable(), append_history_va(), ast_append_ha(), ast_autoservice_start(), ast_autoservice_stop(), ast_backtrace(), ast_bridge_call(), ast_bridge_call_thread(), ast_category_delete(), ast_category_destroy(), ast_cdr_free(), ast_cdr_unregister(), ast_channel_alloc(), ast_channel_datastore_free(), ast_channel_free(), ast_channel_start_silence_generator(), ast_channel_stop_silence_generator(), ast_channel_unregister(), ast_channel_whisper_stop(), ast_cli_command(), ast_cli_display_match_list(), ast_cli_generatornummatches(), ast_closestream(), ast_config_destroy(), ast_context_add_include2(), ast_context_add_switch2(), ast_context_remove_ignorepat2(), ast_context_remove_include2(), ast_context_remove_switch2(), ast_db_freetree(), ast_devstate_del(), ast_devstate_prov_del(), ast_dnsmgr_release(), ast_dsp_free(), ast_enum_init(), ast_expr(), ast_filehelper(), ast_format_unregister(), ast_frame_free(), ast_free_ha(), ast_frisolate(), ast_io_remove(), ast_load_realtime(), ast_log(), ast_manager_unregister(), ast_merge_contexts_and_delete(), ast_module_unregister(), ast_moh_free_class(), ast_monitor_change_fname(), ast_monitor_start(), ast_monitor_stop(), ast_netsock_bindaddr(), ast_netsock_destroy(), ast_odbc_request_obj(), ast_pbx_outgoing_app(), ast_pbx_outgoing_exten(), ast_pbx_run_app(), ast_playtones_start(), ast_read_textfile(), ast_readfile(), ast_recvchar(), ast_register_indication(), ast_remove_hint(), ast_rtcp_new(), ast_rtp_destroy(), ast_rtp_new_with_bindaddr(), ast_set_callerid(), ast_smdi_interface_destroy(), ast_smdi_md_message_destroy(), ast_smdi_mwi_message_destroy(), ast_smoother_free(), ast_speech_destroy(), ast_speech_new(), ast_speech_results_free(), ast_udptl_destroy(), ast_unregister_application(), ast_unregister_feature(), ast_unregister_features(), ast_unregister_file_version(), ast_unregister_indication(), ast_unregister_thread(), ast_unregister_verbose(), ast_var_delete(), ast_variables_destroy(), ast_verbose(), ast_writefile(), ast_yyerror(), ast_yyfree(), async_wait(), build_device(), build_gateway(), build_peer(), build_user(), callerid_free(), check_pval_item(), cleanup_call_details(), clear_config_maps(), clear_realm_authentication(), clear_sip_domains(), cli_complete(), complete_context_add_ignorepat(), complete_context_add_include(), complete_context_remove_extension(), complete_context_remove_include(), console_transfer(), copy_request(), crypto_load(), delete_devices(), delete_users(), destroy(), destroy_exten(), destroy_extensions(), destroy_firmware(), destroy_gateway(), destroy_map(), destroy_packet(), destroy_packets(), destroy_peer(), destroy_permissions(), destroy_pval_item(), destroy_session(), destroy_trans(), destroy_user(), destroy_zt_pvt(), dlcompat_cleanup(), dlerrorfree(), dlsym(), dlsymIntern(), do_batch_backend_process(), do_devstate_changes(), do_monitor(), do_parking_thread(), dp_lookup_thread(), dummy_start(), dump_cmd_queues(), dump_queue(), dundi_answer_entity(), dundi_answer_query(), dundi_flush(), dundi_precache_thread(), dundi_query_thread(), dundi_send(), external_rtp_create(), fast_originate(), features_hangup(), features_new(), find_and_retrans(), find_cache(), find_gtalk(), find_idle_thread(), fix_complete_args(), fixed_jb_destroy(), frame_cache_cleanup(), free_cid(), free_context(), free_old_route(), free_outgoing(), free_robin_list_r(), free_session(), free_value(), free_zone(), getSearchPath(), gtalk_alloc(), gtalk_free_candidates(), gtalk_free_pvt(), gtalk_member_destroy(), gtalk_request(), handle_add_indication(), handle_commandcomplete(), handle_commandmatchesarray(), handle_context_add_extension(), handle_context_remove_extension(), handle_init_event(), handle_message(), handle_recvtext(), handle_response(), httpd_helper_thread(), iax2_destroy(), iax2_register(), iax2_setoption(), iax_frame_free(), iax_park(), iax_park_thread(), iax_parse_ies(), iax_provision_reload(), ind_load_module(), init_logger_chain(), init_manager(), io_context_create(), io_context_destroy(), jb_destroy(), jingle_alloc(), jingle_free_candidates(), jingle_free_pvt(), jingle_member_destroy(), jingle_request(), linear_alloc(), linear_release(), load_moh_classes(), loadModule(), local_alloc(), local_ast_moh_cleanup(), local_hangup(), local_queue_frame(), logger_thread(), make_file_from_fd(), make_logchannel(), mgcpsock_read(), misdn_cfg_destroy(), misdn_hangup(), misdn_jb_destroy(), mkif(), moh_register(), moh_release(), moh_scan_files(), mohalloc(), nbs_alloc(), nbs_destroy(), new_iax(), newpvt(), oh323_alloc(), oh323_answer(), oh323_destroy_alias(), oh323_destroy_peer(), oh323_destroy_user(), oh323_digit_begin(), oh323_digit_end(), oh323_hangup(), oh323_indicate(), park_exec(), parse_copy(), pbx_destroy(), pgsql_reconnect(), playtones_release(), process_precache(), process_sip_queue(), purge_events(), read_agent_config(), read_config(), release_chan(), release_jb_frame(), reload_module(), retrans_pkt(), sched_context_destroy(), sched_release(), send_callerid(), send_request(), server_root(), sip_alloc(), sip_destroy_device(), sip_destroy_peer(), sip_destroy_user(), sip_park(), sip_park_thread(), sip_register(), sip_registry_destroy(), siprequest_alloc(), siprequest_free(), skinny_req_parse(), socket_process(), split_ec(), spy_cleanup(), ss_thread(), start_network_thread(), static_callback(), tdd_feed(), tdd_free(), temp_pvt_cleanup(), thread_free(), timing_read(), to_integer(), tonepair_release(), unload_module(), yyparse(), zt_call(), zt_callwait(), zt_handle_event(), zt_hangup(), zt_new(), and zt_read().

#define malloc  )     __ast_malloc(a,__FILE__, __LINE__, __PRETTY_FUNCTION__)
 

Definition at line 66 of file astmm.h.

Referenced by _parse(), aji_create_buddy(), aji_create_client(), aji_find_version(), aji_handle_presence(), allocStatus(), ast_say_number_full_pl(), ast_yyalloc(), build_gateway(), dlsym(), dlsymIntern(), dolock(), dyld_error_str(), external_rtp_create(), features_alloc(), iax_process_template(), init_chan_list(), load_module(), make_integer(), make_str(), mgcp_postrequest(), misdn_jb_init(), mkif(), nbs_alloc(), oh323_alloc(), scan_service(), searchList(), send_request(), strndup(), tdd_feed(), tdd_new(), to_string(), transmit_response(), and vasprintf().

#define realloc a,
 )     __ast_realloc(a,b,__FILE__, __LINE__, __PRETTY_FUNCTION__)
 

Definition at line 72 of file astmm.h.

Referenced by ast_yyrealloc().

#define strdup  )     __ast_strdup(a,__FILE__, __LINE__, __PRETTY_FUNCTION__)
 

Definition at line 75 of file astmm.h.

Referenced by __oh323_new(), add_extensions(), ast_compile_ael2(), ast_el_strtoarr(), ast_module_helper(), ast_monitor_change_fname(), ast_monitor_start(), ast_readfile(), ast_writefile(), check_macro_returns(), complete_ch_helper(), complete_channeltypes(), complete_context_add_extension(), complete_context_add_ignorepat(), complete_context_add_include(), complete_context_remove_extension(), complete_context_remove_ignorepat(), complete_context_remove_include(), complete_debug_port(), complete_fn(), complete_show_application(), complete_show_config(), complete_show_function(), do_parking_thread(), enum_callback(), fix_complete_args(), fix_gotos_in_extensions(), gen_prios(), handle_context_add_extension(), handle_core_set_debug_channel(), handle_uri(), iax_prov_complete_template(), ind_load_module(), is_prefix(), make_str(), oh323_answer(), oh323_digit_begin(), oh323_digit_end(), oh323_hangup(), oh323_indicate(), read_config(), reload_module(), set_full_cmd(), static_callback(), and yyparse().

#define strndup a,
 )     __ast_strndup(a,b,__FILE__, __LINE__, __PRETTY_FUNCTION__)
 

Definition at line 78 of file astmm.h.

#define vasprintf a,
b,
 )     __ast_vasprintf(a,b,c,__FILE__, __LINE__, __PRETTY_FUNCTION__)
 

Definition at line 84 of file astmm.h.

Referenced by agi_debug_cli(), and asprintf().


Function Documentation

int __ast_asprintf const char *  file,
int  lineno,
const char *  func,
char **  strp,
const char *  format,
  ...
 

void* __ast_calloc size_t  nmemb,
size_t  size,
const char *  file,
int  lineno,
const char *  func
 

void* __ast_calloc_cache size_t  nmemb,
size_t  size,
const char *  file,
int  lineno,
const char *  func
 

void __ast_free void *  ptr,
const char *  file,
int  lineno,
const char *  func
 

void* __ast_malloc size_t  size,
const char *  file,
int  lineno,
const char *  func
 

void __ast_mm_init void   ) 
 

void* __ast_realloc void *  ptr,
size_t  size,
const char *  file,
int  lineno,
const char *  func
 

char* __ast_strdup const char *  s,
const char *  file,
int  lineno,
const char *  func
 

char* __ast_strndup const char *  s,
size_t  n,
const char *  file,
int  lineno,
const char *  func
 

int __ast_vasprintf char **  strp,
const char *  format,
va_list  ap,
const char *  file,
int  lineno,
const char *  func
 


Asterisk is a trademark for Digium, inc.. | Edvina.net | Asterisk.org | This documentation was generated with Doxygen