ReactOS  0.4.15-dev-1039-gb9754fa
profil.c File Reference
#include <hal.h>
#include <debug.h>
Include dependency graph for profil.c:

Go to the source code of this file.


#define NDEBUG


VOID NTAPI HalStopProfileInterrupt (IN KPROFILE_SOURCE ProfileSource)
VOID NTAPI HalStartProfileInterrupt (IN KPROFILE_SOURCE ProfileSource)
ULONG_PTR NTAPI HalSetProfileInterval (IN ULONG_PTR Interval)
LARGE_INTEGER KeQueryPerformanceCounter (PLARGE_INTEGER PerformanceFrequency)


ULONG HalpDecrementerRoll = 0

Macro Definition Documentation


#define NDEBUG

Definition at line 12 of file profil.c.

Function Documentation

◆ HalSetProfileInterval()

ULONG_PTR NTAPI HalSetProfileInterval ( IN ULONG_PTR  Interval)

Definition at line 44 of file profil.c.

45 {
47  return Interval;
48 }
DWORD Interval
Definition: netstat.c:33
Definition: debug.h:115

◆ HalStartProfileInterrupt()

VOID NTAPI HalStartProfileInterrupt ( IN KPROFILE_SOURCE  ProfileSource)

Definition at line 33 of file profil.c.

34 {
36  return;
37 }
Definition: debug.h:115

◆ HalStopProfileInterrupt()

VOID NTAPI HalStopProfileInterrupt ( IN KPROFILE_SOURCE  ProfileSource)

Definition at line 22 of file profil.c.

23 {
25  return;
26 }
Definition: debug.h:115

◆ KeQueryPerformanceCounter()

LARGE_INTEGER KeQueryPerformanceCounter ( PLARGE_INTEGER PerformanceFrequency  )

Definition at line 53 of file profil.c.

54 {
56  /* for now */
57  if(PerformanceFrequency) PerformanceFrequency->QuadPart = 100000000;
58  Result.HighPart = HalpDecrementerRoll;
59  Result.LowPart = __rdtsc();
60  return Result;
61 }
PPC_QUAL unsigned long long __rdtsc(void)
Definition: intrin_ppc.h:688
_At_(*)(_In_ PWSK_CLIENT Client, _In_opt_ PUNICODE_STRING NodeName, _In_opt_ PUNICODE_STRING ServiceName, _In_opt_ ULONG NameSpace, _In_opt_ GUID *Provider, _In_opt_ PADDRINFOEXW Hints, _Outptr_ PADDRINFOEXW *Result, _In_opt_ PEPROCESS OwningProcess, _In_opt_ PETHREAD OwningThread, _Inout_ PIRP Irp Result)(Mem)) NTSTATUS(WSKAPI *PFN_WSK_GET_ADDRESS_INFO
Definition: wsk.h:426
ULONG HalpDecrementerRoll
Definition: profil.c:50

Variable Documentation

◆ HalpDecrementerRoll

ULONG HalpDecrementerRoll = 0

Definition at line 50 of file profil.c.

Referenced by KeQueryPerformanceCounter().