OpenMPI
0.1.1
|
Provides access to process-stream-mapping, which are located in .otf files. More...
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "OTF_inttypes.h"
#include "OTF_File.h"
#include "OTF_Filenames.h"
#include "OTF_WBuffer.h"
#include "OTF_RBuffer.h"
Go to the source code of this file.
Data Structures | |
struct | struct_OTF_MapEntry |
entry for 1:n mapping More... | |
struct | struct_OTF_Pair |
entry for 1:1 mapping More... | |
struct | struct_OTF_MasterControl |
Data structure that collects the information about which stream contains which parts of a multi-file trace. More... | |
Typedefs | |
typedef struct struct_OTF_MapEntry | OTF_MapEntry |
entry for 1:n mapping | |
typedef struct struct_OTF_Pair | OTF_Pair |
entry for 1:1 mapping | |
typedef struct struct_OTF_MasterControl | OTF_MasterControl |
master control object. More... | |
Functions | |
OTF_MasterControl * | OTF_MasterControl_new (OTF_FileManager *manager) |
Creates an empty OTF_MasterControl object. More... | |
int | OTF_MasterControl_read (OTF_MasterControl *mc, const char *namestub) |
INTERFACE CHANGED! Read a master control file according to namestub, reset the existing OTF_MasterControl structure and fill it according to the file. More... | |
void | OTF_MasterControl_finish (OTF_MasterControl *mc) |
Destructor, delete OTF_MasterControl object. More... | |
void | OTF_MasterControl_close (OTF_MasterControl *mc) |
Deletes a OTF_MasterControl object. More... | |
int | OTF_MasterControl_append (OTF_MasterControl *mc, uint32_t argument, uint32_t value) |
Append the mapping argument -> value to the master control structure,. More... | |
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. More... | |
uint32_t | OTF_MasterControl_mapReverse (OTF_MasterControl *mc, uint32_t value) |
Returns the argument to the given value. More... | |
int | OTF_MasterControl_write (OTF_MasterControl *mc, const char *namestub) |
Writes a master control file with the current contents of the given object. More... | |
int | OTF_MasterControl_check (OTF_MasterControl *mc) |
Checks if the current mapping is consistent in itself. More... | |
void | OTF_MasterControl_print (OTF_MasterControl *mc) |
Prints the mapping to stderr. More... | |
OTF_MapEntry * | OTF_MasterControl_getEntry (OTF_MasterControl *mc, uint32_t argument) |
Returns the entry for the given argument. More... | |
OTF_MapEntry * | OTF_MasterControl_getEntryByIndex (OTF_MasterControl *mc, uint32_t index) |
Returns the entry for the given index. More... | |
OTF_Pair * | OTF_MasterControl_getREntryByIndex (OTF_MasterControl *mc, uint32_t index) |
Returns a pair of value and argument for the given index. More... | |
uint32_t | OTF_MasterControl_getCount (OTF_MasterControl *mc) |
Returns the number of arguments in the current list. More... | |
uint32_t | OTF_MasterControl_getrCount (OTF_MasterControl *mc) |
Returns the number of arguments in current reverse list. More... | |
uint32_t | OTF_MasterControl_getValueCount (OTF_MasterControl *mc, uint32_t argument) |
Returns the number of values for the given argument. More... | |
uint32_t * | OTF_MasterControl_getValues (OTF_MasterControl *mc, uint32_t argument) |
Returns a pointer to the value array for 'argument'. More... | |
uint32_t | OTF_MasterControl_getNewStreamId (OTF_MasterControl *mc) |
Returns a previously unused argument. More... | |
Provides access to process-stream-mapping, which are located in .otf files.