amd_uprof_sys/
bindings.rs

1/* automatically generated by rust-bindgen 0.72.0 */
2
3pub const __bool_true_false_are_defined: u32 = 1;
4pub const true_: u32 = 1;
5pub const false_: u32 = 0;
6pub const _STDINT_H: u32 = 1;
7pub const _FEATURES_H: u32 = 1;
8pub const _DEFAULT_SOURCE: u32 = 1;
9pub const __GLIBC_USE_ISOC2X: u32 = 0;
10pub const __USE_ISOC11: u32 = 1;
11pub const __USE_ISOC99: u32 = 1;
12pub const __USE_ISOC95: u32 = 1;
13pub const __USE_POSIX_IMPLICITLY: u32 = 1;
14pub const _POSIX_SOURCE: u32 = 1;
15pub const _POSIX_C_SOURCE: u32 = 200809;
16pub const __USE_POSIX: u32 = 1;
17pub const __USE_POSIX2: u32 = 1;
18pub const __USE_POSIX199309: u32 = 1;
19pub const __USE_POSIX199506: u32 = 1;
20pub const __USE_XOPEN2K: u32 = 1;
21pub const __USE_XOPEN2K8: u32 = 1;
22pub const _ATFILE_SOURCE: u32 = 1;
23pub const __WORDSIZE: u32 = 64;
24pub const __WORDSIZE_TIME64_COMPAT32: u32 = 1;
25pub const __SYSCALL_WORDSIZE: u32 = 64;
26pub const __TIMESIZE: u32 = 64;
27pub const __USE_MISC: u32 = 1;
28pub const __USE_ATFILE: u32 = 1;
29pub const __USE_FORTIFY_LEVEL: u32 = 0;
30pub const __GLIBC_USE_DEPRECATED_GETS: u32 = 0;
31pub const __GLIBC_USE_DEPRECATED_SCANF: u32 = 0;
32pub const __GLIBC_USE_C2X_STRTOL: u32 = 0;
33pub const _STDC_PREDEF_H: u32 = 1;
34pub const __STDC_IEC_559__: u32 = 1;
35pub const __STDC_IEC_60559_BFP__: u32 = 201404;
36pub const __STDC_IEC_559_COMPLEX__: u32 = 1;
37pub const __STDC_IEC_60559_COMPLEX__: u32 = 201404;
38pub const __STDC_ISO_10646__: u32 = 201706;
39pub const __GNU_LIBRARY__: u32 = 6;
40pub const __GLIBC__: u32 = 2;
41pub const __GLIBC_MINOR__: u32 = 39;
42pub const _SYS_CDEFS_H: u32 = 1;
43pub const __glibc_c99_flexarr_available: u32 = 1;
44pub const __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI: u32 = 0;
45pub const __HAVE_GENERIC_SELECTION: u32 = 1;
46pub const __GLIBC_USE_LIB_EXT2: u32 = 0;
47pub const __GLIBC_USE_IEC_60559_BFP_EXT: u32 = 0;
48pub const __GLIBC_USE_IEC_60559_BFP_EXT_C2X: u32 = 0;
49pub const __GLIBC_USE_IEC_60559_EXT: u32 = 0;
50pub const __GLIBC_USE_IEC_60559_FUNCS_EXT: u32 = 0;
51pub const __GLIBC_USE_IEC_60559_FUNCS_EXT_C2X: u32 = 0;
52pub const __GLIBC_USE_IEC_60559_TYPES_EXT: u32 = 0;
53pub const _BITS_TYPES_H: u32 = 1;
54pub const _BITS_TYPESIZES_H: u32 = 1;
55pub const __OFF_T_MATCHES_OFF64_T: u32 = 1;
56pub const __INO_T_MATCHES_INO64_T: u32 = 1;
57pub const __RLIM_T_MATCHES_RLIM64_T: u32 = 1;
58pub const __STATFS_MATCHES_STATFS64: u32 = 1;
59pub const __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64: u32 = 1;
60pub const __FD_SETSIZE: u32 = 1024;
61pub const _BITS_TIME64_H: u32 = 1;
62pub const _BITS_WCHAR_H: u32 = 1;
63pub const _BITS_STDINT_INTN_H: u32 = 1;
64pub const _BITS_STDINT_UINTN_H: u32 = 1;
65pub const _BITS_STDINT_LEAST_H: u32 = 1;
66pub const INT8_MIN: i32 = -128;
67pub const INT16_MIN: i32 = -32768;
68pub const INT32_MIN: i32 = -2147483648;
69pub const INT8_MAX: u32 = 127;
70pub const INT16_MAX: u32 = 32767;
71pub const INT32_MAX: u32 = 2147483647;
72pub const UINT8_MAX: u32 = 255;
73pub const UINT16_MAX: u32 = 65535;
74pub const UINT32_MAX: u32 = 4294967295;
75pub const INT_LEAST8_MIN: i32 = -128;
76pub const INT_LEAST16_MIN: i32 = -32768;
77pub const INT_LEAST32_MIN: i32 = -2147483648;
78pub const INT_LEAST8_MAX: u32 = 127;
79pub const INT_LEAST16_MAX: u32 = 32767;
80pub const INT_LEAST32_MAX: u32 = 2147483647;
81pub const UINT_LEAST8_MAX: u32 = 255;
82pub const UINT_LEAST16_MAX: u32 = 65535;
83pub const UINT_LEAST32_MAX: u32 = 4294967295;
84pub const INT_FAST8_MIN: i32 = -128;
85pub const INT_FAST16_MIN: i64 = -9223372036854775808;
86pub const INT_FAST32_MIN: i64 = -9223372036854775808;
87pub const INT_FAST8_MAX: u32 = 127;
88pub const INT_FAST16_MAX: u64 = 9223372036854775807;
89pub const INT_FAST32_MAX: u64 = 9223372036854775807;
90pub const UINT_FAST8_MAX: u32 = 255;
91pub const UINT_FAST16_MAX: i32 = -1;
92pub const UINT_FAST32_MAX: i32 = -1;
93pub const INTPTR_MIN: i64 = -9223372036854775808;
94pub const INTPTR_MAX: u64 = 9223372036854775807;
95pub const UINTPTR_MAX: i32 = -1;
96pub const PTRDIFF_MIN: i64 = -9223372036854775808;
97pub const PTRDIFF_MAX: u64 = 9223372036854775807;
98pub const SIG_ATOMIC_MIN: i32 = -2147483648;
99pub const SIG_ATOMIC_MAX: u32 = 2147483647;
100pub const SIZE_MAX: i32 = -1;
101pub const WINT_MIN: u32 = 0;
102pub const WINT_MAX: u32 = 4294967295;
103pub const AMD_PROFILE_SUCCESS: u32 = 0;
104pub const AMD_PROFILE_ERROR_INTERNAL: i32 = -1;
105pub const AMD_PROFILE_WARN_PROFILE_ALREADY_RESUMED: i32 = -2;
106pub const AMD_PROFILE_WARN_PROFILE_ALREADY_PAUSED: i32 = -3;
107pub const AMD_PROFILE_WARN_PROFILE_ALREADY_PENDING: i32 = -4;
108pub const AMD_PROFILE_ERROR_INVALID_ARG: i32 = -5;
109pub const AMD_PROFILE_ERROR_VERSION_MISMATCH: i32 = -6;
110pub const AMD_PROFILE_ERROR_MIXED_FUNCTIONS_NOT_ALLOWED: i32 = -7;
111pub type wchar_t = ::std::os::raw::c_int;
112#[repr(C)]
113#[repr(align(16))]
114#[derive(Debug, Copy, Clone)]
115pub struct max_align_t {
116    pub __clang_max_align_nonce1: ::std::os::raw::c_longlong,
117    pub __bindgen_padding_0: u64,
118    pub __clang_max_align_nonce2: u128,
119}
120#[allow(clippy::unnecessary_operation, clippy::identity_op)]
121const _: () = {
122    ["Size of max_align_t"][::std::mem::size_of::<max_align_t>() - 32usize];
123    ["Alignment of max_align_t"][::std::mem::align_of::<max_align_t>() - 16usize];
124    ["Offset of field: max_align_t::__clang_max_align_nonce1"]
125        [::std::mem::offset_of!(max_align_t, __clang_max_align_nonce1) - 0usize];
126    ["Offset of field: max_align_t::__clang_max_align_nonce2"]
127        [::std::mem::offset_of!(max_align_t, __clang_max_align_nonce2) - 16usize];
128};
129pub type __u_char = ::std::os::raw::c_uchar;
130pub type __u_short = ::std::os::raw::c_ushort;
131pub type __u_int = ::std::os::raw::c_uint;
132pub type __u_long = ::std::os::raw::c_ulong;
133pub type __int8_t = ::std::os::raw::c_schar;
134pub type __uint8_t = ::std::os::raw::c_uchar;
135pub type __int16_t = ::std::os::raw::c_short;
136pub type __uint16_t = ::std::os::raw::c_ushort;
137pub type __int32_t = ::std::os::raw::c_int;
138pub type __uint32_t = ::std::os::raw::c_uint;
139pub type __int64_t = ::std::os::raw::c_long;
140pub type __uint64_t = ::std::os::raw::c_ulong;
141pub type __int_least8_t = __int8_t;
142pub type __uint_least8_t = __uint8_t;
143pub type __int_least16_t = __int16_t;
144pub type __uint_least16_t = __uint16_t;
145pub type __int_least32_t = __int32_t;
146pub type __uint_least32_t = __uint32_t;
147pub type __int_least64_t = __int64_t;
148pub type __uint_least64_t = __uint64_t;
149pub type __quad_t = ::std::os::raw::c_long;
150pub type __u_quad_t = ::std::os::raw::c_ulong;
151pub type __intmax_t = ::std::os::raw::c_long;
152pub type __uintmax_t = ::std::os::raw::c_ulong;
153pub type __dev_t = ::std::os::raw::c_ulong;
154pub type __uid_t = ::std::os::raw::c_uint;
155pub type __gid_t = ::std::os::raw::c_uint;
156pub type __ino_t = ::std::os::raw::c_ulong;
157pub type __ino64_t = ::std::os::raw::c_ulong;
158pub type __mode_t = ::std::os::raw::c_uint;
159pub type __nlink_t = ::std::os::raw::c_ulong;
160pub type __off_t = ::std::os::raw::c_long;
161pub type __off64_t = ::std::os::raw::c_long;
162pub type __pid_t = ::std::os::raw::c_int;
163#[repr(C)]
164#[derive(Debug, Copy, Clone)]
165pub struct __fsid_t {
166    pub __val: [::std::os::raw::c_int; 2usize],
167}
168#[allow(clippy::unnecessary_operation, clippy::identity_op)]
169const _: () = {
170    ["Size of __fsid_t"][::std::mem::size_of::<__fsid_t>() - 8usize];
171    ["Alignment of __fsid_t"][::std::mem::align_of::<__fsid_t>() - 4usize];
172    ["Offset of field: __fsid_t::__val"][::std::mem::offset_of!(__fsid_t, __val) - 0usize];
173};
174pub type __clock_t = ::std::os::raw::c_long;
175pub type __rlim_t = ::std::os::raw::c_ulong;
176pub type __rlim64_t = ::std::os::raw::c_ulong;
177pub type __id_t = ::std::os::raw::c_uint;
178pub type __time_t = ::std::os::raw::c_long;
179pub type __useconds_t = ::std::os::raw::c_uint;
180pub type __suseconds_t = ::std::os::raw::c_long;
181pub type __suseconds64_t = ::std::os::raw::c_long;
182pub type __daddr_t = ::std::os::raw::c_int;
183pub type __key_t = ::std::os::raw::c_int;
184pub type __clockid_t = ::std::os::raw::c_int;
185pub type __timer_t = *mut ::std::os::raw::c_void;
186pub type __blksize_t = ::std::os::raw::c_long;
187pub type __blkcnt_t = ::std::os::raw::c_long;
188pub type __blkcnt64_t = ::std::os::raw::c_long;
189pub type __fsblkcnt_t = ::std::os::raw::c_ulong;
190pub type __fsblkcnt64_t = ::std::os::raw::c_ulong;
191pub type __fsfilcnt_t = ::std::os::raw::c_ulong;
192pub type __fsfilcnt64_t = ::std::os::raw::c_ulong;
193pub type __fsword_t = ::std::os::raw::c_long;
194pub type __ssize_t = ::std::os::raw::c_long;
195pub type __syscall_slong_t = ::std::os::raw::c_long;
196pub type __syscall_ulong_t = ::std::os::raw::c_ulong;
197pub type __loff_t = __off64_t;
198pub type __caddr_t = *mut ::std::os::raw::c_char;
199pub type __intptr_t = ::std::os::raw::c_long;
200pub type __socklen_t = ::std::os::raw::c_uint;
201pub type __sig_atomic_t = ::std::os::raw::c_int;
202pub type int_least8_t = __int_least8_t;
203pub type int_least16_t = __int_least16_t;
204pub type int_least32_t = __int_least32_t;
205pub type int_least64_t = __int_least64_t;
206pub type uint_least8_t = __uint_least8_t;
207pub type uint_least16_t = __uint_least16_t;
208pub type uint_least32_t = __uint_least32_t;
209pub type uint_least64_t = __uint_least64_t;
210pub type int_fast8_t = ::std::os::raw::c_schar;
211pub type int_fast16_t = ::std::os::raw::c_long;
212pub type int_fast32_t = ::std::os::raw::c_long;
213pub type int_fast64_t = ::std::os::raw::c_long;
214pub type uint_fast8_t = ::std::os::raw::c_uchar;
215pub type uint_fast16_t = ::std::os::raw::c_ulong;
216pub type uint_fast32_t = ::std::os::raw::c_ulong;
217pub type uint_fast64_t = ::std::os::raw::c_ulong;
218pub type intmax_t = __intmax_t;
219pub type uintmax_t = __uintmax_t;
220unsafe extern "C" {
221    #[doc = " Instruct the profiler to stop profiling. Profiling can be resumed using amdProfileResume.\n \\return True on success and False on failure"]
222    pub fn amdProfilePauseImpl() -> bool;
223}
224unsafe extern "C" {
225    #[doc = " Instruct the profiler to resume profiling. Profiling can be paused using amdProfilePause.\n \\return True on success and False on failure"]
226    pub fn amdProfileResumeImpl() -> bool;
227}
228unsafe extern "C" {
229    #[doc = " Returns the last error code"]
230    pub fn amdGetLastProfileError() -> ::std::os::raw::c_int;
231}
232unsafe extern "C" {
233    #[doc = " Instruct the profiler to stop profiling with blocking. Profiling can be resumed using amdProfileStrictResume.\n \\return True on success and False on failure"]
234    pub fn amdProfileStrictPauseImpl() -> bool;
235}
236unsafe extern "C" {
237    #[doc = " Instruct the profiler to resume profiling with blocking. Profiling can be paused using amdProfileStrictPause.\n \\return True on success and False on failure"]
238    pub fn amdProfileStrictResumeImpl() -> bool;
239}
240unsafe extern "C" {
241    pub fn amdThreadSetName(name: *const ::std::os::raw::c_char);
242}
243unsafe extern "C" {
244    pub fn amdThreadIgnore();
245}
246unsafe extern "C" {
247    pub fn amdStringHandleCreate(name: *const ::std::os::raw::c_char) -> *mut u64;
248}
249unsafe extern "C" {
250    pub fn amdDomainCreate(name: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_void;
251}
252unsafe extern "C" {
253    pub fn AMDTaskBegin(
254        functionName: *const ::std::os::raw::c_char,
255        fileName: *const ::std::os::raw::c_char,
256        lineNo: ::std::os::raw::c_int,
257        domain: *const ::std::os::raw::c_void,
258        taskId: ::std::os::raw::c_uint,
259        parentId: ::std::os::raw::c_uint,
260        stringHandle: *const u64,
261    );
262}
263unsafe extern "C" {
264    pub fn AMDTaskEnd(
265        functionName: *const ::std::os::raw::c_char,
266        fileName: *const ::std::os::raw::c_char,
267        lineNo: ::std::os::raw::c_int,
268        domain: *const ::std::os::raw::c_void,
269    );
270}
271