Skip to content

Commit

Permalink
toplev: Fix eventmap error reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
Andi Kleen committed Nov 16, 2023
1 parent 193c0ed commit ba956ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions toplev.py
Original file line number Diff line number Diff line change
Expand Up @@ -4028,10 +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:
os.environ["OCVERBOSE"] = "1"
ocperf.ocverbose = True
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))
(os.environ["EVENTMAP"] if "EVENTMAP" in os.environ else "?", cpu.model))
if version:
version += ", "
version += model_setup(runner, cpu.cpu)
Expand Down

0 comments on commit ba956ab

Please sign in to comment.