Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F178275053
D62358.1796398175.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
835 B
Referenced Files
None
Subscribers
None
D62358.1796398175.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Fri, Dec 4, 3:29 PM (23 h, 23 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
42207875
Default Alt Text
D62358.1796398175.diff (835 B)
Attached To
Mode
D62358: powerpc: let DTrace decide whether a kernel trap instruction is its probe
Attached
Detach File
Event Timeline