PPL Logo

conv-ccs/ccs-builtins.C File Reference

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 CpdListAccessorCpdListLookup (const char *path)
 Return the list at this (null-terminated ASCII) path.
static CpdListAccessorCpdListLookup (const ChMessageInt_t *lenAndPath)
 Return a CpdListAccessor, given a network string containing the list path.
static void CpdList_ccs_list_len (char *msg)
static CpdListAccessorCpdListHeader_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 killPortStructkillList = 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 Documentation

Definition at line 119 of file ccs-builtins.C.

typedef int(* CWebFunction)(void)

Definition at line 427 of file ccs-builtins.C.


Function Documentation

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

static int noMoreErrors ( SOCKET  skt,
int  c,
const char *  m 
) [static]

Definition at line 57 of file ccs-builtins.C.

Referenced by CcsImpl_kill().

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

static void ccs_killpe ( char *  msg  )  [static]

Definition at line 79 of file ccs-builtins.C.

References CmiAbort().

Referenced by CcsBuiltinsInit().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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.

Here is the call graph for this function:

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().

Here is the call graph for this function:

static CpdListAccessor* CpdListHeader_ccs_list_items ( char *  msg,
CpdListItemsRequest h 
) [static]

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().

Here is the call graph for this function:

Here is the caller graph for this function:

static void CpdList_ccs_list_items_txt ( char *  msg  )  [static]

static void CpdList_ccs_list_items_set ( char *  msg  )  [static]

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.

Here is the call graph for this function:

static void CpdList_ccs_list_items_fmt ( char *  msg  )  [static]

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

void CWebPerformanceRegisterFunction ( CWebFunction  fn  ) 

Definition at line 516 of file ccs-builtins.C.

References CmiAbort(), and CmiMyRank().

Referenced by CWebInit().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the caller graph for this function:

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().

Here is the caller graph for this function:

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().

Here is the caller graph for this function:

static void initUsage (  )  [static]

Definition at line 595 of file ccs-builtins.C.

References CcdCallOnConditionKeep(), CmiWallTimer(), usageReset(), usageStart(), and usageStop().

Referenced by CWebInit().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

static int getSchedQlen ( void   )  [static]

Definition at line 624 of file ccs-builtins.C.

References CqsLength().

Referenced by CWebInit().

Here is the call graph for this function:

Here is the caller graph for this function:

static void CWeb_Invalid ( void   )  [static]

Definition at line 632 of file ccs-builtins.C.

References CmiAbort().

Referenced by CWebInit().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:


Variable Documentation

killPortStruct* killList = NULL [static]

Definition at line 41 of file ccs-builtins.C.

int hasApplet = 0 [static]

Definition at line 424 of file ccs-builtins.C.

Definition at line 425 of file ccs-builtins.C.

Definition at line 428 of file ccs-builtins.C.

int CWebNoOfFns [static]

Definition at line 429 of file ccs-builtins.C.

Definition at line 430 of file ccs-builtins.C.

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.


Generated on Mon Sep 21 07:59:48 2020 for Charm++ by  doxygen 1.5.5