Debugging infrastructure


Defines

#define DBG(...)   DBG_IF ( LOG, __VA_ARGS__ )
 Print a debugging message.
#define DEBUG_SYMBOL   PREFIX_OBJECT ( debug_ )
#define DBGLVL_MAX   0
#define DBGLVL   0
#define DBG_DISABLE(level)   do { } while ( 0 )
#define DBG_ENABLE(level)   do { } while ( 0 )
#define DBGLVL_LOG   1
#define DBG_LOG   ( DBGLVL & DBGLVL_LOG )
#define DBGLVL_EXTRA   2
#define DBG_EXTRA   ( DBGLVL & DBGLVL_EXTRA )
#define DBGLVL_PROFILE   4
#define DBG_PROFILE   ( DBGLVL & DBGLVL_PROFILE )
#define DBGLVL_IO   8
#define DBG_IO   ( DBGLVL & DBGLVL_IO )
#define DBG_IF(level,...)
 Print debugging message if we are at a certain debug level.
#define DBG_HDA_IF(level, dispaddr, data, len)
 Print a hex dump if we are at a certain debug level.
#define DBG_HD_IF(level, data, len)
 Print a hex dump if we are at a certain debug level.
#define DBG_AC_IF(level, id)
 Select colour for debug messages if we are at a certain debug level.
#define DBG_DC_IF(level)
 Revert colour for debug messages if we are at a certain debug level.
#define DBGC_IF(level, id,...)
#define DBGC_HDA_IF(level, id,...)
#define DBGC_HD_IF(level, id,...)
#define DBG_HDA(...)   DBG_HDA_IF ( LOG, __VA_ARGS__ )
#define DBG_HD(...)   DBG_HD_IF ( LOG, __VA_ARGS__ )
#define DBGC(...)   DBGC_IF ( LOG, __VA_ARGS__ )
#define DBGC_HDA(...)   DBGC_HDA_IF ( LOG, __VA_ARGS__ )
#define DBGC_HD(...)   DBGC_HD_IF ( LOG, __VA_ARGS__ )
#define DBG2(...)   DBG_IF ( EXTRA, __VA_ARGS__ )
#define DBG2_HDA(...)   DBG_HDA_IF ( EXTRA, __VA_ARGS__ )
#define DBG2_HD(...)   DBG_HD_IF ( EXTRA, __VA_ARGS__ )
#define DBGC2(...)   DBGC_IF ( EXTRA, __VA_ARGS__ )
#define DBGC2_HDA(...)   DBGC_HDA_IF ( EXTRA, __VA_ARGS__ )
#define DBGC2_HD(...)   DBGC_HD_IF ( EXTRA, __VA_ARGS__ )
#define DBGP(...)   DBG_IF ( PROFILE, __VA_ARGS__ )
#define DBGP_HDA(...)   DBG_HDA_IF ( PROFILE, __VA_ARGS__ )
#define DBGP_HD(...)   DBG_HD_IF ( PROFILE, __VA_ARGS__ )
#define DBGCP(...)   DBGC_IF ( PROFILE, __VA_ARGS__ )
#define DBGCP_HDA(...)   DBGC_HDA_IF ( PROFILE, __VA_ARGS__ )
#define DBGCP_HD(...)   DBGC_HD_IF ( PROFILE, __VA_ARGS__ )
#define DBGIO(...)   DBG_IF ( IO, __VA_ARGS__ )
#define DBGIO_HDA(...)   DBG_HDA_IF ( IO, __VA_ARGS__ )
#define DBGIO_HD(...)   DBG_HD_IF ( IO, __VA_ARGS__ )
#define DBGCIO(...)   DBGC_IF ( IO, __VA_ARGS__ )
#define DBGCIO_HDA(...)   DBGC_HDA_IF ( IO, __VA_ARGS__ )
#define DBGCIO_HD(...)   DBGC_HD_IF ( IO, __VA_ARGS__ )
#define NDEBUG

Functions

int dbg_printf (const char *fmt,...) asm("printf")
 printf() for debugging
void dbg_autocolourise (unsigned long id)
 Select automatic colour for debug messages.
void dbg_decolourise (void)
 Revert to normal colour.
void dbg_hex_dump_da (unsigned long dispaddr, const void *data, unsigned long len)
 Print hex dump with specified display address.

Define Documentation

#define DBG ( ...   )     DBG_IF ( LOG, __VA_ARGS__ )

Print a debugging message.

The debug level is set at build time by specifying the DEBUG= parameter on the make command line. For example, to enable debugging for the PCI bus functions (in pci.c) in a .dsk image for the rtl8139 card, you could use the command line

   make bin/rtl8139.dsk DEBUG=pci

This will enable the debugging statements (DBG()) in pci.c. If debugging is not enabled, DBG() statements will be ignored.

You can enable debugging in several objects simultaneously by separating them with commas, as in

   make bin/rtl8139.dsk DEBUG=pci,buffer,heap

You can increase the debugging level for an object by specifying it with :N, where N is the level, as in

   make bin/rtl8139.dsk DEBUG=pci,buffer:2,heap

which would enable debugging for the PCI, buffer-handling and heap-allocation code, with the buffer-handling code at level 2.

Definition at line 414 of file compiler.h.

