Page MenuHomeFreeBSD

D30047.diff
No OneTemporary

D30047.diff

diff --git a/sys/sys/pmc.h b/sys/sys/pmc.h
--- a/sys/sys/pmc.h
+++ b/sys/sys/pmc.h
@@ -404,7 +404,7 @@
* | CPU | PMC MODE | CLASS | ROW INDEX |
* +-----------------------+-------+-----------+
*
- * where CPU is 12 bits, MODE 8, CLASS 4, and ROW INDEX 8 Field 'CPU'
+ * where CPU is 12 bits, MODE 4, CLASS 8, and ROW INDEX 8 Field 'CPU'
* is set to the requested CPU for system-wide PMCs or PMC_CPU_ANY for
* process-mode PMCs. Field 'PMC MODE' is the allocated PMC mode.
* Field 'PMC CLASS' is the class of the PMC. Field 'ROW INDEX' is the
@@ -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
Fri, Jan 10, 8:13 AM (13 h, 3 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15740980
Default Alt Text
D30047.diff (1 KB)

Event Timeline