PPL Logo

conv-core/debug-conv.h File Reference

Go to the source code of this file.

Data Structures

struct  LeakSearchInfo
struct  CpdListItemsRequest
 When a CCS client asks for some data in a CpdList, the system generates this struct to describe the range of items the client asked for (the items are numbered lo to hi-1), as well as store any extra data the CCS client passed in. More...

Typedefs

typedef void(* CpdListItemsFn_c )(void *itemsParam, pup_er p, CpdListItemsRequest *req)
 User-written C routine to pup a range of items in a CpdList.
typedef size_t(* CpdListLengthFn_c )(void *lenParam)
 User-written C routine to return the length (number of items) in this CpdList.

Enumerations

enum  {
  CPD_ERROR = 0, CPD_SIGNAL = 1, CPD_ABORT = 2, CPD_FREEZE = 3,
  CPD_BREAKPOINT = 4, CPD_CROSSCORRUPTION = 5
}

Functions

 CpvExtern (int, cmiArgDebugFlag)
void CpdCheckMemory ()
void CpdResetMemory ()
void CpdInit (void)
void CpdFreeze (void)
void CpdUnFreeze (void)
int CpdIsFrozen (void)
void CpdFreezeModeScheduler (void)
void CpdStartGdb (void)
void Cpd_CmiHandleMessage (void *msg)
void CpdNotify (int type,...)
void CpdSearchLeaks (char *)
void CpdListBeginItem (pup_er p, int itemNo)
 Call this routine at the start of each CpdList item.
void CpdListRegister_c (const char *path, CpdListLengthFn_c lenFn, void *lenParam, CpdListItemsFn_c itemsFn, void *itemsParam, int checkBoundary)
 Create a new CpdList at the given path.

Variables

void *(* CpdDebugGetAllocationTree )(int *)
void(* CpdDebug_pupAllocationPoint )(pup_er p, void *data)
void(* CpdDebug_deleteAllocationPoint )(void *ptr)
void *(* CpdDebug_MergeAllocationTree )(int *size, void *data, void **remoteData, int numRemote)
void *(* CpdDebugGetMemStat )(void)
void(* CpdDebug_pupMemStat )(pup_er p, void *data)
void(* CpdDebug_deleteMemStat )(void *ptr)
void *(* CpdDebug_mergeMemStat )(int *size, void *data, void **remoteData, int numRemote)
char ** memoryBackup
int(* CpdIsDebugMessage )(void *)
void *(* CpdGetNextMessage )(CsdSchedulerState_t *)
int _conditionalDelivery
int conditionalPipe [2]


Typedef Documentation

typedef void(* CpdListItemsFn_c)(void *itemsParam, pup_er p, CpdListItemsRequest *req)

User-written C routine to pup a range of items in a CpdList.

Parameters:
itemsParam User-defined parameter passed to CpdListRegister_c.
p pup_er to pup items to.
req Cpd request object, describing items to pup.

Definition at line 89 of file debug-conv.h.

typedef size_t(* CpdListLengthFn_c)(void *lenParam)

User-written C routine to return the length (number of items) in this CpdList.

Parameters:
lenParam User-defined parameter passed to CpdListRegister_c.
return Length of the CpdList.

Definition at line 98 of file debug-conv.h.


Enumeration Type Documentation

anonymous enum

Enumerator:
CPD_ERROR 
CPD_SIGNAL 
CPD_ABORT 
CPD_FREEZE 
CPD_BREAKPOINT 
CPD_CROSSCORRUPTION 

Definition at line 45 of file debug-conv.h.


Function Documentation

CpvExtern ( int  ,
cmiArgDebugFlag   
)

void CpdInit ( void   ) 

void CpdUnFreeze ( void   ) 

Definition at line 141 of file middle-ccs.C.

int CpdIsFrozen ( void   ) 

Definition at line 146 of file middle-ccs.C.

void CpdFreezeModeScheduler ( void   ) 

void CpdStartGdb ( void   ) 

Definition at line 982 of file debug-charm.C.

References CmiMyPe(), CmiPrintf(), and errno.

Referenced by CpdCharmInit().

void Cpd_CmiHandleMessage ( void *  msg  ) 

void CpdNotify ( int  type,
  ... 
)

void CpdSearchLeaks ( char *   ) 

void CpdListBeginItem ( pup_er  p,
int  itemNo 
)

Call this routine at the start of each CpdList item.

This lets the client distinguish one item from the next.

Definition at line 23 of file debug-conv++.C.

References CpdListBeginItem_impl().

Referenced by cpd_memory_single_pup(), and hostInfo().

void CpdListRegister_c ( const char *  path,
CpdListLengthFn_c  lenFn,
void *  lenParam,
CpdListItemsFn_c  itemsFn,
void *  itemsParam,
int  checkBoundary 
)

Create a new CpdList at the given path.

When a CCS client requests this CpdList, Cpd will use these user-written C routines to extract the list's length and items.

Parameters:
path CpdList request path. The CCS client passes in this path.
lenFn User-written subroutine to calculate the list's current length.
lenParam User-defined parameter passed to lenFn.
itemsFn User-written subroutine to pup the list's items.
itemsParam User-defined parameter passed to itemsFn.


Variable Documentation

void*(* CpdDebug_MergeAllocationTree)(int *size, void *data, void **remoteData, int numRemote)

void*(* CpdDebugGetMemStat)(void)

void(* CpdDebug_pupMemStat)(pup_er p, void *data)

void(* CpdDebug_deleteMemStat)(void *ptr)

void*(* CpdDebug_mergeMemStat)(int *size, void *data, void **remoteData, int numRemote)

char** memoryBackup

Definition at line 23 of file debug-conv.c.

Referenced by cpd_memory_single_pup(), CpdAfterEp(), and CpdBeforeEp().

int(* CpdIsDebugMessage)(void *)


Generated on Fri May 25 08:00:44 2012 for Charm++ by  doxygen 1.5.5