/* * palloc_vg_register_off -- registers an object in valgrind */ void palloc_vg_register_off(struct palloc_heap *heap, uint64_t off) { struct memory_block m = memblock_from_offset_opt(heap, off, 0); palloc_vg_register_alloc(&m, heap); }
/* * memblock_from_offset -- returns memory block with size */ struct memory_block memblock_from_offset(struct palloc_heap *heap, uint64_t off) { return memblock_from_offset_opt(heap, off, 1); }