PpmEventTraceProfileChange
VOID __stdcall PpmEventTraceProfileChange(_POP_PPM_PROFILE *PreviousProfile, _POP_PPM_PROFILE *NewProfile){
REGHANDLE v4;
_EVENT_DATA_DESCRIPTOR UserData;
unsigned __int8 *p_Id;
int v7;
int v8;
if( PpmEtwRegistered )
{
v4 = PpmEtwHandle;
if( EtwEventEnabled(PpmEtwHandle, &PPM_ETW_PROCESSOR_PROFILE_CHANGE) )
{
UserData.Reserved = 0;
v8 = 0;
UserData.Ptr = (unsigned __int64)&PreviousProfile->Id;
UserData.Size = 1;
p_Id = &NewProfile->Id;
v7 = 1;
EtwWrite(v4, &PPM_ETW_PROCESSOR_PROFILE_CHANGE, 0, 2u, &UserData);
}
}
}Referenced by:
PpmApplyProfile