Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F153356303
D7397.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
463 B
Referenced Files
None
Subscribers
None
D7397.diff
View Options
Index: head/sys/dev/hwpmc/hwpmc_core.c
===================================================================
--- head/sys/dev/hwpmc/hwpmc_core.c
+++ head/sys/dev/hwpmc/hwpmc_core.c
@@ -365,7 +365,7 @@
if (PMC_IS_SAMPLING_MODE(PMC_TO_MODE(pm)))
*v = iaf_perfctr_value_to_reload_count(tmp);
else
- *v = tmp;
+ *v = tmp & ((1ULL << core_iaf_width) - 1);
PMCDBG4(MDP,REA,1, "iaf-read cpu=%d ri=%d msr=0x%x -> v=%jx", cpu, ri,
IAF_RI_TO_MSR(ri), *v);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Apr 21, 4:34 PM (21 h, 16 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31920967
Default Alt Text
D7397.diff (463 B)
Attached To
Mode
D7397: Apply the fix from r232612 to fixed function counters.
Attached
Detach File
Event Timeline
Log In to Comment