perf stat problem - cycles event is not supported

Bug #1153769 reported by Chris J Arges
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Fix Released
High
Chris J Arges

Bug Description

When running with the latest Natty kernel 2.6.38-16.67, perf stat doesn't work.
For example:
# perf stat -e cycles ls
Error: cycles event is not supported.
Fatal: Not all events could be opened

The following relevant messages are found in dmesg:
[ 0.494517] Performance Events: PEBS fmt1+, Westmere events, Broken BIOS detected, using software events only.
[ 0.505676] [Firmware Bug]: the BIOS has corrupted hw-PMU resources (MSR 38d is 330)

This is related to this issue:
http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?objectID=c03265132&lang=en&cc=us&taskId=101&prodSeriesId=4132829&prodTypeId=3709945

Revision history for this message
Chris J Arges (arges) wrote :

This commit fixes the issue:
commit 45daae575e08bbf7405c5a3633e956fa364d1b4f
Author: Ingo Molnar <email address hidden>
Date: Fri Mar 25 10:24:23 2011 +0100

    perf, x86: Complain louder about BIOSen corrupting CPU/PMU state and continue

tags: added: natty
Revision history for this message
Julian Wiedmann (jwiedmann) wrote :

Chris,

Natty is EOL and the fix landed in 2.6.39, so all current releases should be fine. Can this bug be closed?

Changed in linux (Ubuntu):
status: In Progress → Incomplete
Revision history for this message
Chris J Arges (arges) wrote :

Closing.
Thanks

Changed in linux (Ubuntu):
status: Incomplete → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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