buildrecordstack
srec = buildrecordstack(strc, procoffset);
struct staterecord *buildrecordstack(struct recordchain *, uint64_t);