conv-core/global-elfgot.C File Reference

Go to the source code of this file.

Data Structures

class  CtgGlobalList
 Keeps a list of global variables. More...
struct  CtgGlobalList::CtgRec
struct  CtgGlobalStruct

Typedefs

typedef Elf64_Addr ELFXX_TYPE_Addr
typedef Elf64_Dyn ELFXX_TYPE_Dyn
typedef Elf64_Rela ELFXX_TYPE_Rel
typedef Elf64_Sym ELFXX_TYPE_Sym
typedef Elf32_Addr ELFXX_TYPE_Addr
typedef Elf32_Dyn ELFXX_TYPE_Dyn
typedef Elf32_Rel ELFXX_TYPE_Rel
typedef Elf32_Sym ELFXX_TYPE_Sym

Functions

 CpvDeclare (int, CmiPICMethod)
static void readBlacklist ()
 CpvStaticDeclare (CtgGlobals, _curCtg)
void CtgInit (void)
 Initialize the globals support (called on each processor).
CtgGlobals CtgCreate (void)
 Copy the current globals into this new set.
CtgGlobals CtgPup (pup_er pv, CtgGlobals g)
 PUP this (not currently installed) globals set.
void CtgInstall (CtgGlobals g)
 Install this set of globals.
void CtgFree (CtgGlobals g)
 Delete this (not currently installed) set of globals.
CtgGlobals CtgCurrentGlobals (void)
 Return the current global list.
void CtgInstall_var (CtgGlobals g, void *ptr)
void CtgUninstall_var (CtgGlobals g, void *ptr)

Variables

ELFXX_TYPE_Dyn _DYNAMIC []
CkVec< char * > _blacklist
 Method to read blacklist of variables that should not be identified as global variables.
static int loaded = 0
static CtgGlobalList_ctgList = NULL
 Singleton object describing our global variables:.
static CtgGlobalStruct_ctgListGlobals = NULL
 Singleton object describing the original values for the globals.


Typedef Documentation

typedef Elf64_Addr ELFXX_TYPE_Addr

Definition at line 65 of file global-elfgot.C.

typedef Elf64_Dyn ELFXX_TYPE_Dyn

Definition at line 66 of file global-elfgot.C.

typedef Elf64_Rela ELFXX_TYPE_Rel

Definition at line 67 of file global-elfgot.C.

typedef Elf64_Sym ELFXX_TYPE_Sym

Definition at line 68 of file global-elfgot.C.

typedef Elf32_Addr ELFXX_TYPE_Addr

Definition at line 78 of file global-elfgot.C.

typedef Elf32_Dyn ELFXX_TYPE_Dyn

Definition at line 79 of file global-elfgot.C.

typedef Elf32_Rel ELFXX_TYPE_Rel

Definition at line 80 of file global-elfgot.C.

typedef Elf32_Sym ELFXX_TYPE_Sym

Definition at line 81 of file global-elfgot.C.


Function Documentation

CpvDeclare ( int  ,
CmiPICMethod   
)

static void readBlacklist (  )  [static]

Definition at line 101 of file global-elfgot.C.

References _blacklist, loaded, and printf().

Referenced by CtgInit().

CpvStaticDeclare ( CtgGlobals  ,
_curCtg   
)

void CtgInit ( void   ) 

Initialize the globals support (called on each processor).

Definition at line 341 of file global-elfgot.C.

References _ctgList, _ctgListGlobals, CtgGlobalStruct::allocate(), CmiPrintf(), CtgGlobalStruct::data_seg, CtgGlobalList::getSize(), CtgGlobalList::install(), CtgGlobalList::read(), and readBlacklist().

CtgGlobals CtgCreate ( void   ) 

Copy the current globals into this new set.

Definition at line 369 of file global-elfgot.C.

References _ctgList, CtgGlobalStruct::allocate(), CtgGlobalStruct::data_seg, CtgGlobalList::getSize(), and CtgGlobalList::read().

CtgGlobals CtgPup ( pup_er  pv,
CtgGlobals  g 
)

PUP this (not currently installed) globals set.

Definition at line 376 of file global-elfgot.C.

References _ctgList, CmiAbort(), CtgGlobalList::getSize(), CtgGlobalStruct::installed, p, CtgGlobalStruct::pup(), and CtgGlobalStruct::seg_size.

void CtgInstall ( CtgGlobals  g  ) 

Install this set of globals.

If g==NULL, returns to original globals.

Definition at line 388 of file global-elfgot.C.

References _ctgList, _ctgListGlobals, CtgGlobalStruct::data_seg, CtgGlobalList::install(), and CtgGlobalStruct::installed.

void CtgFree ( CtgGlobals  g  ) 

Delete this (not currently installed) set of globals.

Definition at line 400 of file global-elfgot.C.

References CmiAbort(), and CtgGlobalStruct::installed.

CtgGlobals CtgCurrentGlobals ( void   ) 

Return the current global list.

Definition at line 405 of file global-elfgot.C.

void CtgInstall_var ( CtgGlobals  g,
void *  ptr 
)

Definition at line 409 of file global-elfgot.C.

void CtgUninstall_var ( CtgGlobals  g,
void *  ptr 
)

Definition at line 410 of file global-elfgot.C.


Variable Documentation

ELFXX_TYPE_Dyn _DYNAMIC[]

CkVec<char *> _blacklist

Method to read blacklist of variables that should not be identified as global variables.

Definition at line 98 of file global-elfgot.C.

Referenced by readBlacklist().

int loaded = 0 [static]

Definition at line 99 of file global-elfgot.C.

CtgGlobalList* _ctgList = NULL [static]

Singleton object describing our global variables:.

Definition at line 336 of file global-elfgot.C.

CtgGlobalStruct* _ctgListGlobals = NULL [static]

Singleton object describing the original values for the globals.

Definition at line 338 of file global-elfgot.C.


Generated on Sun Jun 29 13:29:33 2008 for Charm++ by  doxygen 1.5.1