
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 |
Functions | |
| CpvDeclare (int, CmiPICMethod) | |
| int | lookup_obj_sym (char *name, unsigned long *val, int *size) |
| static void | readGlobals () |
| CpvStaticDeclare (CtgGlobals, _curCtg) | |
| int | init_symtab (char *exename) |
| void | CtgInit (void) |
| Initialize the globals support (called on each processor). | |
| CtgGlobals | CtgCreate (CthThread tid) |
| 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 * > | _namelist |
| 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 Elf32_Addr ELFXX_TYPE_Addr |
Definition at line 32 of file global-elfcopy.C.
| typedef Elf32_Dyn ELFXX_TYPE_Dyn |
Definition at line 33 of file global-elfcopy.C.
| typedef Elf32_Rel ELFXX_TYPE_Rel |
Definition at line 34 of file global-elfcopy.C.
| typedef Elf32_Sym ELFXX_TYPE_Sym |
Definition at line 35 of file global-elfcopy.C.
| CpvDeclare | ( | int | , | |
| CmiPICMethod | ||||
| ) |
Definition at line 495 of file loadsym.c.
References lookup_sym().
Referenced by CtgGlobalList::CtgGlobalList().
| static void readGlobals | ( | ) | [static] |
Definition at line 155 of file global-elfcopy.C.
References CmiAbort(), printf(), and CkVec< T >::push_back().
Referenced by CtgInit().
| CpvStaticDeclare | ( | CtgGlobals | , | |
| _curCtg | ||||
| ) |
| int init_symtab | ( | char * | exename | ) |
| void CtgInit | ( | void | ) |
Initialize the globals support (called on each processor).
Definition at line 274 of file global-elfcopy.C.
References CtgGlobalStruct::allocate(), CkGetArgv(), CmiPrintf(), CtgGlobalStruct::data_seg, CtgGlobalList::getSize(), init_symtab(), CtgGlobalList::install(), CtgGlobalList::read(), and readGlobals().
| CtgGlobals CtgCreate | ( | CthThread | tid | ) |
Copy the current globals into this new set.
Definition at line 305 of file global-elfcopy.C.
References 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 313 of file global-elfcopy.C.
References CmiAbort(), CtgGlobalList::getSize(), CtgGlobalStruct::installed, PUP::er::isUnpacking(), 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 325 of file global-elfcopy.C.
References CtgGlobalStruct::data_seg, CtgGlobalList::install(), CtgGlobalStruct::installed, and CtgGlobalList::read().
| void CtgFree | ( | CtgGlobals | g | ) |
Delete this (not currently installed) set of globals.
Definition at line 340 of file global-elfcopy.C.
References CmiAbort(), and CtgGlobalStruct::installed.
| CtgGlobals CtgCurrentGlobals | ( | void | ) |
| void CtgInstall_var | ( | CtgGlobals | g, | |
| void * | ptr | |||
| ) |
Definition at line 349 of file global-elfcopy.C.
References CtgGlobalStruct::data_seg, CtgGlobalList::install_var(), and CtgGlobalList::read_var().
| void CtgUninstall_var | ( | CtgGlobals | g, | |
| void * | ptr | |||
| ) |
Definition at line 357 of file global-elfcopy.C.
References CtgGlobalStruct::data_seg, CtgGlobalList::install_var(), and CtgGlobalList::read_var().
Definition at line 149 of file global-elfcopy.C.
Definition at line 150 of file global-elfcopy.C.
CtgGlobalList* _ctgList = NULL [static] |
CtgGlobalStruct* _ctgListGlobals = NULL [static] |
Singleton object describing the original values for the globals.
Definition at line 269 of file global-elfcopy.C.
1.5.5