Skip to content
This repository was archived by the owner on May 29, 2025. It is now read-only.

Commit 68394d5

Browse files
committed
First UIforETW commit.
0 parents  commit 68394d5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

88 files changed

+9616
-0
lines changed

.gitignore

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
*.user
2+
*.suo
3+
*.sdf
4+
*.aps
5+
*.opensdf
6+
*Generated*
7+
# Excluded most executables, but include a few specific ones.
8+
*.exe
9+
10+
*.ilk
11+
*.pdb
12+
Debug/
13+
Release/
14+
*DoNotShip/
15+
ipch/
16+
17+
# GPUView likes to drop these files when run.
18+
FuncStats.txt
19+
GuidStats.txt
20+
Log.txt
21+
present.txt
22+
*.exe.lastcodeanalysissucceeded

AUTHORS

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# This is the official list of The UIforETW Project Authors
2+
# for copyright purposes.
3+
# This file is distinct from the CONTRIBUTORS files.
4+
# See the latter for an explanation.
5+
6+
# Names should be added to this file as
7+
# Name or Organization
8+
# Email addresses for individuals are tracked elsewhere to avoid spam.
9+
10+
Google Inc.

CONTRIBUTING

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
Want to contribute? Great! First, read this page (including the small print at the end).
2+
3+
### Before you contribute
4+
Before we can use your code, you must sign the
5+
[Google Individual Contributor License Agreement](https://developers.google.com/open-source/cla/individual?csw=1)
6+
(CLA), which you can do online. The CLA is necessary mainly because you own the
7+
copyright to your changes, even after your contribution becomes part of our
8+
codebase, so we need your permission to use and distribute your code. We also
9+
need to be sure of various other things�for instance that you'll tell us if you
10+
know that your code infringes on other people's patents. You don't have to sign
11+
the CLA until after you've submitted your code for review and a member has
12+
approved it, but you must do it before we can put your code into our codebase.
13+
Before you start working on a larger contribution, you should get in touch with
14+
us first through the issue tracker with your idea so that we can help out and
15+
possibly guide you. Coordinating up front makes it much easier to avoid
16+
frustration later on.
17+
18+
### Code reviews
19+
All submissions, including submissions by project members, require review. We
20+
use Github pull requests for this purpose.
21+
22+
### The small print
23+
Contributions made by corporations are covered by a different agreement than
24+
the one above, the Software Grant and Corporate Contributor License Agreement.

CONTRIBUTORS

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# This is the official list of people who can contribute
2+
# (and who have contributed) code to the UIforETW project
3+
# repository.
4+
# The AUTHORS file lists the copyright holders; this file
5+
# lists people. For example, Google employees are listed here
6+
# but not in AUTHORS, because Google holds the copyright.
7+
#
8+
9+
Google Inc.
10+
Bruce Dawson

ETWProviders/ETWProviders.cpp

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/*
2+
Copyright 2015 Google Inc. All Rights Reserved.
3+
4+
Licensed under the Apache License, Version 2.0 (the "License");
5+
you may not use this file except in compliance with the License.
6+
You may obtain a copy of the License at
7+
8+
http://www.apache.org/licenses/LICENSE-2.0
9+
10+
Unless required by applicable law or agreed to in writing, software
11+
distributed under the License is distributed on an "AS IS" BASIS,
12+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
See the License for the specific language governing permissions and
14+
limitations under the License.
15+
*/
16+
17+
#include "stdafx.h"
18+
19+

ETWProviders/ETWProviders.sln

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio 2013
4+
VisualStudioVersion = 12.0.31101.0
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ETWProviders", "ETWProviders.vcxproj", "{5136829D-E7F2-48CA-971E-27D26821C00D}"
7+
EndProject
8+
Global
9+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
10+
Debug|Win32 = Debug|Win32
11+
Debug|x64 = Debug|x64
12+
Release|Win32 = Release|Win32
13+
Release|x64 = Release|x64
14+
EndGlobalSection
15+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
16+
{5136829D-E7F2-48CA-971E-27D26821C00D}.Debug|Win32.ActiveCfg = Debug|Win32
17+
{5136829D-E7F2-48CA-971E-27D26821C00D}.Debug|Win32.Build.0 = Debug|Win32
18+
{5136829D-E7F2-48CA-971E-27D26821C00D}.Debug|x64.ActiveCfg = Debug|x64
19+
{5136829D-E7F2-48CA-971E-27D26821C00D}.Debug|x64.Build.0 = Debug|x64
20+
{5136829D-E7F2-48CA-971E-27D26821C00D}.Release|Win32.ActiveCfg = Release|Win32
21+
{5136829D-E7F2-48CA-971E-27D26821C00D}.Release|Win32.Build.0 = Release|Win32
22+
{5136829D-E7F2-48CA-971E-27D26821C00D}.Release|x64.ActiveCfg = Release|x64
23+
{5136829D-E7F2-48CA-971E-27D26821C00D}.Release|x64.Build.0 = Release|x64
24+
EndGlobalSection
25+
GlobalSection(SolutionProperties) = preSolution
26+
HideSolutionNode = FALSE
27+
EndGlobalSection
28+
EndGlobal

ETWProviders/ETWProviders.vcxproj

Lines changed: 232 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,232 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project DefaultTargets="Build" ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<ItemGroup Label="ProjectConfigurations">
4+
<ProjectConfiguration Include="Debug|Win32">
5+
<Configuration>Debug</Configuration>
6+
<Platform>Win32</Platform>
7+
</ProjectConfiguration>
8+
<ProjectConfiguration Include="Debug|x64">
9+
<Configuration>Debug</Configuration>
10+
<Platform>x64</Platform>
11+
</ProjectConfiguration>
12+
<ProjectConfiguration Include="Release|Win32">
13+
<Configuration>Release</Configuration>
14+
<Platform>Win32</Platform>
15+
</ProjectConfiguration>
16+
<ProjectConfiguration Include="Release|x64">
17+
<Configuration>Release</Configuration>
18+
<Platform>x64</Platform>
19+
</ProjectConfiguration>
20+
</ItemGroup>
21+
<PropertyGroup Label="Globals">
22+
<ProjectGuid>{5136829D-E7F2-48CA-971E-27D26821C00D}</ProjectGuid>
23+
<Keyword>Win32Proj</Keyword>
24+
<RootNamespace>ETWProviders</RootNamespace>
25+
</PropertyGroup>
26+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
27+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
28+
<ConfigurationType>DynamicLibrary</ConfigurationType>
29+
<UseDebugLibraries>true</UseDebugLibraries>
30+
<CharacterSet>Unicode</CharacterSet>
31+
<PlatformToolset>v120</PlatformToolset>
32+
</PropertyGroup>
33+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
34+
<ConfigurationType>DynamicLibrary</ConfigurationType>
35+
<UseDebugLibraries>true</UseDebugLibraries>
36+
<CharacterSet>Unicode</CharacterSet>
37+
<PlatformToolset>v120</PlatformToolset>
38+
</PropertyGroup>
39+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
40+
<ConfigurationType>DynamicLibrary</ConfigurationType>
41+
<UseDebugLibraries>false</UseDebugLibraries>
42+
<WholeProgramOptimization>true</WholeProgramOptimization>
43+
<CharacterSet>Unicode</CharacterSet>
44+
<PlatformToolset>v120</PlatformToolset>
45+
</PropertyGroup>
46+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
47+
<ConfigurationType>DynamicLibrary</ConfigurationType>
48+
<UseDebugLibraries>false</UseDebugLibraries>
49+
<WholeProgramOptimization>true</WholeProgramOptimization>
50+
<CharacterSet>Unicode</CharacterSet>
51+
<PlatformToolset>v120</PlatformToolset>
52+
</PropertyGroup>
53+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
54+
<ImportGroup Label="ExtensionSettings">
55+
</ImportGroup>
56+
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
57+
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
58+
</ImportGroup>
59+
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets">
60+
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
61+
</ImportGroup>
62+
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
63+
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
64+
</ImportGroup>
65+
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
66+
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
67+
</ImportGroup>
68+
<PropertyGroup Label="UserMacros" />
69+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
70+
<LinkIncremental>true</LinkIncremental>
71+
</PropertyGroup>
72+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
73+
<LinkIncremental>true</LinkIncremental>
74+
<TargetName>$(ProjectName)64</TargetName>
75+
</PropertyGroup>
76+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
77+
<LinkIncremental>false</LinkIncremental>
78+
</PropertyGroup>
79+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
80+
<LinkIncremental>false</LinkIncremental>
81+
<TargetName>$(ProjectName)64</TargetName>
82+
</PropertyGroup>
83+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
84+
<ClCompile>
85+
<PrecompiledHeader>Use</PrecompiledHeader>
86+
<WarningLevel>Level3</WarningLevel>
87+
<Optimization>Disabled</Optimization>
88+
<PreprocessorDefinitions>ETWPROVIDERSDLL;WIN32;_DEBUG;_WINDOWS;_USRDLL;ETWPROVIDERS_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
89+
<AdditionalIncludeDirectories>..\include</AdditionalIncludeDirectories>
90+
</ClCompile>
91+
<Link>
92+
<SubSystem>Windows</SubSystem>
93+
<GenerateDebugInformation>true</GenerateDebugInformation>
94+
</Link>
95+
<PostBuildEvent>
96+
<Command>if not exist $(ProjectDir)..\lib mkdir $(ProjectDir)..\lib
97+
xcopy /y $(OutDir)ETWProviders.lib $(ProjectDir)..\lib
98+
</Command>
99+
<Message>Copy .lib file</Message>
100+
</PostBuildEvent>
101+
</ItemDefinitionGroup>
102+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
103+
<ClCompile>
104+
<PrecompiledHeader>Use</PrecompiledHeader>
105+
<WarningLevel>Level3</WarningLevel>
106+
<Optimization>Disabled</Optimization>
107+
<PreprocessorDefinitions>ETWPROVIDERSDLL;WIN32;_DEBUG;_WINDOWS;_USRDLL;ETWPROVIDERS_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
108+
<AdditionalIncludeDirectories>..\include</AdditionalIncludeDirectories>
109+
</ClCompile>
110+
<Link>
111+
<SubSystem>Windows</SubSystem>
112+
<GenerateDebugInformation>true</GenerateDebugInformation>
113+
</Link>
114+
<PostBuildEvent>
115+
<Command>if not exist $(ProjectDir)..\lib mkdir $(ProjectDir)..\lib
116+
xcopy /y $(OutDir)ETWProviders64.lib $(ProjectDir)..\lib
117+
</Command>
118+
<Message>Copy .lib file</Message>
119+
</PostBuildEvent>
120+
</ItemDefinitionGroup>
121+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
122+
<ClCompile>
123+
<WarningLevel>Level3</WarningLevel>
124+
<PrecompiledHeader>Use</PrecompiledHeader>
125+
<Optimization>MaxSpeed</Optimization>
126+
<FunctionLevelLinking>true</FunctionLevelLinking>
127+
<IntrinsicFunctions>true</IntrinsicFunctions>
128+
<PreprocessorDefinitions>ETWPROVIDERSDLL;WIN32;NDEBUG;_WINDOWS;_USRDLL;ETWPROVIDERS_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
129+
<AdditionalIncludeDirectories>..\include</AdditionalIncludeDirectories>
130+
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
131+
</ClCompile>
132+
<Link>
133+
<SubSystem>Windows</SubSystem>
134+
<GenerateDebugInformation>true</GenerateDebugInformation>
135+
<EnableCOMDATFolding>true</EnableCOMDATFolding>
136+
<OptimizeReferences>true</OptimizeReferences>
137+
</Link>
138+
<PostBuildEvent>
139+
<Command>if not exist $(ProjectDir)..\lib mkdir $(ProjectDir)..\lib
140+
xcopy /y $(OutDir)ETWProviders.lib $(ProjectDir)..\lib
141+
</Command>
142+
</PostBuildEvent>
143+
<PostBuildEvent>
144+
<Message>Copy .lib file</Message>
145+
</PostBuildEvent>
146+
</ItemDefinitionGroup>
147+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
148+
<ClCompile>
149+
<WarningLevel>Level3</WarningLevel>
150+
<PrecompiledHeader>Use</PrecompiledHeader>
151+
<Optimization>MaxSpeed</Optimization>
152+
<FunctionLevelLinking>true</FunctionLevelLinking>
153+
<IntrinsicFunctions>true</IntrinsicFunctions>
154+
<PreprocessorDefinitions>ETWPROVIDERSDLL;WIN32;NDEBUG;_WINDOWS;_USRDLL;ETWPROVIDERS_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
155+
<AdditionalIncludeDirectories>..\include</AdditionalIncludeDirectories>
156+
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
157+
</ClCompile>
158+
<Link>
159+
<SubSystem>Windows</SubSystem>
160+
<GenerateDebugInformation>true</GenerateDebugInformation>
161+
<EnableCOMDATFolding>true</EnableCOMDATFolding>
162+
<OptimizeReferences>true</OptimizeReferences>
163+
</Link>
164+
<PostBuildEvent>
165+
<Command>if not exist $(ProjectDir)..\lib mkdir $(ProjectDir)..\lib
166+
xcopy /y $(OutDir)ETWProviders64.lib $(ProjectDir)..\lib
167+
</Command>
168+
</PostBuildEvent>
169+
<PostBuildEvent>
170+
<Message>Copy .lib file</Message>
171+
</PostBuildEvent>
172+
</ItemDefinitionGroup>
173+
<ItemGroup>
174+
<None Include="ReadMe.txt" />
175+
</ItemGroup>
176+
<ItemGroup>
177+
<ClInclude Include="stdafx.h" />
178+
<ClInclude Include="targetver.h" />
179+
</ItemGroup>
180+
<ItemGroup>
181+
<CustomBuild Include="etwproviders.man">
182+
<FileType>Document</FileType>
183+
<Command Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">mc.exe -um %(Filename)%(Extension) -z %(Filename)Generated </Command>
184+
<Command Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">mc.exe -um %(Filename)%(Extension) -z %(Filename)Generated </Command>
185+
<Outputs Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(Filename)Generated.h;%(Filename)Generated.rc;%(Filename)GeneratedTemp.bin</Outputs>
186+
<Outputs Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(Filename)Generated.h;%(Filename)Generated.rc;%(Filename)GeneratedTemp.bin</Outputs>
187+
<AdditionalInputs Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
188+
</AdditionalInputs>
189+
<AdditionalInputs Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
190+
</AdditionalInputs>
191+
<Command Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">mc.exe -um %(Filename)%(Extension) -z %(Filename)Generated</Command>
192+
<Command Condition="'$(Configuration)|$(Platform)'=='Release|x64'">mc.exe -um %(Filename)%(Extension) -z %(Filename)Generated</Command>
193+
<Message Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Compiling ETW manifest file</Message>
194+
<Message Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Compiling ETW manifest file</Message>
195+
<Outputs Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(Filename)Generated.h;%(Filename)Generated.rc;%(Filename)GeneratedTemp.bin</Outputs>
196+
<Outputs Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(Filename)Generated.h;%(Filename)Generated.rc;%(Filename)GeneratedTemp.bin</Outputs>
197+
<Message Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">Compiling ETW manifest file</Message>
198+
<Message Condition="'$(Configuration)|$(Platform)'=='Release|x64'">Compiling ETW manifest file</Message>
199+
<SubType>Designer</SubType>
200+
</CustomBuild>
201+
</ItemGroup>
202+
<ItemGroup>
203+
<ClCompile Include="dllmain.cpp">
204+
<CompileAsManaged Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">false</CompileAsManaged>
205+
<CompileAsManaged Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">false</CompileAsManaged>
206+
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
207+
</PrecompiledHeader>
208+
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
209+
</PrecompiledHeader>
210+
<CompileAsManaged Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">false</CompileAsManaged>
211+
<CompileAsManaged Condition="'$(Configuration)|$(Platform)'=='Release|x64'">false</CompileAsManaged>
212+
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
213+
</PrecompiledHeader>
214+
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
215+
</PrecompiledHeader>
216+
</ClCompile>
217+
<ClCompile Include="etwprof.cpp" />
218+
<ClCompile Include="ETWProviders.cpp" />
219+
<ClCompile Include="stdafx.cpp">
220+
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Create</PrecompiledHeader>
221+
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Create</PrecompiledHeader>
222+
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">Create</PrecompiledHeader>
223+
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|x64'">Create</PrecompiledHeader>
224+
</ClCompile>
225+
</ItemGroup>
226+
<ItemGroup>
227+
<ResourceCompile Include="etwprovidersGenerated.rc" />
228+
</ItemGroup>
229+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
230+
<ImportGroup Label="ExtensionTargets">
231+
</ImportGroup>
232+
</Project>

0 commit comments

Comments
 (0)