Skip to content

Commit d72c74e

Browse files
committed
reformat
1 parent 25f9680 commit d72c74e

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

perf-collect.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -237,11 +237,11 @@ def is_safe_file(fname, substr):
237237
eventfile = "bdx.txt"
238238
elif arch == "skylake":
239239
eventfile = "skx.txt"
240-
if args.cloud in ("aws","AWS") and args.cloudtype in ("VM","vm"):
240+
if args.cloud in ("aws", "AWS") and args.cloudtype in ("VM", "vm"):
241241
eventfile = "skx_aws.txt"
242242
elif arch == "cascadelake":
243243
eventfile = "clx.txt"
244-
if args.cloud in ("aws","AWS") and args.cloudtype in ("VM", "vm"):
244+
if args.cloud in ("aws", "AWS") and args.cloudtype in ("VM", "vm"):
245245
eventfile = "clx_aws.txt"
246246
elif arch == "icelake":
247247
eventfile = "icx.txt"
@@ -454,7 +454,9 @@ def is_safe_file(fname, substr):
454454
try:
455455
print("Collecting perf stat for events in : %s" % eventfilename)
456456
if args.cloud:
457-
print("Consider using cloudtype flag to set instance type -> VM/BM; Default is VM")
457+
print(
458+
"Consider using cloudtype flag to set instance type -> VM/BM; Default is VM"
459+
)
458460
subprocess.call(perfargs) # nosec
459461
print("Collection complete! Calculating TSC frequency now")
460462
except KeyboardInterrupt:

0 commit comments

Comments
 (0)