mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-27 00:04:35 +00:00
Check provider id in etw callback.
This commit is contained in:
parent
ba0715b295
commit
539ccf5a61
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user