Red Hat Bugzilla – Bug 647434
perf: Mark software events as irqsafe
Last modified: 2016-05-22 19:31:29 EDT
From: Peter Zijlstra <peterz@infradead.org> Noticed while using 'perf top' on a machine without a supported PMU on 2.6.33.7-rt29, when top falls back to using the "cpu-clock" software event. Reproduced on other machines where the problem was masked due to the existence and use of hardware events, by explicitely asking for a software event using: perf top -e cpu-clock
Created attachment 456218 [details] bz647434-perf-Mark-software-events-as-irqsafe.patch
Technical note added. If any revisions are required, please edit the "Technical Notes" field accordingly. All revisions will be proofread by the Engineering Content Services team. New Contents: * Cause: * Consequence: * Fix: * Result:
(In reply to comment #3) > Technical note added. If any revisions are required, please edit the > "Technical Notes" field > accordingly. All revisions will be proofread by the Engineering Content > Services team. > > New Contents: > * Cause: > * Consequence: > * Fix: > * Result: Cause: using 'perf top' on a machine without a supported PMU on 2.6.33.7-rt29, when top falls back to using the "cpu-clock" software event. Consequence: BUG: scheduling while atomic Fix: Patch is attached to this bugzilla Result: no BUG is triggered
Verified by code review and by running 'perf top'. Found bz647434-perf-Mark-software-events-as-irqsafe.patch (mrg-rt-v2.git 8676f3c7afd090d5881b998e8e809d00546990e7) applied to kernel-rt-2.6.33.7-rt29.47.src.rpm. When running 'perf top' on athlon4.rhts.eng.bos.redhat.com with -rt29.45 the box froze completely after a short time. When running -rt29.47 'perf top' did it's job and the box did not freeze at all.
An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHSA-2010-0958.html