/*-1* Copyright (c) 2007 John Baldwin2*3* Redistribution and use in source and binary forms, with or without4* modification, are permitted provided that the following conditions5* are met:6* 1. Redistributions of source code must retain the above copyright7* notice, this list of conditions and the following disclaimer.8* 2. Redistributions in binary form must reproduce the above copyright9* notice, this list of conditions and the following disclaimer in the10* documentation and/or other materials provided with the distribution.11* 3. Neither the name of the University nor the names of its contributors12* may be used to endorse or promote products derived from this software13* without specific prior written permission.14*15* THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND16* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE17* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE18* ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE19* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL20* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS21* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)22* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT23* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY24* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF25* SUCH DAMAGE.26*/2728#ifndef RTLD_UTRACE_H29#define RTLD_UTRACE_H3031#include <sys/param.h>3233#define UTRACE_DLOPEN_START 134#define UTRACE_DLOPEN_STOP 235#define UTRACE_DLCLOSE_START 336#define UTRACE_DLCLOSE_STOP 437#define UTRACE_LOAD_OBJECT 538#define UTRACE_UNLOAD_OBJECT 639#define UTRACE_ADD_RUNDEP 740#define UTRACE_PRELOAD_FINISHED 841#define UTRACE_INIT_CALL 942#define UTRACE_FINI_CALL 1043#define UTRACE_DLSYM_START 1144#define UTRACE_DLSYM_STOP 1245#define UTRACE_RTLD_ERROR 134647#define RTLD_UTRACE_SIG_SZ 448#define RTLD_UTRACE_SIG "RTLD"4950struct utrace_rtld {51char sig[RTLD_UTRACE_SIG_SZ];52int event;53void *handle;54void *mapbase; /* Used for 'parent' and 'init/fini' */55size_t mapsize;56int refcnt; /* Used for 'mode' */57char name[MAXPATHLEN];58};5960#endif616263