111 #ifndef OTF_MASTERCONTROL_H
112 #define OTF_MASTERCONTROL_H
257 uint32_t argument, uint32_t value );
279 uint32_t l, uint32_t* values );
uint32_t s
Current size of array 'values'.
Definition: OTF_MasterControl.h:143
void OTF_MasterControl_close(OTF_MasterControl *mc)
Deletes a OTF_MasterControl object.
Definition: OTF_MasterControl.c:121
OTF_MapEntry * OTF_MasterControl_getEntryByIndex(OTF_MasterControl *mc, uint32_t index)
Returns the entry for the given index.
Definition: OTF_MasterControl.c:846
entry for 1:1 mapping
Definition: OTF_MasterControl.h:154
OTF_MapEntry * map
Mapping from stream ids (argument) to process ids (values).
Definition: OTF_MasterControl.h:179
int OTF_MasterControl_write(OTF_MasterControl *mc, const char *namestub)
Writes a master control file with the current contents of the given object.
Definition: OTF_MasterControl.c:645
void OTF_MasterControl_print(OTF_MasterControl *mc)
Prints the mapping to stderr.
Definition: OTF_MasterControl.c:772
uint32_t OTF_MasterControl_getrCount(OTF_MasterControl *mc)
Returns the number of arguments in current reverse list.
Definition: OTF_MasterControl.c:879
int OTF_MasterControl_appendList(OTF_MasterControl *mc, uint32_t argument, uint32_t l, uint32_t *values)
Append the mapping argument -> ( list of l values ) to the master control structure.
Definition: OTF_MasterControl.c:573
entry for 1:n mapping
Definition: OTF_MasterControl.h:134
int OTF_MasterControl_append(OTF_MasterControl *mc, uint32_t argument, uint32_t value)
Append the mapping argument -> value to the master control structure,.
Definition: OTF_MasterControl.c:528
Data structure that collects the information about which stream contains which parts of a multi-file ...
Definition: OTF_MasterControl.h:166
int OTF_MasterControl_read(OTF_MasterControl *mc, const char *namestub)
INTERFACE CHANGED! Read a master control file according to namestub, reset the existing OTF_MasterCon...
Definition: OTF_MasterControl.c:131
OTF_Pair * rmap
Reverse mapping to 'map'.
Definition: OTF_MasterControl.h:192
uint32_t OTF_MasterControl_mapReverse(OTF_MasterControl *mc, uint32_t value)
Returns the argument to the given value.
Definition: OTF_MasterControl.c:590
OTF_MasterControl * OTF_MasterControl_new(OTF_FileManager *manager)
Creates an empty OTF_MasterControl object.
Definition: OTF_MasterControl.c:234
Provides a low-level API for accessing files.
void OTF_MasterControl_finish(OTF_MasterControl *mc)
Destructor, delete OTF_MasterControl object.
Definition: OTF_MasterControl.c:109
uint32_t n
Current number of entries in 'values'.
Definition: OTF_MasterControl.h:140
int OTF_MasterControl_check(OTF_MasterControl *mc)
Checks if the current mapping is consistent in itself.
Definition: OTF_MasterControl.c:713
uint32_t * values
List of size 's' containing 'n' sorted entries of unique value ids (process ids). ...
Definition: OTF_MasterControl.h:147
OTF_Pair * OTF_MasterControl_getREntryByIndex(OTF_MasterControl *mc, uint32_t index)
Returns a pair of value and argument for the given index.
Definition: OTF_MasterControl.c:860
uint32_t s
Current size of array 'map'.
Definition: OTF_MasterControl.h:173
OTF_MapEntry * OTF_MasterControl_getEntry(OTF_MasterControl *mc, uint32_t argument)
Returns the entry for the given argument.
Definition: OTF_MasterControl.c:804
Provides write access to trace buffers.
uint32_t OTF_MasterControl_getNewStreamId(OTF_MasterControl *mc)
Returns a previously unused argument.
Definition: OTF_MasterControl.c:942
OTF_FileManager * manager
file handle manager
Definition: OTF_MasterControl.h:195
uint32_t OTF_MasterControl_getValueCount(OTF_MasterControl *mc, uint32_t argument)
Returns the number of values for the given argument.
Definition: OTF_MasterControl.c:886
uint32_t n
Current number of entries in 'map'.
Definition: OTF_MasterControl.h:170
uint32_t OTF_MasterControl_getCount(OTF_MasterControl *mc)
Returns the number of arguments in the current list.
Definition: OTF_MasterControl.c:873
uint32_t argument
Unique argument ids.
Definition: OTF_MasterControl.h:137
file handles management structure
Definition: OTF_FileManager.c:32
uint32_t rs
Current size of array 'rmap'.
Definition: OTF_MasterControl.h:186
Handles file naming issues.
uint32_t * OTF_MasterControl_getValues(OTF_MasterControl *mc, uint32_t argument)
Returns a pointer to the value array for 'argument'.
Definition: OTF_MasterControl.c:901
Deals with all data type related issues.
uint32_t rn
Current number of entries in 'rmap'.
Definition: OTF_MasterControl.h:183
Provides read access to trace buffers.