Author Topic: Perf_event_open is not working on A80  (Read 960 times)

Offline seethestar

  • Newbie
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Perf_event_open is not working on A80
« on: August 10, 2015, 10:23:59 pm »
Hi.
I'm trying to get instruction counter of a program using perf.
I already installed some packages for perf
(https://wiki.linaro.org/KenWerner/Sandbox/perf#patching_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??