sdt_impl.h revision 7c478bd95313f5f23a4c958a745db2134aa03244
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2004 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _SYS_SDT_IMPL_H
#define _SYS_SDT_IMPL_H
#pragma ident "%Z%%M% %I% %E% SMI"
#ifdef __cplusplus
extern "C" {
#endif
typedef uint8_t sdt_instr_t;
#else
typedef uint32_t sdt_instr_t;
#endif
typedef struct sdt_provider {
char *sdtp_name; /* name of provider */
char *sdtp_prefix; /* prefix for probe names */
typedef struct sdt_probe {
char *sdp_name; /* name of probe */
int sdp_namelen; /* length of allocated name */
int sdp_loadcnt; /* load count for module */
int sdp_primary; /* non-zero if primary mod */
} sdt_probe_t;
typedef struct sdt_argdesc {
const char *sda_provider; /* provider for arg */
const char *sda_name; /* name of probe */
const int sda_ndx; /* argument index */
const int sda_mapping; /* mapping of argument */
const char *sda_native; /* native type of argument */
const char *sda_xlate; /* translated type of arg */
#ifdef __cplusplus
}
#endif
#endif /* _SYS_SDT_IMPL_H */