Lines Matching refs:file_offset
691 def append_chunk(f, file_offset, tag, major, minor, data, verbose): argument
695 return offset + align_next_chunk(f, file_offset + offset, verbose)
750 file_offset = 0
774 header_size_offset = file_offset + 8
775 file_offset += 16 + FILEHDR_SIZE # chunk header plus file header
778 print('writing machine chunk at offset 0x{:x}'.format(file_offset))
781 file_offset += append_chunk(
782 f, file_offset, MACHINE_TAG, 0, 0, machine_bytes, verbose)
785 print('writing config chunk at offset 0x{:x}'.format(file_offset))
788 file_offset += append_chunk(
789 f, file_offset, CONFIG_TAG, 0, 0, config_bytes, verbose)
794 file_offset += 16 # header size
795 event_size_offset = file_offset - FUTURE_SIZE
798 file_offset += FUTURE_SIZE
801 print('events start at offset 0x{:x}'.format(file_offset))
824 file_offset += KDE_SIZE
843 print('events end at offset 0x{:x}'.format(file_offset))
855 kcdata_length, file_offset))
876 file_offset += append_chunk(
877 f, file_offset, SSHOT_TAG, 1, 0, ssdata, verbose)
879 print('stackshot ends at offset 0x{:x}'.format(file_offset))