Author: tfaber
Date: Sat Aug 29 15:04:01 2015
New Revision: 68861
URL:
http://svn.reactos.org/svn/reactos?rev=68861&view=rev
Log:
[NDK][NTOS]
- Move KeProfileInterrupt[WithSource] declarations to NDK since they're exported
- NtCreateProfile's fourth parameter is SIZE_T
- Add NtCreateProfileEx prototype
CORE-10066
Modified:
trunk/reactos/include/ndk/kefuncs.h
trunk/reactos/ntoskrnl/ex/profile.c
trunk/reactos/ntoskrnl/include/internal/ke.h
Modified: trunk/reactos/include/ndk/kefuncs.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/ndk/kefuncs.h?rev=…
==============================================================================
--- trunk/reactos/include/ndk/kefuncs.h [iso-8859-1] (original)
+++ trunk/reactos/include/ndk/kefuncs.h [iso-8859-1] Sat Aug 29 15:04:01 2015
@@ -287,6 +287,19 @@
VOID
NTAPI
+KeProfileInterrupt(
+ _In_ PKTRAP_FRAME TrapFrame
+);
+
+VOID
+NTAPI
+KeProfileInterruptWithSource(
+ _In_ PKTRAP_FRAME TrapFrame,
+ _In_ KPROFILE_SOURCE Source
+);
+
+VOID
+NTAPI
KeSetProfileIrql(
_In_ KIRQL ProfileIrql
);
@@ -353,12 +366,28 @@
_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,
_In_ KPROFILE_SOURCE Source,
_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
Modified: trunk/reactos/ntoskrnl/ex/profile.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ex/profile.c?rev=…
==============================================================================
--- trunk/reactos/ntoskrnl/ex/profile.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/ex/profile.c [iso-8859-1] Sat Aug 29 15:04:01 2015
@@ -95,7 +95,7 @@
NtCreateProfile(OUT PHANDLE ProfileHandle,
IN HANDLE Process OPTIONAL,
IN PVOID RangeBase,
- IN ULONG RangeSize,
+ IN SIZE_T RangeSize,
IN ULONG BucketSize,
IN PVOID Buffer,
IN ULONG BufferSize,
Modified: trunk/reactos/ntoskrnl/include/internal/ke.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/include/internal/…
==============================================================================
--- trunk/reactos/ntoskrnl/include/internal/ke.h [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/include/internal/ke.h [iso-8859-1] Sat Aug 29 15:04:01 2015
@@ -405,19 +405,6 @@
VOID
NTAPI
-KeProfileInterrupt(
- PKTRAP_FRAME TrapFrame
-);
-
-VOID
-NTAPI
-KeProfileInterruptWithSource(
- IN PKTRAP_FRAME TrapFrame,
- IN KPROFILE_SOURCE Source
-);
-
-VOID
-NTAPI
KeUpdateRunTime(
PKTRAP_FRAME TrapFrame,
KIRQL Irql