Changeset View
Changeset View
Standalone View
Standalone View
sys/cddl/contrib/opensolaris/uts/common/sys/dtrace.h
| Context not available. | |||||
| #include <sys/param.h> | #include <sys/param.h> | ||||
| #include <sys/stdint.h> | #include <sys/stdint.h> | ||||
| #include <sys/types.h> | |||||
mhorne: The presence of `sys/param.h` makes the include of `sys/types.h` redundant. Per style(9), only… | |||||
| #if defined(__i386) || defined(__amd64) || defined (__riscv) | |||||
| extern int dtrace_instr_size(uint8_t *instr); | |||||
| #endif | |||||
Done Inline ActionsWhy did you move this above all of the #includes? Typically includes will come first. markj: Why did you move this above all of the #includes? Typically includes will come first. | |||||
| #ifdef _KERNEL | #ifdef _KERNEL | ||||
| #include <sys/endian.h> | #include <sys/endian.h> | ||||
| #endif | #endif | ||||
| Context not available. | |||||
| #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/ucred.h> | #include <sys/ucred.h> | ||||
| #endif | #endif | ||||
| typedef int model_t; | typedef int model_t; | ||||
| Context not available. | |||||
| extern int dtrace_mach_aframes(void); | extern int dtrace_mach_aframes(void); | ||||
| #if defined(__i386) || defined(__amd64) | #if defined(__i386) || defined(__amd64) | ||||
| extern int dtrace_instr_size(uint8_t *instr); | |||||
| extern int dtrace_instr_size_isa(uint8_t *, model_t, int *); | extern int dtrace_instr_size_isa(uint8_t *, model_t, int *); | ||||
| extern void dtrace_invop_callsite(void); | extern void dtrace_invop_callsite(void); | ||||
| #endif | #endif | ||||
| Context not available. | |||||
The presence of sys/param.h makes the include of sys/types.h redundant. Per style(9), only one or the other should be included.