Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

77 lines
1.8 KiB

//---------------------------------------------------------------------------
//
// 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 <wmistr.h>
#include <evntrace.h>
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
//---------------------------------------------------------------------------