From c757049235edc6ecca32c6c584f7d5582aaeb74a Mon Sep 17 00:00:00 2001 From: Justin Hibbits Date: Wed, 7 Nov 2012 23:45:09 +0000 Subject: Implement DTrace for PowerPC. This includes both 32-bit and 64-bit. There is one known issue: Some probes will display an error message along the lines of: "Invalid address (0)" I tested this with both a simple dtrace probe and dtruss on a few different binaries on 32-bit. I only compiled 64-bit, did not run it, but I don't expect problems without the modules loaded. Volunteers are welcome. MFC after: 1 month --- sys/modules/Makefile | 5 +++++ sys/modules/dtrace/Makefile | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) (limited to 'sys/modules') diff --git a/sys/modules/Makefile b/sys/modules/Makefile index ddf4fb9d8395..fef1b30ea6d2 100644 --- a/sys/modules/Makefile +++ b/sys/modules/Makefile @@ -788,10 +788,15 @@ _exca= exca _nvram= powermac_nvram _pccard= pccard _sound= sound +_cyclic= cyclic +_dtrace= dtrace +_opensolaris= opensolaris .endif .if ${MACHINE_ARCH} == "powerpc64" .if ${MK_CDDL} != "no" || defined(ALL_MODULES) +_cyclic= cyclic +_dtrace= dtrace _opensolaris= opensolaris .endif .if ${MK_ZFS} != "no" || defined(ALL_MODULES) diff --git a/sys/modules/dtrace/Makefile b/sys/modules/dtrace/Makefile index 02423e93f342..6d18143e78ce 100644 --- a/sys/modules/dtrace/Makefile +++ b/sys/modules/dtrace/Makefile @@ -10,12 +10,14 @@ SUBDIR= dtmalloc \ dtraceall \ dtrace_test \ dtio \ + lockstat \ + profile \ prototype \ sdt \ systrace .if ${MACHINE_CPUARCH} == "amd64" || ${MACHINE_CPUARCH} == "i386" -SUBDIR+= fasttrap fbt lockstat profile systrace_linux32 +SUBDIR+= fasttrap fbt systrace_linux32 .endif .if ${MACHINE_CPUARCH} == "amd64" SUBDIR+= systrace_freebsd32 -- cgit v1.2.3