6.0 (revision 14673)
Data Fields
SCOREP_SubstratePluginCallbacks Struct Reference

#include <SCOREP_SubstratePlugins.h>

Data Fields

SCOREP_CallingContextHandle(* SCOREP_CallingContextHandle_GetParent )(SCOREP_CallingContextHandle handle)
 
SCOREP_RegionHandle(* SCOREP_CallingContextHandle_GetRegion )(SCOREP_CallingContextHandle handle)
 
void(* SCOREP_ConfigManifestSectionEntry )(FILE *out, const char *fileName, const char *descriptionFormatString,...)
 Create formated entry in the manifest file consisting out of a name and a description, the latter in printf style and terminated with a period.
 
void(* SCOREP_ConfigManifestSectionHeader )(FILE *out, const char *section)
 Create formated header in the manifest file.
 
const char *(* SCOREP_GetExperimentDirName )(void)
 
int(* SCOREP_Ipc_Allgather )(const void *sendbuf, void *recvbuf, int count, SCOREP_Ipc_Datatype datatype)
 
int(* SCOREP_Ipc_Allreduce )(const void *sendbuf, void *recvbuf, int count, SCOREP_Ipc_Datatype datatype, SCOREP_Ipc_Operation operation)
 
int(* SCOREP_Ipc_Barrier )(void)
 
int(* SCOREP_Ipc_Bcast )(void *buf, int count, SCOREP_Ipc_Datatype datatype, int root)
 
int(* SCOREP_Ipc_Gather )(const void *sendbuf, void *recvbuf, int count, SCOREP_Ipc_Datatype datatype, int root)
 
int(* SCOREP_Ipc_Gatherv )(const void *sendbuf, int sendcount, void *recvbuf, const int *recvcnts, SCOREP_Ipc_Datatype datatype, int root)
 
int(* SCOREP_Ipc_GetRank )(void)
 
int(* SCOREP_Ipc_GetSize )(void)
 
int(* SCOREP_Ipc_Recv )(void *buf, int count, SCOREP_Ipc_Datatype datatype, int source)
 
int(* SCOREP_Ipc_Reduce )(const void *sendbuf, void *recvbuf, int count, SCOREP_Ipc_Datatype datatype, SCOREP_Ipc_Operation operation, int root)
 
int(* SCOREP_Ipc_Scatter )(const void *sendbuf, void *recvbuf, int count, SCOREP_Ipc_Datatype datatype, int root)
 
int(* SCOREP_Ipc_Scatterv )(const void *sendbuf, const int *sendcounts, void *recvbuf, int recvcount, SCOREP_Ipc_Datatype datatype, int root)
 
int(* SCOREP_Ipc_Send )(const void *buf, int count, SCOREP_Ipc_Datatype datatype, int dest)
 
void *(* SCOREP_Location_GetData )(const struct SCOREP_Location *locationData, size_t plugin_id)
 
uint64_t(* SCOREP_Location_GetGlobalId )(const struct SCOREP_Location *locationData)
 
uint32_t(* SCOREP_Location_GetId )(const struct SCOREP_Location *locationData)
 
const char *(* SCOREP_Location_GetName )(const struct SCOREP_Location *locationData)
 
SCOREP_LocationType(* SCOREP_Location_GetType )(const struct SCOREP_Location *locationData)
 
void(* SCOREP_Location_SetData )(const struct SCOREP_Location *locationData, size_t plugin_id, void *data)
 
void(* SCOREP_Metric_WriteAsynchronousMetrics )(struct SCOREP_Location *location, SCOREP_Substrates_WriteMetricsCb cb)
 Tell Score-P to write the current asynchronous metrics to cb. More...
 
void(* SCOREP_Metric_WriteStrictlySynchronousMetrics )(struct SCOREP_Location *location, uint64_t timestamp, SCOREP_Substrates_WriteMetricsCb cb)
 Tell Score-P to write the current strictly synchronous metrics to cb. More...
 
