98c080d502548e68bb9815459ea56e6ae282c430Rod Evans * CDDL HEADER START
98c080d502548e68bb9815459ea56e6ae282c430Rod Evans * The contents of this file are subject to the terms of the
98c080d502548e68bb9815459ea56e6ae282c430Rod Evans * Common Development and Distribution License (the "License").
98c080d502548e68bb9815459ea56e6ae282c430Rod Evans * You may not use this file except in compliance with the License.
98c080d502548e68bb9815459ea56e6ae282c430Rod Evans * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
98c080d502548e68bb9815459ea56e6ae282c430Rod Evans * See the License for the specific language governing permissions
98c080d502548e68bb9815459ea56e6ae282c430Rod Evans * and limitations under the License.
98c080d502548e68bb9815459ea56e6ae282c430Rod Evans * When distributing Covered Code, include this CDDL HEADER in each
98c080d502548e68bb9815459ea56e6ae282c430Rod Evans * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
98c080d502548e68bb9815459ea56e6ae282c430Rod Evans * If applicable, add the following below this CDDL HEADER, with the
98c080d502548e68bb9815459ea56e6ae282c430Rod Evans * fields enclosed by brackets "[]" replaced with your own identifying
98c080d502548e68bb9815459ea56e6ae282c430Rod Evans * information: Portions Copyright [yyyy] [name of copyright owner]
98c080d502548e68bb9815459ea56e6ae282c430Rod Evans * CDDL HEADER END
98c080d502548e68bb9815459ea56e6ae282c430Rod Evans * Copyright 2010 Sun Microsystems, Inc. All rights reserved.
98c080d502548e68bb9815459ea56e6ae282c430Rod Evans * Use is subject to license terms.
98c080d502548e68bb9815459ea56e6ae282c430Rod EvansDbg_dl_iphdr_enter(Rt_map *clmp, u_longlong_t cnt_map, u_longlong_t cnt_unmap)
98c080d502548e68bb9815459ea56e6ae282c430Rod Evans dbg_print(lml, MSG_INTL(MSG_DL_IPHDR_ENTER), NAME(clmp));
98c080d502548e68bb9815459ea56e6ae282c430Rod Evans dbg_print(lml, MSG_INTL(MSG_DL_IPHDR_MAPCNT), cnt_map, cnt_unmap);
98c080d502548e68bb9815459ea56e6ae282c430Rod EvansDbg_dl_iphdr_callback(Lm_list *lml, struct dl_phdr_info *info)
98c080d502548e68bb9815459ea56e6ae282c430Rod Evans dbg_print(lml, MSG_INTL(MSG_DL_IPHDR_NAME), info->dlpi_name);
98c080d502548e68bb9815459ea56e6ae282c430Rod Evans dbg_print(lml, MSG_INTL(MSG_DL_IPHDR_ADDR), EC_ADDR(info->dlpi_addr));
98c080d502548e68bb9815459ea56e6ae282c430Rod EvansDbg_dl_iphdr_mapchange(Lm_list *lml, u_longlong_t cnt_map,
98c080d502548e68bb9815459ea56e6ae282c430Rod Evans dbg_print(lml, MSG_INTL(MSG_DL_IPHDR_MAPCNT), cnt_map, cnt_unmap);
98c080d502548e68bb9815459ea56e6ae282c430Rod EvansDbg_dl_dlopen(Rt_map *clmp, const char *name, int *in_nfavl, int mode)
98c080d502548e68bb9815459ea56e6ae282c430Rod Evans * The core functionality of dlopen() can be called twice. The first
98c080d502548e68bb9815459ea56e6ae282c430Rod Evans * attempt can be affected by path names that exist in the "not-found"
98c080d502548e68bb9815459ea56e6ae282c430Rod Evans * AVL tree. Should a "not-found" path name be found, a second attempt
98c080d502548e68bb9815459ea56e6ae282c430Rod Evans * is made to locate the required file (in_nfavl is NULL). This fall-
98c080d502548e68bb9815459ea56e6ae282c430Rod Evans * back provides for file system changes while a process executes.
98c080d502548e68bb9815459ea56e6ae282c430Rod Evans dbg_print(lml, MSG_INTL(MSG_DL_DLOPEN), name, NAME(clmp), retry,
98c080d502548e68bb9815459ea56e6ae282c430Rod EvansDbg_dl_dlclose(Rt_map *clmp, const char *name, int flag)
98c080d502548e68bb9815459ea56e6ae282c430Rod Evans dbg_print(lml, MSG_INTL(MSG_DL_DLCLOSE), name, NAME(clmp), str);
98c080d502548e68bb9815459ea56e6ae282c430Rod EvansDbg_dl_dldump(Rt_map *clmp, const char *ipath, const char *opath, int flags)
98c080d502548e68bb9815459ea56e6ae282c430Rod Evans dbg_print(lml, MSG_INTL(MSG_DL_DLDUMP), ipath, NAME(clmp),
98c080d502548e68bb9815459ea56e6ae282c430Rod Evans dbg_print(lml, MSG_INTL(MSG_DL_DLERROR), NAME(clmp),
98c080d502548e68bb9815459ea56e6ae282c430Rod Evans dbg_print(lml, MSG_INTL(MSG_DL_DLADDR), NAME(clmp), EC_NATPTR(addr));
98c080d502548e68bb9815459ea56e6ae282c430Rod EvansDbg_dl_dlsym(Rt_map *clmp, const char *sym, int *in_nfavl, const char *next,
98c080d502548e68bb9815459ea56e6ae282c430Rod Evans MSG_DLSYM_DEFAULT, /* MSG_ORIG(MSG_DLSYM_DEFAULT) */
98c080d502548e68bb9815459ea56e6ae282c430Rod Evans MSG_DLSYM_SINGLETON /* MSG_ORIG(MSG_DLSYM_SINGLETON) */
98c080d502548e68bb9815459ea56e6ae282c430Rod Evans * The core functionality of dlsym() can be called twice. The first
98c080d502548e68bb9815459ea56e6ae282c430Rod Evans * attempt can be affected by path names that exist in the "not-found"
98c080d502548e68bb9815459ea56e6ae282c430Rod Evans * AVL tree. Should a "not-found" path name be found, a second attempt
98c080d502548e68bb9815459ea56e6ae282c430Rod Evans * is made to locate the required file (in_nfavl is NULL). This fall-
98c080d502548e68bb9815459ea56e6ae282c430Rod Evans * back provides for file system changes while a process executes.
98c080d502548e68bb9815459ea56e6ae282c430Rod Evans dbg_print(lml, MSG_INTL(MSG_DLSYM_1), Dbg_demangle_name(sym),
98c080d502548e68bb9815459ea56e6ae282c430Rod Evans dbg_print(lml, MSG_INTL(MSG_DLSYM_2), Dbg_demangle_name(sym),
98c080d502548e68bb9815459ea56e6ae282c430Rod EvansDbg_dl_dlinfo(Rt_map *clmp, const char *name, int request, void *addr)