Check provider id in etw callback.

This commit is contained in:
Bartosz Taudul 2020-02-22 12:56:33 +01:00
parent ba0715b295
commit 539ccf5a61

View File

@ -75,6 +75,9 @@ void WINAPI EventRecordCallback( PEVENT_RECORD record )
#endif
const auto& hdr = record->EventHeader;
switch( hdr.ProviderId.Data1 )
{
case 0x3d6fa8d1: // Thread Guid
if( hdr.EventDescriptor.Opcode == 36 )
{
const auto cswitch = (const CSwitch*)record->UserData;
@ -112,6 +115,10 @@ void WINAPI EventRecordCallback( PEVENT_RECORD record )
MemWrite( &item->tidToPid.pid, pid );
TracyLfqCommit;
}
break;
default:
break;
}
}
bool SysTraceStart()