FreeBSD Bugzilla – Attachment 156477 Details for
Bug 198149
[hwpmc] pmcstat -P -t (top mode, process sampling) stops after a while
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
first_hack.patch
file_198149.txt (text/plain), 541 bytes, created by
John Baldwin
on 2015-05-07 19:59:05 UTC
(
hide
)
Description:
first_hack.patch
Filename:
MIME Type:
Creator:
John Baldwin
Created:
2015-05-07 19:59:05 UTC
Size:
541 bytes
patch
obsolete
>diff --git a/sys/dev/hwpmc/hwpmc_core.c b/sys/dev/hwpmc/hwpmc_core.c >index afa5def..c9b46c5 100644 >--- a/sys/dev/hwpmc/hwpmc_core.c >+++ b/sys/dev/hwpmc/hwpmc_core.c >@@ -203,8 +203,8 @@ core_pcpu_fini(struct pmc_mdep *md, int cpu) > static pmc_value_t > iaf_perfctr_value_to_reload_count(pmc_value_t v) > { >- v &= (1ULL << core_iaf_width) - 1; >- return (1ULL << core_iaf_width) - v; >+ /* Sign extend the value and then invert it. */ >+ return -(int64_t)v << (64 - core_iaf_width) >> (64 - core_iaf_width); > } > > static pmc_value_t
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 198149
:
156213
| 156477 |
156483