LLVM OpenMP 19.0.0git
Macros | Enumerations | Functions
Metadata

The metadata API is used to attach extra information to named entities. More...

Collaboration diagram for Metadata:

Macros

#define __itt_metadata_str_add   __itt_metadata_str_addA
 
#define __itt_metadata_str_add_ptr   __itt_metadata_str_addA_ptr
 
#define __itt_metadata_str_add_with_scope   __itt_metadata_str_add_with_scopeA
 
#define __itt_metadata_str_add_with_scope_ptr    __itt_metadata_str_add_with_scopeA_ptr
 

Enumerations

enum  __itt_metadata_type {
  __itt_metadata_unknown = 0 , __itt_metadata_u64 , __itt_metadata_s64 , __itt_metadata_u32 ,
  __itt_metadata_s32 , __itt_metadata_u16 , __itt_metadata_s16 , __itt_metadata_float ,
  __itt_metadata_double
}
 describes the type of metadata More...
 

Functions

void ITTAPI __itt_metadata_add (const __itt_domain *domain, __itt_id id, __itt_string_handle *key, __itt_metadata_type type, size_t count, void *data)
 Add metadata to an instance of a named entity.
 
void ITTAPI __itt_metadata_str_addA (const __itt_domain *domain, __itt_id id, __itt_string_handle *key, const char *data, size_t length)
 Add string metadata to an instance of a named entity.
 
void ITTAPI __itt_metadata_str_addW (const __itt_domain *domain, __itt_id id, __itt_string_handle *key, const wchar_t *data, size_t length)
 
void ITTAPI __itt_metadata_add_with_scope (const __itt_domain *domain, __itt_scope scope, __itt_string_handle *key, __itt_metadata_type type, size_t count, void *data)
 Add metadata to an instance of a named entity.
 
void ITTAPI __itt_metadata_str_add_with_scopeA (const __itt_domain *domain, __itt_scope scope, __itt_string_handle *key, const char *data, size_t length)
 Add string metadata to an instance of a named entity.
 
void ITTAPI __itt_metadata_str_add_with_scopeW (const __itt_domain *domain, __itt_scope scope, __itt_string_handle *key, const wchar_t *data, size_t length)
 

Detailed Description

The metadata API is used to attach extra information to named entities.

Metadata can be attached to an identified named entity by ID, or to the current entity (which is always a task).

Conceptually metadata has a type (what kind of metadata), a key (the name of the metadata), and a value (the actual data). The encoding of the value depends on the type of the metadata.

The type of metadata is specified by an enumerated type __itt_metdata_type.

Macro Definition Documentation

◆ __itt_metadata_str_add

#define __itt_metadata_str_add   __itt_metadata_str_addA

Definition at line 2615 of file ittnotify.h.

◆ __itt_metadata_str_add_ptr

#define __itt_metadata_str_add_ptr   __itt_metadata_str_addA_ptr

Definition at line 2616 of file ittnotify.h.

◆ __itt_metadata_str_add_with_scope

#define __itt_metadata_str_add_with_scope   __itt_metadata_str_add_with_scopeA

Definition at line 2744 of file ittnotify.h.

◆ __itt_metadata_str_add_with_scope_ptr

#define __itt_metadata_str_add_with_scope_ptr    __itt_metadata_str_add_with_scopeA_ptr

Definition at line 2745 of file ittnotify.h.

Enumeration Type Documentation

◆ __itt_metadata_type

describes the type of metadata

Enumerator
__itt_metadata_unknown 
__itt_metadata_u64 

Unsigned 64-bit integer.

__itt_metadata_s64 

Signed 64-bit integer.

__itt_metadata_u32 

Unsigned 32-bit integer.

__itt_metadata_s32 

Signed 32-bit integer.

__itt_metadata_u16 

Unsigned 16-bit integer.

__itt_metadata_s16 

Signed 16-bit integer.

__itt_metadata_float 

Signed 32-bit floating-point.

__itt_metadata_double 

SIgned 64-bit floating-point.

Definition at line 2546 of file ittnotify.h.

Function Documentation

◆ __itt_metadata_add()

void ITTAPI __itt_metadata_add ( const __itt_domain *  domain,
__itt_id  id,
__itt_string_handle *  key,
__itt_metadata_type  type,
size_t  count,
void data 
)

Add metadata to an instance of a named entity.

Parameters
[in]domainThe domain controlling the call
[in]idThe identifier of the instance to which the metadata is to be added, or __itt_null to add to the current task
[in]keyThe name of the metadata
[in]typeThe type of the metadata
[in]countThe number of elements of the given type. If count == 0, no metadata will be added.
[in]dataThe metadata itself

◆ __itt_metadata_add_with_scope()

void ITTAPI __itt_metadata_add_with_scope ( const __itt_domain *  domain,
__itt_scope  scope,
__itt_string_handle *  key,
__itt_metadata_type  type,
size_t  count,
void data 
)

Add metadata to an instance of a named entity.

Parameters
[in]domainThe domain controlling the call
[in]scopeThe scope of the instance to which the metadata is to be added
[in]idThe identifier of the instance to which the metadata is to be added, or __itt_null to add to the current task
[in]keyThe name of the metadata
[in]typeThe type of the metadata
[in]countThe number of elements of the given type. If count == 0, no metadata will be added.
[in]dataThe metadata itself

◆ __itt_metadata_str_add_with_scopeA()

void ITTAPI __itt_metadata_str_add_with_scopeA ( const __itt_domain *  domain,
__itt_scope  scope,
__itt_string_handle *  key,
const char data,
size_t  length 
)

Add string metadata to an instance of a named entity.

Parameters
[in]domainThe domain controlling the call
[in]scopeThe scope of the instance to which the metadata is to be added
[in]idThe identifier of the instance to which the metadata is to be added, or __itt_null to add to the current task
[in]keyThe name of the metadata
[in]dataThe metadata itself
[in]lengthThe number of characters in the string, or -1 if the length is unknown but the string is null-terminated

◆ __itt_metadata_str_add_with_scopeW()

void ITTAPI __itt_metadata_str_add_with_scopeW ( const __itt_domain *  domain,
__itt_scope  scope,
__itt_string_handle *  key,
const wchar_t *  data,
size_t  length 
)

◆ __itt_metadata_str_addA()

void ITTAPI __itt_metadata_str_addA ( const __itt_domain *  domain,
__itt_id  id,
__itt_string_handle *  key,
const char data,
size_t  length 
)

Add string metadata to an instance of a named entity.

Parameters
[in]domainThe domain controlling the call
[in]idThe identifier of the instance to which the metadata is to be added, or __itt_null to add to the current task
[in]keyThe name of the metadata
[in]dataThe metadata itself
[in]lengthThe number of characters in the string, or -1 if the length is unknown but the string is null-terminated

◆ __itt_metadata_str_addW()

void ITTAPI __itt_metadata_str_addW ( const __itt_domain *  domain,
__itt_id  id,
__itt_string_handle *  key,
const wchar_t *  data,
size_t  length 
)