ReactOS  0.4.14-dev-323-g6fe6a88
KeProcessor.c File Reference
#include <kmt_test.h>
#include <debug.h>
Include dependency graph for KeProcessor.c:

Go to the source code of this file.

Macros

#define NDEBUG
 

Functions

static VOID KeStallExecutionProcessorTest (VOID)
 
 START_TEST (KeProcessor)
 

Macro Definition Documentation

◆ NDEBUG

#define NDEBUG

Definition at line 12 of file KeProcessor.c.

Function Documentation

◆ KeStallExecutionProcessorTest()

static VOID KeStallExecutionProcessorTest ( VOID  )
static

Definition at line 15 of file KeProcessor.c.

16 {
17  ULONG i;
18  LARGE_INTEGER TimeStart, TimeFinish;
19 
20  DPRINT1("Waiting for 30 secs with 50us stalls...\n");
21  KeQuerySystemTime(&TimeStart);
22  for (i = 0; i < (30*1000*20); i++)
23  {
25  }
26  KeQuerySystemTime(&TimeFinish);
27  DPRINT1("Time elapsed: %d secs\n", (TimeFinish.QuadPart - TimeStart.QuadPart) / 10000000); // 30
28 
29  DPRINT1("Waiting for 30 secs with 1000us stalls...\n");
30  KeQuerySystemTime(&TimeStart);
31  for (i = 0; i < (30*1000); i++)
32  {
34  }
35  KeQuerySystemTime(&TimeFinish);
36  DPRINT1("Time elapsed: %d secs\n", (TimeFinish.QuadPart - TimeStart.QuadPart) / 10000000); // 30
37 
38  DPRINT1("Waiting for 30 secs with 1us stalls...\n");
39  KeQuerySystemTime(&TimeStart);
40  for (i = 0; i < (30*1000*1000); i++)
41  {
43  }
44  KeQuerySystemTime(&TimeFinish);
45  DPRINT1("Time elapsed: %d secs\n", (TimeFinish.QuadPart - TimeStart.QuadPart) / 10000000); // 43
46 
47  DPRINT1("Waiting for 30 secs with one huge stall...\n");
48  KeQuerySystemTime(&TimeStart);
49  KeStallExecutionProcessor(30*1000000);
50  KeQuerySystemTime(&TimeFinish);
51  DPRINT1("Time elapsed: %d secs\n", (TimeFinish.QuadPart - TimeStart.QuadPart) / 10000000); // 30
52 }
#define KeQuerySystemTime(t)
Definition: env_spec_w32.h:570
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
Definition: glfuncs.h:248
#define DPRINT1
Definition: precomp.h:8
unsigned int ULONG
Definition: retypes.h:1
VOID NTAPI KeStallExecutionProcessor(IN ULONG MicroSeconds)
Definition: ntoskrnl.c:99
LONGLONG QuadPart
Definition: typedefs.h:112

Referenced by START_TEST().

◆ START_TEST()

START_TEST ( KeProcessor  )

Definition at line 54 of file KeProcessor.c.

55 {
57 }
static VOID KeStallExecutionProcessorTest(VOID)
Definition: KeProcessor.c:15