16ff6d951SJohn Birrell /* 26ff6d951SJohn Birrell * CDDL HEADER START 36ff6d951SJohn Birrell * 46ff6d951SJohn Birrell * The contents of this file are subject to the terms of the 56ff6d951SJohn Birrell * Common Development and Distribution License (the "License"). 66ff6d951SJohn Birrell * You may not use this file except in compliance with the License. 76ff6d951SJohn Birrell * 86ff6d951SJohn Birrell * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 96ff6d951SJohn Birrell * or http://www.opensolaris.org/os/licensing. 106ff6d951SJohn Birrell * See the License for the specific language governing permissions 116ff6d951SJohn Birrell * and limitations under the License. 126ff6d951SJohn Birrell * 136ff6d951SJohn Birrell * When distributing Covered Code, include this CDDL HEADER in each 146ff6d951SJohn Birrell * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 156ff6d951SJohn Birrell * If applicable, add the following below this CDDL HEADER, with the 166ff6d951SJohn Birrell * fields enclosed by brackets "[]" replaced with your own identifying 176ff6d951SJohn Birrell * information: Portions Copyright [yyyy] [name of copyright owner] 186ff6d951SJohn Birrell * 196ff6d951SJohn Birrell * CDDL HEADER END 206ff6d951SJohn Birrell */ 216ff6d951SJohn Birrell 226ff6d951SJohn Birrell /* 236ff6d951SJohn Birrell * Copyright 2006 Sun Microsystems, Inc. All rights reserved. 246ff6d951SJohn Birrell * Use is subject to license terms. 256ff6d951SJohn Birrell */ 266ff6d951SJohn Birrell 276ff6d951SJohn Birrell #ifndef _DT_DOF_H 286ff6d951SJohn Birrell #define _DT_DOF_H 296ff6d951SJohn Birrell 306ff6d951SJohn Birrell #pragma ident "%Z%%M% %I% %E% SMI" 316ff6d951SJohn Birrell 326ff6d951SJohn Birrell #include <dtrace.h> 336ff6d951SJohn Birrell 346ff6d951SJohn Birrell #ifdef __cplusplus 356ff6d951SJohn Birrell extern "C" { 366ff6d951SJohn Birrell #endif 376ff6d951SJohn Birrell 386ff6d951SJohn Birrell #include <dt_buf.h> 396ff6d951SJohn Birrell 406ff6d951SJohn Birrell typedef struct dt_dof { 416ff6d951SJohn Birrell dtrace_hdl_t *ddo_hdl; /* libdtrace handle */ 426ff6d951SJohn Birrell dtrace_prog_t *ddo_pgp; /* current program */ 436ff6d951SJohn Birrell uint_t ddo_nsecs; /* number of sections */ 446ff6d951SJohn Birrell dof_secidx_t ddo_strsec; /* global strings section index */ 456ff6d951SJohn Birrell dof_secidx_t *ddo_xlimport; /* imported xlator section indices */ 466ff6d951SJohn Birrell dof_secidx_t *ddo_xlexport; /* exported xlator section indices */ 476ff6d951SJohn Birrell dt_buf_t ddo_secs; /* section headers */ 486ff6d951SJohn Birrell dt_buf_t ddo_strs; /* global strings */ 496ff6d951SJohn Birrell dt_buf_t ddo_ldata; /* loadable section data */ 506ff6d951SJohn Birrell dt_buf_t ddo_udata; /* unloadable section data */ 516ff6d951SJohn Birrell dt_buf_t ddo_probes; /* probe section data */ 526ff6d951SJohn Birrell dt_buf_t ddo_args; /* probe arguments section data */ 536ff6d951SJohn Birrell dt_buf_t ddo_offs; /* probe offsets section data */ 546ff6d951SJohn Birrell dt_buf_t ddo_enoffs; /* is-enabled offsets section data */ 556ff6d951SJohn Birrell dt_buf_t ddo_rels; /* probe relocation section data */ 566ff6d951SJohn Birrell dt_buf_t ddo_xlms; /* xlate members section data */ 576ff6d951SJohn Birrell } dt_dof_t; 586ff6d951SJohn Birrell 596ff6d951SJohn Birrell extern void dt_dof_init(dtrace_hdl_t *); 606ff6d951SJohn Birrell extern void dt_dof_fini(dtrace_hdl_t *); 616ff6d951SJohn Birrell 626ff6d951SJohn Birrell #ifdef __cplusplus 636ff6d951SJohn Birrell } 646ff6d951SJohn Birrell #endif 656ff6d951SJohn Birrell 666ff6d951SJohn Birrell #endif /* _DT_DOF_H */ 67