@@ -1887,3 +1887,110 @@ pub type __itt_histogram_submit_ptr__3_0_t = ::std::option::Option<
18871887extern "C" {
18881888 pub static mut __itt_histogram_submit_ptr__3_0: __itt_histogram_submit_ptr__3_0_t ;
18891889}
1890+ pub type __itt_counter_create_v3_ptr__3_0_t = :: std:: option:: Option <
1891+ unsafe extern "C" fn (
1892+ domain : * const __itt_domain ,
1893+ name : * const :: std:: os:: raw:: c_char ,
1894+ type_ : __itt_metadata_type ,
1895+ ) -> __itt_counter ,
1896+ > ;
1897+ extern "C" {
1898+ pub static mut __itt_counter_create_v3_ptr__3_0: __itt_counter_create_v3_ptr__3_0_t ;
1899+ }
1900+ pub type __itt_counter_set_value_v3_ptr__3_0_t = :: std:: option:: Option <
1901+ unsafe extern "C" fn ( counter : __itt_counter , value_ptr : * mut :: std:: os:: raw:: c_void ) ,
1902+ > ;
1903+ extern "C" {
1904+ pub static mut __itt_counter_set_value_v3_ptr__3_0: __itt_counter_set_value_v3_ptr__3_0_t ;
1905+ }
1906+ #[ doc = "< Undefined type" ]
1907+ pub const __itt_context_type___itt_context_unknown: __itt_context_type = 0 ;
1908+ #[ doc = "< ASCII string char* type" ]
1909+ pub const __itt_context_type___itt_context_nameA: __itt_context_type = 1 ;
1910+ #[ doc = "< Unicode string wchar_t* type" ]
1911+ pub const __itt_context_type___itt_context_nameW: __itt_context_type = 2 ;
1912+ #[ doc = "< ASCII string char* type" ]
1913+ pub const __itt_context_type___itt_context_deviceA: __itt_context_type = 3 ;
1914+ #[ doc = "< Unicode string wchar_t* type" ]
1915+ pub const __itt_context_type___itt_context_deviceW: __itt_context_type = 4 ;
1916+ #[ doc = "< ASCII string char* type" ]
1917+ pub const __itt_context_type___itt_context_unitsA: __itt_context_type = 5 ;
1918+ #[ doc = "< Unicode string wchar_t* type" ]
1919+ pub const __itt_context_type___itt_context_unitsW: __itt_context_type = 6 ;
1920+ #[ doc = "< ASCII string char* type" ]
1921+ pub const __itt_context_type___itt_context_pci_addrA: __itt_context_type = 7 ;
1922+ #[ doc = "< Unicode string wchar_t* type" ]
1923+ pub const __itt_context_type___itt_context_pci_addrW: __itt_context_type = 8 ;
1924+ #[ doc = "< Unsigned 64-bit integer type" ]
1925+ pub const __itt_context_type___itt_context_tid: __itt_context_type = 9 ;
1926+ #[ doc = "< Unsigned 64-bit integer type" ]
1927+ pub const __itt_context_type___itt_context_max_val: __itt_context_type = 10 ;
1928+ #[ doc = "< Unsigned 64-bit integer type" ]
1929+ pub const __itt_context_type___itt_context_bandwidth_flag: __itt_context_type = 11 ;
1930+ #[ doc = "< Unsigned 64-bit integer type" ]
1931+ pub const __itt_context_type___itt_context_latency_flag: __itt_context_type = 12 ;
1932+ #[ doc = "< Unsigned 64-bit integer type" ]
1933+ pub const __itt_context_type___itt_context_occupancy_flag: __itt_context_type = 13 ;
1934+ #[ doc = "< Unsigned 64-bit integer type" ]
1935+ pub const __itt_context_type___itt_context_on_thread_flag: __itt_context_type = 14 ;
1936+ #[ doc = "< Unsigned 64-bit integer type" ]
1937+ pub const __itt_context_type___itt_context_is_abs_val_flag: __itt_context_type = 15 ;
1938+ #[ doc = "< Unsigned 64-bit integer type" ]
1939+ pub const __itt_context_type___itt_context_cpu_instructions_flag: __itt_context_type = 16 ;
1940+ #[ doc = "< Unsigned 64-bit integer type" ]
1941+ pub const __itt_context_type___itt_context_cpu_cycles_flag: __itt_context_type = 17 ;
1942+ #[ doc = " @brief describes the type of context metadata" ]
1943+ pub type __itt_context_type = :: std:: os:: raw:: c_uint ;
1944+ #[ repr( C ) ]
1945+ #[ derive( Debug , Copy , Clone ) ]
1946+ pub struct ___itt_context_metadata {
1947+ #[ doc = "< Type of the context metadata value" ]
1948+ pub type_ : __itt_context_type ,
1949+ #[ doc = "< Pointer to context metadata value itself" ]
1950+ pub value : * mut :: std:: os:: raw:: c_void ,
1951+ }
1952+ #[ test]
1953+ fn bindgen_test_layout____itt_context_metadata ( ) {
1954+ assert_eq ! (
1955+ :: std:: mem:: size_of:: <___itt_context_metadata>( ) ,
1956+ 16usize ,
1957+ concat!( "Size of: " , stringify!( ___itt_context_metadata) )
1958+ ) ;
1959+ assert_eq ! (
1960+ :: std:: mem:: align_of:: <___itt_context_metadata>( ) ,
1961+ 8usize ,
1962+ concat!( "Alignment of " , stringify!( ___itt_context_metadata) )
1963+ ) ;
1964+ assert_eq ! (
1965+ unsafe { & ( * ( :: std:: ptr:: null:: <___itt_context_metadata>( ) ) ) . type_ as * const _ as usize } ,
1966+ 0usize ,
1967+ concat!(
1968+ "Offset of field: " ,
1969+ stringify!( ___itt_context_metadata) ,
1970+ "::" ,
1971+ stringify!( type_)
1972+ )
1973+ ) ;
1974+ assert_eq ! (
1975+ unsafe { & ( * ( :: std:: ptr:: null:: <___itt_context_metadata>( ) ) ) . value as * const _ as usize } ,
1976+ 8usize ,
1977+ concat!(
1978+ "Offset of field: " ,
1979+ stringify!( ___itt_context_metadata) ,
1980+ "::" ,
1981+ stringify!( value)
1982+ )
1983+ ) ;
1984+ }
1985+ pub type __itt_context_metadata = ___itt_context_metadata ;
1986+ pub type __itt_bind_context_metadata_to_counter_ptr__3_0_t = :: std:: option:: Option <
1987+ unsafe extern "C" fn (
1988+ counter : __itt_counter ,
1989+ length : size_t ,
1990+ metadata : * mut __itt_context_metadata ,
1991+ ) ,
1992+ > ;
1993+ extern "C" {
1994+ pub static mut __itt_bind_context_metadata_to_counter_ptr__3_0:
1995+ __itt_bind_context_metadata_to_counter_ptr__3_0_t ;
1996+ }
0 commit comments