Referenced by __gm_phy_read(), __mdio_cmd(), _sec80211_detect(), a3c90x_hw_start(), a3c90x_internal_IssueCommand(), a3c90x_internal_WaitForEeprom(), a3c90x_open(), a3c90x_poll(), a3c90x_prepare_rx_desc(), a3c90x_probe(), a3c90x_process_rx_packets(), a3c90x_process_tx_packets(), a3c90x_refill_rx_ring(), a3c90x_reset(), a3c90x_setup_rx_ring(), a3c90x_setup_tx_ring(), a3c90x_transmit(), abft_fill_data(), activate_t509_device(), add_ipv4_miniroute(), add_ndp_entry(), adjust_pci_device(), alloc_memblock(), amd8111e_get_mac_address(), ansiesc_process(), apply_dns_settings(), apply_iscsi_settings(), apply_settings(), arp_resolve(), arp_rx(), ata_command(), ath5k_attach(), ath5k_bitrate_to_hw_rix(), ath5k_calibrate(), ath5k_desc_alloc(), ath5k_handle_rx(), ath5k_hw_attach(), ath5k_hw_channel(), ath5k_hw_nic_wakeup(), ath5k_hw_noise_floor_calibration(), ath5k_hw_post(), ath5k_hw_reset(), ath5k_hw_rf5110_calibrate(), ath5k_hw_rfb_op(), ath5k_hw_rfregs_init(), ath5k_hw_rix_to_bitrate(), ath5k_hw_setup_2word_tx_desc(), ath5k_hw_setup_4word_tx_desc(), ath5k_hw_txpower(), ath5k_hw_write_initvals(), ath5k_hw_write_ofdm_timings(), ath5k_poll(), ath5k_probe(), ath5k_reset(), ath5k_rfkill_disable(), ath5k_rfkill_enable(), ath5k_rx_iob_alloc(), ath5k_rxbuf_setup(), ath5k_tx(), ath5k_tx_processq(), ath5k_txq_cleanup(), ath5k_txq_setup(), atl1e_check_link(), atl1e_clean_rx_irq(), atl1e_configure(), atl1e_phy_commit(), atl1e_phy_init(), atl1e_poll(), atl1e_probe(), atl1e_reset_hw(), atl1e_setup_ring_resources(), b44_halt(), b44_init_rx_ring(), b44_init_tx_ring(), b44_poll(), b44_probe(), b44_process_rx_packets(), b44_rx_refill(), b44_transmit(), base64_encode(), bcom_check_link(), bcom_phy_intr(), bios_find_smbios(), call_bootsector(), chap_finish(), chap_init(), chap_respond(), check_duplex(), cmdif_go_bit(), comboot_fetch_kernel(), corkscrew_probe1(), create_fakedhcpack(), create_fakedhcpdiscover(), create_fakepxebsack(), cs89x0_probe(), davicom_probe(), deactivate_t509_device(), del_ipv4_miniroute(), dhcp_create_request(), dmfe_probe(), dns_resolv(), dump_uri(), e1000_close(), e1000_configure_rx(), e1000_configure_tx(), e1000_free_rx_resources(), e1000_free_tx_resources(), e1000_irq(), e1000_open(), e1000_poll(), e1000_probe(), e1000_process_rx_packets(), e1000_process_tx_packets(), e1000_refill_rx_ring(), e1000_remove(), e1000_reset(), e1000_setup_rx_resources(), e1000_setup_tx_resources(), e1000_sw_init(), e1000_transmit(), e1000e_configure_rx(), e1000e_configure_tx(), e1000e_init_phy_params_ich8lan(), e1000e_open(), e1000e_poll(), e1000e_probe(), e1000e_process_rx_packets(), e1000e_process_tx_packets(), e1000e_refill_rx_ring(), e1000e_reset(), e1000e_setup_tx_resources(), e1000e_transmit(), eapol_key_rx(), ecollect_free(), eepro_probe(), eepro_reset(), eepro_transmit(), efi_currticks(), efi_find_smbios(), efi_getchar(), efi_ioread(), efi_ioreads(), efi_iowrite(), efi_iowrites(), efi_ticks_per_sec(), efi_udelay(), efi_urealloc(), efipci_read(), efipci_write(), eisa_device_enabled(), eisa_probe(), eisa_remove(), elfboot_load(), embedded_init(), enable_multicast(), epic100_probe(), eth_probe(), eth_pull(), execv(), extmemsize_88(), extmemsize_e801(), find_smbios_structure(), forcedeth_probe(), free_memblock(), gateA20_set(), genesis_mac_init(), get_cached_dhcpack(), get_cpuinfo(), get_memmap(), gm_phy_read(), gm_phy_write(), guess_int13_geometry(), hide_etherboot(), hide_region(), hook_bios_interrupt(), ib_cm_connect_rep(), ibft_fill_initiator(), ibft_fill_nic(), ibft_fill_target(), ibft_fill_target_chap(), ibft_fill_target_reverse_chap(), icmp6_rx(), icmp_rx(), ifec_check_ru_status(), ifec_get_rx_desc(), ifec_mdio_read(), ifec_mdio_write(), ifec_net_open(), ifec_net_transmit(), ifec_rx_process(), ifec_scb_cmd_wait(), ifec_tx_process(), ifec_tx_setup(), igb_configure_rx(), igb_configure_tx(), igb_free_rx_resources(), igb_free_tx_resources(), igb_open(), igb_poll(), igb_probe(), igb_process_rx_packets(), igb_process_tx_packets(), igb_refill_rx_ring(), igb_reset(), igb_setup_tx_resources(), igb_sw_init(), igb_transmit(), init_eheap(), int13(), int13_boot(), int13_check_num_drives(), int13_extended_read(), int13_extended_rw(), int13_extended_write(), int13_extension_check(), int13_get_disk_type(), int13_get_extended_parameters(), int13_get_last_status(), int13_get_parameters(), int13_read_sectors(), int13_reset(), int13_rw_sectors(), int13_write_sectors(), int21(), int22(), ipoib_cache_peer(), ipoib_lookup_peer_by_key(), ipoib_pull(), ipv4_frag_expired(), ipv4_rx(), ipv4_tx(), ipv6_dump(), ipv6_process_nxt_hdr(), ipv6_rx(), ipv6_tx(), is_pnp_bios(), isa_probe(), isa_remove(), isapnp_device_activation(), isapnp_probe(), isapnp_remove(), isapnp_try_isolate(), legacy_poll(), legacy_transmit(), mac_address_from_string_specs(), mca_probe(), mca_remove(), meme820(), memtop_urealloc(), mii_check_media(), mtd_disable(), mtd_poll(), mtd_probe(), mtd_reset(), mtd_transmit(), mtnic_alloc_cmdif(), mtnic_alloc_cq(), mtnic_alloc_eq(), mtnic_alloc_iobuf(), mtnic_alloc_resources(), mtnic_alloc_ring(), mtnic_close(), mtnic_cmd(), mtnic_CONFIG_CQ(), mtnic_CONFIG_EQ(), mtnic_CONFIG_RX_RING(), mtnic_disable(), mtnic_HEART_BEAT(), mtnic_init_card(), mtnic_init_pci(), mtnic_map_cmd(), mtnic_open(), mtnic_OPEN_NIC(), mtnic_poll(), mtnic_probe(), mtnic_process_rx_cq(), mtnic_QUERY_CAP(), mtnic_QUERY_FW(), mtnic_query_offsets(), mtnic_transmit(), myri10ge_command(), myri10ge_net_open(), myri10ge_net_poll(), myri10ge_net_transmit(), myri10ge_pci_probe(), natsemi_open(), natsemi_poll(), natsemi_reset(), natsemi_transmit(), ndp_process_advert(), ndp_resolve(), ne_poll(), ne_probe(), net80211_probe_step(), nvs_verify(), open(), parse_setting_name(), parse_uri(), pci_bar(), pci_find_capability(), pci_probe(), pci_remove(), pcnet32_probe(), phantom_dmesg(), pnic_poll(), posix_find_free_fd(), prep_segment(), prism2_probe(), pxe_api_call(), pxe_deactivate(), pxe_dump_mcast_list(), pxe_menu_parse(), pxe_tftp_open(), pxe_tftp_xfer_deliver_iob(), pxe_udp_deliver_iob(), pxenv_file_api_check(), pxenv_file_close(), pxenv_file_exec(), pxenv_file_exit_hook(), pxenv_file_open(), pxenv_file_read(), pxenv_file_select(), pxenv_get_cached_info(), pxenv_get_file_size(), pxenv_restart_tftp(), pxenv_start_base(), pxenv_start_undi(), pxenv_stop_base(), pxenv_stop_undi(), pxenv_tftp_close(), pxenv_tftp_get_fsize(), pxenv_tftp_open(), pxenv_tftp_read(), pxenv_tftp_read_file(), pxenv_udp_close(), pxenv_udp_open(), pxenv_udp_read(), pxenv_udp_write(), pxenv_undi_cleanup(), pxenv_undi_clear_statistics(), pxenv_undi_close(), pxenv_undi_force_interrupt(), pxenv_undi_get_iface_info(), pxenv_undi_get_information(), pxenv_undi_get_mcast_address(), pxenv_undi_get_nic_type(), pxenv_undi_get_state(), pxenv_undi_get_statistics(), pxenv_undi_initialize(), pxenv_undi_initiate_diags(), pxenv_undi_open(), pxenv_undi_reset_adapter(), pxenv_undi_set_mcast_address(), pxenv_undi_set_packet_filter(), pxenv_undi_set_station_address(), pxenv_undi_shutdown(), pxenv_undi_startup(), pxenv_unload_stack(), pxeparent_call(), rdtsc_udelay(), read_smbios_string(), register_int13_drive(), relocate(), remove_devices(), rhine_probe1(), rootdev_probe(), rootdev_remove(), rtl8169_get_mac_version(), rtl8169_get_nic_variant(), rtl8169_init_phy(), rtl8169_open(), rtl8169_phy_reset(), rtl8169_populate_rx_descriptor(), rtl8169_probe(), rtl8169_process_rx_packets(), rtl8169_process_tx_packets(), rtl8169_refill_rx_ring(), rtl8169_set_speed_tbi(), rtl8169_set_speed_xmii(), rtl8169_setup_rx_resources(), rtl8169_setup_tx_resources(), rtl8169_transmit(), rtl818x_init_hw(), rtl818x_init_rx_ring(), rtl818x_init_tx_ring(), rtl818x_probe(), rtl818x_start(), rtl_hw_phy_config(), rtl_hw_start_8168(), rtl_hw_start_8169(), rtl_soft_reset(), scancode_to_ansi_seq(), script_exec(), script_load(), sec80211_detect_ie(), sec80211_find_rsn(), sec80211_install(), send_nonspecific_eoi(), send_specific_eoi(), serial_init(), sis190_alloc_rx_iob(), sis190_default_phy(), sis190_get_mac_addr_from_apc(), sis190_get_mac_addr_from_eeprom(), sis190_init_board(), sis190_init_phy(), sis190_mii_probe(), sis190_open(), sis190_phy_task(), sis190_process_rx(), sis190_process_tx(), sis190_set_speed_auto(), sis190_transmit(), sis900_probe(), skge_devinit(), skge_probe(), skge_reset(), skge_rx_done(), skge_rx_refill(), skge_up(), skge_xmit_frame(), sky2_autoneg_done(), sky2_err_intr(), sky2_hw_error(), sky2_hw_intr(), sky2_init(), sky2_init_netdev(), sky2_le_error(), sky2_link_down(), sky2_link_up(), sky2_mhz(), sky2_probe(), sky2_reset(), sky2_rx_stop(), sky2_status_intr(), smbios_init(), smc9000_probe(), smc9000_probe_addr(), smc9000_transmit(), spi_read(), spi_wait(), spi_write(), start_dhcp(), stop_timer(), store_cached_dhcpack(), sundance_poll(), sundance_probe(), sundance_reset(), t509_find_id_port(), t509_isolate(), t509_probe(), t509_remove(), t515_poll(), t515_probe(), t515_reset(), t515_transmit(), t595_probe(), t5x9_probe(), tcp_rx(), tcpip_rx(), tcpip_tx(), tg3_probe(), timer_expired(), TLan_FinishReset(), TLan_PhyFinishAutoNeg(), TLan_PhyPowerDown(), TLan_PhyPowerUp(), TLan_PhyReset(), TLan_PhyStartLink(), tlan_poll(), tlan_probe(), tlan_transmit(), tulip_probe(), udp_rx(), undi_load(), undi_loader(), undibus_probe(), undirom_find_pci(), undirom_probe(), undirom_probe_all_roms(), unhide_etherboot(), unhook_bios_interrupt(), unparse_uri(), unregister_int13_drive(), velocity_probe(), w89c840_probe(), wpa_make_rsn_ie(), x509_public_key(), x509_rsa_public_key(), xm_check_link(), xm_phy_read(), and yukon_phy_intr().

#define DEBUG_SYMBOL   PREFIX_OBJECT ( debug_ )

Definition at line 270 of file compiler.h.

#define DBGLVL_MAX   0

Definition at line 293 of file compiler.h.

#define DBGLVL   0

Definition at line 307 of file compiler.h.

#define DBG_DISABLE ( level   )     do { } while ( 0 )

#define DBG_ENABLE ( level   )     do { } while ( 0 )

#define DBGLVL_LOG   1

Definition at line 312 of file compiler.h.

Referenced by hermon_map_vpm(), and linda_init_ib_serdes().

#define DBG_LOG   ( DBGLVL & DBGLVL_LOG )

Definition at line 313 of file compiler.h.

Referenced by hook_bios_interrupt(), linda_read_eeprom(), and phantom_dmesg().

#define DBGLVL_EXTRA   2

Definition at line 314 of file compiler.h.

Referenced by hermon_map_vpm().

#define DBG_EXTRA   ( DBGLVL & DBGLVL_EXTRA )

Definition at line 315 of file compiler.h.

#define DBGLVL_PROFILE   4

Definition at line 316 of file compiler.h.

#define DBG_PROFILE   ( DBGLVL & DBGLVL_PROFILE )

Definition at line 317 of file compiler.h.

#define DBGLVL_IO   8

#define DBG_IO   ( DBGLVL & DBGLVL_IO )

Definition at line 319 of file compiler.h.

#define DBG_IF ( level,
...   ) 

Value:

do {                            \
                if ( DBG_ ## level ) {                          \
                        dbg_printf ( __VA_ARGS__ );             \
                }                                               \
        } while ( 0 )
Print debugging message if we are at a certain debug level.

Parameters:
level Debug level
... printf() argument list

Definition at line 327 of file compiler.h.

#define DBG_HDA_IF ( level,
dispaddr,
data,
len   ) 

Value:

do {            \
                if ( DBG_ ## level ) {                          \
                        union {                                 \
                                unsigned long ul;               \
                                typeof ( dispaddr ) raw;        \
                        } da;                                   \
                        da.raw = dispaddr;                      \
                        dbg_hex_dump_da ( da.ul, data, len );   \
                }                                               \
        } while ( 0 )
Print a hex dump if we are at a certain debug level.

Parameters:
level Debug level
dispaddr Display address
data Data to print
len Length of data

Definition at line 341 of file compiler.h.

#define DBG_HD_IF ( level,
data,
len   ) 

Value:

do {                    \
                const void *_data = data;                       \
                DBG_HDA_IF ( level, _data, _data, len );        \
        } while ( 0 )
Print a hex dump if we are at a certain debug level.

Parameters:
level Debug level
data Data to print
len Length of data

Definition at line 359 of file compiler.h.

#define DBG_AC_IF ( level,
id   ) 

Value:

do {                            \
                if ( DBG_ ## level ) {                          \
                        union {                                 \
                                unsigned long ul;               \
                                typeof ( id ) raw;              \
                        } dbg_stream;                           \
                        dbg_stream.raw = id;                    \
                        dbg_autocolourise ( dbg_stream.ul );    \
                }                                               \
        } while ( 0 )
Select colour for debug messages if we are at a certain debug level.

Parameters:
level Debug level
id Message stream ID

Definition at line 370 of file compiler.h.

#define DBG_DC_IF ( level   ) 

Value:

do {                                    \
                if ( DBG_ ## level ) {                          \
                        dbg_decolourise();                      \
                }                                               \
        } while ( 0 )
Revert colour for debug messages if we are at a certain debug level.

Parameters:
level Debug level

Definition at line 386 of file compiler.h.

#define DBGC_IF ( level,
id,
...   ) 

Value:

do {                            \
                DBG_AC_IF ( level, id );                        \
                DBG_IF ( level, __VA_ARGS__ );                  \
                DBG_DC_IF ( level );                            \
        } while ( 0 )

Definition at line 394 of file compiler.h.

#define DBGC_HDA_IF ( level,
id,
...   ) 

Value:

do {                    \
                DBG_AC_IF ( level, id );                        \
                DBG_HDA_IF ( level, __VA_ARGS__ );              \
                DBG_DC_IF ( level );                            \
        } while ( 0 )

Definition at line 400 of file compiler.h.

#define DBGC_HD_IF ( level,
id,
...   ) 

Value:

