From 3defa7746444a410f467457985e8c3b85dc49fdc Mon Sep 17 00:00:00 2001 From: iaalm Date: Sat, 9 Apr 2022 21:04:22 +0800 Subject: [PATCH] Kernel based event can not be disabled on UI --- src/PerfView/Dialogs/RunCommandDialog.xaml.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/PerfView/Dialogs/RunCommandDialog.xaml.cs b/src/PerfView/Dialogs/RunCommandDialog.xaml.cs index e77481974..7e7bd20db 100644 --- a/src/PerfView/Dialogs/RunCommandDialog.xaml.cs +++ b/src/PerfView/Dialogs/RunCommandDialog.xaml.cs @@ -658,6 +658,10 @@ private bool PopulateCommandLineArgs() { m_args.KernelEvents = (KernelTraceEventParser.Keywords)(KernelTraceEventParser.Keywords.Default - KernelTraceEventParser.Keywords.Profile); } + else + { + m_args.KernelEvents = KernelTraceEventParser.Keywords.None; + } if (CpuSamplesCheckBox.IsChecked ?? false) {