Path: blob/main/cddl/contrib/opensolaris/lib/libdtrace/common/dt_dof.h
39562 views
/*1* CDDL HEADER START2*3* The contents of this file are subject to the terms of the4* Common Development and Distribution License (the "License").5* You may not use this file except in compliance with the License.6*7* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE8* or http://www.opensolaris.org/os/licensing.9* See the License for the specific language governing permissions10* and limitations under the License.11*12* When distributing Covered Code, include this CDDL HEADER in each13* file and include the License file at usr/src/OPENSOLARIS.LICENSE.14* If applicable, add the following below this CDDL HEADER, with the15* fields enclosed by brackets "[]" replaced with your own identifying16* information: Portions Copyright [yyyy] [name of copyright owner]17*18* CDDL HEADER END19*/2021/*22* Copyright 2006 Sun Microsystems, Inc. All rights reserved.23* Use is subject to license terms.24*/2526#ifndef _DT_DOF_H27#define _DT_DOF_H2829#pragma ident "%Z%%M% %I% %E% SMI"3031#include <dtrace.h>3233#ifdef __cplusplus34extern "C" {35#endif3637#include <dt_buf.h>3839typedef struct dt_dof {40dtrace_hdl_t *ddo_hdl; /* libdtrace handle */41dtrace_prog_t *ddo_pgp; /* current program */42uint_t ddo_nsecs; /* number of sections */43dof_secidx_t ddo_strsec; /* global strings section index */44dof_secidx_t *ddo_xlimport; /* imported xlator section indices */45dof_secidx_t *ddo_xlexport; /* exported xlator section indices */46dt_buf_t ddo_secs; /* section headers */47dt_buf_t ddo_strs; /* global strings */48dt_buf_t ddo_ldata; /* loadable section data */49dt_buf_t ddo_udata; /* unloadable section data */50dt_buf_t ddo_probes; /* probe section data */51dt_buf_t ddo_args; /* probe arguments section data */52dt_buf_t ddo_offs; /* probe offsets section data */53dt_buf_t ddo_enoffs; /* is-enabled offsets section data */54dt_buf_t ddo_rels; /* probe relocation section data */55dt_buf_t ddo_xlms; /* xlate members section data */56} dt_dof_t;5758extern void dt_dof_init(dtrace_hdl_t *);59extern void dt_dof_fini(dtrace_hdl_t *);6061#ifdef __cplusplus62}63#endif6465#endif /* _DT_DOF_H */666768