do {                    \
                DBG_AC_IF ( level, id );                        \
                DBG_HD_IF ( level, __VA_ARGS__ );               \
                DBG_DC_IF ( level );                            \
        } while ( 0 )

Definition at line 406 of file compiler.h.

#define DBG_HDA ( ...   )     DBG_HDA_IF ( LOG, __VA_ARGS__ )

#define DBG_HD ( ...   )     DBG_HD_IF ( LOG, __VA_ARGS__ )

#define DBGC ( ...   )     DBGC_IF ( LOG, __VA_ARGS__ )

Definition at line 417 of file compiler.h.

Referenced by aoe_rx(), aoe_rx_cfg(), arbel_alloc_icm(), arbel_close(), arbel_cmd(), arbel_complete(), arbel_create_cq(), arbel_create_eq(), arbel_create_qp(), arbel_destroy_cq(), arbel_destroy_eq(), arbel_destroy_qp(), arbel_event_port_state_change(), arbel_get_limits(), arbel_mad(), arbel_mcast_attach(), arbel_mcast_detach(), arbel_modify_qp(), arbel_open(), arbel_poll_cq(), arbel_poll_eq(), arbel_post_recv(), arbel_post_send(), arbel_probe(), arbel_setup_mpt(), arbel_start_firmware(), arbel_stop_firmware(), asn1_enter(), asn1_skip(), asn1_start(), autovivify_child_settings(), bitmap_resize(), bitmap_set(), bzimage_exec(), bzimage_load(), bzimage_load_initrd(), bzimage_load_initrds(), bzimage_parse_cmdline(), bzimage_parse_header(), bzimage_set_cmdline(), bzimage_update_header(), ccmp_decrypt(), com32_exec(), com32_identify(), com32_load(), comboot_exec(), comboot_identify(), comboot_init_psp(), comboot_load(), comboot_load_image(), comboot_prepare_bounce_buffer(), comboot_prepare_segment(), dhcp_deliver_iob(), dhcp_discovery_tx(), dhcp_proxy_rx(), dhcp_proxy_tx(), dhcp_pxebs_accept(), dhcp_pxebs_rx(), dhcp_pxebs_tx(), dhcp_request_rx(), dhcp_request_tx(), dhcp_rx_offer(), dhcp_set_state(), dhcp_tx(), dhcpopt_init(), dns_resolv(), dns_send_packet(), dns_xfer_deliver_raw(), downloader_ensure_size(), eapol_key_rx(), efi_image_exec(), efi_image_load(), efi_init(), efi_snp_driver_start(), efi_snp_driver_stop(), efi_snp_initialize(), efi_snp_install(), efi_snp_mcast_ip_to_mac(), efi_snp_netdev(), efi_snp_receive(), efi_snp_reset(), efi_snp_snpdev(), efi_snp_station_address(), efi_snp_transmit(), elf_load(), elf_load_segment(), elfboot_exec(), elfboot_load(), eltorito_exec(), eltorito_load_disk(), eltorito_read_catalog(), eltorito_read_voldesc(), find_dhcp_option_with_encap(), free_image(), ftp_control_close(), ftp_data_closed(), ftp_data_deliver_iob(), ftp_done(), ftp_free(), ftp_next_state(), ftp_open(), ftp_reply(), ftp_xfer_closed(), hermon_alloc_icm(), hermon_alloc_mtt(), hermon_alloc_qpn(), hermon_close(), hermon_cmd(), hermon_complete(), hermon_configure_special_qps(), hermon_create_cq(), hermon_create_eq(), hermon_create_qp(), hermon_destroy_cq(), hermon_destroy_eq(), hermon_destroy_qp(), hermon_dump_qpctx(), hermon_event_port_state_change(), hermon_get_cap(), hermon_mad(), hermon_map_vpm(), hermon_mcast_attach(), hermon_mcast_detach(), hermon_modify_qp(), hermon_open(), hermon_poll_cq(), hermon_poll_eq(), hermon_post_recv(), hermon_post_send(), hermon_probe(), hermon_sense_port_type(), hermon_setup_mpt(), hermon_start_firmware(), hermon_stop_firmware(), http_done(), http_open_filter(), http_rx_content_length(), http_rx_header(), http_rx_location(), http_rx_response(), http_socket_close(), http_socket_deliver_iob(), http_xfer_close(), i2c_bit_read(), i2c_bit_write(), i2c_reset(), ib_cm_path_complete(), ib_cm_req_complete(), ib_cm_send_rtu(), ib_cmrc_changed(), ib_cmrc_complete_recv(), ib_cmrc_complete_send(), ib_cmrc_open(), ib_cmrc_shutdown(), ib_cmrc_xfer_close(), ib_cmrc_xfer_deliver_iob(), ib_create_conn(), ib_create_cq(), ib_create_mi(), ib_create_qp(), ib_create_sma(), ib_destroy_cq(), ib_destroy_mi(), ib_destroy_qp(), ib_mcast_complete(), ib_mcast_join(), ib_mcast_leave(), ib_mi_complete_recv(), ib_mi_handle(), ib_mi_send(), ib_mi_timer_expired(), ib_modify_qp(), ib_open(), ib_path_complete(), ib_post_recv(), ib_post_send(), ib_pull(), ib_refill_recv(), ib_resolve_path(), ib_set_pkey_table(), ib_set_port_info(), ib_sma_guid_info(), ib_sma_node_desc(), ib_sma_node_info(), ib_sma_pkey_table(), ib_sma_port_info(), ib_sma_set_pkey_table(), ib_sma_set_port_info(), ib_smc_get_guid_info(), ib_smc_get_pkey_table(), ib_smc_get_port_info(), ib_smc_update(), ib_srp_connect(), ib_srp_parse_root_path(), ignore_xfer_deliver_raw(), image_autoload(), image_exec(), image_load_type(), init_i2c_bit_basher(), init_scsidev(), ipoib_complete_recv(), ipoib_join_broadcast_group(), ipoib_link_state_changed(), ipoib_open(), ipoib_transmit(), iscsi_attach(), iscsi_handle_authmethod_value(), iscsi_handle_chap_a_value(), iscsi_handle_chap_c_value(), iscsi_handle_chap_i_value(), iscsi_handle_chap_n_value(), iscsi_handle_chap_r_value(), iscsi_handle_string(), iscsi_handle_targetaddress_value(), iscsi_open_connection(), iscsi_parse_root_path(), iscsi_rx_data(), iscsi_rx_login_response(), iscsi_set_auth(), iscsi_socket_close(), iscsi_socket_deliver_raw(), iscsi_start_data_out(), iscsi_tx_step(), linda_alloc_ctx(), linda_complete_recv(), linda_create_cq(), linda_create_recv_wq(), linda_create_send_wq(), linda_destroy_cq(), linda_ib_epb_request(), linda_ib_epb_wait(), linda_init_i2c(), linda_init_recv(), linda_init_send(), linda_link_state_changed(), linda_link_state_check(), linda_modify_qp(), linda_post_recv(), linda_probe(), linda_program_uc_ram(), linda_read_eeprom(), linda_set_port_info(), linda_trim_ib(), linda_verify_uc_ram(), multiboot_build_memmap(), multiboot_build_module_list(), multiboot_exec(), multiboot_load(), multiboot_load_elf(), multiboot_load_raw(), nbi_boot16(), nbi_boot32(), nbi_exec(), nbi_load(), nbi_prepare_dhcp(), nbi_prepare_segment(), nbi_process_segments(), net80211_check_settings_update(), net80211_handle_assoc_reply(), net80211_handle_auth(), net80211_handle_mgmt(), net80211_ll_pull(), net80211_prepare_assoc(), net80211_prepare_probe(), net80211_probe_finish_best(), net80211_probe_step(), net80211_process_capab(), net80211_process_ie(), net80211_rx(), net80211_rx_frag(), net80211_step_associate(), net_rx(), net_step(), netdev_close(), netdev_open(), netdev_rx(), netdev_rx_err(), netdev_tx(), netdev_tx_complete_err(), numeric_resolv(), nvo_init_dhcpopts(), nvo_load(), nvo_save(), nvo_store(), pci_backup_excluded(), phantom_add_macaddr(), phantom_alloc_cds(), phantom_alloc_rds(), phantom_check_boot_enable(), phantom_clp_cmd(), phantom_clp_wait(), phantom_create_rx_ctx(), phantom_create_tx_ctx(), phantom_del_macaddr(), phantom_destroy_rx_ctx(), phantom_destroy_tx_ctx(), phantom_dmesg(), phantom_fetch_setting(), phantom_get_macaddr(), phantom_init_cmdpeg(), phantom_init_rcvpeg(), phantom_issue_cmd(), phantom_map_crb(), phantom_poll(), phantom_poll_link_state(), phantom_probe(), phantom_read_test_mem_block(), phantom_store_setting(), phantom_wait_for_cmd(), plug(), process_add(), process_del(), pxe_exec(), pxe_load(), pxebs_list(), ramdisk_read(), ramdisk_write(), rc80211_pick_best(), rc80211_set_rate(), rc80211_update_tx(), ref_put(), register_ibdev(), register_image(), register_netdev(), register_nvo(), register_settings(), resize_dhcp_option(), resolv(), resolv_mux_done(), resolv_mux_try(), rtl_init_eeprom(), rtl_irq(), rtl_open(), rtl_poll(), rtl_transmit(), sbft_fill_data(), scsi_command(), set_dhcp_option(), slam_finished(), slam_master_timer_expired(), slam_mc_socket_close(), slam_mc_socket_deliver(), slam_open(), slam_parse_multicast_address(), slam_pull_header(), slam_pull_value(), slam_slave_timer_expired(), slam_socket_close(), slam_socket_deliver(), slam_tx_nack(), slam_xfer_close(), spi_bit_rw(), srp_attach(), srp_cmd(), srp_command(), srp_login(), srp_login_rej(), srp_login_rsp(), srp_rsp(), srp_unrecognised(), srp_xfer_close(), start_pxebs(), tcp_bind(), tcp_close(), tcp_dump_state(), tcp_expired(), tcp_open(), tcp_rx_ack(), tcp_rx_data(), tcp_rx_opts(), tcp_rx_rst(), tcp_xmit(), tcp_xmit_reset(), tftp_core_open(), tftp_done(), tftp_presize(), tftp_process_blksize(), tftp_process_multicast(), tftp_process_option(), tftp_process_tsize(), tftp_reopen(), tftp_reopen_mc(), tftp_rx(), tftp_rx_data(), tftp_rx_error(), tftp_rx_oack(), tftp_send_rrq(), tftp_timer_expired(), tftp_xfer_close(), threewire_detect_address_len(), threewire_read(), threewire_write(), tkip_decrypt(), tls_change_cipher(), tls_generate_keys(), tls_generate_master_secret(), tls_new_alert(), tls_new_certificate(), tls_new_change_cipher(), tls_new_ciphertext(), tls_new_handshake(), tls_new_record(), tls_new_server_hello(), tls_new_server_hello_done(), tls_newdata_process_header(), tls_select_cipher(), tls_send_client_key_exchange(), tls_send_plaintext(), tls_set_cipher(), tls_split_block(), tls_split_stream(), tls_step(), trivial_init(), udp_alloc_iob(), udp_bind(), udp_close(), udp_open_common(), udp_rx(), udp_tx(), undi_load(), undi_unload(), undinet_close(), undinet_irq(), undinet_open(), undinet_poll(), undinet_probe(), undinet_remove(), undipci_probe(), undirom_find_pci(), undirom_parse_pcirheader(), undirom_parse_pxeromid(), undirom_probe(), unregister_ibdev(), unregister_image(), unregister_netdev(), unregister_nvo(), unregister_settings(), wep_decrypt(), wpa_handle_1_of_2(), wpa_handle_1_of_4(), wpa_handle_3_of_4(), wpa_install_gtk(), wpa_install_ptk(), wpa_maybe_install_gtk(), wpa_psk_start(), wpa_send_2_of_4(), wpa_send_final(), xfer_alloc_iob(), xfer_close(), xfer_deliver_iob_meta(), xfer_deliver_raw(), xfer_open_named_socket(), xfer_open_socket(), xfer_open_uri(), xfer_open_uri_string(), xfer_seek(), xfer_vopen(), and xfer_vredirect().

