summaryrefslogtreecommitdiffhomepage
path: root/include/ntapi/nt_profiling.h
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2015-07-27 04:01:18 -0400
committermidipix <writeonce@midipix.org>2015-07-27 04:01:18 -0400
commitdd89bb8ad4fe184a34b5dbdda237e640fc82121b (patch)
tree5e80d2da35f5892f92be29f57982b2708e6bd99b /include/ntapi/nt_profiling.h
parentdcdadc2702712fa750ed255ed1dfa354522797a0 (diff)
downloadntapi-dd89bb8ad4fe184a34b5dbdda237e640fc82121b.tar.bz2
ntapi-dd89bb8ad4fe184a34b5dbdda237e640fc82121b.tar.xz
entered advanced internal development stage.
Diffstat (limited to 'include/ntapi/nt_profiling.h')
-rw-r--r--include/ntapi/nt_profiling.h41
1 files changed, 41 insertions, 0 deletions
diff --git a/include/ntapi/nt_profiling.h b/include/ntapi/nt_profiling.h
new file mode 100644
index 0000000..4c11909
--- /dev/null
+++ b/include/ntapi/nt_profiling.h
@@ -0,0 +1,41 @@
+#ifndef _NT_PROFILING_H_
+#define _NT_PROFILING_H_
+
+#include <psxtypes/psxtypes.h>
+#include "nt_object.h"
+
+typedef enum _nt_kprofile_source {
+ NT_PROFILE_TIME
+} nt_kprofile_source;
+
+
+typedef int32_t __stdcall ntapi_zw_create_profile(
+ __out void ** hprofile,
+ __in void * hprocess,
+ __in void * base,
+ __in size_t size,
+ __in uint32_t bucket_shift,
+ __in uint32_t * buffer,
+ __in size_t buffer_length,
+ __in nt_kprofile_source source,
+ __in uint32_t process_mask);
+
+
+typedef int32_t __stdcall ntapi_zw_set_interval_profile(
+ __in uint32_t interval,
+ __in nt_kprofile_source source);
+
+
+typedef int32_t __stdcall ntapi_zw_query_interval_profile(
+ __in nt_kprofile_source source,
+ __out uint32_t * interval);
+
+
+typedef int32_t __stdcall ntapi_zw_start_profile(
+ __in void * hprofile);
+
+
+typedef int32_t __stdcall ntapi_zw_stop_profile(
+ __in void * hprofile);
+
+#endif