From 36282c20f2a12a580a0b07bc41e3e08264f2b2c3 Mon Sep 17 00:00:00 2001 From: Jose Sua Date: Wed, 14 Dec 2022 08:42:53 -0800 Subject: [PATCH] Add Instrumentation to AmsiUtil and make the init variable readonly (#18727) * Add Insturmentation to AmsiUtil and make the init variable readonly * remove unwanted file * Fix task to hex * ingnore AsmiInit when not windows * rename event name * CR feedback * the missing dot in the argument documentation because that is very very important. * CR feedback Co-authored-by: Jose Sua --- .../PowerShell.Core.Instrumentation.man | 52 +++++++++++++++++-- .../engine/remoting/common/PSETWTracer.cs | 4 +- .../logging/LogProvider.cs | 16 ++++++ .../security/SecuritySupport.cs | 23 ++++---- .../utils/tracing/PSEtwLog.cs | 10 ++++ .../utils/tracing/PSEtwLogProvider.cs | 22 +++++++- .../utils/tracing/PSSysLogProvider.cs | 10 ++++ 7 files changed, 123 insertions(+), 14 deletions(-) diff --git a/src/PowerShell.Core.Instrumentation/PowerShell.Core.Instrumentation.man b/src/PowerShell.Core.Instrumentation/PowerShell.Core.Instrumentation.man index ea8fcdc49c..8979ad8ebe 100644 --- a/src/PowerShell.Core.Instrumentation/PowerShell.Core.Instrumentation.man +++ b/src/PowerShell.Core.Instrumentation/PowerShell.Core.Instrumentation.man @@ -2208,6 +2208,18 @@ value="0x6017" version="1" /> +