#define DBGC_HDA ( ...   )     DBGC_HDA_IF ( LOG, __VA_ARGS__ )

#define DBGC_HD ( ...   )     DBGC_HD_IF ( LOG, __VA_ARGS__ )

#define DBG2 ( ...   )     DBG_IF ( EXTRA, __VA_ARGS__ )

#define DBG2_HDA ( ...   )     DBG_HDA_IF ( EXTRA, __VA_ARGS__ )

Definition at line 424 of file compiler.h.

Referenced by x509_rsa_public_key().

#define DBG2_HD ( ...   )     DBG_HD_IF ( EXTRA, __VA_ARGS__ )

Definition at line 425 of file compiler.h.

Referenced by myri10ge_net_transmit().

#define DBGC2 ( ...   )     DBGC_IF ( EXTRA, __VA_ARGS__ )

#define DBGC2_HDA ( ...   )     DBGC_HDA_IF ( EXTRA, __VA_ARGS__ )

#define DBGC2_HD ( ...   )     DBGC_HD_IF ( EXTRA, __VA_ARGS__ )

#define DBGP ( ...   )     DBG_IF ( PROFILE, __VA_ARGS__ )

Definition at line 432 of file compiler.h.

Referenced by __rtl_hw_start_8168cp(), a3c90x_close(), a3c90x_free_resources(), a3c90x_free_rx_iobuf(), a3c90x_free_rx_ring(), a3c90x_free_tx_ring(), a3c90x_hw_start(), a3c90x_internal_IssueCommand(), a3c90x_internal_ReadEeprom(), a3c90x_internal_ReadEepromContents(), a3c90x_internal_SetWindow(), a3c90x_internal_WaitForEeprom(), a3c90x_irq(), a3c90x_open(), a3c90x_poll(), a3c90x_prepare_rx_desc(), a3c90x_probe(), a3c90x_process_rx_packets(), a3c90x_process_tx_packets(), a3c90x_refill_rx_ring(), a3c90x_remove(), a3c90x_reset(), a3c90x_setup_rx_ring(), a3c90x_setup_tx_ring(), a3c90x_transmit(), ath5k_poll(), e1000_poll(), e1000e_close(), e1000e_configure_rx(), e1000e_configure_tx(), e1000e_free_rx_resources(), e1000e_free_tx_resources(), e1000e_irq(), e1000e_open(), e1000e_poll(), e1000e_probe(), e1000e_refill_rx_ring(), e1000e_remove(), e1000e_setup_rx_resources(), e1000e_setup_tx_resources(), e1000e_transmit(), ifec_check_ru_status(), ifec_free(), ifec_get_rx_desc(), ifec_init_eeprom(), ifec_link_check(), ifec_link_update(), ifec_mdio_read(), ifec_mdio_setup(), ifec_mdio_write(), ifec_net_close(), ifec_net_irq(), ifec_net_open(), ifec_net_poll(), ifec_net_transmit(), ifec_pci_probe(), ifec_pci_remove(), ifec_refill_rx_ring(), ifec_reprime_ru(), ifec_reset(), ifec_rfd_init(), ifec_rx_process(), ifec_rx_setup(), ifec_scb_cmd(), ifec_scb_cmd_wait(), ifec_spi_read_bit(), ifec_spi_write_bit(), ifec_tx_process(), ifec_tx_setup(), ifec_tx_wake(), igb_close(), igb_configure_rx(), igb_irq(), igb_open(), igb_poll(), igb_probe(), igb_process_rx_packets(), igb_refill_rx_ring(), igb_remove(), igb_setup_rx_resources(), igb_transmit(), mdio_patch(), mdio_read(), mdio_write(), myri10ge_command(), myri10ge_net_close(), myri10ge_net_irq(), myri10ge_net_open(), myri10ge_net_poll(), myri10ge_net_transmit(), myri10ge_pci_probe(), myri10ge_pci_remove(), net80211_send_assoc(), rtl8102e_hw_phy_config(), rtl8168bb_hw_phy_config(), rtl8168bef_hw_phy_config(), rtl8168c_1_hw_phy_config(), rtl8168c_2_hw_phy_config(), rtl8168c_3_hw_phy_config(), rtl8168c_4_hw_phy_config(), rtl8168cp_1_hw_phy_config(), rtl8168cp_2_hw_phy_config(), rtl8168d_hw_phy_config(), rtl8169_close(), rtl8169_free_rx_resources(), rtl8169_free_tx_resources(), rtl8169_get_mac_version(), rtl8169_get_nic_variant(), rtl8169_hw_reset(), rtl8169_init_phy(), rtl8169_irq(), rtl8169_irq_disable(), rtl8169_irq_enable(), rtl8169_irq_mask_and_ack(), rtl8169_open(), rtl8169_phy_reset(), rtl8169_poll(), rtl8169_populate_rx_descriptor(), rtl8169_probe(), rtl8169_process_rx_packets(), rtl8169_process_tx_packets(), rtl8169_refill_rx_ring(), rtl8169_remove(), rtl8169_set_magic_reg(), rtl8169_set_speed(), rtl8169_set_speed_tbi(), rtl8169_set_speed_xmii(), rtl8169_setup_rx_resources(), rtl8169_setup_tx_resources(), rtl8169_tbi_link_ok(), rtl8169_tbi_reset_enable(), rtl8169_tbi_reset_pending(), rtl8169_transmit(), rtl8169_write_gmii_reg_bit(), rtl8169_xmii_link_ok(), rtl8169_xmii_reset_enable(), rtl8169_xmii_reset_pending(), rtl8169s_hw_phy_config(), rtl8169sb_hw_phy_config(), rtl818x_handle_rx(), rtl_csi_access_enable(), rtl_csi_read(), rtl_csi_write(), rtl_disable_clock_request(), rtl_ephy_init(), rtl_ephy_read(), rtl_ephy_write(), rtl_hw_phy_config(), rtl_hw_start(), rtl_hw_start_8101(), rtl_hw_start_8102e_1(), rtl_hw_start_8102e_2(), rtl_hw_start_8102e_3(), rtl_hw_start_8168(), rtl_hw_start_8168bb(), rtl_hw_start_8168bef(), rtl_hw_start_8168c_1(), rtl_hw_start_8168c_2(), rtl_hw_start_8168c_3(), rtl_hw_start_8168c_4(), rtl_hw_start_8168cp_1(), rtl_hw_start_8168cp_2(), rtl_hw_start_8168cp_3(), rtl_hw_start_8168d(), rtl_hw_start_8169(), rtl_phy_write(), rtl_rw_cpluscmd(), rtl_set_rx_max_size(), rtl_set_rx_mode(), rtl_set_rx_tx_config_registers(), rtl_set_rx_tx_desc_registers(), rtl_soft_reset(), and rtl_tx_performance_tweak().

