[NDK][NTOS]
[reactos.git] / reactos / include / ndk / kefuncs.h
index 638e122..a1e379f 100644 (file)
@@ -285,6 +285,19 @@ KeSetGdtSelector(
     _In_ ULONG Value2
 );
 
+VOID
+NTAPI
+KeProfileInterrupt(
+    _In_ PKTRAP_FRAME TrapFrame
+);
+
+VOID
+NTAPI
+KeProfileInterruptWithSource(
+    _In_ PKTRAP_FRAME TrapFrame,
+    _In_ KPROFILE_SOURCE Source
+);
+
 VOID
 NTAPI
 KeSetProfileIrql(
@@ -353,7 +366,7 @@ NtCreateProfile(
     _Out_ PHANDLE ProfileHandle,
     _In_ HANDLE ProcessHandle,
     _In_ PVOID ImageBase,
-    _In_ ULONG ImageSize,
+    _In_ SIZE_T ImageSize,
     _In_ ULONG Granularity,
     _Out_ PVOID Buffer,
     _In_ ULONG ProfilingSize,
@@ -361,6 +374,22 @@ NtCreateProfile(
     _In_ KAFFINITY ProcessorMask
 );
 
+NTSYSCALLAPI
+NTSTATUS
+NTAPI
+NtCreateProfileEx(
+    _Out_ PHANDLE ProfileHandle,
+    _In_ HANDLE ProcessHandle,
+    _In_ PVOID ImageBase,
+    _In_ SIZE_T ImageSize,
+    _In_ ULONG Granularity,
+    _Out_ PVOID Buffer,
+    _In_ ULONG ProfilingSize,
+    _In_ KPROFILE_SOURCE Source,
+    _In_ USHORT GroupCount,
+    _In_reads_(GroupCount) PGROUP_AFFINITY Affinity
+);
+
 NTSYSCALLAPI
 NTSTATUS
 NTAPI