Skip to content

rr should open all PMUs #4072

@pcc

Description

@pcc

google/benchmark#2123

rr is affected by the same issue and should open all PMUs (or at least the PMU for the pinned CPU).

Symptom:

[FATAL src/PerfCounters.cc:519:check_working_counters() errno: EDOM] 
Got 0 branch events, expected at least 500.

The hardware performance counter seems to not be working on cpu 13
Check that hardware performance counters are working by running
  perf stat -e apple_blizzard_pmu/r90/ true
and checking that it reports a nonzero number of events.
If performance counters seem to be working with 'perf', file an
rr issue, otherwise check your hardware/OS/VM configuration. Also
check that other software is not using performance counters on
this CPU.
=== Start rr backtrace:
rr() [0x4bb430]
rr() [0x4bb7ac]
rr(_ZN2rr12PerfCounters5startEPNS_4TaskEl+0x80c) [0x4e8b98]
rr(_ZN2rr4Task16resume_executionENS_13ResumeRequestENS_11WaitRequestENS_12TicksRequestEi+0x5ac) [0x5b91ac]
rr(_ZN2rr13RecordSession11record_stepEv+0x3b4) [0x50d120]
rr(_ZN2rr13RecordCommand3runERSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS7_EE+0xd44) [0x4fbbf0]
rr(main+0x170) [0x431d10]
/lib64/libc.so.6(+0x2621c) [0xffff6107621c]
/lib64/libc.so.6(__libc_start_main+0x9c) [0xffff610762fc]
rr(_start+0x30) [0x433070]
=== End rr backtrace

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions