PopDiagTraceCsDripsWatchdog
VOID __stdcall PopDiagTraceCsDripsWatchdog(
UINT64 ResiliencyPhaseNoActivatorsNoDripsMs,
UINT64 NonActivatedCpuTimeMs,
UINT64 DurationThisPeriodMs,
UINT8 OnAc,
UINT64 EnergyDrain,
UINT8 DeviceConstraINT,
UINT8 ActionsTaken,
UNICODE_STRING *DeviceServiceName,
UNICODE_STRING *ChildServiceName,
UINT64 VetoCode){
int v10;
UINT64 v11;
wchar_t *Buffer;
__int16 v13;
wchar_t *v14;
__int16 v15;
UINT64 UserDataCount;
int v17;
int v18;
int v19;
int v20;
EVENT_DATA_DESCRIPTOR UserData;
int *v22;
__int64 v23;
int *v24;
__int64 v25;
int *v26;
__int64 v27;
UINT64 *p_EnergyDrain;
__int64 v29;
int *v30;
__int64 v31;
UINT8 *p_ActionsTaken;
__int64 v33;
int *v34;
__int64 v35;
wchar_t *v36;
__int64 Length;
int *v38;
__int64 v39;
wchar_t *v40;
__int64 v41;
UINT64 *p_VetoCode;
__int64 v43;
char *v44;
__int64 v45;
int v46;
int v47;
int v48;
char v49;
v48 = DurationThisPeriodMs;
v47 = NonActivatedCpuTimeMs;
v46 = ResiliencyPhaseNoActivatorsNoDripsMs;
v10 = OnAc;
if( PopDiagHandleRegistered )
{
v11 = PopDiagHandle;
if( EtwEventEnabled(
PopDiagHandle,
(EVENT_DESCRIPTOR *)&POP_ETW_EVENT_CS_DRIPS_WATCHDOG,
(EVENT_DESCRIPTOR *)DurationThisPeriodMs) )
{
v20 = DeviceConstraINT;
UserData.Ptr = (unsigned __int64)&v46;
v22 = &v47;
v24 = &v48;
v26 = &v19;
p_EnergyDrain = &EnergyDrain;
v30 = &v20;
p_ActionsTaken = &ActionsTaken;
v19 = v10;
*(_QWORD *)&UserData.Size = 4i64;
v23 = 4i64;
v25 = 4i64;
v27 = 4i64;
v29 = 4i64;
v31 = 4i64;
v33 = 4i64;
v35 = 2i64;
if( DeviceServiceName )
{
Buffer = DeviceServiceName->Buffer;
Length = DeviceServiceName->Length;
v36 = Buffer;
v13 = (unsigned __int16)Length >> 1;
v34 = &v17;
}
else
{
v36 = 0i64;
v34 = &v17;
v13 = 0;
Length = 0i64;
}
LOWORD(v17) = v13;
v39 = 2i64;
if( ChildServiceName )
{
v14 = ChildServiceName->Buffer;
v41 = ChildServiceName->Length;
v40 = v14;
v15 = (unsigned __int16)v41 >> 1;
v38 = &v18;
}
else
{
v40 = 0i64;
v38 = &v18;
v15 = 0;
v41 = 0i64;
}
LOWORD(v18) = v15;
p_VetoCode = &VetoCode;
v43 = 4i64;
v44 = &v49;
v45 = 4i64;
LODWORD(UserDataCount) = 13;
EtwWriteEx(
v11,
(EVENT_DESCRIPTOR *)&POP_ETW_EVENT_CS_DRIPS_WATCHDOG,
0i64,
0i64,
0i64,
0i64,
UserDataCount,
&UserData);
}
}
}Referenced by:
PopDripsWatchdogTakeAction