
Go to the source code of this file.
Data Structures | |
| struct | killPortStruct |
| class | CpdList_introspect |
| struct | CWebModeStats |
| This "usage" section keeps track of percent of wall clock time spent actually processing messages on each processor. More... | |
Typedefs | |
| typedef CkHashtableTslow < const char *, CpdListAccessor * > | CpdListTable_t |
| typedef int(* | CWebFunction )(void) |
Functions | |
| void | ccs_getinfo (char *msg) |
| static void | ccs_killport (char *msg) |
| static int | noMoreErrors (int c, const char *m) |
| void | CcsImpl_kill (void) |
| static void | ccs_killpe (char *msg) |
| static void | CpdListBoundsCheck (CpdListAccessor *l, int &lo, int &hi) |
| CpvStaticDeclare (CpdListTable_t *, cpdListTable) | |
| static CpdListAccessor * | CpdListLookup (const char *path) |
| Return the list at this (null-terminated ASCII) path. | |
| static CpdListAccessor * | CpdListLookup (const ChMessageInt_t *lenAndPath) |
| Return a CpdListAccessor, given a network string containing the list path. | |
| static void | CpdList_ccs_list_len (char *msg) |
| static CpdListAccessor * | CpdListHeader_ccs_list_items (char *msg, CpdListItemsRequest &h) |
| static void | pupCpd (PUP::er &p, CpdListAccessor *acc, CpdListItemsRequest &req) |
| static void | CpdList_ccs_list_items_txt (char *msg) |
| static void | CpdList_ccs_list_items_set (char *msg) |
| void | CpdMachineArchitecture (char *msg) |
| gather information about the machine we're currently running on | |
| static void | CpdList_ccs_list_items_fmt (char *msg) |
| void | CpdListRegister (CpdListAccessor *acc) |
| Register this CpdListAccessor with Cpd. | |
| static void | CWeb_Deliver (void) |
| static void | CWeb_Reduce (void *msg) |
| static void | CWeb_Collect (void) |
| void | CWebPerformanceRegisterFunction (CWebFunction fn) |
| static void | CWebHandler (void) |
| CpvStaticDeclare (CWebModeStats *, cwebStats) | |
| static void | usageReset (CWebModeStats *stats, double curWallTime) |
| static void | usageStart (CWebModeStats *stats, double curWallTime) |
| static void | usageStop (CWebModeStats *stats, double curWallTime) |
| static void | initUsage () |
| static int | getUsage (void) |
| static int | getSchedQlen (void) |
| static void | CWeb_Invalid (void) |
| void | CWebInit (void) |
| void | CcsBuiltinsInit (char **argv) |
Variables | |
| static killPortStruct * | killList = NULL |
| static int | hasApplet = 0 |
| static CcsDelayedReply | appletReply |
| static CWebFunction | CWebPerformanceFunctionArray [MAXFNS] |
| static int | CWebNoOfFns |
| static int | CWeb_ReduceIndex |
| static int | CWeb_CollectIndex |
| static int | collectedCount |
| static CWeb_CollectedData ** | collectedValues |
| typedef CkHashtableTslow<const char *,CpdListAccessor *> CpdListTable_t |
Definition at line 118 of file ccs-builtins.C.
| typedef int(* CWebFunction)(void) |
Definition at line 426 of file ccs-builtins.C.
| void ccs_getinfo | ( | char * | msg | ) |
Definition at line 98 of file middle-ccs.C.
References CcsSendReply(), ChMessageInt_new(), CmiFree(), CmiNodeSize(), free(), malloc(), and n.
Referenced by CcsBuiltinsInit().
| static void ccs_killport | ( | char * | msg | ) | [static] |
Definition at line 42 of file ccs-builtins.C.
References CcsCallerId(), ChMessageInt(), CmiFree(), killPortStruct::ip, malloc(), killPortStruct::next, and killPortStruct::port.
Referenced by CcsBuiltinsInit().
| void CcsImpl_kill | ( | void | ) |
Definition at line 57 of file ccs-builtins.C.
References killPortStruct::ip, killPortStruct::next, noMoreErrors(), killPortStruct::port, skt_close(), skt_connect(), skt_sendN(), and skt_set_abort().
Referenced by ConverseCommonExit().
| static void ccs_killpe | ( | char * | msg | ) | [static] |
Definition at line 78 of file ccs-builtins.C.
References CmiAbort().
Referenced by CcsBuiltinsInit().
| static void CpdListBoundsCheck | ( | CpdListAccessor * | l, | |
| int & | lo, | |||
| int & | hi | |||
| ) | [static] |
Definition at line 109 of file ccs-builtins.C.
References CpdListAccessor::checkBoundary(), and CpdListAccessor::getLength().
Referenced by CpdListHeader_ccs_list_items().
| CpvStaticDeclare | ( | CpdListTable_t * | , | |
| cpdListTable | ||||
| ) |
| static CpdListAccessor* CpdListLookup | ( | const char * | path | ) | [static] |
Return the list at this (null-terminated ASCII) path.
Definition at line 124 of file ccs-builtins.C.
References CmiError().
Referenced by CpdList_ccs_list_len(), CpdListHeader_ccs_list_items(), and CpdListLookup().
| static CpdListAccessor* CpdListLookup | ( | const ChMessageInt_t * | lenAndPath | ) | [static] |
Return a CpdListAccessor, given a network string containing the list path.
A network string is a big-endian 32-bit "length" field, followed by a null-terminated ASCII string of that length.
Definition at line 139 of file ccs-builtins.C.
References ChMessageInt(), CmiError(), and CpdListLookup().
| static void CpdList_ccs_list_len | ( | char * | msg | ) | [static] |
Definition at line 157 of file ccs-builtins.C.
References CcsSendReply(), ChMessageInt_new(), CmiFree(), CpdListLookup(), and CpdListAccessor::getLength().
| static CpdListAccessor* CpdListHeader_ccs_list_items | ( | char * | msg, | |
| CpdListItemsRequest & | h | |||
| ) | [static] |
Definition at line 175 of file ccs-builtins.C.
References ChMessageInt(), CmiSize(), CpdListBoundsCheck(), CpdListLookup(), CpdListItemsRequest::extra, CpdListItemsRequest::extraLen, CpdListItemsRequest::hi, and CpdListItemsRequest::lo.
Referenced by CpdList_ccs_list_items_fmt(), CpdList_ccs_list_items_set(), and CpdList_ccs_list_items_txt().
| static void pupCpd | ( | PUP::er & | p, | |
| CpdListAccessor * | acc, | |||
| CpdListItemsRequest & | req | |||
| ) | [static] |
Definition at line 195 of file ccs-builtins.C.
References CpdListAccessor::pup(), PUP::sync_begin_array, PUP::sync_end_array, and PUP::er::syncComment().
Referenced by CpdList_ccs_list_items_fmt(), CpdList_ccs_list_items_set(), and CpdList_ccs_list_items_txt().
| static void CpdList_ccs_list_items_txt | ( | char * | msg | ) | [static] |
Definition at line 202 of file ccs-builtins.C.
References CcsSendReply(), CmiError(), CmiFree(), CmiPrintf(), CpdListHeader_ccs_list_items(), CpdListAccessor::getPath(), p, pupCpd(), PUP::toText::size(), and PUP::sizerText::size().
| static void CpdList_ccs_list_items_set | ( | char * | msg | ) | [static] |
Definition at line 225 of file ccs-builtins.C.
References CmiFree(), CmiPrintf(), CpdListHeader_ccs_list_items(), CpdListItemsRequest::extra, CpdListItemsRequest::extraLen, p, pupCpd(), and PUP_toNetwork_unpack::size().
| void CpdMachineArchitecture | ( | char * | msg | ) |
gather information about the machine we're currently running on
Definition at line 241 of file ccs-builtins.C.
References CcsSendReply(), CmiFree(), and value.
| static void CpdList_ccs_list_items_fmt | ( | char * | msg | ) | [static] |
Definition at line 278 of file ccs-builtins.C.
References CcsSendReply(), CmiError(), CmiFree(), CpdListHeader_ccs_list_items(), CpdListAccessor::getPath(), p, pupCpd(), PUP_toNetwork_pack::size(), and PUP_toNetwork_sizer::size().
| void CpdListRegister | ( | CpdListAccessor * | acc | ) |
Register this CpdListAccessor with Cpd.
The accessor will then be called to respond to CCS requests for its path. CpdList will eventually delete this object.
Definition at line 346 of file ccs-builtins.C.
References CpdListAccessor::getPath().
Referenced by _registerDone(), and CpdCharmInit().
| static void CWeb_Deliver | ( | void | ) | [static] |
Definition at line 437 of file ccs-builtins.C.
References CcsSendDelayedReply(), CmiFree(), free(), and malloc().
Referenced by CWeb_Reduce().
| static void CWeb_Reduce | ( | void * | msg | ) | [static] |
Definition at line 472 of file ccs-builtins.C.
References CmiAbort(), CmiFree(), CmiMyPe(), and CWeb_Deliver().
Referenced by CWebInit().
| static void CWeb_Collect | ( | void | ) | [static] |
Definition at line 494 of file ccs-builtins.C.
References CcdCallFnAfter(), CmiAlloc(), CmiMyPe(), Converse::CmiSyncSendAndFree(), and msg.
Referenced by CWebInit().
| void CWebPerformanceRegisterFunction | ( | CWebFunction | fn | ) |
Definition at line 515 of file ccs-builtins.C.
References CmiAbort(), and CmiMyRank().
Referenced by CWebInit().
| static void CWebHandler | ( | void | ) | [static] |
Definition at line 526 of file ccs-builtins.C.
References CcsDelayReply(), CcsIsRemoteRequest(), CmiAlloc(), CmiMyPe(), Converse::CmiSyncSendAndFree(), malloc(), and msg.
Referenced by CWebInit().
| CpvStaticDeclare | ( | CWebModeStats * | , | |
| cwebStats | ||||
| ) |
| static void usageReset | ( | CWebModeStats * | stats, | |
| double | curWallTime | |||
| ) | [static] |
Definition at line 568 of file ccs-builtins.C.
References CWebModeStats::beginTime, and CWebModeStats::usedTime.
Referenced by getUsage(), and initUsage().
| static void usageStart | ( | CWebModeStats * | stats, | |
| double | curWallTime | |||
| ) | [static] |
Definition at line 576 of file ccs-builtins.C.
References CWebModeStats::PROCESSING, and CWebModeStats::startTime.
Referenced by getUsage(), and initUsage().
| static void usageStop | ( | CWebModeStats * | stats, | |
| double | curWallTime | |||
| ) | [static] |
Definition at line 584 of file ccs-builtins.C.
References CWebModeStats::PROCESSING, CWebModeStats::startTime, and CWebModeStats::usedTime.
Referenced by getUsage(), and initUsage().
| static void initUsage | ( | ) | [static] |
Definition at line 594 of file ccs-builtins.C.
References CcdCallOnConditionKeep(), CmiWallTimer(), usageReset(), usageStart(), and usageStop().
Referenced by CWebInit().
| static int getUsage | ( | void | ) | [static] |
Definition at line 605 of file ccs-builtins.C.
References CWebModeStats::beginTime, CmiWallTimer(), CWebModeStats::PROCESSING, stats::time(), usageReset(), usageStart(), usageStop(), and CWebModeStats::usedTime.
Referenced by CWebInit().
| static int getSchedQlen | ( | void | ) | [static] |
| static void CWeb_Invalid | ( | void | ) | [static] |
| void CWebInit | ( | void | ) |
Definition at line 637 of file ccs-builtins.C.
References CcsRegisterHandler(), CmiRegisterHandler(), CWeb_Collect(), CWeb_Invalid(), CWeb_Reduce(), CWebHandler(), CWebPerformanceRegisterFunction(), getSchedQlen(), getUsage(), and initUsage().
Referenced by CcsBuiltinsInit().
| void CcsBuiltinsInit | ( | char ** | argv | ) |
Definition at line 657 of file ccs-builtins.C.
References ccs_getinfo(), ccs_killpe(), ccs_killport(), CcsRegisterHandler(), and CWebInit().
Referenced by CcsInit().
killPortStruct* killList = NULL [static] |
Definition at line 40 of file ccs-builtins.C.
Definition at line 423 of file ccs-builtins.C.
CcsDelayedReply appletReply [static] |
Definition at line 424 of file ccs-builtins.C.
CWebFunction CWebPerformanceFunctionArray[MAXFNS] [static] |
Definition at line 427 of file ccs-builtins.C.
int CWebNoOfFns [static] |
Definition at line 428 of file ccs-builtins.C.
int CWeb_ReduceIndex [static] |
Definition at line 429 of file ccs-builtins.C.
int CWeb_CollectIndex [static] |
Definition at line 430 of file ccs-builtins.C.
int collectedCount [static] |
Definition at line 434 of file ccs-builtins.C.
CWeb_CollectedData** collectedValues [static] |
Definition at line 435 of file ccs-builtins.C.
1.5.5