Skip to contentSkip to conversation

Perf Hardware Counters Android

DISCUSSION Harris 2 participants 2 messages Sep 21, 2015 – Oct 4, 2015

lore
Share & tools
lore

Harris

author
#0 lore raw

I have compiled AOSP which includes perf tool. Later I pushed this compiled perf module into production build on my MotoG device.
Now I am able to run perf command however perf top command only shows empty layout of table with no entry. Similarly I found I can to record and
stat for software events only.
While hardware events like "cycles" are not recorded.

I wonder if it is not possible to use perf with production built android or do I need to configure something. Please help me out.

#1 lore raw

Em Mon, Sep 21, 2015 at 07:54:49AM +0000, Harris escreveu:

Quoted 9 lines

I have compiled AOSP which includes perf tool. Later I pushed this compiled perf module into production build on my MotoG device.
Now I am able to run perf command however perf top command only shows empty layout of table with no entry. Similarly I found I can to record and
stat for software events only.
While hardware events like "cycles" are not recorded.

Quoted 3 lines

I wonder if it is not possible to use perf with production built android or do I need to configure something. Please help me out.

Please tell us the versions of all the components you mentioned, i.e. what perf tool? What AOSP? What kernel?

- Arnaldo