Mon May 14 04:45:04 2007

Asterisk developer's documentation


astmm.h File Reference

Asterisk memory usage debugging. More...

#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)


Detailed Description

Asterisk memory usage debugging.

Definition in file astmm.h.


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_http_error(), ast_pthread_create_stack(), build_filename(), complete_context_remove_extension(), complete_context_remove_extension_deprecated(), database_first_connect(), init_acf_query(), store_config(), 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(), ast_app_group_set_channel(), build_alias(), build_peer(), build_user(), get_robin_position(), getSearchPath(), launch_monitor_thread(), load_module(), misdn_cfg_init(), misdn_lib_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_context_destroy(), __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(), _free_port_cfg(), _macro_exec(), accept_thread(), acf_curl_exec(), add_pri(), adsi_prog(), 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(), alarmreceiver_exec(), answer_exec_disable(), app_exec(), append_history_va(), ast_app_group_discard(), 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_discard(), 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_dial_destroy(), ast_dnsmgr_release(), ast_dsp_free(), ast_enum_init(), ast_expr(), ast_extension_state_del(), ast_filehelper(), ast_format_unregister(), ast_frame_free(), ast_free_ha(), ast_frisolate(), ast_httpd_helper_thread(), ast_io_remove(), 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_park_call(), 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_say_number_full_ge(), 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_udptl_new_with_bindaddr(), 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_writefile(), ast_yyerror(), ast_yyfree(), async_wait(), attempt_reconnect(), build_conf(), build_device(), build_gateway(), build_peer(), build_user(), callerid_feed(), callerid_feed_jp(), callerid_free(), callerid_write(), changethread(), cleanup_call_details(), clear_and_free_interfaces(), clear_config_maps(), clear_realm_authentication(), clear_sip_domains(), clearvar_prefix(), cli_complete(), compile_script(), complete_context_add_ignorepat(), complete_context_add_ignorepat_deprecated(), complete_context_add_include(), complete_context_add_include_deprecated(), complete_context_dont_include_deprecated(), complete_context_remove_extension(), complete_context_remove_extension_deprecated(), complete_context_remove_ignorepat(), complete_context_remove_ignorepat_deprecated(), complete_context_remove_include(), conf_free(), console_dial(), console_dial_deprecated(), console_transfer(), console_transfer_deprecated(), crypto_load(), database_first_connect(), del_identifier(), 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_queue(), destroy_session(), destroy_station(), destroy_trans(), destroy_trunk(), destroy_user(), destroy_zt_pvt(), dial_trunk(), dlcompat_cleanup(), dlerrorfree(), dlsym(), dlsymIntern(), do_batch_backend_process(), do_devstate_changes(), do_directory(), do_monitor(), do_parking_thread(), dp_lookup_thread(), drop_translator(), dummy_start(), dump_cmd_queues(), dump_queue(), dundi_answer_entity(), dundi_answer_query(), dundi_flush(), dundi_lookup_thread(), dundi_precache_thread(), dundi_query_thread(), dundi_send(), external_rtp_create(), fast_originate(), features_hangup(), features_new(), festival_exec(), find_and_retrans(), find_cache(), find_idle_thread(), find_user_realtime(), findmeexec(), fix_complete_args(), fixed_jb_destroy(), frame_cache_cleanup(), free_acf_query(), free_cid(), free_context(), free_members(), free_numbers(), free_old_route(), free_outgoing(), free_robin_list_r(), free_session(), free_user(), free_value(), free_zone(), function_ilink(), gen_release(), getSearchPath(), gtalk_alloc(), gtalk_create_candidates(), gtalk_free_candidates(), gtalk_free_pvt(), gtalk_member_destroy(), handle_add_indication(), handle_commandcomplete(), handle_commandmatchesarray(), handle_context_add_extension(), handle_context_add_extension_deprecated(), handle_context_remove_extension(), handle_context_remove_extension_deprecated(), handle_cr(), handle_event_nt(), handle_init_event(), handle_message(), handle_recvtext(), handle_response(), hangupcalls(), hanguptree(), http_root(), iax2_destroy(), iax2_process_thread_cleanup(), iax2_register(), iax2_setoption(), iax_frame_free(), iax_park(), iax_park_thread(), iax_provision_reload(), ind_load_module(), init_acf_query(), init_logger_chain(), init_manager(), io_context_create(), io_context_destroy(), jb_destroy(), launch_monitor_thread(), linear_alloc(), linear_release(), load_config(), load_module(), load_modules(), load_moh_classes(), loadModule(), local_alloc(), local_ast_moh_cleanup(), local_hangup(), local_queue_frame(), lpc10_destroy(), make_logchannel(), mgcpsock_read(), milliwatt_release(), misdn_cfg_destroy(), misdn_hangup(), misdn_jb_destroy(), mixmonitor_thread(), mkif(), moh_register(), moh_release(), moh_scan_files(), mohalloc(), mwanalyze_exec(), my_unload_module(), nbs_alloc(), nbs_destroy(), new_iax(), newpvt(), odbc_unload_module(), oh323_alloc(), oh323_answer(), oh323_destroy_alias(), oh323_destroy_peer(), oh323_destroy_user(), oh323_digit_begin(), oh323_digit_end(), oh323_hangup(), oh323_indicate(), osp_create_provider(), osp_unload(), park_exec(), pbx_destroy(), pbx_load_config(), pgsql_reconnect(), playtones_release(), process_precache(), read_agent_config(), read_config(), readfile_exec(), realtime_multi_pgsql(), realtime_pgsql(), register_translator(), release_chan(), release_jb_frame(), reload(), reload_module(), reload_queues(), remove_from_interfaces(), remove_from_queue(), retrans_pkt(), ring_entry(), rpt(), rpt_call(), rpt_do_lstats(), rpt_exec(), rpt_tele_thread(), sched_context_destroy(), sched_release(), send_callerid(), send_request(), sip_alloc(), sip_destroy_peer(), sip_destroy_user(), sip_park(), sip_park_thread(), sip_register(), sip_registry_destroy(), skinny_req_parse(), sla_add_trunk_to_station(), sla_build_station(), sla_build_trunk(), sla_check_failed_station(), sla_handle_dial_state_event(), sla_hangup_stations(), sla_ring_station(), sla_stop_ringing_station(), sla_stop_ringing_trunk(), sla_thread(), sla_trunk_exec(), socket_process(), speech_processing_sound(), split_ec(), spy_cleanup(), sqlite_log(), ss_thread(), start_network_thread(), statechange_queue(), static_callback(), store_config(), store_mixer(), tdd_feed(), tdd_free(), tds_log(), tds_unload_module(), temp_pvt_cleanup(), timing_read(), to_integer(), tonepair_release(), try_calling(), unload_module(), unregister_translators(), vm_execmain(), wait_for_answer(), yyparse(), zt_call(), zt_callwait(), zt_handle_dtmfup(), zt_handle_event(), zt_hangup(), zt_new(), and zt_sendtext().

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