void(* SCOREP_Metric_WriteSynchronousMetrics )(struct SCOREP_Location *location, uint64_t timestamp, SCOREP_Substrates_WriteMetricsCb cb)
 Tell Score-P to write the current synchronous metrics to cb. More...
 
SCOREP_MetricMode(* SCOREP_MetricHandle_GetMode )(SCOREP_MetricHandle handle)
 
const char *(* SCOREP_MetricHandle_GetName )(SCOREP_MetricHandle handle)
 
SCOREP_MetricProfilingType(* SCOREP_MetricHandle_GetProfilingType )(SCOREP_MetricHandle handle)
 
SCOREP_MetricSourceType(* SCOREP_MetricHandle_GetSourceType )(SCOREP_MetricHandle handle)
 
SCOREP_MetricValueType(* SCOREP_MetricHandle_GetValueType )(SCOREP_MetricHandle handle)
 
SCOREP_ParadigmClass(* SCOREP_ParadigmHandle_GetClass )(SCOREP_ParadigmHandle handle)
 
const char *(* SCOREP_ParadigmHandle_GetName )(SCOREP_ParadigmHandle handle)
 
SCOREP_ParadigmType(* SCOREP_ParadigmHandle_GetType )(SCOREP_ParadigmHandle handle)
 
const char *(* SCOREP_ParameterHandle_GetName )(SCOREP_ParameterHandle handle)
 
SCOREP_ParameterType(* SCOREP_ParameterHandle_GetType )(SCOREP_ParameterHandle handle)
 
SCOREP_LineNo(* SCOREP_RegionHandle_GetBeginLine )(SCOREP_RegionHandle handle)
 
const char *(* SCOREP_RegionHandle_GetCanonicalName )(SCOREP_RegionHandle handle)
 
SCOREP_LineNo(* SCOREP_RegionHandle_GetEndLine )(SCOREP_RegionHandle handle)
 
const char *(* SCOREP_RegionHandle_GetFileName )(SCOREP_RegionHandle handle)
 
uint32_t(* SCOREP_RegionHandle_GetId )(SCOREP_RegionHandle handle)
 
const char *(* SCOREP_RegionHandle_GetName )(SCOREP_RegionHandle handle)
 
SCOREP_ParadigmType(* SCOREP_RegionHandle_GetParadigmType )(SCOREP_RegionHandle handle)
 
SCOREP_RegionType(* SCOREP_RegionHandle_GetType )(SCOREP_RegionHandle handle)
 
const SCOREP_MetricHandle *(* SCOREP_SamplingSetHandle_GetMetricHandles )(SCOREP_SamplingSetHandle handle)
 
SCOREP_MetricOccurrence(* SCOREP_SamplingSetHandle_GetMetricOccurrence )(SCOREP_SamplingSetHandle handle)
 
uint8_t(* SCOREP_SamplingSetHandle_GetNumberOfMetrics )(SCOREP_SamplingSetHandle handle)
 
SCOREP_SamplingSetClass(* SCOREP_SamplingSetHandle_GetSamplingSetClass )(SCOREP_SamplingSetHandle handle)
 
SCOREP_MetricScope(* SCOREP_SamplingSetHandle_GetScope )(SCOREP_SamplingSetHandle handle)
 
bool(* SCOREP_SamplingSetHandle_IsScoped )(SCOREP_SamplingSetHandle handle)
 
const char *(* SCOREP_SourceFileHandle_GetName )(SCOREP_SourceFileHandle handle)
 
const char *(* SCOREP_StringHandle_Get )(SCOREP_StringHandle handle)
 

Detailed Description

Callbacks that are passed to Substrate plugins via the set_callbacks(...) call. These callbacks can be used by the plugins to access Score-P internal data and functionality.

Developer notice: New functions should be appended at the end of this struct. When extending this list, increase SCOREP_SUBSTRATE_PLUGIN_VERSION

Examples:
print_regions.c.

Field Documentation

SCOREP_CallingContextHandle( * SCOREP_SubstratePluginCallbacks::SCOREP_CallingContextHandle_GetParent) (SCOREP_CallingContextHandle handle)

Returns the parent of a calling context node.

