From 8472762f2d40ab7660754d58b4bbb318da28d88e Mon Sep 17 00:00:00 2001 From: Florian Fischer <florian.fl.fischer@fau.de> Date: Wed, 25 May 2022 14:05:49 +0200 Subject: [PATCH] fix perf-stats without specifying events --- eval.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eval.py b/eval.py index c960c7c..0b84206 100755 --- a/eval.py +++ b/eval.py @@ -79,7 +79,7 @@ def main(args): perf_out = RESULT_DIR / f'{target}.perf.data' cmd = f'{PERF_EXE} record --call-graph dwarf -o {perf_out} {cmd}' - elif args.perf_stats or args.perf_record: + elif args.perf_stats is not None or args.perf_record: perf_event_selection = ','.join( args.perf_stats) if args.perf_stats else f'-e {PERF_EVENTS}' -- GitLab