Page MenuHomeFreeBSD

D7397.diff
No OneTemporary

D7397.diff

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

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)

Event Timeline