July 04, 2020, 06:55:55 am


Have you visited the Allwinner Chipset wiki? - http://linux-sunxi.org/

Perf_event_open is not working on A80

Started by seethestar, August 10, 2015, 10:23:59 pm

Previous topic - Next topic


I'm trying to get instruction counter of a program using perf.
I already installed some packages for perf
but, when I run the perf_event_open, error is occurred.

I used like this 'fd = perf_event_open(&attr, getpid(), -1, -1, 0);'
but value of fd was -1.
error message is 'a.out: cannot create event: No such file or directory'

I compiled with /usr/local/lib/libpfm.a
and I have succeeded this work on other board.

anyone can help me??