HDF5  1.12.0
Functions
H5EAdbg.c File Reference
#include "H5EAmodule.h"
#include "H5private.h"
#include "H5Eprivate.h"
#include "H5EApkg.h"

Functions

 BEGIN_FUNC (PKG, CATCH if(&&cls->dst_dbg_ctx(dbg_ctx)< 0) if(hdr &&H5EA__hdr_unprotect(hdr ERR, CATCH if(&&cls->dst_dbg_ctx(dbg_ctx)< 0) if(hdr &&H5EA__hdr_unprotect(hdr herr_t, CATCH if(&&cls->dst_dbg_ctx(dbg_ctx)< 0) if(hdr &&H5EA__hdr_unprotect(hdr SUCCEED, CATCH if(&&cls->dst_dbg_ctx(dbg_ctx)< 0) if(hdr &&H5EA__hdr_unprotect(hdr FAIL, H5EA__hdr_debug(H5F_t *f, haddr_t addr, FILE *stream, int indent, int fwidth, const H5EA_class_t *cls, haddr_t obj_addr))
 
 if (iblock->ndblk_addrs > 0)
 
CATCH if (dbg_ctx &&cls->dst_dbg_ctx(dbg_ctx)< 0) if(iblock &&H5EA__iblock_unprotect(iblock
 
CATCH H5AC__NO_FLAGS_SET< 0) if(hdr &&H5EA__hdr_unprotect(hdr, H5AC__NO_FLAGS_SET)< 0) END_FUNC(PKG) BEGIN_FUNC(PKG, ERR, herr_t, SUCCEED, FAIL, H5EA__sblock_debug(H5F_t *f, haddr_t addr, FILE *stream, int indent, int fwidth, const H5EA_class_t *cls, haddr_t hdr_addr, unsigned sblk_idx, haddr_t obj_addr)) H5EA_hdr_t *hdr=NULL;H5EA_sblock_t *sblock=NULL;void *dbg_ctx=NULL;HDassert(f);HDassert(H5F_addr_defined(addr));HDassert(stream);HDassert(indentHDassert (fwidth >=0)
 
 HDassert (cls)
 
 HDassert (H5F_addr_defined(hdr_addr))
 
 HDassert (H5F_addr_defined(obj_addr))
 
 if (cls->crt_dbg_ctx) if(NULL
 
 HDfprintf (stream, "%*s%-*s %s\n", indent, "", fwidth, "Array class ID:", hdr->cparam.cls->name)
 
 HDfprintf (stream, "%*s%-*s %Zu\n", indent, "", fwidth, "Super Block size:", sblock->size)
 
 HDfprintf (stream, "%*s%-*s %Zu\n", indent, "", fwidth, "# of data block addresses in super block:", sblock->ndblks)
 
 HDfprintf (stream, "%*s%-*s %Zu\n", indent, "", fwidth, "# of elements in data blocks from this super block:", sblock->dblk_nelmts)
 
 if (sblock->ndblks > 0)
 
 HDassert (dblk_nelmts > 0)
 
 HDfprintf (stream, "%*s%-*s %Zu\n", indent, "", fwidth, "Data Block size:", dblock->size)
 
 HDfprintf (stream, "%*sElements:\n", indent, "")
 
 for (u=0;u< dblk_nelmts;u++)
 

Function Documentation

◆ BEGIN_FUNC()

BEGIN_FUNC ( PKG  ,
CATCH if( && cls->dst_dbg_ctx(dbg_ctx) < 0) if(hdr && H5EA__hdr_unprotect(hdr  ERR,
CATCH if( && cls->dst_dbg_ctx(dbg_ctx) < 0) if(hdr && H5EA__hdr_unprotect(hdr  herr_t,
CATCH if( && cls->dst_dbg_ctx(dbg_ctx) < 0) if(hdr && H5EA__hdr_unprotect(hdr  SUCCEED,
CATCH if( && cls->dst_dbg_ctx(dbg_ctx) < 0) if(hdr && H5EA__hdr_unprotect(hdr  FAIL,
H5EA__hdr_debug(H5F_t *f, haddr_t addr, FILE *stream, int indent, int fwidth, const H5EA_class_t *cls, haddr_t obj_addr)   
)

◆ for()

for ( )

◆ HDassert() [1/5]

HDassert ( cls  )

◆ HDassert() [2/5]

HDassert ( dblk_nelmts  ,
 
)

◆ HDassert() [3/5]

CATCH H5AC__NO_FLAGS_SET< 0) if(hdr && H5EA__hdr_unprotect(hdr, H5AC__NO_FLAGS_SET) < 0) END_FUNC(PKG) BEGIN_FUNC(PKG, ERR, herr_t, SUCCEED, FAIL, H5EA__sblock_debug(H5F_t *f, haddr_t addr, FILE *stream, int indent, int fwidth, const H5EA_class_t *cls, haddr_t hdr_addr, unsigned sblk_idx, haddr_t obj_addr)) H5EA_hdr_t *hdr = NULL; H5EA_sblock_t *sblock = NULL; void *dbg_ctx = NULL; HDassert(f); HDassert(H5F_addr_defined(addr)); HDassert(stream); HDassert(indent > HDassert ( fwidth >=  0)

◆ HDassert() [4/5]

HDassert ( H5F_addr_defined(hdr_addr)  )

◆ HDassert() [5/5]

HDassert ( H5F_addr_defined(obj_addr)  )

◆ HDfprintf() [1/6]

HDfprintf ( stream  ,
"%*s%-*s %s\n ,
indent  ,
""  ,
fwidth  ,
"Array class ID:"  ,
hdr->cparam.cls->  name 
)

◆ HDfprintf() [2/6]

HDfprintf ( stream  ,
"%*s%-*s %Zu\n ,
indent  ,
""  ,
fwidth  ,
"# of data block addresses in super block:"  ,
sblock->  ndblks 
)

◆ HDfprintf() [3/6]

HDfprintf ( stream  ,
"%*s%-*s %Zu\n ,
indent  ,
""  ,
fwidth  ,
"# of elements in data blocks from this super block:"  ,
sblock->  dblk_nelmts 
)

◆ HDfprintf() [4/6]

HDfprintf ( stream  ,
"%*s%-*s %Zu\n ,
indent  ,
""  ,
fwidth  ,
"Data Block size:"  ,
dblock->  size 
)

◆ HDfprintf() [5/6]

HDfprintf ( stream  ,
"%*s%-*s %Zu\n ,
indent  ,
""  ,
fwidth  ,
"Super Block size:"  ,
sblock->  size 
)

◆ HDfprintf() [6/6]

HDfprintf ( stream  ,
"%*sElements:\n"  ,
indent  ,
""   
)

◆ if() [1/4]

if ( cls->  crt_dbg_ctx)
Initial value:
== (dbg_ctx = cls->crt_dbg_ctx(f, obj_addr)))
if(NULL == (hdr = H5EA__hdr_protect(f, hdr_addr, dbg_ctx, H5AC__READ_ONLY_FLAG)))
if(NULL == (dblock = H5EA__dblock_protect(hdr, hdr, addr, dblk_nelmts, H5AC__READ_ONLY_FLAG)))
HDfprintf(stream, "%*sExtensible Array data Block...\n", indent, "")

◆ if() [2/4]

CATCH if ( ) &&

◆ if() [3/4]

if ( iblock->  ndblk_addrs,
 
)

◆ if() [4/4]

if ( sblock->  ndblks,
 
)
H5EA__hdr_protect
H5_DLL H5EA_hdr_t * H5EA__hdr_protect(H5F_t *f, haddr_t ea_addr, void *ctx_udata, unsigned flags)
f
hdr f
Definition: H5EA.c:755
HDfprintf
HDfprintf(stream, "%*s%-*s %s\n", indent, "", fwidth, "Array class ID:", hdr->cparam.cls->name)
H5AC__READ_ONLY_FLAG
#define H5AC__READ_ONLY_FLAG
Definition: H5ACprivate.h:326
indent
*s *s indent
Definition: H5HLdbg.c:111
H5EA__dblock_protect
H5_DLL H5EA_dblock_t * H5EA__dblock_protect(H5EA_hdr_t *hdr, void *parent, haddr_t dblk_addr, size_t dblk_nelmts, unsigned flags)
hdr
hdr
Definition: H5EAhdr.c:821
dblock
dblock
Definition: H5EAdblock.c:480