1*6ff6d951SJohn Birrell /* 2*6ff6d951SJohn Birrell * CDDL HEADER START 3*6ff6d951SJohn Birrell * 4*6ff6d951SJohn Birrell * The contents of this file are subject to the terms of the 5*6ff6d951SJohn Birrell * Common Development and Distribution License (the "License"). 6*6ff6d951SJohn Birrell * You may not use this file except in compliance with the License. 7*6ff6d951SJohn Birrell * 8*6ff6d951SJohn Birrell * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*6ff6d951SJohn Birrell * or http://www.opensolaris.org/os/licensing. 10*6ff6d951SJohn Birrell * See the License for the specific language governing permissions 11*6ff6d951SJohn Birrell * and limitations under the License. 12*6ff6d951SJohn Birrell * 13*6ff6d951SJohn Birrell * When distributing Covered Code, include this CDDL HEADER in each 14*6ff6d951SJohn Birrell * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*6ff6d951SJohn Birrell * If applicable, add the following below this CDDL HEADER, with the 16*6ff6d951SJohn Birrell * fields enclosed by brackets "[]" replaced with your own identifying 17*6ff6d951SJohn Birrell * information: Portions Copyright [yyyy] [name of copyright owner] 18*6ff6d951SJohn Birrell * 19*6ff6d951SJohn Birrell * CDDL HEADER END 20*6ff6d951SJohn Birrell */ 21*6ff6d951SJohn Birrell 22*6ff6d951SJohn Birrell /* 23*6ff6d951SJohn Birrell * Copyright 2006 Sun Microsystems, Inc. All rights reserved. 24*6ff6d951SJohn Birrell * Use is subject to license terms. 25*6ff6d951SJohn Birrell */ 26*6ff6d951SJohn Birrell 27*6ff6d951SJohn Birrell #ifndef _DT_DOF_H 28*6ff6d951SJohn Birrell #define _DT_DOF_H 29*6ff6d951SJohn Birrell 30*6ff6d951SJohn Birrell #pragma ident "%Z%%M% %I% %E% SMI" 31*6ff6d951SJohn Birrell 32*6ff6d951SJohn Birrell #include <dtrace.h> 33*6ff6d951SJohn Birrell 34*6ff6d951SJohn Birrell #ifdef __cplusplus 35*6ff6d951SJohn Birrell extern "C" { 36*6ff6d951SJohn Birrell #endif 37*6ff6d951SJohn Birrell 38*6ff6d951SJohn Birrell #include <dt_buf.h> 39*6ff6d951SJohn Birrell 40*6ff6d951SJohn Birrell typedef struct dt_dof { 41*6ff6d951SJohn Birrell dtrace_hdl_t *ddo_hdl; /* libdtrace handle */ 42*6ff6d951SJohn Birrell dtrace_prog_t *ddo_pgp; /* current program */ 43*6ff6d951SJohn Birrell uint_t ddo_nsecs; /* number of sections */ 44*6ff6d951SJohn Birrell dof_secidx_t ddo_strsec; /* global strings section index */ 45*6ff6d951SJohn Birrell dof_secidx_t *ddo_xlimport; /* imported xlator section indices */ 46*6ff6d951SJohn Birrell dof_secidx_t *ddo_xlexport; /* exported xlator section indices */ 47*6ff6d951SJohn Birrell dt_buf_t ddo_secs; /* section headers */ 48*6ff6d951SJohn Birrell dt_buf_t ddo_strs; /* global strings */ 49*6ff6d951SJohn Birrell dt_buf_t ddo_ldata; /* loadable section data */ 50*6ff6d951SJohn Birrell dt_buf_t ddo_udata; /* unloadable section data */ 51*6ff6d951SJohn Birrell dt_buf_t ddo_probes; /* probe section data */ 52*6ff6d951SJohn Birrell dt_buf_t ddo_args; /* probe arguments section data */ 53*6ff6d951SJohn Birrell dt_buf_t ddo_offs; /* probe offsets section data */ 54*6ff6d951SJohn Birrell dt_buf_t ddo_enoffs; /* is-enabled offsets section data */ 55*6ff6d951SJohn Birrell dt_buf_t ddo_rels; /* probe relocation section data */ 56*6ff6d951SJohn Birrell dt_buf_t ddo_xlms; /* xlate members section data */ 57*6ff6d951SJohn Birrell } dt_dof_t; 58*6ff6d951SJohn Birrell 59*6ff6d951SJohn Birrell extern void dt_dof_init(dtrace_hdl_t *); 60*6ff6d951SJohn Birrell extern void dt_dof_fini(dtrace_hdl_t *); 61*6ff6d951SJohn Birrell 62*6ff6d951SJohn Birrell #ifdef __cplusplus 63*6ff6d951SJohn Birrell } 64*6ff6d951SJohn Birrell #endif 65*6ff6d951SJohn Birrell 66*6ff6d951SJohn Birrell #endif /* _DT_DOF_H */ 67