Thread (3 messages) 3 messages, 2 authors, 2017-09-12

Re: Prevent Kernel from resetting cycle counter

From: Kim Phillips <hidden>
Date: 2017-09-09 00:07:36
Also in: linux-arm-kernel

On Wed, 6 Sep 2017 17:36:36 -0700
Jason Teplitz [off-list ref] wrote:

[adding linux-arm-kernel]
I'm reading the armv8 PMU cycle counter from userspace and noticing
that it gets periodically reset by something. Does anything inside the
kernel reset these counters? I am not using perf, so I'm not sure why
anything else would be touching them.
PMCCNTR only shows up in kernel perf/PMU and KVM code, so yes, no
reason for it to be reset, esp. if no arm-pmu interrupts are triggered.

Is the period constant, as if to suggest a wraparound?  Can you use
CNTVCT instead?

Thanks,

Kim
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help