Parameters
handlehandle of the calling context node
Returns
parent handle
SCOREP_RegionHandle( * SCOREP_SubstratePluginCallbacks::SCOREP_CallingContextHandle_GetRegion) (SCOREP_CallingContextHandle handle)

Returns the region of a calling context node. (see SCOREP_PublicTypes.h)

Parameters
handlehandle of the calling context node
Returns
handle to the region that holds the node
const char*( * SCOREP_SubstratePluginCallbacks::SCOREP_GetExperimentDirName) (void)

Returns the Score-P experiment directory. This should be used to write debug/performance data and is available at and after init_mpp is called. Data should be placed under SCOREP_GetExperimentDirName()/(plugin-name)/. Per location data should be placed under SCOREP_GetExperimentDirName()/(plugin-name)/(prefix)(SCOREP_Location_GetGlobalId(location))(suffix). If you want to use the experiment directory, you have to set the SCOREP_SUBSTRATES_REQUIREMENT_EXPERIMENT_DIRECTORY flag in the requirements, see SCOREP_SubstratePluginInfo.get_requirement The name is temporary and the directory might be renamed in the finalization stage.

int( * SCOREP_SubstratePluginCallbacks::SCOREP_Ipc_Allgather) (const void *sendbuf, void *recvbuf, int count, SCOREP_Ipc_Datatype datatype)

Gathers data from every process with an equal amount of sent and received data from each process and distributes it to all processes. Can be called after Plugin receives init_mpp() call.

Parameters
sendbufpointer to the buffer of the data that should be sent
recvbufpointer to buffer there the received data should be stored data is stored in rank order size of the buffer should be big enough for the data of all processes
countnumber of elements in buffer
datatypetype of data
Returns
return zero on success and something else if an error occurred
int( * SCOREP_SubstratePluginCallbacks::SCOREP_Ipc_Allreduce) (const void *sendbuf, void *recvbuf, int count, SCOREP_Ipc_Datatype datatype, SCOREP_Ipc_Operation operation)

Perform a reduce operation (such as sum, max, logical AND, etc.) with the combined data from every process and distributes the result to all processes. Can be called after Plugin receives init_mpp() call.

Parameters
sendbufpointer to the buffer of the data that should be sent
recvbufpointer to buffer there the evaluated data should be stored
countnumber of elements in buffer
datatypetype of data
operationoperation that should be performed
Returns
return zero on success and something else if an error occurred
int( * SCOREP_SubstratePluginCallbacks::SCOREP_Ipc_Barrier) (void)

Wait until every process that is part of the MPP paradigm entered the barrier, otherwise return. Can be called after Plugin receives init_mpp() call.

Returns
return zero on success and something else if an error occurred
int( * SCOREP_SubstratePluginCallbacks::SCOREP_Ipc_Bcast) (void *buf, int count, SCOREP_Ipc_Datatype datatype, int root)

Send data to every process within the MPP paradigm (if MPP paradigm is used), including self. Can be called after Plugin receives init_mpp() call.

Parameters
bufpointer to the buffer of the data that should be sent
countnumber of elements in buffer
datatypetype of data
rootrank of the source process
Returns
return zero on success and something else if an error occurred
int( * SCOREP_SubstratePluginCallbacks::SCOREP_Ipc_Gather) (const void *sendbuf, void *recvbuf, int count, SCOREP_Ipc_Datatype datatype, int root)

Gathers data from every process within the MPP paradigm (if MPP paradigm is used), root included, with an equal amount of sent for each process.

Can be called after Plugin receives init_mpp() call.

Parameters
sendbufpointer to the buffer of the data that should be sent
recvbufpointer to buffer there the received data should be stored data is stored in rank order size of the buffer should be big enough for the data of all processes (SCOREP_Ipc_GetSize()*sizeof(type(datatype)))
countnumber of elements in buffer
datatypetype of data
rootrank of the process, that should receive all the data
Returns
return zero on success and something else if an error occurred
int( * SCOREP_SubstratePluginCallbacks::SCOREP_Ipc_Gatherv) (const void *sendbuf, int sendcount, void *recvbuf, const int *recvcnts, SCOREP_Ipc_Datatype datatype, int root)

