Skip to content

Commit

Permalink
Fix IpCall in some models
Browse files Browse the repository at this point in the history
Fixes #506
  • Loading branch information
Andi Kleen committed Dec 19, 2023
1 parent 346820a commit 036db87
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion adl_glc_ratios.py
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ def IpBranch(self, EV, level):

# Instructions per (near) call (lower number means higher occurrence rate)
def IpCall(self, EV, level):
val = EV("INST_RETIRED.ANY", level) / EV("CPU_CLK_UNHALTED.PAUSE_INST", level)
val = EV("INST_RETIRED.ANY", level) / EV("CPU_CLK_UNHALTED.NEAR_CALL", level)
self.thresh = (val < 200)
return val

Expand Down
2 changes: 1 addition & 1 deletion spr_max_server_ratios.py
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ def IpBranch(self, EV, level):

# Instructions per (near) call (lower number means higher occurrence rate)
def IpCall(self, EV, level):
val = EV("INST_RETIRED.ANY", level) / EV("CPU_CLK_UNHALTED.PAUSE_INST", level)
val = EV("INST_RETIRED.ANY", level) / EV("CPU_CLK_UNHALTED.NEAR_CALL", level)
self.thresh = (val < 200)
return val

Expand Down
2 changes: 1 addition & 1 deletion spr_server_ratios.py
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ def IpBranch(self, EV, level):

# Instructions per (near) call (lower number means higher occurrence rate)
def IpCall(self, EV, level):
val = EV("INST_RETIRED.ANY", level) / EV("CPU_CLK_UNHALTED.PAUSE_INST", level)
val = EV("INST_RETIRED.ANY", level) / EV("CPU_CLK_UNHALTED.NEAR_CALL", level)
self.thresh = (val < 200)
return val

Expand Down

0 comments on commit 036db87

Please sign in to comment.