54{
58
70 {
71 skip(
"Failed to create profile\n");
72 return;
73 }
74
77
78
79
80
81
82
83
84
85
86
89 1000000);
90
91
92 Buffer1Value =
Buffer[BufferOffset];
93 ok(Buffer1Value != 0,
"Buffer[%lu] = %lu\n", BufferOffset, Buffer1Value);
94
95
98 200000);
99
100 ok(
Buffer[BufferOffset] > Buffer1Value,
101 "Buffer[%lu] = %lu, expected more than %lu\n",
102 BufferOffset,
Buffer[BufferOffset], Buffer1Value);
103
106
107
108
109
110 ok(
Buffer[BufferOffset] > Buffer1Value,
111 "Buffer[%lu] = %lu, expected more than %lu\n", BufferOffset,
Buffer[BufferOffset], Buffer1Value);
112 ok(
Buffer[BufferOffset] < 2 * Buffer1Value,
113 "Buffer[%lu] = %lu, expected less than %lu\n", BufferOffset,
Buffer[BufferOffset], 2 * Buffer1Value);
114
115 trace(
"Buffer1Value = %lu\n", Buffer1Value);
116 trace(
"Buffer[%lu] = %lu\n", BufferOffset - 1,
Buffer[BufferOffset - 1]);
117 trace(
"Buffer[%lu] = %lu\n", BufferOffset,
Buffer[BufferOffset]);
118 trace(
"Buffer[%lu] = %lu\n", BufferOffset + 1,
Buffer[BufferOffset + 1]);
119
122}
#define LOOP_FUNCTION_SIZE
#define LOOP_FUNCTION_SIZE_SHIFT
static KAFFINITY SystemAffinityMask
static ULONG DummyBuffer[4096]
#define ok_hex(expression, result)
_In_ CDROM_SCAN_FOR_SPECIAL_INFO _In_ PCDROM_SCAN_FOR_SPECIAL_HANDLER Function
#define NT_SUCCESS(StatCode)
#define NtCurrentProcess()
NTSTATUS NTAPI NtClose(IN HANDLE Handle)
NTSTATUS NTAPI NtStopProfile(IN HANDLE ProfileHandle)
NTSTATUS NTAPI NtCreateProfile(OUT PHANDLE ProfileHandle, IN HANDLE Process OPTIONAL, IN PVOID RangeBase, IN SIZE_T RangeSize, IN ULONG BucketSize, IN PVOID Buffer, IN ULONG BufferSize, IN KPROFILE_SOURCE ProfileSource, IN KAFFINITY Affinity)
NTSTATUS NTAPI NtStartProfile(IN HANDLE ProfileHandle)
_In_ WDFMEMORY _Out_opt_ size_t * BufferSize