diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 12:19:03 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 12:19:03 +0000 |
commit | 64d98f8ee037282c35007b64c2649055c56af1db (patch) | |
tree | 5492bcf97fce41ee1c0b1cc2add283f3e66cdab0 /vendor/windows-sys-0.42.0/src/Windows/Win32/System/Performance/HardwareCounterProfiling/mod.rs | |
parent | Adding debian version 1.67.1+dfsg1-1. (diff) | |
download | rustc-64d98f8ee037282c35007b64c2649055c56af1db.tar.xz rustc-64d98f8ee037282c35007b64c2649055c56af1db.zip |
Merging upstream version 1.68.2+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'vendor/windows-sys-0.42.0/src/Windows/Win32/System/Performance/HardwareCounterProfiling/mod.rs')
-rw-r--r-- | vendor/windows-sys-0.42.0/src/Windows/Win32/System/Performance/HardwareCounterProfiling/mod.rs | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/vendor/windows-sys-0.42.0/src/Windows/Win32/System/Performance/HardwareCounterProfiling/mod.rs b/vendor/windows-sys-0.42.0/src/Windows/Win32/System/Performance/HardwareCounterProfiling/mod.rs new file mode 100644 index 000000000..5c924d689 --- /dev/null +++ b/vendor/windows-sys-0.42.0/src/Windows/Win32/System/Performance/HardwareCounterProfiling/mod.rs @@ -0,0 +1,53 @@ +#[cfg_attr(windows, link(name = "windows"))] +extern "system" { + #[doc = "*Required features: `\"Win32_System_Performance_HardwareCounterProfiling\"`, `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub fn DisableThreadProfiling(performancedatahandle: super::super::super::Foundation::HANDLE) -> u32; + #[doc = "*Required features: `\"Win32_System_Performance_HardwareCounterProfiling\"`, `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub fn EnableThreadProfiling(threadhandle: super::super::super::Foundation::HANDLE, flags: u32, hardwarecounters: u64, performancedatahandle: *mut super::super::super::Foundation::HANDLE) -> u32; + #[doc = "*Required features: `\"Win32_System_Performance_HardwareCounterProfiling\"`, `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub fn QueryThreadProfiling(threadhandle: super::super::super::Foundation::HANDLE, enabled: *mut super::super::super::Foundation::BOOLEAN) -> u32; + #[doc = "*Required features: `\"Win32_System_Performance_HardwareCounterProfiling\"`, `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub fn ReadThreadProfilingData(performancedatahandle: super::super::super::Foundation::HANDLE, flags: u32, performancedata: *mut PERFORMANCE_DATA) -> u32; +} +#[doc = "*Required features: `\"Win32_System_Performance_HardwareCounterProfiling\"`*"] +pub type HARDWARE_COUNTER_TYPE = i32; +#[doc = "*Required features: `\"Win32_System_Performance_HardwareCounterProfiling\"`*"] +pub const PMCCounter: HARDWARE_COUNTER_TYPE = 0i32; +#[doc = "*Required features: `\"Win32_System_Performance_HardwareCounterProfiling\"`*"] +pub const MaxHardwareCounterType: HARDWARE_COUNTER_TYPE = 1i32; +#[repr(C)] +#[doc = "*Required features: `\"Win32_System_Performance_HardwareCounterProfiling\"`*"] +pub struct HARDWARE_COUNTER_DATA { + pub Type: HARDWARE_COUNTER_TYPE, + pub Reserved: u32, + pub Value: u64, +} +impl ::core::marker::Copy for HARDWARE_COUNTER_DATA {} +impl ::core::clone::Clone for HARDWARE_COUNTER_DATA { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +#[doc = "*Required features: `\"Win32_System_Performance_HardwareCounterProfiling\"`*"] +pub struct PERFORMANCE_DATA { + pub Size: u16, + pub Version: u8, + pub HwCountersCount: u8, + pub ContextSwitchCount: u32, + pub WaitReasonBitMap: u64, + pub CycleTime: u64, + pub RetryCount: u32, + pub Reserved: u32, + pub HwCounters: [HARDWARE_COUNTER_DATA; 16], +} +impl ::core::marker::Copy for PERFORMANCE_DATA {} +impl ::core::clone::Clone for PERFORMANCE_DATA { + fn clone(&self) -> Self { + *self + } +} |