Gathers data from every process, root included, with varying amount of sent data from each process. Can be called after Plugin receives init_mpp() call.

Parameters
sendbufpointer to the buffer of the data that should be sent
sendcountnumber of elements in sent buffer
recvbufpointer to buffer there the received data should be stored data is stored in rank order size of the buffer should be big enough for the data of all processes
recvcntsarray with the number of elements that should be received from each process length should be the number of process
datatypetype of data
rootrank of the process, that should receive all the data
Returns
return zero on success and something else if an error occurred
int( * SCOREP_SubstratePluginCallbacks::SCOREP_Ipc_GetRank) (void)

Get the rank of the process. Can be called after Plugin receives init_mpp() call.

Returns
If MPP paradigm is used get an identifier within the MPP paradigm (e.g., an MPI rank). If no MPP paradigm is used return 0
int( * SCOREP_SubstratePluginCallbacks::SCOREP_Ipc_GetSize) (void)

Get the number of processes in this parallel program. Can be called after Plugin receives init_mpp() call.

Returns
If MPP paradigm is used we get the total number of processes that participate in the MPP paradigm, if no MPP paradigm is used return 1
int( * SCOREP_SubstratePluginCallbacks::SCOREP_Ipc_Recv) (void *buf, int count, SCOREP_Ipc_Datatype datatype, int source)

Receive data from a specific process (blocking) Can be called after Plugin receives init_mpp() call. Should not be called if no MPP paradigm is used.

Parameters
bufpointer to buffer there the received data should be stored
countnumber of elements in buffer
datatypetype of data
sourcerank of the source process (must be smaller than SCOREP_Ipc_GetSize() and different from SCOREP_Ipc_GetRank() )
Returns
return zero on success and something else if an error occurred
int( * SCOREP_SubstratePluginCallbacks::SCOREP_Ipc_Reduce) (const void *sendbuf, void *recvbuf, int count, SCOREP_Ipc_Datatype datatype, SCOREP_Ipc_Operation operation, int root)

Perform a reduce operation (such as sum, max, logical AND, etc.) with the combined data from every process. Can be called after Plugin receives init_mpp() call.

Parameters
sendbufpointer to the buffer of the data that should be sent
recvbufpointer to buffer there the evaluated data should be stored
countnumber of elements in buffer
datatypetype of data
operationoperation that should be performed
rootrank of the process, that should receive the evaluated data
Returns
return zero on success and something else if an error occurred
int( * SCOREP_SubstratePluginCallbacks::SCOREP_Ipc_Scatter) (const void *sendbuf, void *recvbuf, int count, SCOREP_Ipc_Datatype datatype, int root)

Send data to each process, root included with an equal amount of received data for each process. Can be called after Plugin receives init_mpp() call.

Parameters
sendbufpointer to the buffer of the data that should be sent
recvbufpointer to buffer there the received data should be stored
countnumber of elements in buffer
datatypetype of data
rootrank of the source process
Returns
return zero on success and something else if an error occurred
int( * SCOREP_SubstratePluginCallbacks::SCOREP_Ipc_Scatterv) (const void *sendbuf, const int *sendcounts, void *recvbuf, int recvcount, SCOREP_Ipc_Datatype datatype, int root)

Send data in parts to each process, root included with a varying amount of received data for each process. Can be called after Plugin receives init_mpp() call.

Parameters
sendbufpointer to the buffer of the data that should be sent
sendcountsarray with the number of elements that should be sent to each process length should be the number of process
recvbufpointer to buffer there the received data should be stored
recvcountnumber of elements in received buffer
datatypetype of data
rootrank of the source process
Returns
return zero on success and something else if an error occurred
int( * SCOREP_SubstratePluginCallbacks::SCOREP_Ipc_Send) (const void *buf, int count, SCOREP_Ipc_Datatype datatype, int dest)

Send data do a specific process (blocking) within the MPP paradigm. Can be called after Plugin receives init_mpp() call. Should not be called if no MPP paradigm is used.

