From d72c74e0ddf812bd955ff964c0ab180dfa6581af Mon Sep 17 00:00:00 2001 From: Karan Kamatgi Date: Tue, 22 Feb 2022 23:59:51 -0800 Subject: [PATCH] reformat --- perf-collect.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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: