Skip to content

Commit

Permalink
toplev: Print more information for unknown cpu
Browse files Browse the repository at this point in the history
  • Loading branch information
Andi Kleen committed Nov 16, 2023
1 parent 91eed45 commit 193c0ed
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion toplev.py
Original file line number Diff line number Diff line change
Expand Up @@ -4028,7 +4028,10 @@ def runner_emaps():
runner.ectx.emap = ocperf.find_emap(pmu=runner.pmu if runner.pmu else "cpu")
runner.printer.emap = ectx.emap
if not runner.ectx.emap:
sys.exit("Unknown CPU or CPU event map not found.")
os.environ["OCVERBOSE"] = "1"
ocperf.find_emap()
sys.exit("Unknown CPU or CPU event map not found (EVENTMAP:%s, model:%d)" %
(os.environ["EVENTMAP"] if "EVENTMAP" in os.environ else "", cpu.mode))
if version:
version += ", "
version += model_setup(runner, cpu.cpu)
Expand Down

0 comments on commit 193c0ed

Please sign in to comment.