Parameters
bufpointerto the buffer of the data that should be sent
countnumber of elements in buffer
datatypetype of data
destrank of the receiver process (must be smaller than SCOREP_Ipc_GetSize() and different from SCOREP_Ipc_GetRank() )
Returns
return zero on success and something else if an error occurred
void*( * SCOREP_SubstratePluginCallbacks::SCOREP_Location_GetData) (const struct SCOREP_Location *locationData, size_t plugin_id)

Get location private data for a specific location (see SCOREP_Location_SetData) It is save to use it after the location is created (SCOREP_SubstratePluginInfo.create_location) and before the location is deleted (SCOREP_SubstratePluginInfo.delete_location)

Parameters
locationhandle of the location
plugin_idthe id assigned by assign_id
Returns
the data for this location and this plugin
Examples:
print_regions.c.
uint64_t( * SCOREP_SubstratePluginCallbacks::SCOREP_Location_GetGlobalId) (const struct SCOREP_Location *locationData)

Get a unique global id of a location This is only to be used after init_mpp() is called.

Parameters
locationlocation given from an event
Returns
global location id
uint32_t( * SCOREP_SubstratePluginCallbacks::SCOREP_Location_GetId) (const struct SCOREP_Location *locationData)

Returns the LOCAL id of the location. (see also SCOREP_Location_GetGlobalId)

Parameters
locationlocation given from an event, or a location function from SCOREP_SubstratePluginInfo
Returns
ID that is unique within the process
const char*( * SCOREP_SubstratePluginCallbacks::SCOREP_Location_GetName) (const struct SCOREP_Location *locationData)

Get the name of a location

Parameters
locationhandle
Returns
location name
Examples:
print_regions.c.
SCOREP_LocationType( * SCOREP_SubstratePluginCallbacks::SCOREP_Location_GetType) (const struct SCOREP_Location *locationData)

Returns the type of the location.

Returns
void( * SCOREP_SubstratePluginCallbacks::SCOREP_Location_SetData) (const struct SCOREP_Location *locationData, size_t plugin_id, void *data)

Set location private data for a specific location (see SCOREP_Location_GetData) It is save to use it after the location is created (SCOREP_SubstratePluginInfo.create_location) and before the location is deleted (SCOREP_SubstratePluginInfo.delete_location)

Parameters
locationhandle of the location
plugin_idthe id assigned by assign_id
thedata for this location and this plugin
Examples:
print_regions.c.
void( * SCOREP_SubstratePluginCallbacks::SCOREP_Metric_WriteAsynchronousMetrics) (struct SCOREP_Location *location, SCOREP_Substrates_WriteMetricsCb cb)

Tell Score-P to write the current asynchronous metrics to cb.

This function shall only be called while processing enters, exits, and samples. The callback might be called multiple times if multiple asynchronous sampling sets are present.

Parameters
locationthe location of the runtime event, this is reported back via cb
cba callback that processes the asynchronous metrics.
void( * SCOREP_SubstratePluginCallbacks::SCOREP_Metric_WriteStrictlySynchronousMetrics) (struct SCOREP_Location *location, uint64_t timestamp, SCOREP_Substrates_WriteMetricsCb cb)

Tell Score-P to write the current strictly synchronous metrics to cb.

This function shall only be called while processing enters, exits, and samples.

Parameters
locationthe location of the runtime event, this is reported back via cb
timestampthe timestamp of the runtime event, this is reported back via cb
cba callback that processes the strictly synchronous metrics.
void( * SCOREP_SubstratePluginCallbacks::SCOREP_Metric_WriteSynchronousMetrics) (struct SCOREP_Location *location, uint64_t timestamp, SCOREP_Substrates_WriteMetricsCb cb)

Tell Score-P to write the current synchronous metrics to cb.

This function shall only be called while processing enters, exits, and samples. The callback might be called multiple times if multiple synchronous sampling sets are present.

