-
Notifications
You must be signed in to change notification settings - Fork 18k
runtime: implement cputicks using MRC(PMCCNTR) on arm #9892
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
The problem is that not all kernel allow user access to performance
counters.
I tried to read pmuseren, but the result is 0 with an old 3.0 kernel.
|
That was my suspicion as well, I don't see how the kernel could multiplex these singleton resources across anyone who could whip up an MRC instruction.
|
We discussed this recently on #9725 (in fact this may be a duplicate). The best I could find was perf_event_open, which still requires a read syscall. |
Time to punt this to Go 1.6? |
Dup of #9725 |
Current implementation of cputicks on ARM is very low precision which hurts block profile and tracer.
http://gperftools.googlecode.com/svn/trunk/src/base/cycleclock.h
contains lots of goodness, and in particular cputicks implementation for arm:
Should consider switching to it.
There is also an impl for power processors.
The text was updated successfully, but these errors were encountered: