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.
|
|
/*++
Copyright (c) 2000 Microsoft Corporation
Module Name:
perfp.h
Abstract:
This module contains the definitions of data structures and macros used by kernel-mode logging in the performance data event log.
Author:
David Fields (DavidFie)
Revision History:
5/15/2000 David Fields (DavidFie) Initial
--*/
#ifndef _PERFP_
#define _PERFP_
#if _MSC_VER >= 1000
#pragma once
#endif
#pragma warning(error:4100) // Unreferenced formal parameter
#pragma warning(error:4101) // Unreferenced local variable
#pragma warning(error:4705) // Statement has no effect
#pragma warning(disable:4214) // bit field types other than int
#pragma warning(disable:4201) // nameless struct/union
#pragma warning(disable:4127) // condition expression is constant
#pragma warning(disable:4115) // named type definition in parentheses
#if 0
#pragma warning(disable:4324) // alignment sensitive to declspec
#pragma warning(disable:4232) // dllimport not static
#pragma warning(disable:4206) // translation unit empty
#endif
#include "ntos.h"
//
// Profiling structures
//
extern KPROFILE PerfInfoProfileObject; extern PERFINFO_SAMPLED_PROFILE_CACHE PerfProfileCache; extern BOOLEAN PerfInfoSampledProfileCaching; extern KPROFILE_SOURCE PerfInfoProfileSourceActive; extern KPROFILE_SOURCE PerfInfoProfileSourceRequested; extern KPROFILE_SOURCE PerfInfoProfileInterval; extern LONG PerfInfoSampledProfileFlushInProgress; extern PERFINFO_GROUPMASK PerfGlobalGroupMask;
#define PERFPOOLTAG 'freP'
NTSTATUS PerfInfoReserveBytesWMI( PPERFINFO_HOOK_HANDLE Hook, USHORT HookId, ULONG BytesToReserve );
NTSTATUS PerfInfoFileNameRunDown( );
NTSTATUS PerfInfoProcessRunDown( );
NTSTATUS PerfInfoSysModuleRunDown( );
VOID PerfInfoProfileInit( );
VOID PerfInfoProfileUninit( );
#ifdef NTPERF
extern ULONGLONG PerfInfoTickFrequency;
NTSTATUS PerfInfoReserveBytesPerfMem( PPERFINFO_HOOK_HANDLE Hook, USHORT HookId, ULONG BytesToReserve );
NTSTATUS PerfTurnOnBranchTracing( );
NTSTATUS PerfTurnOffBranchTracing( );
BOOLEAN PerfInfoFlushBranchCache( BOOLEAN bIntsOff );
#endif // NTPERF
VOID PerfSetLogging ( PVOID MaskAddress );
#endif // _PERFP_
|