Parameters
locationthe location of the runtime event, this is reported back via cb
timestampthe timestamp of the runtime event, this is reported back via cb
cba callback that processes the synchronous metrics.
SCOREP_MetricMode( * SCOREP_SubstratePluginCallbacks::SCOREP_MetricHandle_GetMode) (SCOREP_MetricHandle handle)

Returns the mode of a metric.

Parameters
handlehandle of the local metric definition.
Returns
mode of a metric.
See also
SCOREP_MetricTypes.h
const char*( * SCOREP_SubstratePluginCallbacks::SCOREP_MetricHandle_GetName) (SCOREP_MetricHandle handle)

Returns the name of a metric.

Parameters
handlehandle of the local metric definition.
Returns
name of a metric.
SCOREP_MetricProfilingType( * SCOREP_SubstratePluginCallbacks::SCOREP_MetricHandle_GetProfilingType) (SCOREP_MetricHandle handle)

Returns the profiling type of a metric.

Parameters
handlehandle of the local metric definition.
Returns
profiling type of a metric.
See also
SCOREP_MetricTypes.h
SCOREP_MetricSourceType( * SCOREP_SubstratePluginCallbacks::SCOREP_MetricHandle_GetSourceType) (SCOREP_MetricHandle handle)

Returns the source type of a metric.

Parameters
handlehandle of the local metric definition.
Returns
source type of a metric.
See also
SCOREP_MetricTypes.h
SCOREP_MetricValueType( * SCOREP_SubstratePluginCallbacks::SCOREP_MetricHandle_GetValueType) (SCOREP_MetricHandle handle)

Returns the value type of a metric.

Parameters
handlehandle of the local metric definition.
Returns
value type of a metric.
See also
SCOREP_MetricTypes.h
SCOREP_ParadigmClass( * SCOREP_SubstratePluginCallbacks::SCOREP_ParadigmHandle_GetClass) (SCOREP_ParadigmHandle handle)

Returns paradigm class

Parameters
handlehandle of the paradigm
Returns
class (e.g. SCOREP_PARADIGM_CLASS_MPP for MPI paradigm)
See also
SCOREP_PublicTypes.h
const char*( * SCOREP_SubstratePluginCallbacks::SCOREP_ParadigmHandle_GetName) (SCOREP_ParadigmHandle handle)

Returns paradigm name

Parameters
handlehandle of the paradigm
Returns
name (e.g., "MPI")
SCOREP_ParadigmType( * SCOREP_SubstratePluginCallbacks::SCOREP_ParadigmHandle_GetType) (SCOREP_ParadigmHandle handle)

Returns paradigm type

Parameters
handlehandle of the paradigm
Returns
type (e.g. SCOREP_PARADIGM_MPI for MPI)
See also
SCOREP_PublicTypes.h
const char*( * SCOREP_SubstratePluginCallbacks::SCOREP_ParameterHandle_GetName) (SCOREP_ParameterHandle handle)

Returns the name of a parameter

Parameters
handlehandle of the parameter
Returns
name
SCOREP_ParameterType( * SCOREP_SubstratePluginCallbacks::SCOREP_ParameterHandle_GetType) (SCOREP_ParameterHandle handle)

Returns parameter type

Parameters
handlehandle of the parameter
Returns
type of parameter
See also
SCOREP_PublicTypes.h
SCOREP_LineNo( * SCOREP_SubstratePluginCallbacks::SCOREP_RegionHandle_GetBeginLine) (SCOREP_RegionHandle handle)

Returns begin line of a function within the source file

Parameters
handlehandle of the region
Returns
begin line
const char*( * SCOREP_SubstratePluginCallbacks::SCOREP_RegionHandle_GetCanonicalName) (SCOREP_RegionHandle handle)

Returns regions mangled canonical name

Parameters
handleof the region
Returns
mangled region name
SCOREP_LineNo( * SCOREP_SubstratePluginCallbacks::SCOREP_RegionHandle_GetEndLine) (SCOREP_RegionHandle handle)

Returns end line of a function within the source file

Parameters
handlehandle of the region
Returns
end line
const char*( * SCOREP_SubstratePluginCallbacks::SCOREP_RegionHandle_GetFileName) (SCOREP_RegionHandle handle)

