Blame makedumpfile.h

Packit Service 501009
/* 
Packit Service 501009
 * makedumpfile.h
Packit Service 501009
 * 
Packit Service 501009
 * This code is for reading a dumpfile ganarated by makedumpfile command.
Packit Service 501009
 *
Packit Service 501009
 * Copyright (C) 2011  NEC Soft, Ltd.
Packit Service 501009
 *
Packit Service 501009
 * This program is free software; you can redistribute it and/or modify
Packit Service 501009
 * it under the terms of the GNU General Public License as published by
Packit Service 501009
 * the Free Software Foundation; either version 2 of the License, or
Packit Service 501009
 * (at your option) any later version.
Packit Service 501009
 *
Packit Service 501009
 * This program is distributed in the hope that it will be useful,
Packit Service 501009
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit Service 501009
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
Packit Service 501009
 * GNU General Public License for more details.
Packit Service 501009
 *
Packit Service 501009
 * Author: Ken'ichi Ohmichi <oomichi mxs nes nec co jp>
Packit Service 501009
 */
Packit Service 501009
Packit Service 501009
/*
Packit Service 501009
 * makedumpfile header
Packit Service 501009
 *   For re-arranging the dump data on different architecture, all the
Packit Service 501009
 *   variables are defined by 64bits. The size of signature is aligned
Packit Service 501009
 *   to 64bits, and change the values to big endian.
Packit Service 501009
 */
Packit Service 501009
#define MAKEDUMPFILE_SIGNATURE  "makedumpfile"
Packit Service 501009
#define NUM_SIG_MDF             (sizeof(MAKEDUMPFILE_SIGNATURE) - 1)
Packit Service 501009
#define SIZE_SIG_MDF            roundup(sizeof(char) * NUM_SIG_MDF, 8)
Packit Service 501009
#define SIG_LEN_MDF             (SIZE_SIG_MDF / sizeof(char))
Packit Service 501009
#define MAX_SIZE_MDF_HEADER     (4096) /* max size of makedumpfile_header */
Packit Service 501009
#define TYPE_FLAT_HEADER        (1)    /* type of flattened format */
Packit Service 501009
#define VERSION_FLAT_HEADER     (1)    /* current version of flattened format */
Packit Service 501009
#define END_FLAG_FLAT_HEADER    (-1)
Packit Service 501009
Packit Service 501009
struct makedumpfile_header {
Packit Service 501009
	char    signature[SIG_LEN_MDF]; /* = "makedumpfile" */
Packit Service 501009
	int64_t type;
Packit Service 501009
	int64_t version;
Packit Service 501009
};
Packit Service 501009
Packit Service 501009
struct makedumpfile_data_header {
Packit Service 501009
	int64_t offset;
Packit Service 501009
	int64_t buf_size;
Packit Service 501009
};
Packit Service 501009