/* * Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved. * Copyright 2014 Garrett D'Amore */ /* * This file is used to limit the symbols that are to be exported from the * debugger. This ensures that dmods follow the module API. * * There is a special rule for generating the mapfile. If the symbol * is not a function then the symbol, in the mapfile, must have the * the token "variable" as the third symbol on the line - see the * entries for __ctype and errno below. */ $mapfile_version 2 SYMBOL_SCOPE { global: /* * Exported functions and variables from: * ../../../common/kmdb/kmdb_dpi.h */ kmdb_dpi_work_required; kmdb_dpi_resume_requested; /* variable */ kmdb_dpi_switch_target; /* variable */ /* * Exported functions and variables from: * ../../../common/kmdb/kmdb_kctl.h */ kmdb_init; kmdb_init_promif; kmdb_activate; kmdb_deactivate; /* * Exported functions and variables from: * ../../../common/kmdb/kmdb_kdi.h */ kmdb_kdi_kmdb_enter; kmdb_kdi_get_unload_request; kmdb_kdi_set_unload_request; kmdb_kdi_get_flags; /* * Exported functions and variables from: * ../../../common/kmdb/kmdb_wr.h */ kmdb_wr_debugger_notify; kmdb_wr_debugger_process; kmdb_wr_debugger_notify_isempty; kmdb_wr_driver_notify; kmdb_wr_driver_process; kmdb_wr_driver_notify_isempty; /* * Exported functions and variables from: * ../../../common/mdb/mdb_ctf.h */ mdb_ctf_enabled_by_object; mdb_ctf_lookup_by_name; mdb_ctf_lookup_by_addr; mdb_ctf_module_lookup; mdb_ctf_func_info; mdb_ctf_func_args; mdb_ctf_type_invalidate; mdb_ctf_type_valid; mdb_ctf_type_cmp; mdb_ctf_type_resolve; mdb_ctf_type_name; mdb_ctf_type_size; mdb_ctf_type_kind; mdb_ctf_type_reference; mdb_ctf_type_encoding; mdb_ctf_type_visit; mdb_ctf_array_info; mdb_ctf_enum_name; mdb_ctf_member_iter; mdb_ctf_enum_iter; mdb_ctf_type_iter; mdb_ctf_type_delete; mdb_ctf_synthetics_create_base; mdb_ctf_synthetics_reset; mdb_ctf_add_typedef; mdb_ctf_add_struct; mdb_ctf_add_union; mdb_ctf_add_member; mdb_ctf_add_array; mdb_ctf_add_pointer; mdb_ctf_type_id; mdb_ctf_type_file; mdb_ctf_member_info; mdb_ctf_offsetof; mdb_ctf_num_members; mdb_ctf_offsetof_by_name; mdb_ctf_offset_to_name; mdb_ctf_vread; mdb_ctf_readsym; /* * Exported functions and variables from: * ../../../common/mdb/mdb_ks.h */ mdb_vnode2path; mdb_page_lookup; mdb_page2pfn; mdb_pfn2page; mdb_pid2proc; mdb_vtype2chr; mdb_addr2modctl; mdb_read_refstr; mdb_name_to_major; mdb_major_to_name; mdb_devinfo2driver; mdb_devinfo2statep; mdb_cpu2cpuid; mdb_cpuset_find; mdb_gethrtime; mdb_get_lbolt; mdb_get_soft_state_byaddr; mdb_get_soft_state_byname; mdb_ddi_pathname; mdb_qops_install; mdb_qops_remove; mdb_qname; mdb_qinfo; mdb_qrnext; mdb_qwnext; mdb_qrnext_default; mdb_qwnext_default; mdb_mblk_count; mdb_dlpi_prim; mdb_mac_addr; mdb_kproc_asiter; mdb_kproc_auxv; mdb_kproc_as; mdb_kproc_pid; mdb_dump_print_content; mdb_dump_find_curproc; mdb_ks_init; /* * Exported functions and variables from: * ../../../common/mdb/mdb_modapi.h */ mdb_prop_postmortem; /* variable */ mdb_prop_kernel; /* variable */ mdb_pwalk; mdb_walk; mdb_pwalk_dcmd; mdb_walk_dcmd; mdb_layered_walk; mdb_call_dcmd; mdb_add_walker; mdb_remove_walker; mdb_vread; mdb_vwrite; mdb_aread; mdb_awrite; mdb_fread; mdb_fwrite; mdb_pread; mdb_pwrite; mdb_readstr; mdb_writestr; mdb_readsym; mdb_writesym; mdb_readvar; mdb_writevar; mdb_lookup_by_name; mdb_lookup_by_obj; mdb_lookup_by_addr; mdb_getareg; mdb_getopts; mdb_strtoull; mdb_alloc; mdb_zalloc; mdb_free; mdb_snprintf; mdb_printf; mdb_warn; mdb_flush; mdb_ffs; mdb_nhconvert; mdb_dumpptr; mdb_dump64; mdb_one_bit; mdb_inval_bits; mdb_inc_indent; mdb_dec_indent; mdb_eval; mdb_set_dot; mdb_get_dot; mdb_get_pipe; mdb_set_pipe; mdb_get_xdata; mdb_object_iter; mdb_symbol_iter; mdb_get_state; mdb_callback_add; mdb_callback_remove; mdb_tab_insert; mdb_tab_setmbase; mdb_tab_complete_type; mdb_tab_complete_member; mdb_tab_typename; mdb_tab_complete_mt; strlcat; strcat; strcpy; strncpy; strchr; strrchr; strstr; strcmp; strncmp; strcasecmp; strncasecmp; strlen; bcmp; bcopy; bzero; memcpy; memmove; memcmp; memchr; memset; memccpy; bsearch; qsort; /* * Exported functions and variables from: * ../../../common/mdb/mdb_param.h */ _mdb_ks_pagesize; /* variable */ _mdb_ks_pageshift; /* variable */ _mdb_ks_pageoffset; /* variable */ _mdb_ks_pagemask; /* variable */ _mdb_ks_mmu_pagesize; /* variable */ _mdb_ks_mmu_pageshift; /* variable */ _mdb_ks_mmu_pageoffset; /* variable */ _mdb_ks_mmu_pagemask; /* variable */ _mdb_ks_kernelbase; /* variable */ _mdb_ks_userlimit; /* variable */ _mdb_ks_userlimit32; /* variable */ _mdb_ks_argsbase; /* variable */ _mdb_ks_msg_bsize; /* variable */ _mdb_ks_defaultstksz; /* variable */ _mdb_ks_ncpu; /* variable */ _mdb_ks_ncpu_log2; /* variable */ _mdb_ks_ncpu_p2; /* variable */ /* * Exported functions and variables from: * ../../../common/mdb/mdb_whatis.h */ mdb_whatis_overlaps; mdb_whatis_match; mdb_whatis_report_address; mdb_whatis_report_object; mdb_whatis_flags; mdb_whatis_done; mdb_whatis_register; /* * Exported functions and variables from: * ../../kmdb/kmdb_dpi_isadep.h */ kmdb_dpi_handle_fault; kmdb_dpi_reboot; kmdb_dpi_msr_add; kmdb_dpi_msr_get; kmdb_dpi_msr_get_by_cpu; /* * Secret additions to the module API */ /* There should be only one - ours */ errno; /* variable */ isprint; isalnum; isalpha; isgraph; iscntrl; isdigit; isxdigit; isupper; islower; ispunct; isspace; mdb_tgt_aread; mdb_dis_create; mdb_dis_destroy; local: *; };