Returns file name where region is defined

Parameters
handlehandle of the region
Returns
file name
uint32_t( * SCOREP_SubstratePluginCallbacks::SCOREP_RegionHandle_GetId) (SCOREP_RegionHandle handle)

Returns parameter id

Parameters
handlehandle of the parameter
Returns
id of parameter
const char*( * SCOREP_SubstratePluginCallbacks::SCOREP_RegionHandle_GetName) (SCOREP_RegionHandle handle)

Returns region demangled name

Parameters
handlehandle of the region
Returns
demangled region name
Examples:
print_regions.c.
SCOREP_ParadigmType( * SCOREP_SubstratePluginCallbacks::SCOREP_RegionHandle_GetParadigmType) (SCOREP_RegionHandle handle)

Returns region paradigm

Parameters
handlehandle of the region
Returns
paradigm (e.g. SCOREP_PARADIGM_MPI for MPI regions)
See also
SCOREP_PublicTypes.h
SCOREP_RegionType( * SCOREP_SubstratePluginCallbacks::SCOREP_RegionHandle_GetType) (SCOREP_RegionHandle handle)

Returns region type

Parameters
handlehandle of the region
Returns
type (e.g. SCOREP_REGION_USER for user regions)
See also
SCOREP_PublicTypes.h
const SCOREP_MetricHandle*( * SCOREP_SubstratePluginCallbacks::SCOREP_SamplingSetHandle_GetMetricHandles) (SCOREP_SamplingSetHandle handle)

Get the metric handles in a sampling set.

Parameters
handlethe handle of the the existing sampling set
Returns
a list of associated metrics. get the length of the list with SCOREP_SamplingSet_GetNunmberOfMetrics
SCOREP_MetricOccurrence( * SCOREP_SubstratePluginCallbacks::SCOREP_SamplingSetHandle_GetMetricOccurrence) (SCOREP_SamplingSetHandle handle)

Get the metric occurrence of a sampling set.

Parameters
handlethe handle of the the existing sampling set
Returns
the occurrence of handle.
uint8_t( * SCOREP_SubstratePluginCallbacks::SCOREP_SamplingSetHandle_GetNumberOfMetrics) (SCOREP_SamplingSetHandle handle)

Get the number of metrics in a sampling set.

Parameters
handlehandle of the the existing sampling set
Returns
the number of associated metrics
SCOREP_SamplingSetClass( * SCOREP_SubstratePluginCallbacks::SCOREP_SamplingSetHandle_GetSamplingSetClass) (SCOREP_SamplingSetHandle handle)

Returns the class of the sampling set

Parameters
handlethe handle of the the existing sampling set
Returns
sampling set class
SCOREP_MetricScope( * SCOREP_SubstratePluginCallbacks::SCOREP_SamplingSetHandle_GetScope) (SCOREP_SamplingSetHandle handle)

Returns the scope of the sampling set or SCOREP_INVALID_METRIC_SCOPE if sampling set is not scoped

Parameters
handlethe handle of the the existing sampling set
Returns
scope or (>=SCOREP_INVALID_METRIC_SCOPE) if the sampling set is not scoped or the runtime version of Score-P is newer than the Score-P version when compiling plugin
bool( * SCOREP_SubstratePluginCallbacks::SCOREP_SamplingSetHandle_IsScoped) (SCOREP_SamplingSetHandle handle)

Check whether a sampling set is scoped (belongs to a number of locations).

Parameters
handlethe handle of the the existing sampling set
Returns
whether the sampling set is scoped or not
const char*( * SCOREP_SubstratePluginCallbacks::SCOREP_SourceFileHandle_GetName) (SCOREP_SourceFileHandle handle)

Returns name of a source file

Parameters
handlehandle of the source file
Returns
name
const char*( * SCOREP_SubstratePluginCallbacks::SCOREP_StringHandle_Get) (SCOREP_StringHandle handle)

Resolve string handle

Parameters
handlehandle of string
Returns
string

The documentation for this struct was generated from the following file: