Changeset View
Changeset View
Standalone View
Standalone View
sys/modules/dtrace/dtrace/Makefile
Show All 14 Lines | SRCS= dtrace.c \ | ||||
dtrace_xoroshiro128_plus.c \ | dtrace_xoroshiro128_plus.c \ | ||||
dtrace_asm.S \ | dtrace_asm.S \ | ||||
dtrace_subr.c | dtrace_subr.c | ||||
.if ${MACHINE_CPUARCH} == "amd64" || ${MACHINE_CPUARCH} == "i386" | .if ${MACHINE_CPUARCH} == "amd64" || ${MACHINE_CPUARCH} == "i386" | ||||
.PATH: ${SYSDIR}/cddl/dev/dtrace/x86 | .PATH: ${SYSDIR}/cddl/dev/dtrace/x86 | ||||
SRCS+= dis_tables.c \ | SRCS+= dis_tables.c \ | ||||
instr_size.c | instr_size.c | ||||
CFLAGS+= -I${SYSDIR}/cddl/contrib/opensolaris/uts/intel \ | CFLAGS+= -I${SYSDIR}/cddl/contrib/opensolaris/uts/intel \ | ||||
-I${SYSDIR}/cddl/dev/dtrace/x86 | -I${SYSDIR}/cddl/dev/dtrace/x86 | ||||
.endif | .endif | ||||
ZINCDIR=${SYSDIR}/contrib/openzfs/include | |||||
CFLAGS+= -D_SYS_VMEM_H_ -D__KERNEL__ -D__BSD_VISIBLE=1 -nostdinc \ | |||||
-D_MACHINE_ENDIAN_H_ -DSMP \ | |||||
-I${ZINCDIR} \ | |||||
-I${ZINCDIR}/spl \ | |||||
-I${ZINCDIR}/os/freebsd \ | |||||
-I${ZINCDIR}/os/freebsd/spl \ | |||||
-I${ZINCDIR}/os/freebsd/zfs \ | |||||
-I${SYSDIR}/cddl/compat/opensolaris \ | |||||
-I${SYSDIR}/cddl/contrib/opensolaris/uts/common \ | |||||
-include ${ZINCDIR}/os/freebsd/spl/sys/ccompile.h | |||||
SRCS+= bus_if.h device_if.h vnode_if.h | SRCS+= bus_if.h device_if.h vnode_if.h | ||||
# Needed for dtrace_asm.S | # Needed for dtrace_asm.S | ||||
DPSRCS+= assym.inc | DPSRCS+= assym.inc | ||||
# These are needed for assym.inc | # These are needed for assym.inc | ||||
SRCS+= opt_kstack_pages.h opt_nfs.h opt_hwpmc_hooks.h | SRCS+= opt_kstack_pages.h opt_nfs.h opt_hwpmc_hooks.h | ||||
Show All 16 Lines | EXPORT_SYMS= dtrace_register \ | ||||
dtrace_unregister \ | dtrace_unregister \ | ||||
dtrace_probe_lookup | dtrace_probe_lookup | ||||
dtrace_asm.o: assym.inc | dtrace_asm.o: assym.inc | ||||
.include <bsd.kmod.mk> | .include <bsd.kmod.mk> | ||||
CFLAGS+= -include ${SYSDIR}/cddl/compat/opensolaris/sys/debug_compat.h | CFLAGS+= -include ${SYSDIR}/cddl/compat/opensolaris/sys/debug_compat.h | ||||
CFLAGS.dtrace_asm.S+= -D_SYS_ERRNO_H_ -D_SYS_PARAM_H_ -DLOCORE | |||||
imp: Why do we need these extra defines? | |||||
Done Inline Actions
It was sucking in those headers I’ll see if other changes have fixed it in the meantime mmacy: > Why do we need these extra defines?
It was sucking in those headers I’ll see if other… | |||||
Not Done Inline ActionsFair enough. We may want to make it possible to include those two files in assembler contexts, but it's a minor point. imp: Fair enough. We may want to make it possible to include those two files in assembler contexts… | |||||
CWARNFLAGS+= -Wno-parentheses | CWARNFLAGS+= -Wno-parentheses | ||||
CWARNFLAGS+= -Wno-uninitialized | CWARNFLAGS+= -Wno-uninitialized | ||||
CWARNFLAGS+= -Wno-cast-qual | CWARNFLAGS+= -Wno-cast-qual | ||||
CWARNFLAGS+= -Wno-unused | CWARNFLAGS+= -Wno-unused |
Why do we need these extra defines?