//--------------------------------------------------------------------------- // // Module: perf.d // // Description: // // //@@BEGIN_MSINTERNAL // // History: Date Author Comment // -------------------------------------------------------------- // 01/02/01 ArthurZ Created // //@@END_MSINTERNAL //--------------------------------------------------------------------------- // // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY // KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE // IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR // PURPOSE. // // Copyright (c) 1995-1999 Microsoft Corporation. All Rights Reserved. // //--------------------------------------------------------------------------- #include #include extern ULONG TraceEnable; #define PerfInstrumentationEnabled() (TraceEnable != 0) #define NULL_INSTANCE_ID 0 #define KMIXER_SOURCE_GLITCH 2 #define PORTCLS_SOURCE_GLITCH 3 #define PERFGLITCH_PORTCLSOK 0 #define PERFGLITCH_PORTCLSGLITCH 1 VOID PerfRegisterProvider ( IN PDEVICE_OBJECT DeviceObject ); VOID PerfUnregisterProvider ( IN PDEVICE_OBJECT DeviceObject ); NTSTATUS PerfWmiDispatch ( IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp ); VOID PerfLogInsertSilenceGlitch ( IN ULONG_PTR InstanceId, IN ULONG Type, IN LONGLONG CurrentTime, IN LONGLONG PreviousTime ); VOID PerfLogDMAGlitch ( IN ULONG_PTR InstanceId, IN ULONG Type, IN LONGLONG CurrentTime, IN LONGLONG PreviousTime ); //--------------------------------------------------------------------------- // End of File: perf.c //---------------------------------------------------------------------------