Page MenuHomeFreeBSD

D49441.diff
No OneTemporary

D49441.diff

diff --git a/sys/sys/ktrace.h b/sys/sys/ktrace.h
--- a/sys/sys/ktrace.h
+++ b/sys/sys/ktrace.h
@@ -87,10 +87,9 @@
* is the public interface.
*/
#define KTRCHECK(td, type) ((td)->td_proc->p_traceflag & (1 << type))
-#define KTRPOINT(td, type) (__predict_false(KTRCHECK((td), (type))))
-#define KTRCHECKDRAIN(td) (!(STAILQ_EMPTY(&(td)->td_proc->p_ktr)))
+#define KTRPOINT(td, type) (__predict_false(KTRCHECK((td), (type))))
#define KTRUSERRET(td) do { \
- if (__predict_false(KTRCHECKDRAIN(td))) \
+ if (__predict_false(!STAILQ_EMPTY_ATOMIC(&(td)->td_proc->p_ktr))) \
ktruserret(td); \
} while (0)

File Metadata

Mime Type
text/plain
Expires
Tue, Aug 4, 5:26 AM (18 h, 34 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35940359
Default Alt Text
D49441.diff (623 B)

Event Timeline