mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Remove NOETW in favor of LINUX
ETW is available on Windows, so this is only (and will always be) necessary for Linux.
This commit is contained in:
@@ -9,14 +9,6 @@
|
||||
"compile": [ "../windows-build/gen/Microsoft.PowerShell.CoreCLR.Eventing/*.cs" ]
|
||||
},
|
||||
|
||||
"configurations": {
|
||||
"Linux": {
|
||||
"buildOptions": {
|
||||
"define": [ "NOETW" ]
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
"frameworks": {
|
||||
"netstandard1.5": {
|
||||
"imports": [ "dnxcore50" ],
|
||||
|
||||
@@ -1409,7 +1409,7 @@ namespace System.Management.Automation.Security
|
||||
}
|
||||
|
||||
|
||||
#if NOETW || LINUX
|
||||
#if LINUX
|
||||
|
||||
// Porting note: Tracing is absolutely not available on Linux
|
||||
namespace System.Management.Automation.Tracing
|
||||
|
||||
@@ -172,7 +172,7 @@ namespace System.Management.Automation
|
||||
#endif
|
||||
Collection<LogProvider> providers = new Collection<LogProvider>();
|
||||
// Porting note: Linux does not support ETW
|
||||
#if !NOETW && !LINUX
|
||||
#if !LINUX
|
||||
try
|
||||
{
|
||||
#if !CORECLR //TODO:CORECLR EventLogLogProvider not handled yet
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
"configurations": {
|
||||
"Linux": {
|
||||
"buildOptions": {
|
||||
"define": [ "LINUX", "NOETW" ]
|
||||
"define": [ "LINUX" ]
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#if !NOETW
|
||||
#if !LINUX
|
||||
//
|
||||
// Copyright (C) Microsoft. All rights reserved.
|
||||
//
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#if !NOETW
|
||||
#if !LINUX
|
||||
//
|
||||
// Copyright (C) Microsoft. All rights reserved.
|
||||
//
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#if !NOETW
|
||||
#if !LINUX
|
||||
//-----------------------------------------------------------------------
|
||||
// <copyright file="EtwActivityReverter.cs" company="Microsoft">
|
||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#if !NOETW
|
||||
#if !LINUX
|
||||
//-----------------------------------------------------------------------
|
||||
// <copyright file="EtwActivityReverterMethodInvoker.cs" company="Microsoft">
|
||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#if !NOETW
|
||||
#if !LINUX
|
||||
//-----------------------------------------------------------------------
|
||||
// <copyright file="EtwEventCorrelator.cs" company="Microsoft">
|
||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#if !NOETW
|
||||
#if !LINUX
|
||||
//-----------------------------------------------------------------------
|
||||
// <copyright file="IMethodInvoker.cs" company="Microsoft">
|
||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#if !NOETW
|
||||
#if !LINUX
|
||||
//
|
||||
// Copyright (C) Microsoft. All rights reserved.
|
||||
//
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#if !NOETW
|
||||
#if !LINUX
|
||||
//
|
||||
// Copyright (C) Microsoft. All rights reserved.
|
||||
//
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#if !NOETW
|
||||
#if !LINUX
|
||||
//
|
||||
// Copyright (C) Microsoft. All rights reserved.
|
||||
//
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#if !NOETW
|
||||
#if !LINUX
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Diagnostics.Eventing;
|
||||
|
||||
Reference in New Issue
Block a user