From 3a8a6d45e5265404d371146044ab3972284ce4d9 Mon Sep 17 00:00:00 2001 From: wuzhaomin Date: Mon, 9 Sep 2024 18:18:21 +0800 Subject: [PATCH] Add the col judgment to the get_hotspot_cmdline_parser function --- common/tool_cmd.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/common/tool_cmd.py b/common/tool_cmd.py index 9866f6d..864f37a 100644 --- a/common/tool_cmd.py +++ b/common/tool_cmd.py @@ -81,6 +81,10 @@ class ToolCmd: return ival def get_hotspot_cmdline_parser(self, args): + 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 = {} return perf_args, offcpu_args -- Gitee