#define DBGP_HDA ( ...   )     DBG_HDA_IF ( PROFILE, __VA_ARGS__ )

Definition at line 433 of file compiler.h.

#define DBGP_HD ( ...   )     DBG_HD_IF ( PROFILE, __VA_ARGS__ )

Definition at line 434 of file compiler.h.

Referenced by net80211_send_assoc().

#define DBGCP ( ...   )     DBGC_IF ( PROFILE, __VA_ARGS__ )

#define DBGCP_HDA ( ...   )     DBGC_HDA_IF ( PROFILE, __VA_ARGS__ )

Definition at line 436 of file compiler.h.

Referenced by ib_pull(), ib_push(), and linda_complete_recv().

#define DBGCP_HD ( ...   )     DBGC_HD_IF ( PROFILE, __VA_ARGS__ )

Definition at line 437 of file compiler.h.

Referenced by arbel_poll_eq(), hermon_poll_cq(), hermon_poll_eq(), and hermon_post_send().

#define DBGIO ( ...   )     DBG_IF ( IO, __VA_ARGS__ )

#define DBGIO_HDA ( ...   )     DBG_HDA_IF ( IO, __VA_ARGS__ )

Definition at line 442 of file compiler.h.

#define DBGIO_HD ( ...   )     DBG_HD_IF ( IO, __VA_ARGS__ )

