aboutsummaryrefslogtreecommitdiff
path: root/sys/cddl/contrib/opensolaris
diff options
context:
space:
mode:
authorJustin Hibbits <jhibbits@FreeBSD.org>2022-10-30 19:33:06 +0000
committerJustin Hibbits <jhibbits@FreeBSD.org>2022-10-30 20:00:44 +0000
commitec9388ddba02b45ed106113594d80be349415665 (patch)
treedfcfc9b07f4cac734f64460fb24385b366e889da /sys/cddl/contrib/opensolaris
parent35c87c070a2d04f06c56578b0a4b2e9c13f62be5 (diff)
downloadsrc-ec9388ddba02b45ed106113594d80be349415665.tar.gz
src-ec9388ddba02b45ed106113594d80be349415665.zip
dtrace: Make pid provider work on trivial tests
'newpc' needs set in the "common" case. With this, the trivial test $ dtrace -n 'pid$target:libc:strlen:entry { trace(timestamp); }' -p <pid> now works. MFC after: 3 weeks
Diffstat (limited to 'sys/cddl/contrib/opensolaris')
-rw-r--r--sys/cddl/contrib/opensolaris/uts/powerpc/dtrace/fasttrap_isa.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/cddl/contrib/opensolaris/uts/powerpc/dtrace/fasttrap_isa.c b/sys/cddl/contrib/opensolaris/uts/powerpc/dtrace/fasttrap_isa.c
index 69ba0f3c64d0..8f4db66f817d 100644
--- a/sys/cddl/contrib/opensolaris/uts/powerpc/dtrace/fasttrap_isa.c
+++ b/sys/cddl/contrib/opensolaris/uts/powerpc/dtrace/fasttrap_isa.c
@@ -486,6 +486,10 @@ fasttrap_pid_probe(struct trapframe *frame)
rp->lr = rp->pc + 4;
break;
case FASTTRAP_T_COMMON:
+ curthread->t_dtrace_pc = pc;
+ curthread->t_dtrace_npc = pc + 4;
+ curthread->t_dtrace_on = 1;
+ new_pc = pc;
break;
};
done: