1265Smws /* 2265Smws * CDDL HEADER START 3265Smws * 4265Smws * The contents of this file are subject to the terms of the 5*1710Sahl * Common Development and Distribution License (the "License"). 6*1710Sahl * You may not use this file except in compliance with the License. 7265Smws * 8265Smws * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9265Smws * or http://www.opensolaris.org/os/licensing. 10265Smws * See the License for the specific language governing permissions 11265Smws * and limitations under the License. 12265Smws * 13265Smws * When distributing Covered Code, include this CDDL HEADER in each 14265Smws * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15265Smws * If applicable, add the following below this CDDL HEADER, with the 16265Smws * fields enclosed by brackets "[]" replaced with your own identifying 17265Smws * information: Portions Copyright [yyyy] [name of copyright owner] 18265Smws * 19265Smws * CDDL HEADER END 20265Smws */ 21*1710Sahl 22265Smws /* 23*1710Sahl * Copyright 2006 Sun Microsystems, Inc. All rights reserved. 24265Smws * Use is subject to license terms. 25265Smws */ 26265Smws 27265Smws #ifndef _DT_PROGRAM_H 28265Smws #define _DT_PROGRAM_H 29265Smws 30265Smws #pragma ident "%Z%%M% %I% %E% SMI" 31265Smws 32265Smws #ifdef __cplusplus 33265Smws extern "C" { 34265Smws #endif 35265Smws 36265Smws #include <dtrace.h> 37265Smws #include <dt_list.h> 38265Smws 39265Smws typedef struct dt_stmt { 40265Smws dt_list_t ds_list; /* list forward/back pointers */ 41265Smws dtrace_stmtdesc_t *ds_desc; /* pointer to statement description */ 42265Smws } dt_stmt_t; 43265Smws 44265Smws struct dtrace_prog { 45265Smws dt_list_t dp_list; /* list forward/back pointers */ 46265Smws dt_list_t dp_stmts; /* linked list of dt_stmt_t's */ 47265Smws ulong_t **dp_xrefs; /* array of translator reference bitmaps */ 48265Smws uint_t dp_xrefslen; /* length of dp_xrefs array */ 49*1710Sahl uint8_t dp_dofversion; /* DOF version this program requires */ 50265Smws }; 51265Smws 52265Smws extern dtrace_prog_t *dt_program_create(dtrace_hdl_t *); 53265Smws extern void dt_program_destroy(dtrace_hdl_t *, dtrace_prog_t *); 54265Smws 55265Smws extern dtrace_ecbdesc_t *dt_ecbdesc_create(dtrace_hdl_t *, 56265Smws const dtrace_probedesc_t *); 57265Smws extern void dt_ecbdesc_release(dtrace_hdl_t *, dtrace_ecbdesc_t *); 58265Smws 59265Smws #ifdef __cplusplus 60265Smws } 61265Smws #endif 62265Smws 63265Smws #endif /* _DT_PROGRAM_H */ 64