Page MenuHomeFreeBSD

D62358.1796398615.diff
No OneTemporary

Authored By
Unknown
Size
835 B
Referenced Files
None
Subscribers
None

D62358.1796398615.diff

diff --git a/sys/powerpc/powerpc/trap.c b/sys/powerpc/powerpc/trap.c
--- a/sys/powerpc/powerpc/trap.c
+++ b/sys/powerpc/powerpc/trap.c
@@ -458,14 +458,16 @@
switch (type) {
case EXC_PGM:
#ifdef KDTRACE_HOOKS
- if (frame_is_trap_inst(frame)) {
- if (*(uint32_t *)frame->srr0 == EXC_DTRACE) {
- if (dtrace_invop_jump_addr != NULL) {
- dtrace_invop_jump_addr(frame);
- return;
- }
- }
- }
+ /*
+ * Let DTrace look the address up in its probe table
+ * rather than test the instruction in memory: a probe
+ * being disabled on another CPU has already put the
+ * original instruction back there.
+ */
+ if (frame_is_trap_inst(frame) &&
+ dtrace_invop_jump_addr != NULL &&
+ dtrace_invop_jump_addr(frame) == 0)
+ return;
#endif
#ifdef KDB
if (db_trap_glue(frame))

File Metadata

Mime Type
text/plain
Expires
Fri, Dec 4, 3:36 PM (23 h, 31 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
42207875
Default Alt Text
D62358.1796398615.diff (835 B)

Event Timeline