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 (SOCKET skt, 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 119 of file ccs-builtins.C.
typedef int(* CWebFunction)(void) |
Definition at line 427 of file ccs-builtins.C.
void ccs_getinfo | ( | char * | msg | ) |
Definition at line 106 of file middle-ccs.C.
References CcsSendReply(), ChMessageInt_new(), CmiFree(), CmiNodeSize(), free(), len, malloc(), and n.
Referenced by CcsBuiltinsInit().
static void ccs_killport | ( | char * | msg | ) | [static] |
Definition at line 43 of file ccs-builtins.C.
References CcsCallerId(), ChMessageInt(), CmiFree(), killPortStruct::ip, malloc(), killPortStruct::next, and killPortStruct::port.
Referenced by CcsBuiltinsInit().
Definition at line 57 of file ccs-builtins.C.
Referenced by CcsImpl_kill().
void CcsImpl_kill | ( | void | ) |
Definition at line 58 of file ccs-builtins.C.
References fd, 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 79 of file ccs-builtins.C.
References CmiAbort().
Referenced by CcsBuiltinsInit().
static void CpdListBoundsCheck | ( | CpdListAccessor * | l, | |
int & | lo, | |||
int & | hi | |||
) | [static] |
Definition at line 110 of file ccs-builtins.C.
References CpdListAccessor::checkBoundary(), CpdListAccessor::getLength(), and len.
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 125 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 140 of file ccs-builtins.C.
References ChMessageInt(), CmiError(), CpdListLookup(), and len.
static void CpdList_ccs_list_len | ( | char * | msg | ) | [static] |
Definition at line 158 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 176 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 196 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 203 of file ccs-builtins.C.
References buf, 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 226 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 242 of file ccs-builtins.C.
References CcsSendReply(), CmiFree(), int, and value.
static void CpdList_ccs_list_items_fmt | ( | char * | msg | ) | [static] |
Definition at line 279 of file ccs-builtins.C.
References buf, 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 347 of file ccs-builtins.C.
References CpdListAccessor::getPath().
Referenced by _registerDone(), and CpdCharmInit().
static void CWeb_Deliver | ( | void | ) | [static] |
Definition at line 438 of file ccs-builtins.C.
References buf, CcsSendDelayedReply(), CmiFree(), free(), and malloc().
Referenced by CWeb_Reduce().
static void CWeb_Reduce | ( | void * | msg | ) | [static] |
Definition at line 473 of file ccs-builtins.C.
References CmiAbort(), CmiFree(), CmiMyPe(), CWeb_Deliver(), and src.
Referenced by CWebInit().
static void CWeb_Collect | ( | void | ) | [static] |
Definition at line 495 of file ccs-builtins.C.
References CcdCallFnAfter(), CmiAlloc(), CmiMyPe(), Converse::CmiSyncSendAndFree(), and msg.
Referenced by CWebInit().
void CWebPerformanceRegisterFunction | ( | CWebFunction | fn | ) |
Definition at line 516 of file ccs-builtins.C.
References CmiAbort(), and CmiMyRank().
Referenced by CWebInit().
static void CWebHandler | ( | void | ) | [static] |
Definition at line 527 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 569 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 577 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 585 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 595 of file ccs-builtins.C.
References CcdCallOnConditionKeep(), CmiWallTimer(), usageReset(), usageStart(), and usageStop().
Referenced by CWebInit().
static int getUsage | ( | void | ) | [static] |
Definition at line 606 of file ccs-builtins.C.
References CWebModeStats::beginTime, CmiWallTimer(), int, CWebModeStats::PROCESSING, stats::time(), usageReset(), usageStart(), usageStop(), and CWebModeStats::usedTime.
Referenced by CWebInit().
static int getSchedQlen | ( | void | ) | [static] |
Definition at line 624 of file ccs-builtins.C.
References CqsLength().
Referenced by CWebInit().
static void CWeb_Invalid | ( | void | ) | [static] |
Definition at line 632 of file ccs-builtins.C.
References CmiAbort().
Referenced by CWebInit().
void CWebInit | ( | void | ) |
Definition at line 638 of file ccs-builtins.C.
References CcsRegisterHandler(), CmiAssignOnce(), CmiRegisterHandler(), CWeb_Collect(), CWeb_Invalid(), CWeb_Reduce(), CWebHandler(), CWebPerformanceRegisterFunction(), getSchedQlen(), getUsage(), and initUsage().
Referenced by CcsBuiltinsInit().
void CcsBuiltinsInit | ( | char ** | argv | ) |
Definition at line 658 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 41 of file ccs-builtins.C.
Definition at line 424 of file ccs-builtins.C.
CcsDelayedReply appletReply [static] |
Definition at line 425 of file ccs-builtins.C.
CWebFunction CWebPerformanceFunctionArray[MAXFNS] [static] |
Definition at line 428 of file ccs-builtins.C.
int CWebNoOfFns [static] |
Definition at line 429 of file ccs-builtins.C.
int CWeb_ReduceIndex [static] |
Definition at line 430 of file ccs-builtins.C.
int CWeb_CollectIndex [static] |
Definition at line 431 of file ccs-builtins.C.
int collectedCount [static] |
Definition at line 435 of file ccs-builtins.C.
CWeb_CollectedData** collectedValues [static] |
Definition at line 436 of file ccs-builtins.C.