Skip to content

Commit

Permalink
logs2plot.py: Clarify logging
Browse files Browse the repository at this point in the history
Internal-tag: [#68702]
Signed-off-by: Wiktoria Kuna <[email protected]>
  • Loading branch information
wkkuna committed Dec 2, 2024
1 parent 1ceea2f commit 35bfd92
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions rowhammer_tester/scripts/logs2plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,11 +203,11 @@ def on_click(event):
title = f"Bitflips per DQ pads for aggressor({y}) vs victim({x})."
plot_dqs(dq_counters, title=title)
except KeyError:
return
print(f"No data about attack - aggressor({y}) vs victim({x}).")
except TypeError:
return
except TypeError:
print("Press detected out of bounds.")
return


if __name__ == "__main__":
Expand Down Expand Up @@ -280,7 +280,8 @@ def on_click(event):
print(
"ERROR: Attacks are not hammering single rows. "
"Unable to plot aggressors against their victims. "
"Use `--row-pair-distance 0` to target single row at once."
"Repeat the attack experiment using `--row-pair-distance 0` option"
" to target single row at once."
)
exit()
# Otherwise plot single attack immediately
Expand Down

0 comments on commit 35bfd92

Please sign in to comment.