1178479Sjb/* 2178479Sjb * CDDL HEADER START 3178479Sjb * 4178479Sjb * The contents of this file are subject to the terms of the 5178479Sjb * Common Development and Distribution License (the "License"). 6178479Sjb * You may not use this file except in compliance with the License. 7178479Sjb * 8178479Sjb * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9178479Sjb * or http://www.opensolaris.org/os/licensing. 10178479Sjb * See the License for the specific language governing permissions 11178479Sjb * and limitations under the License. 12178479Sjb * 13178479Sjb * When distributing Covered Code, include this CDDL HEADER in each 14178479Sjb * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15178479Sjb * If applicable, add the following below this CDDL HEADER, with the 16178479Sjb * fields enclosed by brackets "[]" replaced with your own identifying 17178479Sjb * information: Portions Copyright [yyyy] [name of copyright owner] 18178479Sjb * 19178479Sjb * CDDL HEADER END 20178479Sjb */ 21178479Sjb 22178479Sjb/* 23178479Sjb * Copyright 2006 Sun Microsystems, Inc. All rights reserved. 24178479Sjb * Use is subject to license terms. 25178479Sjb */ 26178479Sjb 27178479Sjb#ifndef _DT_DOF_H 28178479Sjb#define _DT_DOF_H 29178479Sjb 30178479Sjb#pragma ident "%Z%%M% %I% %E% SMI" 31178479Sjb 32178479Sjb#include <dtrace.h> 33178479Sjb 34178479Sjb#ifdef __cplusplus 35178479Sjbextern "C" { 36178479Sjb#endif 37178479Sjb 38178479Sjb#include <dt_buf.h> 39178479Sjb 40178479Sjbtypedef struct dt_dof { 41178479Sjb dtrace_hdl_t *ddo_hdl; /* libdtrace handle */ 42178479Sjb dtrace_prog_t *ddo_pgp; /* current program */ 43178479Sjb uint_t ddo_nsecs; /* number of sections */ 44178479Sjb dof_secidx_t ddo_strsec; /* global strings section index */ 45178479Sjb dof_secidx_t *ddo_xlimport; /* imported xlator section indices */ 46178479Sjb dof_secidx_t *ddo_xlexport; /* exported xlator section indices */ 47178479Sjb dt_buf_t ddo_secs; /* section headers */ 48178479Sjb dt_buf_t ddo_strs; /* global strings */ 49178479Sjb dt_buf_t ddo_ldata; /* loadable section data */ 50178479Sjb dt_buf_t ddo_udata; /* unloadable section data */ 51178479Sjb dt_buf_t ddo_probes; /* probe section data */ 52178479Sjb dt_buf_t ddo_args; /* probe arguments section data */ 53178479Sjb dt_buf_t ddo_offs; /* probe offsets section data */ 54178479Sjb dt_buf_t ddo_enoffs; /* is-enabled offsets section data */ 55178479Sjb dt_buf_t ddo_rels; /* probe relocation section data */ 56178479Sjb dt_buf_t ddo_xlms; /* xlate members section data */ 57178479Sjb} dt_dof_t; 58178479Sjb 59178479Sjbextern void dt_dof_init(dtrace_hdl_t *); 60178479Sjbextern void dt_dof_fini(dtrace_hdl_t *); 61178479Sjb 62178479Sjb#ifdef __cplusplus 63178479Sjb} 64178479Sjb#endif 65178479Sjb 66178479Sjb#endif /* _DT_DOF_H */ 67