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

Go to the source code of this file.

Macros

#define NDEBUG
 

Functions

VOID NTAPI HalStopProfileInterrupt (_In_ KPROFILE_SOURCE ProfileSource)
 
VOID NTAPI HalStartProfileInterrupt (_In_ KPROFILE_SOURCE ProfileSource)
 
ULONG_PTR NTAPI HalSetProfileInterval (_In_ ULONG_PTR Interval)
 

Variables

BOOLEAN HalpProfilingStopped = TRUE
 
UCHAR HalpProfileRate = 3
 

Macro Definition Documentation

◆ NDEBUG

#define NDEBUG

Definition at line 12 of file profil.c.

Function Documentation

◆ HalSetProfileInterval()

ULONG_PTR NTAPI HalSetProfileInterval ( _In_ ULONG_PTR  Interval)

Definition at line 58 of file profil.c.

60{
61 /*
62 * FIXME:
63 * 1) What is the maximum and minimum interrupt frequency for the RTC?
64 * 2) Find the maximum possible clock divisor value.
65 */
67
68 /* Update interval */
71
72 /* For now... */
73 return Interval;
74}
#define UNIMPLEMENTED
Definition: debug.h:115
VOID NTAPI HalStartProfileInterrupt(IN KPROFILE_SOURCE ProfileSource)
Definition: profil.c:57
BOOLEAN HalpProfilingStopped
Definition: profil.c:18
DWORD Interval
Definition: netstat.c:33

◆ HalStartProfileInterrupt()

VOID NTAPI HalStartProfileInterrupt ( _In_ KPROFILE_SOURCE  ProfileSource)

Definition at line 41 of file profil.c.

43{
44 UNREFERENCED_PARAMETER(ProfileSource);
45
47
49
50 /* Configure the clock divisor for generating periodic interrupts */
52
54}
#define FALSE
Definition: types.h:117
VOID NTAPI HalpReleaseCmosSpinLock(VOID)
Definition: spinlock.c:243
VOID NTAPI HalpAcquireCmosSpinLock(VOID)
Definition: spinlock.c:226
UCHAR HalpProfileRate
Definition: profil.c:19
PPC_QUAL void __outbyte(unsigned long const Port, const unsigned char Data)
Definition: intrin_ppc.h:605
#define UNREFERENCED_PARAMETER(P)
Definition: ntbasedef.h:317
#define RTC_IO_o_INT_CLOCK_DIVISOR
Definition: rtc.h:37

◆ HalStopProfileInterrupt()

VOID NTAPI HalStopProfileInterrupt ( _In_ KPROFILE_SOURCE  ProfileSource)

Definition at line 24 of file profil.c.

26{
27 UNREFERENCED_PARAMETER(ProfileSource);
28
30
31 /* Clear the interrupt flag */
33
35
37}
#define VOID
Definition: acefi.h:82
#define TRUE
Definition: types.h:120
PPC_QUAL unsigned char __inbyte(const unsigned long Port)
Definition: intrin_ppc.h:539
#define RTC_IO_i_INTERRUPT_RESET
Definition: rtc.h:44

Variable Documentation

◆ HalpProfileRate

UCHAR HalpProfileRate = 3

Definition at line 18 of file profil.c.

◆ HalpProfilingStopped

BOOLEAN HalpProfilingStopped = TRUE

Definition at line 17 of file profil.c.