<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jul 3, 2017 at 12:07 PM, Christophe Fergeau <span dir="ltr"><<a href="mailto:cfergeau@redhat.com" target="_blank">cfergeau@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Fri, Jun 30, 2017 at 12:11:43PM +0300, Yuri Benditovich wrote:<br>
> Added file with Windows trace preprocessor definitions<br>
><br>
<br>
</span>Bit terse changelog, but why not.. :) Where is the guid coming from?<br></blockquote><div><br></div><div>Guid comes from GUID generator, it should be unique</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
<br>
Acked-by: Christophe Fergeau <<a href="mailto:cfergeau@redhat.com">cfergeau@redhat.com</a>><br>
<div><div class="h5"><br>
> Signed-off-by: Yuri Benditovich <<a href="mailto:yuri.benditovich@daynix.com">yuri.benditovich@daynix.com</a>><br>
> ---<br>
> qxldod/WppTrace.h | 51 ++++++++++++++++<br>
> qxldod/qxldod.vcxproj.filters | 133 +++++++++++++++++++++---------<wbr>------------<br>
> 2 files changed, 119 insertions(+), 65 deletions(-)<br>
> create mode 100644 qxldod/WppTrace.h<br>
><br>
> diff --git a/qxldod/WppTrace.h b/qxldod/WppTrace.h<br>
> new file mode 100644<br>
> index 0000000..11f31e4<br>
> --- /dev/null<br>
> +++ b/qxldod/WppTrace.h<br>
> @@ -0,0 +1,51 @@<br>
> +/*<br>
> +* Copyright 2013-2016 Red Hat, Inc.<br>
> +*<br>
> +* Licensed under the Apache License, Version 2.0 (the "License");<br>
> +* you may not use this file except in compliance with the License.<br>
> +*<br>
> +* You may obtain a copy of the License at<br>
> +* <a href="http://www.apache.org/licenses/LICENSE-2.0" rel="noreferrer" target="_blank">http://www.apache.org/<wbr>licenses/LICENSE-2.0</a><br>
> +*/<br>
> +<br>
> +//<br>
> +// Define the tracing flags.<br>
> +//<br>
> +// Tracing GUID - {756ABE50-54E3-4A05-B5BB-<wbr>F0112C75B18A}<br>
> +//<br>
> +<br>
> +#define WPP_CONTROL_GUIDS \<br>
> + WPP_DEFINE_CONTROL_GUID( \<br>
> + QxlDodTraceGuid, (756ABE50,54E3,4A05,B5BB,<wbr>F0112C75B18A), \<br>
> + \<br>
> + WPP_DEFINE_BIT(TRACE_DRIVER) \<br>
> + WPP_DEFINE_BIT(TRACE_DEVICE) \<br>
> + WPP_DEFINE_BIT(TRACE_MEMORY) \<br>
> + WPP_DEFINE_BIT(TRACE_TIMING) \<br>
> + WPP_DEFINE_BIT(TRACE_HARDWARE) \<br>
> + )<br>
> +<br>
> +#define WPP_FLAG_LEVEL_LOGGER(flag, level) \<br>
> + WPP_LEVEL_LOGGER(flag)<br>
> +<br>
> +#define WPP_FLAG_LEVEL_ENABLED(flag, level) \<br>
> + (WPP_LEVEL_ENABLED(flag) && \<br>
> + WPP_CONTROL(WPP_BIT_ ## flag).Level >= level)<br>
> +<br>
> +#define WPP_LEVEL_FLAGS_LOGGER(lvl,<wbr>flags) \<br>
> + WPP_LEVEL_LOGGER(flags)<br>
> +<br>
> +#define WPP_LEVEL_FLAGS_ENABLED(lvl, flags) \<br>
> + (WPP_LEVEL_ENABLED(flags) && WPP_CONTROL(WPP_BIT_ ## flags).Level >= lvl)<br>
> +<br>
> +//<br>
> +// This comment block is scanned by the trace preprocessor to define our<br>
> +// Trace function.<br>
> +//<br>
> +// begin_wpp config<br>
> +// FUNC Trace{FLAG=TRACE_DRIVER}(<wbr>LEVEL,MSG, ...);<br>
> +// FUNC TraceEvents(LEVEL, FLAGS, MSG, ...);<br>
> +// FUNC DbgPrint{FLAG=TRACE_DRIVER}(<wbr>LEVEL, (MSG, ...));<br>
> +// CUSTOM_TYPE(devprop, ItemEnum(DEVICE_REGISTRY_<wbr>PROPERTY));<br>
> +// end_wpp<br>
> +//<br>
> diff --git a/qxldod/qxldod.vcxproj.<wbr>filters b/qxldod/qxldod.vcxproj.<wbr>filters<br>
> index 1e86aa6..ad95d9c 100755<br>
> --- a/qxldod/qxldod.vcxproj.<wbr>filters<br>
> +++ b/qxldod/qxldod.vcxproj.<wbr>filters<br>
> @@ -1,65 +1,68 @@<br>
> -<?xml version="1.0" encoding="utf-8"?><br>
> -<Project ToolsVersion="4.0" xmlns="<a href="http://schemas.microsoft.com/developer/msbuild/2003" rel="noreferrer" target="_blank">http://schemas.<wbr>microsoft.com/developer/<wbr>msbuild/2003</a>"><br>
> - <ItemGroup><br>
> - <Filter Include="Source Files"><br>
> - <UniqueIdentifier>{4FC737F1-<wbr>C7A5-4376-A066-2A32D752A2FF}</<wbr>UniqueIdentifier><br>
> - <Extensions>cpp;c;cc;cxx;def;<wbr>odl;idl;hpj;bat;asm;asmx</<wbr>Extensions><br>
> - </Filter><br>
> - <Filter Include="Header Files"><br>
> - <UniqueIdentifier>{93995380-<wbr>89BD-4b04-88EB-625FBE52EBFB}</<wbr>UniqueIdentifier><br>
> - <Extensions>h;hpp;hxx;hm;inl;<wbr>inc;xsd</Extensions><br>
> - </Filter><br>
> - <Filter Include="Resource Files"><br>
> - <UniqueIdentifier>{67DA6AB6-<wbr>F800-4c08-8B7A-83BB121AAD01}</<wbr>UniqueIdentifier><br>
> - <Extensions>rc;ico;cur;bmp;<wbr>dlg;rc2;rct;bin;rgs;gif;jpg;<wbr>jpeg;jpe;resx;tiff;tif;png;<wbr>wav;mfcribbon-ms</Extensions><br>
> - </Filter><br>
> - <Filter Include="Driver Files"><br>
> - <UniqueIdentifier>{8E41214B-<wbr>6785-4CFE-B992-037D68949A14}</<wbr>UniqueIdentifier><br>
> - <Extensions>inf;inv;inx;mof;<wbr>mc;</Extensions><br>
> - </Filter><br>
> - </ItemGroup><br>
> - <ItemGroup><br>
> - <ClInclude Include="BaseObject.h"><br>
> - <Filter>Header Files</Filter><br>
> - </ClInclude><br>
> - <ClInclude Include="resource.h"><br>
> - <Filter>Header Files</Filter><br>
> - </ClInclude><br>
> - <ClInclude Include="compat.h"><br>
> - <Filter>Header Files</Filter><br>
> - </ClInclude><br>
> - <ClInclude Include="driver.h"><br>
> - <Filter>Header Files</Filter><br>
> - </ClInclude><br>
> - <ClInclude Include="QxlDod.h"><br>
> - <Filter>Header Files</Filter><br>
> - </ClInclude><br>
> - </ItemGroup><br>
> - <ItemGroup><br>
> - <ClCompile Include="BaseObject.cpp"><br>
> - <Filter>Source Files</Filter><br>
> - </ClCompile><br>
> - <ClCompile Include="compat.cpp"><br>
> - <Filter>Source Files</Filter><br>
> - </ClCompile><br>
> - <ClCompile Include="driver.cpp"><br>
> - <Filter>Source Files</Filter><br>
> - </ClCompile><br>
> - <ClCompile Include="QxlDod.cpp"><br>
> - <Filter>Source Files</Filter><br>
> - </ClCompile><br>
> - <ClCompile Include="mspace.c"><br>
> - <Filter>Source Files</Filter><br>
> - </ClCompile><br>
> - </ItemGroup><br>
> - <ItemGroup><br>
> - <ResourceCompile Include="qxldod.rc"><br>
> - <Filter>Resource Files</Filter><br>
> - </ResourceCompile><br>
> - </ItemGroup><br>
> - <ItemGroup><br>
> - <Inf Include="qxldod.inx"><br>
> - <Filter>Driver Files</Filter><br>
> - </Inf><br>
> - </ItemGroup><br>
> -</Project><br>
> +<?xml version="1.0" encoding="utf-8"?><br>
> +<Project ToolsVersion="4.0" xmlns="<a href="http://schemas.microsoft.com/developer/msbuild/2003" rel="noreferrer" target="_blank">http://schemas.<wbr>microsoft.com/developer/<wbr>msbuild/2003</a>"><br>
> + <ItemGroup><br>
> + <Filter Include="Source Files"><br>
> + <UniqueIdentifier>{4FC737F1-<wbr>C7A5-4376-A066-2A32D752A2FF}</<wbr>UniqueIdentifier><br>
> + <Extensions>cpp;c;cc;cxx;def;<wbr>odl;idl;hpj;bat;asm;asmx</<wbr>Extensions><br>
> + </Filter><br>
> + <Filter Include="Header Files"><br>
> + <UniqueIdentifier>{93995380-<wbr>89BD-4b04-88EB-625FBE52EBFB}</<wbr>UniqueIdentifier><br>
> + <Extensions>h;hpp;hxx;hm;inl;<wbr>inc;xsd</Extensions><br>
> + </Filter><br>
> + <Filter Include="Resource Files"><br>
> + <UniqueIdentifier>{67DA6AB6-<wbr>F800-4c08-8B7A-83BB121AAD01}</<wbr>UniqueIdentifier><br>
> + <Extensions>rc;ico;cur;bmp;<wbr>dlg;rc2;rct;bin;rgs;gif;jpg;<wbr>jpeg;jpe;resx;tiff;tif;png;<wbr>wav;mfcribbon-ms</Extensions><br>
> + </Filter><br>
> + <Filter Include="Driver Files"><br>
> + <UniqueIdentifier>{8E41214B-<wbr>6785-4CFE-B992-037D68949A14}</<wbr>UniqueIdentifier><br>
> + <Extensions>inf;inv;inx;mof;<wbr>mc;</Extensions><br>
> + </Filter><br>
> + </ItemGroup><br>
> + <ItemGroup><br>
> + <ClInclude Include="BaseObject.h"><br>
> + <Filter>Header Files</Filter><br>
> + </ClInclude><br>
> + <ClInclude Include="resource.h"><br>
> + <Filter>Header Files</Filter><br>
> + </ClInclude><br>
> + <ClInclude Include="compat.h"><br>
> + <Filter>Header Files</Filter><br>
> + </ClInclude><br>
> + <ClInclude Include="driver.h"><br>
> + <Filter>Header Files</Filter><br>
> + </ClInclude><br>
> + <ClInclude Include="QxlDod.h"><br>
> + <Filter>Header Files</Filter><br>
> + </ClInclude><br>
> + <ClInclude Include="WppTrace.h"><br>
> + <Filter>Header Files</Filter><br>
> + </ClInclude><br>
> + </ItemGroup><br>
> + <ItemGroup><br>
> + <ClCompile Include="BaseObject.cpp"><br>
> + <Filter>Source Files</Filter><br>
> + </ClCompile><br>
> + <ClCompile Include="compat.cpp"><br>
> + <Filter>Source Files</Filter><br>
> + </ClCompile><br>
> + <ClCompile Include="driver.cpp"><br>
> + <Filter>Source Files</Filter><br>
> + </ClCompile><br>
> + <ClCompile Include="QxlDod.cpp"><br>
> + <Filter>Source Files</Filter><br>
> + </ClCompile><br>
> + <ClCompile Include="mspace.c"><br>
> + <Filter>Source Files</Filter><br>
> + </ClCompile><br>
> + </ItemGroup><br>
> + <ItemGroup><br>
> + <ResourceCompile Include="qxldod.rc"><br>
> + <Filter>Resource Files</Filter><br>
> + </ResourceCompile><br>
> + </ItemGroup><br>
> + <ItemGroup><br>
> + <Inf Include="qxldod.inx"><br>
> + <Filter>Driver Files</Filter><br>
> + </Inf><br>
> + </ItemGroup><br>
> +</Project><br>
> \ No newline at end of file<br>
> --<br>
> 2.7.0.windows.1<br>
><br>
</div></div>> ______________________________<wbr>_________________<br>
> Spice-devel mailing list<br>
> <a href="mailto:Spice-devel@lists.freedesktop.org">Spice-devel@lists.freedesktop.<wbr>org</a><br>
> <a href="https://lists.freedesktop.org/mailman/listinfo/spice-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/spice-devel</a><br>
</blockquote></div><br></div></div>