Definition at line 443 of file compiler.h.

Referenced by ifec_rx_process(), and sis190_process_rx().

#define DBGCIO ( ...   )     DBGC_IF ( IO, __VA_ARGS__ )

Definition at line 444 of file compiler.h.

#define DBGCIO_HDA ( ...   )     DBGC_HDA_IF ( IO, __VA_ARGS__ )

Definition at line 445 of file compiler.h.

#define DBGCIO_HD ( ...   )     DBGC_HD_IF ( IO, __VA_ARGS__ )

Definition at line 446 of file compiler.h.

#define NDEBUG

Definition at line 450 of file compiler.h.


Function Documentation

int dbg_printf ( const char *  fmt,
  ... 
)

printf() for debugging

This function exists so that the DBG() macros can expand to printf() calls without dragging the printf() prototype into scope.

As far as the compiler is concerned, dbg_printf() and printf() are completely unrelated calls; it's only at the assembly stage that references to the dbg_printf symbol are collapsed into references to the printf symbol.

void dbg_autocolourise ( unsigned long  stream  ) 

Select automatic colour for debug messages.

Parameters:
stream Message stream ID

Definition at line 185 of file debug.c.

References dbg_autocolour(), and printf().

00185                                                 {
00186         printf ( "\033[%dm",
00187                  ( stream ? ( 31 + dbg_autocolour ( stream ) ) : 0 ) );
00188 }

void dbg_decolourise ( void   ) 

Revert to normal colour.

Definition at line 194 of file debug.c.

References printf().

00194                               {
00195         printf ( "\033[0m" );
00196 }

void dbg_hex_dump_da ( unsigned long  dispaddr,
const void *  data,
unsigned long  len 
)

Print hex dump with specified display address.

Parameters:
dispaddr Display address
data Data to print
len Length of data

Definition at line 63 of file debug.c.

References dbg_hex_dump_da_row(), and offset.

00064                                            {
00065         unsigned int offset;
00066 
00067         for ( offset = 0 ; offset < len ; offset += 16 ) {
00068                 dbg_hex_dump_da_row ( dispaddr, data, len, offset );
00069         }
00070 }


Generated on Tue Apr 6 20:01:58 2010 for gPXE by  doxygen 1.5.7.1