1 Star 0 Fork 0

mirror_repo/crash

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
makedumpfile.h 1.61 KB
一键复制 编辑 原始数据 按行查看 历史
Dave Anderson 提交于 2014-01-29 05:46 +08:00 . Initial commit: crash-7.0.4
/*
* makedumpfile.h
*
* This code is for reading a dumpfile ganarated by makedumpfile command.
*
* Copyright (C) 2011 NEC Soft, Ltd.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* Author: Ken'ichi Ohmichi <oomichi mxs nes nec co jp>
*/
/*
* makedumpfile header
* For re-arranging the dump data on different architecture, all the
* variables are defined by 64bits. The size of signature is aligned
* to 64bits, and change the values to big endian.
*/
#define MAKEDUMPFILE_SIGNATURE "makedumpfile"
#define NUM_SIG_MDF (sizeof(MAKEDUMPFILE_SIGNATURE) - 1)
#define SIZE_SIG_MDF roundup(sizeof(char) * NUM_SIG_MDF, 8)
#define SIG_LEN_MDF (SIZE_SIG_MDF / sizeof(char))
#define MAX_SIZE_MDF_HEADER (4096) /* max size of makedumpfile_header */
#define TYPE_FLAT_HEADER (1) /* type of flattened format */
#define VERSION_FLAT_HEADER (1) /* current version of flattened format */
#define END_FLAG_FLAT_HEADER (-1)
struct makedumpfile_header {
char signature[SIG_LEN_MDF]; /* = "makedumpfile" */
int64_t type;
int64_t version;
};
struct makedumpfile_data_header {
int64_t offset;
int64_t buf_size;
};
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirror_repo/crash.git
git@gitee.com:mirror_repo/crash.git
mirror_repo
crash
crash
master

搜索帮助