Lines Matching refs:oh

93 H5O_assert(const H5O_t *oh)  in H5O_assert()  argument
108 … meta_space = (size_t)H5O_SIZEOF_HDR(oh) + (size_t)(H5O_SIZEOF_CHKHDR_OH(oh) * (oh->nchunks - 1)); in H5O_assert()
113 for(u = 0; u < oh->nchunks; u++) { in H5O_assert()
115 hdr_size += oh->chunk[u].size; in H5O_assert()
118 free_space += oh->chunk[u].gap; in H5O_assert()
121 HDassert(oh->chunk[u].image); in H5O_assert()
122 HDassert(oh->chunk[u].size > (size_t)H5O_SIZEOF_CHKHDR_OH(oh)); in H5O_assert()
125 HDassert(H5F_addr_defined(oh->chunk[u].addr)); in H5O_assert()
128 if(oh->version > H5O_VERSION_1) { in H5O_assert()
130 …HDassert(!HDmemcmp(oh->chunk[u].image, (u == 0 ? H5O_HDR_MAGIC : H5O_CHK_MAGIC), H5_SIZEOF_MAGIC)); in H5O_assert()
133 HDassert(oh->chunk[u].gap < (size_t)H5O_SIZEOF_MSGHDR_OH(oh)); in H5O_assert()
137 HDassert(oh->chunk[u].gap == 0); in H5O_assert()
141 if(oh->version > H5O_VERSION_1) { in H5O_assert()
142 uint64_t chunk0_size = oh->chunk[0].size - (size_t)H5O_SIZEOF_HDR(oh); in H5O_assert()
145 HDassert((oh->flags & H5O_HDR_CHUNK0_SIZE) == H5O_HDR_CHUNK0_1); in H5O_assert()
147 HDassert((oh->flags & H5O_HDR_CHUNK0_SIZE) == H5O_HDR_CHUNK0_2); in H5O_assert()
149 HDassert((oh->flags & H5O_HDR_CHUNK0_SIZE) == H5O_HDR_CHUNK0_4); in H5O_assert()
151 HDassert((oh->flags & H5O_HDR_CHUNK0_SIZE) == H5O_HDR_CHUNK0_8); in H5O_assert()
155 for(u = 0, curr_msg = &oh->mesg[0]; u < oh->nmesgs; u++, curr_msg++) { in H5O_assert()
159 curr_hdr = curr_msg->raw - H5O_SIZEOF_MSGHDR_OH(oh); in H5O_assert()
160 curr_tot_size = curr_msg->raw_size + (size_t)H5O_SIZEOF_MSGHDR_OH(oh); in H5O_assert()
176 for(v = 0; v < oh->nchunks; v++) { in H5O_assert()
177 if(H5F_addr_eq(cont->addr, oh->chunk[v].addr) && cont->size == oh->chunk[v].size) { in H5O_assert()
188 meta_space += (size_t)H5O_SIZEOF_MSGHDR_OH(oh); in H5O_assert()
196 HDassert(curr_msg->chunkno < oh->nchunks); in H5O_assert()
200 HDassert(oh->chunk[curr_msg->chunkno].gap == 0); in H5O_assert()
203 …HDassert(curr_tot_size <= (oh->chunk[curr_msg->chunkno].size) - (H5O_SIZEOF_CHKSUM_OH(oh) + oh->ch… in H5O_assert()
205 …HDassert(curr_hdr >= oh->chunk[curr_msg->chunkno].image + (H5O_SIZEOF_HDR(oh) - H5O_SIZEOF_CHKSUM_… in H5O_assert()
207 …HDassert(curr_hdr >= oh->chunk[curr_msg->chunkno].image + (H5O_SIZEOF_CHKHDR_OH(oh) - H5O_SIZEOF_C… in H5O_assert()
208 … curr_msg->raw_size <= (oh->chunk[curr_msg->chunkno].image + oh->chunk[curr_msg->chunkno].size) - … in H5O_assert()
211 for(v = 0, tmp_msg = &oh->mesg[0]; v < oh->nmesgs; v++, tmp_msg++) { in H5O_assert()
213 HDassert(!((tmp_msg->raw - H5O_SIZEOF_MSGHDR_OH(oh)) >= curr_hdr in H5O_assert()
214 && (tmp_msg->raw - H5O_SIZEOF_MSGHDR_OH(oh)) in H5O_assert()
220 HDassert(oh->nchunks == (cont_msgs_found + 1)); in H5O_assert()
292 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
303 HDassert(oh); in H5O_debug_real()
314 oh->cache_info.is_dirty); in H5O_debug_real()
317 oh->version); in H5O_debug_real()
320 (unsigned)H5O_SIZEOF_HDR(oh)); in H5O_debug_real()
323 oh->nlink); in H5O_debug_real()
326 if(oh->version > H5O_VERSION_1) { in H5O_debug_real()
330 (oh->flags & H5O_HDR_ATTR_CRT_ORDER_TRACKED) ? "Yes" : "No"); in H5O_debug_real()
333 (oh->flags & H5O_HDR_ATTR_CRT_ORDER_INDEXED) ? "Yes" : "No"); in H5O_debug_real()
336 (oh->flags & H5O_HDR_ATTR_STORE_PHASE_CHANGE) ? "Non-default" : "Default"); in H5O_debug_real()
339 (oh->flags & H5O_HDR_STORE_TIMES) ? "Enabled" : "Disabled"); in H5O_debug_real()
340 if(oh->flags & ~H5O_HDR_ALL_FLAGS) in H5O_debug_real()
342 (unsigned)oh->flags); in H5O_debug_real()
345 if(oh->flags & H5O_HDR_STORE_TIMES) { in H5O_debug_real()
350 tm = HDlocaltime(&oh->atime); in H5O_debug_real()
354 tm = HDlocaltime(&oh->mtime); in H5O_debug_real()
358 tm = HDlocaltime(&oh->ctime); in H5O_debug_real()
362 tm = HDlocaltime(&oh->btime); in H5O_debug_real()
369 if(oh->flags & H5O_HDR_ATTR_STORE_PHASE_CHANGE) { in H5O_debug_real()
372 (unsigned)oh->max_compact); in H5O_debug_real()
375 (unsigned)oh->min_dense); in H5O_debug_real()
381 oh->nmesgs, oh->alloc_nmesgs); in H5O_debug_real()
384 oh->nchunks, oh->alloc_nchunks); in H5O_debug_real()
387 for(i = 0, chunk_total = 0; i < oh->nchunks; i++) { in H5O_debug_real()
394 oh->chunk[i].addr); in H5O_debug_real()
398 if(H5F_addr_ne(oh->chunk[i].addr, addr)) in H5O_debug_real()
400 chunk_size = oh->chunk[i].size - (size_t)H5O_SIZEOF_HDR(oh); in H5O_debug_real()
403 chunk_size = oh->chunk[i].size; in H5O_debug_real()
407 gap_total += oh->chunk[i].gap; in H5O_debug_real()
415 oh->chunk[i].gap); in H5O_debug_real()
421 for(i = 0, mesg_total = 0; i < oh->nmesgs; i++) { in H5O_debug_real()
426 mesg_total += (size_t)H5O_SIZEOF_MSGHDR_OH(oh) + oh->mesg[i].raw_size; in H5O_debug_real()
429 if (oh->mesg[i].type->id == H5O_CONT_ID) in H5O_debug_real()
430 mesg_total += H5O_SIZEOF_CHKHDR_OH(oh); in H5O_debug_real()
435 if(oh->mesg[i].type->id >= (int)NELMTS(H5O_msg_class_g)) { in H5O_debug_real()
437 oh->mesg[i].type->id); in H5O_debug_real()
445 (unsigned) (oh->mesg[i].type->id), in H5O_debug_real()
446 oh->mesg[i].type->name, in H5O_debug_real()
447 sequence[oh->mesg[i].type->id]++); in H5O_debug_real()
450 oh->mesg[i].dirty); in H5O_debug_real()
453 if(oh->mesg[i].flags) { in H5O_debug_real()
459 if(oh->mesg[i].flags & H5O_MSG_FLAG_CONSTANT) { in H5O_debug_real()
463 if(oh->mesg[i].flags & H5O_MSG_FLAG_SHARED) { in H5O_debug_real()
467 if(oh->mesg[i].flags & H5O_MSG_FLAG_DONTSHARE) { in H5O_debug_real()
471 if(oh->mesg[i].flags & H5O_MSG_FLAG_FAIL_IF_UNKNOWN_AND_OPEN_FOR_WRITE) { in H5O_debug_real()
475 if(oh->mesg[i].flags & H5O_MSG_FLAG_MARK_IF_UNKNOWN) { in H5O_debug_real()
479 if(oh->mesg[i].flags & H5O_MSG_FLAG_WAS_UNKNOWN) { in H5O_debug_real()
480 HDassert(oh->mesg[i].flags & H5O_MSG_FLAG_MARK_IF_UNKNOWN); in H5O_debug_real()
484 if(oh->mesg[i].flags & H5O_MSG_FLAG_SHAREABLE) { in H5O_debug_real()
488 if(oh->mesg[i].flags & H5O_MSG_FLAG_FAIL_IF_UNKNOWN_ALWAYS) { in H5O_debug_real()
495 if(oh->mesg[i].flags & ~H5O_MSG_FLAG_BITS) in H5O_debug_real()
498 oh->mesg[i].flags & ~H5O_MSG_FLAG_BITS); in H5O_debug_real()
504 oh->mesg[i].chunkno); in H5O_debug_real()
505 chunkno = oh->mesg[i].chunkno; in H5O_debug_real()
506 if(chunkno >= oh->nchunks) in H5O_debug_real()
510 (size_t)(oh->mesg[i].raw - oh->chunk[chunkno].image), in H5O_debug_real()
511 oh->mesg[i].raw_size); in H5O_debug_real()
514 if((oh->mesg[i].raw + oh->mesg[i].raw_size > in H5O_debug_real()
515 oh->chunk[chunkno].image + oh->chunk[chunkno].size) || in H5O_debug_real()
516 (oh->mesg[i].raw < oh->chunk[chunkno].image)) in H5O_debug_real()
520 debug_type = oh->mesg[i].type; in H5O_debug_real()
521 if(NULL == oh->mesg[i].native && debug_type->decode) in H5O_debug_real()
522 H5O_LOAD_NATIVE(f, dxpl_id, H5O_DECODEIO_NOCHANGE, oh, &oh->mesg[i], FAIL) in H5O_debug_real()
527 if(debug_type->debug && oh->mesg[i].native != NULL) in H5O_debug_real()
528 (debug_type->debug)(f, dxpl_id, oh->mesg[i].native, stream, indent + 6, MAX(0, fwidth - 6)); in H5O_debug_real()
561 H5O_t *oh = NULL; /* Object header to display */ in H5O_debug() local
579 if(NULL == (oh = H5O_protect(&loc, dxpl_id, H5AC__READ_ONLY_FLAG, FALSE))) in H5O_debug()
583 H5O_debug_real(f, dxpl_id, oh, addr, stream, indent, fwidth); in H5O_debug()
586 if(oh && H5O_unprotect(&loc, dxpl_id, oh, H5AC__NO_FLAGS_SET) < 0) in H5O_debug()