Page MenuHomeFreeBSD

D30047.id88421.diff
No OneTemporary

D30047.id88421.diff

Index: sys/sys/pmc.h
===================================================================
--- sys/sys/pmc.h
+++ sys/sys/pmc.h
@@ -415,12 +415,12 @@
*/
#define PMC_ID_TO_ROWINDEX(ID) ((ID) & 0xFF)
-#define PMC_ID_TO_CLASS(ID) (((ID) & 0xF00) >> 8)
-#define PMC_ID_TO_MODE(ID) (((ID) & 0xFF000) >> 12)
+#define PMC_ID_TO_CLASS(ID) (((ID) & 0xFF00) >> 8)
+#define PMC_ID_TO_MODE(ID) (((ID) & 0xF0000) >> 16)
#define PMC_ID_TO_CPU(ID) (((ID) & 0xFFF00000) >> 20)
#define PMC_ID_MAKE_ID(CPU,MODE,CLASS,ROWINDEX) \
- ((((CPU) & 0xFFF) << 20) | (((MODE) & 0xFF) << 12) | \
- (((CLASS) & 0xF) << 8) | ((ROWINDEX) & 0xFF))
+ ((((CPU) & 0xFFF) << 20) | (((MODE) & 0xF) << 16) | \
+ (((CLASS) & 0xFF) << 8) | ((ROWINDEX) & 0xFF))
/*
* Data structures for system calls supported by the pmc driver.

File Metadata

Mime Type
text/plain
Expires
Wed, Jan 22, 3:02 PM (13 h, 19 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16031241
Default Alt Text
D30047.id88421.diff (799 B)

Event Timeline