I am trying to get some basic performance data on my new Galaxy S4 phone. I already compiled a custom kernel and managed to bring it to the device using Odin. These are the kernel modules associated with the primary tool that I included:
CONFIG_HAVE_PERF_EVENTS=y CONFIG_PERF_USE_VMALLOC=y CONFIG_PERF_EVENTS=y CONFIG_PERF_COUNTERS=y
I also cross compiled the perf tool. The problem is that when I run the following command:
perf stat ls
The output does not seem to be correct:
Performance counter stats for 'ls': 10887392 cycles # 0.000 Ghz 0 instructions # 0.00 insns per cycle 0.012448321 seconds time elapsed
I set the processor policies to "userpace" and did:
cpufreq-set -f 1600000
to ensure that all cores always run at maximum frequency.
I would appreciate any help.
Here are links to similar cases without a solution: http://lists.linaro.org/pipermail/linaro-kernel/2012-December/002611.html http://forums.arm.com/index.php?/topic/15020- pmu-in-cortex-a8-omap-3530-what-am-i-doing-wrong /
Relevant stackoverflow topic: How to measure program runtime on an ARM Cortex-A8 processor?
Can you see other HW events like "CPU Cycles" or "Cache Flaws"?
perf stat -e cache-misses,cycles ls
You might also want to set CONFIG_HW_PERF_EVENTS.
Source: https://habr.com/ru/post/948101/More articles:Titanium development in Sublime Text 2 - sublimetext2https://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/948097/ember-app-requests-to-rails-app-cross-domain&usg=ALkJrhg4rjnGKet-nPAQNYbQlkXntUWUIwProgrammatically access Google Chrome bookmarks - google-chromeWhat will I lose if I switch from R to Python? - pythonReplace commas with pipes, but not commas enclosed in double quotes - perlCapybara :: ElementNotFound: Unable to find css "a" - ruby-on-railsCursorAdapter for GoogleMaps - androidAllow access to the link only from a specific page? - javascriptCHAID analysis options for OS X / Python / R - pythonMake WCF Service Calls on the .NET 4.0 Client Side - .net-4.0All Articles