Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F136254305
D26404.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
898 B
Referenced Files
None
Subscribers
None
D26404.diff
View Options
Index: head/sys/kern/kern_ktrace.c
===================================================================
--- head/sys/kern/kern_ktrace.c
+++ head/sys/kern/kern_ktrace.c
@@ -347,6 +347,9 @@
mtx_lock(&ktrace_mtx);
STAILQ_INSERT_TAIL(&td->td_proc->p_ktr, req, ktr_list);
mtx_unlock(&ktrace_mtx);
+ thread_lock(td);
+ td->td_flags |= TDF_ASTPENDING;
+ thread_unlock(td);
}
/*
Index: head/sys/kern/subr_trap.c
===================================================================
--- head/sys/kern/subr_trap.c
+++ head/sys/kern/subr_trap.c
@@ -130,9 +130,6 @@
PROC_UNLOCK(p);
}
#endif
-#ifdef KTRACE
- KTRUSERRET(td);
-#endif
/*
* Charge system time if profiling.
@@ -340,6 +337,10 @@
*/
if (td->td_pflags & TDP_SIGFASTPENDING)
sigfastblock_setpend(td, false);
+
+#ifdef KTRACE
+ KTRUSERRET(td);
+#endif
/*
* We need to check to see if we have to exit or wait due to a
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Nov 17, 9:31 PM (8 h, 14 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
25396046
Default Alt Text
D26404.diff (898 B)
Attached To
Mode
D26404: Move KTRUSERRET() from userret() to ast()
Attached
Detach File
Event Timeline
Log In to Comment