Definition at line 66 of file astmm.h.

Referenced by _parse(), add_identifier(), aji_create_buddy(), aji_create_client(), aji_find_version(), aji_handle_presence(), allocStatus(), anti_injection(), ast_say_number_full_ge(), ast_say_number_full_pl(), ast_yyalloc(), build_gateway(), dlsym(), dlsymIntern(), dolock(), dyld_error_str(), expr2_token_subst(), external_rtp_create(), features_alloc(), function_ilink(), gmtsub(), iax_process_template(), init_bc(), init_chan_list(), load_module(), make_integer(), make_str(), mgcp_postrequest(), misdn_jb_init(), misdn_lib_send_event(), mkif(), mwanalyze_exec(), my_load_module(), nbs_alloc(), oh323_alloc(), P(), rpt_do_lstats(), rpt_exec(), rpt_tele_thread(), rpt_telemetry(), scan_service(), searchList(), send_request(), stack_init(), static_callback(), 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 __ast_cli_generator(), __oh323_new(), add_extensions(), ast_builtins_init(), ast_compile_ael2(), ast_el_strtoarr(), ast_module_helper(), ast_monitor_change_fname(), ast_monitor_start(), ast_park_call(), ast_readfile(), ast_writefile(), attempt_reconnect(), cdr_pgsql_read_config(), complete_ch_helper(), complete_channeltypes(), complete_channeltypes_deprecated(), complete_context_add_extension(), complete_context_add_extension_deprecated(), complete_context_add_ignorepat(), complete_context_add_ignorepat_deprecated(), complete_context_add_include(), complete_context_add_include_deprecated(), complete_context_dont_include_deprecated(), complete_context_remove_extension(), complete_context_remove_extension_deprecated(), complete_context_remove_ignorepat(), complete_context_remove_ignorepat_deprecated(), complete_context_remove_include(), complete_debug_port(), complete_fn_2(), complete_fn_3(), complete_generic(), complete_meetmecmd(), complete_show_application(), complete_show_config(), complete_show_function(), do_directory(), do_parking_thread(), enum_callback(), fix_complete_args(), fix_gotos_in_extensions(), function_ilink(), gen_prios(), handle_context_add_extension(), handle_context_add_extension_deprecated(), handle_link_data(), handle_uri(), httpstatus_callback(), iax_prov_complete_template(), ind_load_module(), make_str(), odbc_load_module(), oh323_answer(), oh323_digit_begin(), oh323_digit_end(), oh323_hangup(), oh323_indicate(), pbx_load_config(), pbx_load_users(), read_config(), reload_module(), rpt_call(), rpt_master(), send_link_dtmf(), speech_background(), speech_processing_sound(), static_callback(), tds_load_module(), and yyparse().

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

Definition at line 78 of file astmm.h.

Referenced by get_robin_position().

#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   ) 

Referenced by main().

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 
)


Generated on Mon May 14 04:45:05 2007 for Asterisk - the Open Source PBX by  doxygen 1.5.1