From e19d0b6fcd0fe38c670ece79f7a552cf6d605617 Mon Sep 17 00:00:00 2001 From: wuzhaomin Date: Tue, 10 Sep 2024 11:31:20 +0800 Subject: [PATCH] Added 'col' does not equal the handling of args.func --- common/tool_cmd.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/common/tool_cmd.py b/common/tool_cmd.py index 864f37a..ec691ca 100644 --- a/common/tool_cmd.py +++ b/common/tool_cmd.py @@ -84,9 +84,11 @@ class ToolCmd: if 'col' == args.func: if args.perf_enable_type: perf_args = {'perf_enable_type': args.perf_enable_type, 'perf_pid':args.perf_pid, 'perf_duration':args.perf_duration} - - perf_args = {} - offcpu_args = {} + else: + perf_args = {} + else: + perf_args = {} + offcpu_args = {} return perf_args, offcpu_args # end add for perf/offcpu command line parser check -- Gitee