Skip to content

Commit

Permalink
reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
karanrk committed Feb 23, 2022
1 parent 25f9680 commit d72c74e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions perf-collect.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,11 +237,11 @@ def is_safe_file(fname, substr):
eventfile = "bdx.txt"
elif arch == "skylake":
eventfile = "skx.txt"
if args.cloud in ("aws","AWS") and args.cloudtype in ("VM","vm"):
if args.cloud in ("aws", "AWS") and args.cloudtype in ("VM", "vm"):
eventfile = "skx_aws.txt"
elif arch == "cascadelake":
eventfile = "clx.txt"
if args.cloud in ("aws","AWS") and args.cloudtype in ("VM", "vm"):
if args.cloud in ("aws", "AWS") and args.cloudtype in ("VM", "vm"):
eventfile = "clx_aws.txt"
elif arch == "icelake":
eventfile = "icx.txt"
Expand Down Expand Up @@ -454,7 +454,9 @@ def is_safe_file(fname, substr):
try:
print("Collecting perf stat for events in : %s" % eventfilename)
if args.cloud:
print("Consider using cloudtype flag to set instance type -> VM/BM; Default is VM")
print(
"Consider using cloudtype flag to set instance type -> VM/BM; Default is VM"
)
subprocess.call(perfargs) # nosec
print("Collection complete! Calculating TSC frequency now")
except KeyboardInterrupt:
Expand Down

0 comments on commit d72c74e

Please sign in to comment.