Skip to content

Commit b516f10

Browse files
committed
Code review feedback
1 parent 7586491 commit b516f10

File tree

7 files changed

+8
-22
lines changed

7 files changed

+8
-22
lines changed

src/coreclr/clr.featuredefines.props

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<Project>
22
<PropertyGroup>
33
<FeatureCoreCLR>true</FeatureCoreCLR>
4-
<FeatureEventTrace>true</FeatureEventTrace>
54
<FeaturePerfTracing>true</FeaturePerfTracing>
65
<ProfilingSupportedBuild>true</ProfilingSupportedBuild>
76
</PropertyGroup>
@@ -33,7 +32,6 @@
3332
<DefineConstants Condition="'$(FeatureCominteropApartmentSupport)' == 'true'">$(DefineConstants);FEATURE_COMINTEROP_APARTMENT_SUPPORT</DefineConstants>
3433
<DefineConstants Condition="'$(FeatureIjw)' == 'true'">$(DefineConstants);FEATURE_IJW</DefineConstants>
3534
<DefineConstants Condition="'$(FeatureObjCMarshal)' == 'true'">$(DefineConstants);FEATURE_OBJCMARSHAL</DefineConstants>
36-
<DefineConstants Condition="'$(FeatureEventTrace)' == 'true'">$(DefineConstants);FEATURE_EVENT_TRACE</DefineConstants>
3735
<DefineConstants Condition="'$(FeaturePerfTracing)' == 'true'">$(DefineConstants);FEATURE_PERFTRACING</DefineConstants>
3836
<DefineConstants Condition="'$(FeatureXplatEventSource)' == 'true'">$(DefineConstants);FEATURE_EVENTSOURCE_XPLAT</DefineConstants>
3937
<DefineConstants Condition="'$(FeatureTypeEquivalence)' == 'true'">$(DefineConstants);FEATURE_TYPEEQUIVALENCE</DefineConstants>

src/coreclr/nativeaot/System.Private.CoreLib/src/System.Private.CoreLib.csproj

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -583,11 +583,6 @@
583583
<Compile Include="@(EventingSourceFile)" />
584584
</ItemGroup>
585585

586-
<PropertyGroup>
587-
<FeatureEventTrace>true</FeatureEventTrace>
588-
<DefineConstants Condition="'$(FeatureEventTrace)' == 'true'">$(DefineConstants);FEATURE_EVENT_TRACE</DefineConstants>
589-
</PropertyGroup>
590-
591586
<Target Name="GenerateEventingFiles"
592587
Inputs="@(EventingGenerationScript);@(EventManifestFile);@(EventingInclusionList)"
593588
Outputs="@(EventingSourceFile)"

src/coreclr/vm/gcenv.ee.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1724,7 +1724,7 @@ void GCToEEInterface::AnalyzeSurvivorsFinished(size_t gcIndex, int condemnedGene
17241724
{
17251725
if (gcGenAnalysisTrace)
17261726
{
1727-
#ifdef FEATURE_EVENT_TRACE
1727+
#ifdef FEATURE_PERFTRACING
17281728
EventPipeAdapter::ResumeSession(gcGenAnalysisEventPipeSession);
17291729
FireEtwGenAwareBegin((int)gcIndex, GetClrInstanceId());
17301730
s_forcedGCInProgress = true;
@@ -1733,7 +1733,7 @@ void GCToEEInterface::AnalyzeSurvivorsFinished(size_t gcIndex, int condemnedGene
17331733
reportGenerationBounds();
17341734
FireEtwGenAwareEnd((int)gcIndex, GetClrInstanceId());
17351735
EventPipeAdapter::PauseSession(gcGenAnalysisEventPipeSession);
1736-
#endif //FEATURE_EVENT_TRACE
1736+
#endif //FEATURE_PERFTRACING
17371737
}
17381738
if (gcGenAnalysisDump)
17391739
{

src/coreclr/vm/genanalysis.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,10 @@
66
#ifndef __GENANALYSIS_H__
77
#define __GENANALYSIS_H__
88

9-
#ifndef FEATURE_EVENT_TRACE
10-
typedef struct _EventPipeSession EventPipeSession;
11-
#endif //FEATURE_EVENT_TRACE
12-
139
#ifdef FEATURE_PERFTRACING
1410
#include "eventpipeadaptertypes.h"
11+
#else
12+
typedef struct _EventPipeSession EventPipeSession;
1513
#endif // FEATURE_PERFTRACING
1614

1715
enum GcGenAnalysisState

src/libraries/System.Private.CoreLib/src/System/Diagnostics/Tracing/EventPipe.Internal.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ namespace System.Diagnostics.Tracing
99
{
1010
internal static partial class EventPipeInternal
1111
{
12-
#if FEATURE_EVENT_TRACE
12+
#if FEATURE_PERFTRACING
1313
//
1414
// These PInvokes are used by the configuration APIs to interact with EventPipe.
1515
//
@@ -131,6 +131,6 @@ internal static unsafe bool WaitForSessionSignal(ulong sessionID, int timeoutMs)
131131
return false;
132132
}
133133
#pragma warning restore IDE0060
134-
#endif //FEATURE_EVENT_TRACE
134+
#endif //FEATURE_PERFTRACING
135135
}
136136
}

src/libraries/System.Private.CoreLib/src/System/Diagnostics/Tracing/EventPipe.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ internal sealed class EventPipeWaitHandle : WaitHandle
8383

8484
internal static partial class EventPipeInternal
8585
{
86-
#if FEATURE_EVENT_TRACE
86+
#if FEATURE_PERFTRACING
8787
private unsafe struct EventPipeProviderConfigurationNative
8888
{
8989
private char* m_pProviderName;
@@ -162,6 +162,6 @@ internal static unsafe ulong Enable(
162162
return 0;
163163
}
164164
#pragma warning restore IDE0060
165-
#endif //FEATURE_EVENT_TRACE
165+
#endif //FEATURE_PERFTRACING
166166
}
167167
}

src/mono/System.Private.CoreLib/System.Private.CoreLib.csproj

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -320,11 +320,6 @@
320320
<Compile Include="@(EventingSourceFile)" />
321321
</ItemGroup>
322322

323-
<PropertyGroup>
324-
<FeatureEventTrace>true</FeatureEventTrace>
325-
<DefineConstants Condition="'$(FeatureEventTrace)' == 'true'">$(DefineConstants);FEATURE_EVENT_TRACE</DefineConstants>
326-
</PropertyGroup>
327-
328323
<Target Name="GenerateEventingFiles"
329324
Inputs="@(EventingGenerationScript);@(EventManifestFile)"
330325
Outputs="@(EventingSourceFile)"

0 commit comments

Comments
 (0)