Changeset View
Changeset View
Standalone View
Standalone View
sys/cddl/contrib/opensolaris/uts/common/sys/dtrace.h
Show First 20 Lines • Show All 44 Lines • ▼ Show 20 Lines | |||||
* 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/types.h> | ||||
#include <sys/endian.h> | |||||
#include <sys/modctl.h> | #include <sys/modctl.h> | ||||
#include <sys/processor.h> | #include <sys/processor.h> | ||||
#ifdef illumos | |||||
#include <sys/systm.h> | |||||
#else | |||||
#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/proc.h> | |||||
#include <sys/types.h> | |||||
#include <sys/ucred.h> | #include <sys/ucred.h> | ||||
typedef int model_t; | typedef int model_t; | ||||
#endif | |||||
#include <sys/ctf_api.h> | #include <sys/ctf_api.h> | ||||
#ifdef illumos | |||||
#include <sys/cyclic.h> | |||||
#include <sys/int_limits.h> | |||||
#else | |||||
#include <sys/stdint.h> | #include <sys/stdint.h> | ||||
#endif | |||||
/* | /* | ||||
* 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 474 Lines • ▼ Show 20 Lines | #define DTRACE_LLQUANTIZE_NSTEP(x) \ | ||||
DTRACE_LLQUANTIZE_NSTEPSHIFT) | DTRACE_LLQUANTIZE_NSTEPSHIFT) | ||||
#define DTRACE_USTACK_NFRAMES(x) (uint32_t)((x) & UINT32_MAX) | #define DTRACE_USTACK_NFRAMES(x) (uint32_t)((x) & UINT32_MAX) | ||||
#define DTRACE_USTACK_STRSIZE(x) (uint32_t)((x) >> 32) | #define DTRACE_USTACK_STRSIZE(x) (uint32_t)((x) >> 32) | ||||
#define DTRACE_USTACK_ARG(x, y) \ | #define DTRACE_USTACK_ARG(x, y) \ | ||||
((((uint64_t)(y)) << 32) | ((x) & UINT32_MAX)) | ((((uint64_t)(y)) << 32) | ((x) & UINT32_MAX)) | ||||
#ifndef _LP64 | #ifndef _LP64 | ||||
#if BYTE_ORDER == _BIG_ENDIAN | #if BYTE_ORDER == BIG_ENDIAN | ||||
#define DTRACE_PTR(type, name) uint32_t name##pad; type *name | #define DTRACE_PTR(type, name) uint32_t name##pad; type *name | ||||
#else | #else | ||||
#define DTRACE_PTR(type, name) type *name; uint32_t name##pad | #define DTRACE_PTR(type, name) type *name; uint32_t name##pad | ||||
#endif | #endif | ||||
#else | #else | ||||
#define DTRACE_PTR(type, name) type *name | #define DTRACE_PTR(type, name) type *name | ||||
#endif | #endif | ||||
▲ Show 20 Lines • Show All 93 Lines • ▼ Show 20 Lines | |||||
#else | #else | ||||
#define DOF_MODEL_NATIVE DOF_MODEL_ILP32 | #define DOF_MODEL_NATIVE DOF_MODEL_ILP32 | ||||
#endif | #endif | ||||
#define DOF_ENCODE_NONE 0 /* DOF_ID_ENCODING */ | #define DOF_ENCODE_NONE 0 /* DOF_ID_ENCODING */ | ||||
#define DOF_ENCODE_LSB 1 | #define DOF_ENCODE_LSB 1 | ||||
#define DOF_ENCODE_MSB 2 | #define DOF_ENCODE_MSB 2 | ||||
#if BYTE_ORDER == _BIG_ENDIAN | #if BYTE_ORDER == BIG_ENDIAN | ||||
#define DOF_ENCODE_NATIVE DOF_ENCODE_MSB | #define DOF_ENCODE_NATIVE DOF_ENCODE_MSB | ||||
#else | #else | ||||
#define DOF_ENCODE_NATIVE DOF_ENCODE_LSB | #define DOF_ENCODE_NATIVE DOF_ENCODE_LSB | ||||
#endif | #endif | ||||
#define DOF_VERSION_1 1 /* DOF version 1: Solaris 10 FCS */ | #define DOF_VERSION_1 1 /* DOF version 1: Solaris 10 FCS */ | ||||
#define DOF_VERSION_2 2 /* DOF version 2: Solaris Express 6/06 */ | #define DOF_VERSION_2 2 /* DOF version 2: Solaris Express 6/06 */ | ||||
#define DOF_VERSION DOF_VERSION_2 /* Latest DOF version */ | #define DOF_VERSION DOF_VERSION_2 /* Latest DOF version */ | ||||
▲ Show 20 Lines • Show All 1,830 Lines • Show Last 20 Lines |