Changeset View
Changeset View
Standalone View
Standalone View
sys/cddl/contrib/opensolaris/uts/common/sys/dtrace.h
Show First 20 Lines • Show All 43 Lines • ▼ Show 20 Lines | |||||
* without notice. Applications and drivers using these interfaces will fail | * without notice. Applications and drivers using these interfaces will fail | ||||
* to run on future releases. These interfaces should not be used for any | * to run on future releases. These interfaces should not be used for any | ||||
* purpose except those expressly outlined in dtrace(7D) and libdtrace(3LIB). | * purpose except those expressly outlined in dtrace(7D) and libdtrace(3LIB). | ||||
* Please refer to the "Solaris Dynamic Tracing Guide" for more information. | * Please refer to the "Solaris Dynamic Tracing Guide" for more information. | ||||
*/ | */ | ||||
#ifndef _ASM | #ifndef _ASM | ||||
#include <sys/types.h> | #include <sys/param.h> | ||||
#include <sys/stdint.h> | |||||
#ifdef _KERNEL | #ifdef _KERNEL | ||||
#include <sys/endian.h> | #include <sys/endian.h> | ||||
#endif | #endif | ||||
#if !defined(IN_BASE) && !defined(_KERNEL) | |||||
/* Compatibility types to allow including the CTF API */ | |||||
typedef unsigned int zoneid_t; | |||||
typedef unsigned char uchar_t; | |||||
typedef unsigned short ushort_t; | |||||
typedef unsigned int uint_t; | |||||
typedef unsigned long ulong_t; | |||||
typedef int processorid_t; | |||||
#else | |||||
#include <sys/modctl.h> | #include <sys/modctl.h> | ||||
#include <sys/processor.h> | #include <sys/processor.h> | ||||
#include <sys/cpuvar.h> | #include <sys/cpuvar.h> | ||||
#include <sys/param.h> | #include <sys/param.h> | ||||
#include <sys/linker.h> | #include <sys/linker.h> | ||||
#include <sys/ioccom.h> | #include <sys/ioccom.h> | ||||
#include <sys/cred.h> | #include <sys/cred.h> | ||||
#include <sys/proc.h> | #include <sys/proc.h> | ||||
#include <sys/types.h> | #include <sys/types.h> | ||||
#include <sys/ucred.h> | #include <sys/ucred.h> | ||||
#endif | |||||
typedef int model_t; | typedef int model_t; | ||||
#include <sys/ctf_api.h> | #include <sys/ctf_api.h> | ||||
#include <sys/stdint.h> | |||||
/* | /* | ||||
* DTrace Universal Constants and Typedefs | * DTrace Universal Constants and Typedefs | ||||
*/ | */ | ||||
#define DTRACE_CPUALL -1 /* all CPUs */ | #define DTRACE_CPUALL -1 /* all CPUs */ | ||||
#define DTRACE_IDNONE 0 /* invalid probe identifier */ | #define DTRACE_IDNONE 0 /* invalid probe identifier */ | ||||
#define DTRACE_EPIDNONE 0 /* invalid enabled probe identifier */ | #define DTRACE_EPIDNONE 0 /* invalid enabled probe identifier */ | ||||
#define DTRACE_AGGIDNONE 0 /* invalid aggregation identifier */ | #define DTRACE_AGGIDNONE 0 /* invalid aggregation identifier */ | ||||
▲ Show 20 Lines • Show All 2,431 Lines • Show Last 20 Lines |