diff --git a/perf-collect.py b/perf-collect.py index 90a73f4..c27f2ec 100644 --- a/perf-collect.py +++ b/perf-collect.py @@ -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" @@ -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: