Lines Matching refs:oh

94 H5O_assert(const H5O_t *oh)  in H5O_assert()  argument
109 … meta_space = (size_t)H5O_SIZEOF_HDR(oh) + (size_t)(H5O_SIZEOF_CHKHDR_OH(oh) * (oh->nchunks - 1)); in H5O_assert()
114 for(u = 0; u < oh->nchunks; u++) { in H5O_assert()
116 hdr_size += oh->chunk[u].size; in H5O_assert()
119 free_space += oh->chunk[u].gap; in H5O_assert()
122 HDassert(oh->chunk[u].image); in H5O_assert()
123 HDassert(oh->chunk[u].size > (size_t)H5O_SIZEOF_CHKHDR_OH(oh)); in H5O_assert()
126 HDassert(H5F_addr_defined(oh->chunk[u].addr)); in H5O_assert()
129 if(oh->version > H5O_VERSION_1) { in H5O_assert()
131 …HDassert(!HDmemcmp(oh->chunk[u].image, (u == 0 ? H5O_HDR_MAGIC : H5O_CHK_MAGIC), H5_SIZEOF_MAGIC)); in H5O_assert()
134 HDassert(oh->chunk[u].gap < (size_t)H5O_SIZEOF_MSGHDR_OH(oh)); in H5O_assert()
138 HDassert(oh->chunk[u].gap == 0); in H5O_assert()
142 if(oh->version > H5O_VERSION_1) { in H5O_assert()
143 uint64_t chunk0_size = oh->chunk[0].size - (size_t)H5O_SIZEOF_HDR(oh); in H5O_assert()
146 HDassert((oh->flags & H5O_HDR_CHUNK0_SIZE) == H5O_HDR_CHUNK0_1); in H5O_assert()
148 HDassert((oh->flags & H5O_HDR_CHUNK0_SIZE) == H5O_HDR_CHUNK0_2); in H5O_assert()
150 HDassert((oh->flags & H5O_HDR_CHUNK0_SIZE) == H5O_HDR_CHUNK0_4); in H5O_assert()
152 HDassert((oh->flags & H5O_HDR_CHUNK0_SIZE) == H5O_HDR_CHUNK0_8); in H5O_assert()
156 for(u = 0, curr_msg = &oh->mesg[0]; u < oh->nmesgs; u++, curr_msg++) { in H5O_assert()
160 curr_hdr = curr_msg->raw - H5O_SIZEOF_MSGHDR_OH(oh); in H5O_assert()
161 curr_tot_size = curr_msg->raw_size + (size_t)H5O_SIZEOF_MSGHDR_OH(oh); in H5O_assert()
177 for(v = 0; v < oh->nchunks; v++) { in H5O_assert()
178 if(H5F_addr_eq(cont->addr, oh->chunk[v].addr) && cont->size == oh->chunk[v].size) { in H5O_assert()
189 meta_space += (size_t)H5O_SIZEOF_MSGHDR_OH(oh); in H5O_assert()
197 HDassert(curr_msg->chunkno < oh->nchunks); in H5O_assert()
201 HDassert(oh->chunk[curr_msg->chunkno].gap == 0); in H5O_assert()
204 …HDassert(curr_tot_size <= (oh->chunk[curr_msg->chunkno].size) - (H5O_SIZEOF_CHKSUM_OH(oh) + oh->ch… in H5O_assert()
206 …HDassert(curr_hdr >= oh->chunk[curr_msg->chunkno].image + (H5O_SIZEOF_HDR(oh) - H5O_SIZEOF_CHKSUM_… in H5O_assert()
208 …HDassert(curr_hdr >= oh->chunk[curr_msg->chunkno].image + (H5O_SIZEOF_CHKHDR_OH(oh) - H5O_SIZEOF_C… in H5O_assert()
209 … curr_msg->raw_size <= (oh->chunk[curr_msg->chunkno].image + oh->chunk[curr_msg->chunkno].size) - … in H5O_assert()
212 for(v = 0, tmp_msg = &oh->mesg[0]; v < oh->nmesgs; v++, tmp_msg++) { in H5O_assert()
214 HDassert(!((tmp_msg->raw - H5O_SIZEOF_MSGHDR_OH(oh)) >= curr_hdr in H5O_assert()
215 && (tmp_msg->raw - H5O_SIZEOF_MSGHDR_OH(oh)) in H5O_assert()
221 HDassert(oh->nchunks == (cont_msgs_found + 1)); in H5O_assert()
293 H5O_debug_real(H5F_t *f, hid_t dxpl_id, H5O_t *oh, haddr_t addr, FILE *stream, int indent, int fwid… in H5O_debug_real() argument
304 HDassert(oh); in H5O_debug_real()
315 oh->cache_info.is_dirty); in H5O_debug_real()
318 oh->version); in H5O_debug_real()
321 (unsigned)H5O_SIZEOF_HDR(oh)); in H5O_debug_real()
324 oh->nlink); in H5O_debug_real()
327 if(oh->version > H5O_VERSION_1) { in H5O_debug_real()
331 (oh->flags & H5O_HDR_ATTR_CRT_ORDER_TRACKED) ? "Yes" : "No"); in H5O_debug_real()
334 (oh->flags & H5O_HDR_ATTR_CRT_ORDER_INDEXED) ? "Yes" : "No"); in H5O_debug_real()
337 (oh->flags & H5O_HDR_ATTR_STORE_PHASE_CHANGE) ? "Non-default" : "Default"); in H5O_debug_real()
340 (oh->flags & H5O_HDR_STORE_TIMES) ? "Enabled" : "Disabled"); in H5O_debug_real()
341 if(oh->flags & ~H5O_HDR_ALL_FLAGS) in H5O_debug_real()
343 (unsigned)oh->flags); in H5O_debug_real()
346 if(oh->flags & H5O_HDR_STORE_TIMES) { in H5O_debug_real()
351 tm = HDlocaltime(&oh->atime); in H5O_debug_real()
355 tm = HDlocaltime(&oh->mtime); in H5O_debug_real()
359 tm = HDlocaltime(&oh->ctime); in H5O_debug_real()
363 tm = HDlocaltime(&oh->btime); in H5O_debug_real()
370 if(oh->flags & H5O_HDR_ATTR_STORE_PHASE_CHANGE) { in H5O_debug_real()
373 (unsigned)oh->max_compact); in H5O_debug_real()
376 (unsigned)oh->min_dense); in H5O_debug_real()
382 oh->nmesgs, oh->alloc_nmesgs); in H5O_debug_real()
385 oh->nchunks, oh->alloc_nchunks); in H5O_debug_real()
388 for(i = 0, chunk_total = 0; i < oh->nchunks; i++) { in H5O_debug_real()
395 oh->chunk[i].addr); in H5O_debug_real()
399 if(H5F_addr_ne(oh->chunk[i].addr, addr)) in H5O_debug_real()
401 chunk_size = oh->chunk[i].size - (size_t)H5O_SIZEOF_HDR(oh); in H5O_debug_real()
404 chunk_size = oh->chunk[i].size; in H5O_debug_real()
408 gap_total += oh->chunk[i].gap; in H5O_debug_real()
416 oh->chunk[i].gap); in H5O_debug_real()
422 for(i = 0, mesg_total = 0; i < oh->nmesgs; i++) { in H5O_debug_real()
427 mesg_total += (size_t)H5O_SIZEOF_MSGHDR_OH(oh) + oh->mesg[i].raw_size; in H5O_debug_real()
430 if (oh->mesg[i].type->id == H5O_CONT_ID) in H5O_debug_real()
431 mesg_total += H5O_SIZEOF_CHKHDR_OH(oh); in H5O_debug_real()
436 if(oh->mesg[i].type->id >= (int)NELMTS(H5O_msg_class_g)) { in H5O_debug_real()
438 oh->mesg[i].type->id); in H5O_debug_real()
446 (unsigned) (oh->mesg[i].type->id), in H5O_debug_real()
447 oh->mesg[i].type->name, in H5O_debug_real()
448 sequence[oh->mesg[i].type->id]++); in H5O_debug_real()
451 oh->mesg[i].dirty); in H5O_debug_real()
454 if(oh->mesg[i].flags) { in H5O_debug_real()
457 if(oh->mesg[i].flags & H5O_MSG_FLAG_SHARED) { in H5O_debug_real()
461 if(oh->mesg[i].flags & H5O_MSG_FLAG_CONSTANT) { in H5O_debug_real()
465 if(oh->mesg[i].flags & H5O_MSG_FLAG_DONTSHARE) { in H5O_debug_real()
469 if(oh->mesg[i].flags & H5O_MSG_FLAG_FAIL_IF_UNKNOWN) { in H5O_debug_real()
473 if(oh->mesg[i].flags & H5O_MSG_FLAG_MARK_IF_UNKNOWN) { in H5O_debug_real()
477 if(oh->mesg[i].flags & H5O_MSG_FLAG_WAS_UNKNOWN) { in H5O_debug_real()
478 HDassert(oh->mesg[i].flags & H5O_MSG_FLAG_MARK_IF_UNKNOWN); in H5O_debug_real()
485 if(oh->mesg[i].flags & ~H5O_MSG_FLAG_BITS) in H5O_debug_real()
488 oh->mesg[i].flags & ~H5O_MSG_FLAG_BITS); in H5O_debug_real()
494 oh->mesg[i].chunkno); in H5O_debug_real()
495 chunkno = oh->mesg[i].chunkno; in H5O_debug_real()
496 if(chunkno >= oh->nchunks) in H5O_debug_real()
500 (size_t)(oh->mesg[i].raw - oh->chunk[chunkno].image), in H5O_debug_real()
501 oh->mesg[i].raw_size); in H5O_debug_real()
504 if((oh->mesg[i].raw + oh->mesg[i].raw_size > in H5O_debug_real()
505 oh->chunk[chunkno].image + oh->chunk[chunkno].size) || in H5O_debug_real()
506 (oh->mesg[i].raw < oh->chunk[chunkno].image)) in H5O_debug_real()
510 debug_type = oh->mesg[i].type; in H5O_debug_real()
511 if(NULL == oh->mesg[i].native && debug_type->decode) in H5O_debug_real()
512 H5O_LOAD_NATIVE(f, dxpl_id, H5O_DECODEIO_NOCHANGE, oh, &oh->mesg[i], FAIL) in H5O_debug_real()
517 if(debug_type->debug && oh->mesg[i].native != NULL) in H5O_debug_real()
518 (debug_type->debug)(f, dxpl_id, oh->mesg[i].native, stream, indent + 6, MAX(0, fwidth - 6)); in H5O_debug_real()
551 H5O_t *oh = NULL; /* Object header to display */ in H5O_debug() local
569 if(NULL == (oh = H5O_protect(&loc, dxpl_id, H5AC_READ))) in H5O_debug()
573 H5O_debug_real(f, dxpl_id, oh, addr, stream, indent, fwidth); in H5O_debug()
576 if(oh && H5O_unprotect(&loc, dxpl_id, oh, H5AC__NO_FLAGS_SET) < 0) in H5O_debug()