Changeset View
Changeset View
Standalone View
Standalone View
sys/cddl/contrib/opensolaris/uts/common/dtrace/dtrace.c
- This file is larger than 256 KB, so syntax highlighting is disabled by default.
Show First 20 Lines • Show All 469 Lines • ▼ Show 20 Lines | |||||
#define DT_BSWAP_32(x) ((DT_BSWAP_16(x) << 16) | DT_BSWAP_16((x) >> 16)) | #define DT_BSWAP_32(x) ((DT_BSWAP_16(x) << 16) | DT_BSWAP_16((x) >> 16)) | ||||
#define DT_BSWAP_64(x) ((DT_BSWAP_32(x) << 32) | DT_BSWAP_32((x) >> 32)) | #define DT_BSWAP_64(x) ((DT_BSWAP_32(x) << 32) | DT_BSWAP_32((x) >> 32)) | ||||
#define DT_MASK_LO 0x00000000FFFFFFFFULL | #define DT_MASK_LO 0x00000000FFFFFFFFULL | ||||
#define DTRACE_STORE(type, tomax, offset, what) \ | #define DTRACE_STORE(type, tomax, offset, what) \ | ||||
*((type *)((uintptr_t)(tomax) + (uintptr_t)offset)) = (type)(what); | *((type *)((uintptr_t)(tomax) + (uintptr_t)offset)) = (type)(what); | ||||
#ifndef __x86 | #if !defined(__x86) && !defined(__aarch64__) | ||||
#define DTRACE_ALIGNCHECK(addr, size, flags) \ | #define DTRACE_ALIGNCHECK(addr, size, flags) \ | ||||
if (addr & (size - 1)) { \ | if (addr & (size - 1)) { \ | ||||
*flags |= CPU_DTRACE_BADALIGN; \ | *flags |= CPU_DTRACE_BADALIGN; \ | ||||
cpu_core[curcpu].cpuc_dtrace_illval = addr; \ | cpu_core[curcpu].cpuc_dtrace_illval = addr; \ | ||||
return (0); \ | return (0); \ | ||||
} | } | ||||
#else | #else | ||||
#define DTRACE_ALIGNCHECK(addr, size, flags) | #define DTRACE_ALIGNCHECK(addr, size, flags) | ||||
▲ Show 20 Lines • Show All 17,957 Lines • Show Last 20 Lines |