sdt: Enable on 32-bit powerpc and powerpc64le
Reviewed by: jhibbits, adrian MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D54814
This commit is contained in:
@@ -390,7 +390,7 @@ powerpc/powerpc/platform.c standard
|
|||||||
powerpc/powerpc/platform_if.m standard
|
powerpc/powerpc/platform_if.m standard
|
||||||
powerpc/powerpc/ptrace_machdep.c standard
|
powerpc/powerpc/ptrace_machdep.c standard
|
||||||
powerpc/powerpc/sc_machdep.c optional sc
|
powerpc/powerpc/sc_machdep.c optional sc
|
||||||
powerpc/powerpc/sdt_machdep.c optional powerpc64 kdtrace_hooks
|
powerpc/powerpc/sdt_machdep.c optional kdtrace_hooks
|
||||||
powerpc/powerpc/setjmp.S standard
|
powerpc/powerpc/setjmp.S standard
|
||||||
powerpc/powerpc/sigcode32.S optional powerpc | compat_freebsd32
|
powerpc/powerpc/sigcode32.S optional powerpc | compat_freebsd32
|
||||||
powerpc/powerpc/sigcode64.S optional powerpc64 | powerpc64le
|
powerpc/powerpc/sigcode64.S optional powerpc64 | powerpc64le
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ SUBDIR= dtaudit \
|
|||||||
fbt \
|
fbt \
|
||||||
profile \
|
profile \
|
||||||
prototype \
|
prototype \
|
||||||
|
sdt \
|
||||||
systrace
|
systrace
|
||||||
|
|
||||||
.if ${MACHINE_CPUARCH} == "amd64" || ${MACHINE_CPUARCH} == "i386"
|
.if ${MACHINE_CPUARCH} == "amd64" || ${MACHINE_CPUARCH} == "i386"
|
||||||
@@ -31,8 +32,5 @@ SUBDIR+= fasttrap
|
|||||||
SUBDIR+= systrace_freebsd32
|
SUBDIR+= systrace_freebsd32
|
||||||
.endif
|
.endif
|
||||||
.endif
|
.endif
|
||||||
.if ${MACHINE_CPUARCH} != "powerpc" || ${MACHINE_ARCH} == "powerpc64"
|
|
||||||
SUBDIR+= sdt
|
|
||||||
.endif
|
|
||||||
|
|
||||||
.include <bsd.subdir.mk>
|
.include <bsd.subdir.mk>
|
||||||
|
|||||||
@@ -37,8 +37,8 @@ sdt_tracepoint_patch(uintptr_t patchpoint, uintptr_t target)
|
|||||||
uint32_t instr;
|
uint32_t instr;
|
||||||
|
|
||||||
KASSERT(sdt_tracepoint_valid(patchpoint, target),
|
KASSERT(sdt_tracepoint_valid(patchpoint, target),
|
||||||
("%s: invalid tracepoint %#lx -> %#lx",
|
("%s: invalid tracepoint %#jx -> %#jx",
|
||||||
__func__, patchpoint, target));
|
__func__, (uintmax_t)patchpoint, (uintmax_t)target));
|
||||||
|
|
||||||
instr = ((target - patchpoint) & 0x7fffffful) | 0x48000000;
|
instr = ((target - patchpoint) & 0x7fffffful) | 0x48000000;
|
||||||
memcpy((void *)patchpoint, &instr, sizeof(instr));
|
memcpy((void *)patchpoint, &instr, sizeof(instr));
|
||||||
|
|||||||
Reference in New Issue
Block a user