hw perfevents on the pandabaord

Bug #744458 reported by Ken Werner
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Linaro Multimedia WG project
linux-linaro-omap (Ubuntu)

Bug Description

The 2.6.38-1001-linaro-omap kernel reports "unable to reserve pmu" when attempting to access hw counters using perf:
  $ uname -a
  Linux panda 2.6.38-1001-linaro-omap #2-Ubuntu SMP Mon Mar 21 21:40:07 UTC 2011 armv7l armv7l armv7l GNU/Linux

  $ sudo su -c "echo -1 > /proc/sys/kernel/perf_event_paranoid" && cat /proc/sys/kernel/perf_event_paranoid

  $ sudo ./perf stat -e r63 -- sleep 1
  No permission to collect stats.
  Consider tweaking /proc/sys/kernel/perf_event_paranoid.

  $ dmesg | tail -1
  [10985.304809] hw perfevents: unable to reserve pmu

  $ sudo su -c "strace -e trace=perf_event_open ./perf stat -e r63 -- sleep 1"
  perf_event_open(0x1ed338, 0x114c, 0xffffffff, 0xffffffff, 0) = -1 ENODEV (No such device)

The perf_event_open syscall returns ENODEV but the kernel config looks sane to me:
  $ grep -i perf_ /boot/config-2.6.38-1001-linaro-omap

Revision history for this message
Sachin Gupta (sachin-gupta) wrote :

We need resolution for this bug as we need to validate system metics app on panda

Changed in linaro-multimedia-wg:
importance: Undecided → High
milestone: none → 11.05-final
Revision history for this message
warmcat (andy-warmcat) wrote :

Is this still broken on 3.0 kernel?

Fathi Boudra (fboudra)
Changed in linaro-multimedia-project:
milestone: 11.05-final → 2011.09
Revision history for this message
Fathi Boudra (fboudra) wrote :
Revision history for this message
Tom Gall (tom-gall) wrote :

Trying this out with current release.

root@neso:~# perf stat -e r63 -- sleep 1
perf_3.1.1-15 not found
You may need to install linux-tools-3.1.1-15

I've looked for that version of linux-tools, it isn't in the archive and I don't see it in overlay or tools PPAs. Somebody outside of the MMWG needs to take ownership of it.

Changed in linaro-multimedia-project:
importance: High → Low
Revision history for this message
Chase Qi (chase-qi) wrote :
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.