perf_event_open syscall fails for HW counters on Pandaboard
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linaro-landing-team-ti |
New
|
Undecided
|
Unassigned | ||
linux (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
On Pandaboard perf_event_open syscall fails with errno = 19 (ENODEV) when trying to open perf counter with type PERF_TYPE_HARDWARE.
The code to reproduce the error is attached. I checked that it runs successfully on Beagleboard, Sandy Bridge, Bulldozer systems, and even on Pandaboard if I request software events (e.g. type = PERF_TYPE_SOFTWARE, config = PERF_COUNT_
Linux Kernel (uname -a): Linux pandaboard 3.2.0-1418-omap4 #25-Ubuntu SMP PREEMPT Fri Aug 31 18:41:31 UTC 2012 armv7l armv7l armv7l GNU/Linux
Distribution: Ubuntu Server 12.04
Loaded kernel modules (lsmod): cpufreq_powersave, cpufreq_
Kernel log (dmesg): contains message "hw perfevents: enabled with ARMv7 Cortex-A9 PMU driver, 7 counters available"
/proc/cpuinfo content:
Processor : ARMv7 Processor rev 10 (v7l)
processor : 0
BogoMIPS : 696.39
processor : 1
BogoMIPS : 681.68
Features : swp half thumb fastmult vfp edsp thumbee neon vfpv3 tls
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x2
CPU part : 0xc09
CPU revision : 10
Hardware : OMAP4 Panda board
Revision : 0020
Serial : 0000000000000000
affects: | linaro → linux |
affects: | linux → linaro-landing-team-ti |
no longer affects: | linux-meta (Ubuntu) |
The code to reproduce the bug