Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F145412288
D40544.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
487 B
Referenced Files
None
Subscribers
None
D40544.diff
View Options
diff --git a/sys/sys/pmc.h b/sys/sys/pmc.h
--- a/sys/sys/pmc.h
+++ b/sys/sys/pmc.h
@@ -1069,6 +1069,12 @@
extern struct pmc_driverstats pmc_stats;
#if defined(HWPMC_DEBUG)
+
+/* HWPMC_DEBUG without KTR will compile but is a no-op. */
+#if !defined(KTR) || !defined(KTR_COMPILE) || ((KTR_COMPILE & KTR_SUBSYS) == 0)
+#error "HWPMC_DEBUG requires KTR and KTR_COMPILE=KTR_SUBSYS -- see ktr(4)"
+#endif
+
#include <sys/ktr.h>
#define __pmcdbg_used /* unused variable annotation */
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Feb 20, 12:41 PM (9 h, 15 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28899231
Default Alt Text
D40544.diff (487 B)
Attached To
Mode
D40544: hwpmc: add error for HWPMC_DEBUG without KTR
Attached
Detach File
Event Timeline
Log In to Comment