Changeset View
Changeset View
Standalone View
Standalone View
sys/cddl/dev/dtrace/dtrace_cddl.h
Show All 31 Lines | |||||
/* | /* | ||||
* Kernel DTrace extension to 'struct proc' for FreeBSD. | * Kernel DTrace extension to 'struct proc' for FreeBSD. | ||||
*/ | */ | ||||
typedef struct kdtrace_proc { | typedef struct kdtrace_proc { | ||||
int p_dtrace_probes; /* Are there probes for this proc? */ | int p_dtrace_probes; /* Are there probes for this proc? */ | ||||
u_int64_t p_dtrace_count; /* Number of DTrace tracepoints */ | u_int64_t p_dtrace_count; /* Number of DTrace tracepoints */ | ||||
void *p_dtrace_helpers; /* DTrace helpers, if any */ | void *p_dtrace_helpers; /* DTrace helpers, if any */ | ||||
int p_dtrace_model; | int p_dtrace_model; | ||||
uint64_t p_fasttrap_tp_gen; /* Tracepoint hash table gen */ | |||||
} kdtrace_proc_t; | } kdtrace_proc_t; | ||||
/* | /* | ||||
* Kernel DTrace extension to 'struct thread' for FreeBSD. | * Kernel DTrace extension to 'struct thread' for FreeBSD. | ||||
*/ | */ | ||||
typedef struct kdtrace_thread { | typedef struct kdtrace_thread { | ||||
u_int8_t td_dtrace_stop; /* Indicates a DTrace-desired stop */ | u_int8_t td_dtrace_stop; /* Indicates a DTrace-desired stop */ | ||||
u_int8_t td_dtrace_sig; /* Signal sent via DTrace's raise() */ | u_int8_t td_dtrace_sig; /* Signal sent via DTrace's raise() */ | ||||
Show All 32 Lines | #define td_dtrace_reg _tdu._tds._td_dtrace_reg | ||||
uintptr_t td_dtrace_astpc; | uintptr_t td_dtrace_astpc; | ||||
/* DTrace return sequence location. */ | /* DTrace return sequence location. */ | ||||
#ifdef __amd64__ | #ifdef __amd64__ | ||||
uintptr_t td_dtrace_regv; | uintptr_t td_dtrace_regv; | ||||
#endif | #endif | ||||
u_int64_t td_hrtime; /* Last time on cpu. */ | u_int64_t td_hrtime; /* Last time on cpu. */ | ||||
void *td_dtrace_sscr; /* Saved scratch space location. */ | void *td_dtrace_sscr; /* Saved scratch space location. */ | ||||
void *td_systrace_args; /* syscall probe arguments. */ | void *td_systrace_args; /* syscall probe arguments. */ | ||||
uint64_t td_fasttrap_tp_gen; /* Tracepoint hash table gen. */ | |||||
} kdtrace_thread_t; | } kdtrace_thread_t; | ||||
/* | /* | ||||
* Definitions to reference fields in the FreeBSD DTrace structures defined | * Definitions to reference fields in the FreeBSD DTrace structures defined | ||||
* above using the names of fields in similar structures in Solaris. Note | * above using the names of fields in similar structures in Solaris. Note | ||||
* that the separation on FreeBSD is a licensing constraint designed to | * that the separation on FreeBSD is a licensing constraint designed to | ||||
* keep the GENERIC kernel BSD licensed. | * keep the GENERIC kernel BSD licensed. | ||||
*/ | */ | ||||
Show All 11 Lines | |||||
#define t_dtrace_reg td_dtrace->td_dtrace_reg | #define t_dtrace_reg td_dtrace->td_dtrace_reg | ||||
#define t_dtrace_pc td_dtrace->td_dtrace_pc | #define t_dtrace_pc td_dtrace->td_dtrace_pc | ||||
#define t_dtrace_npc td_dtrace->td_dtrace_npc | #define t_dtrace_npc td_dtrace->td_dtrace_npc | ||||
#define t_dtrace_scrpc td_dtrace->td_dtrace_scrpc | #define t_dtrace_scrpc td_dtrace->td_dtrace_scrpc | ||||
#define t_dtrace_astpc td_dtrace->td_dtrace_astpc | #define t_dtrace_astpc td_dtrace->td_dtrace_astpc | ||||
#define t_dtrace_regv td_dtrace->td_dtrace_regv | #define t_dtrace_regv td_dtrace->td_dtrace_regv | ||||
#define t_dtrace_sscr td_dtrace->td_dtrace_sscr | #define t_dtrace_sscr td_dtrace->td_dtrace_sscr | ||||
#define t_dtrace_systrace_args td_dtrace->td_systrace_args | #define t_dtrace_systrace_args td_dtrace->td_systrace_args | ||||
#define t_fasttrap_tp_gen td_dtrace->td_fasttrap_tp_gen | |||||
#define p_dtrace_helpers p_dtrace->p_dtrace_helpers | #define p_dtrace_helpers p_dtrace->p_dtrace_helpers | ||||
#define p_dtrace_count p_dtrace->p_dtrace_count | #define p_dtrace_count p_dtrace->p_dtrace_count | ||||
#define p_dtrace_probes p_dtrace->p_dtrace_probes | #define p_dtrace_probes p_dtrace->p_dtrace_probes | ||||
#define p_model p_dtrace->p_dtrace_model | #define p_model p_dtrace->p_dtrace_model | ||||
#define p_fasttrap_tp_gen p_dtrace->p_fasttrap_tp_gen | |||||
#define DATAMODEL_NATIVE 0 | #define DATAMODEL_NATIVE 0 | ||||
#ifdef __amd64__ | #ifdef __amd64__ | ||||
#define DATAMODEL_LP64 0 | #define DATAMODEL_LP64 0 | ||||
#define DATAMODEL_ILP32 1 | #define DATAMODEL_ILP32 1 | ||||
#else | #else | ||||
#define DATAMODEL_LP64 1 | #define DATAMODEL_LP64 1 | ||||
#define DATAMODEL_ILP32 0 | #define DATAMODEL_ILP32 0 | ||||
▲ Show 20 Lines • Show All 44 Lines • Show Last 20 Lines |