fix a few non-obvious mistakes in quic where the durable ID's conflic… (#1661)

* fix a few non-obvious mistakes in quic where the durable ID's conflict with macros defined elsewhere - these arent obvious because QUIC isnt using manifested ETW everywhere so it doesnt matter.  flipping event names to be clearer

* add three forgotten events

* mistake, not the right phase to push this
This commit is contained in:
Chris Gray 2021-05-31 08:48:23 -07:00 коммит произвёл GitHub
Родитель 90983305f2
Коммит 30593c3537
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
6 изменённых файлов: 141 добавлений и 5 удалений

Просмотреть файл

@ -793,7 +793,7 @@ QuicConnUpdateRtt(
if (RttUpdated) {
CXPLAT_DBG_ASSERT(Path->SmoothedRtt != 0);
QuicTraceLogConnVerbose(
RttUpdated,
RttUpdatedMsg,
Connection,
"Updated Rtt=%u.%03u ms, Var=%u.%03u",
Path->SmoothedRtt / 1000, Path->SmoothedRtt % 1000,

Просмотреть файл

@ -278,7 +278,7 @@ QuicSendClearSendFlag(
{
if (Send->SendFlags & SendFlags) {
QuicTraceLogConnVerbose(
RemoveSendFlags,
RemoveSendFlagsMsg,
QuicSendGetConnection(Send),
"Removing flags %x",
(SendFlags & Send->SendFlags));

Просмотреть файл

@ -1304,7 +1304,7 @@ QuicStreamOnAck(
CXPLAT_DBG_ASSERT(FollowingOffset <= Stream->QueuedSendOffset);
QuicTraceLogStreamVerbose(
AckRange,
AckRangeMsg,
Stream,
"Received ack for %d bytes, offset=%llu, FF=0x%hx",
(int32_t)Length,

Просмотреть файл

@ -10173,6 +10173,118 @@
}
],
"macroName": "QuicTraceLogInfo"
},
"RttUpdatedMsg": {
"ModuleProperites": {},
"TraceString": "[conn][%p] Updated Rtt=%u.%03u ms, Var=%u.%03u",
"UniqueId": "RttUpdatedMsg",
"splitArgs": [
{
"DefinationEncoding": "p",
"MacroVariableName": "arg1"
},
{
"DefinationEncoding": "u",
"MacroVariableName": "arg3"
},
{
"DefinationEncoding": "03u",
"MacroVariableName": "arg4"
},
{
"DefinationEncoding": "u",
"MacroVariableName": "arg5"
},
{
"DefinationEncoding": "03u",
"MacroVariableName": "arg6"
}
],
"macroName": "QuicTraceLogConnVerbose"
},
"RemoveSendFlagsMsg": {
"ModuleProperites": {},
"TraceString": "[conn][%p] Removing flags %x",
"UniqueId": "RemoveSendFlagsMsg",
"splitArgs": [
{
"DefinationEncoding": "p",
"MacroVariableName": "arg1"
},
{
"DefinationEncoding": "x",
"MacroVariableName": "arg3"
}
],
"macroName": "QuicTraceLogConnVerbose"
},
"AckRangeMsg": {
"ModuleProperites": {},
"TraceString": "[strm][%p] Received ack for %d bytes, offset=%llu, FF=0x%hx",
"UniqueId": "AckRangeMsg",
"splitArgs": [
{
"DefinationEncoding": "p",
"MacroVariableName": "arg1"
},
{
"DefinationEncoding": "d",
"MacroVariableName": "arg3"
},
{
"DefinationEncoding": "llu",
"MacroVariableName": "arg4"
},
{
"DefinationEncoding": "hx",
"MacroVariableName": "arg5"
}
],
"macroName": "QuicTraceLogStreamVerbose"
},
"TestSendIoctl": {
"ModuleProperites": {},
"TraceString": "[test] Sending Write IOCTL %u with %u bytes.",
"UniqueId": "TestSendIoctl",
"splitArgs": [
{
"DefinationEncoding": "u",
"MacroVariableName": "arg2"
},
{
"DefinationEncoding": "u",
"MacroVariableName": "arg3"
}
],
"macroName": "QuicTraceLogVerbose"
},
"TestReadIoctl": {
"ModuleProperites": {},
"TraceString": "[test] Sending Read IOCTL %u.",
"UniqueId": "TestReadIoctl",
"splitArgs": [
{
"DefinationEncoding": "u",
"MacroVariableName": "arg2"
}
],
"macroName": "QuicTraceLogVerbose"
},
"DatapathUnreachableMsg": {
"ModuleProperites": {},
"TraceString": "[sock][%p] Unreachable error from %!ADDR!",
"UniqueId": "DatapathUnreachableMsg",
"splitArgs": [
{
"DefinationEncoding": "p",
"MacroVariableName": "arg2"
},
{
"DefinationEncoding": "!ADDR!",
"MacroVariableName": "arg3"
}
],
"macroName": "QuicTraceLogVerbose"
}
},
"Version": 1,
@ -13182,6 +13294,30 @@
{
"UniquenessHash": "7368812e-a46d-0924-7643-009511288886",
"TraceID": "InteropTestStop"
},
{
"UniquenessHash": "dc25a415-b386-47ec-0128-415c6f31795b",
"TraceID": "RttUpdatedMsg"
},
{
"UniquenessHash": "b4aa5fad-d1de-466c-0214-1bbda4b9eb95",
"TraceID": "RemoveSendFlagsMsg"
},
{
"UniquenessHash": "1f842f1b-027f-b5ec-e0ac-fc9491aeb629",
"TraceID": "AckRangeMsg"
},
{
"UniquenessHash": "28f77853-916b-5ceb-e928-405aff056b0a",
"TraceID": "TestSendIoctl"
},
{
"UniquenessHash": "3c33979e-0db8-7562-7df1-41ef66cb75fa",
"TraceID": "TestReadIoctl"
},
{
"UniquenessHash": "29acd049-f710-a71e-1271-698510cfc519",
"TraceID": "DatapathUnreachableMsg"
}
]
}

Просмотреть файл

@ -14,7 +14,7 @@ Abstract:
#include <new.h>
#ifdef QUIC_CLOG
#include "drivermain.cpp.clog.h"
#include "drvmain.cpp.clog.h"
#endif
DECLARE_CONST_UNICODE_STRING(SecNetPerfCtlDeviceNameBase, L"\\Device\\");

Просмотреть файл

@ -2090,7 +2090,7 @@ CxPlatDataPathSocketReceive(
if (IsUnreachableError) {
#if QUIC_CLOG
QuicTraceLogVerbose(
DatapathUnreachable,
DatapathUnreachableMsg,
"[sock][%p] Unreachable error from %!ADDR!",
Binding,
CASTED_CLOG_BYTEARRAY(sizeof(RemoteAddr), &RemoteAddr));