Skip to content

Commit

Permalink
toplev: Fix cycle computation in LNC MITE formula
Browse files Browse the repository at this point in the history
Fixes #522
  • Loading branch information
Andi Kleen committed Jan 14, 2025
1 parent 6db6f99 commit 60d0cdf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lnl_lnc_ratios.py
Original file line number Diff line number Diff line change
Expand Up @@ -1223,7 +1223,7 @@ class MITE:
maxval = None
def compute(self, EV):
try:
self.val = (EV("IDQ.MITE_UOPS:c8:i1:eq1", 3) / CLKS(self, EV, 3) + EV("IDQ.MITE_UOPS", 3) / (EV("IDQ.DSB_UOPS", 3) + EV("IDQ.MITE_UOPS", 3)) * (EV("IDQ_BUBBLES.CYCLES_0_UOPS_DELIV.CORE", 3) - EV("IDQ_BUBBLES.FETCH_LATENCY", 3))) / CLKS(self, EV, 3)
self.val = (EV("IDQ.MITE_UOPS:c8:i1:eq1", 3) / 2 + EV("IDQ.MITE_UOPS", 3) / (EV("IDQ.DSB_UOPS", 3) + EV("IDQ.MITE_UOPS", 3)) * (EV("IDQ_BUBBLES.CYCLES_0_UOPS_DELIV.CORE", 3) - EV("IDQ_BUBBLES.FETCH_LATENCY", 3))) / CLKS(self, EV, 3)
self.thresh = (self.val > 0.1) and self.parent.thresh
except ZeroDivisionError:
handle_error(self, "MITE zero division")
Expand Down

0 comments on commit 60d0cdf

Please sign in to comment.