File: netdump.h

package info (click to toggle)
crash 3.10-11-3
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 19,768 kB
  • ctags: 8,466
  • sloc: ansic: 85,196; makefile: 23,212; sh: 20
file content (27 lines) | stat: -rw-r--r-- 872 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/* netdump.h
 *
 * Copyright (C) 2002, 2003, 2004 David Anderson
 * Copyright (C) 2002, 2003, 2004 Red Hat, Inc. All rights reserved.
 *
 * This software may be freely redistributed under the terms of the
 * GNU General Public License.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 *
 * Author: David Anderson
 *
 * CVS: $Revision: 1.5 $ $Date: 2004/01/28 17:10:25 $
 */

#include <elf.h>

#define NETDUMP_ELF32_HEADER_SIZE \
        sizeof(Elf32_Ehdr)+sizeof(Elf32_Phdr)+sizeof(Elf32_Phdr)
#define NETDUMP_ELF64_HEADER_SIZE \
        sizeof(Elf64_Ehdr)+sizeof(Elf64_Phdr)+sizeof(Elf64_Phdr)
#define MAX_NETDUMP_ELF_HEADER_SIZE \
        MAX(NETDUMP_ELF32_HEADER_SIZE, NETDUMP_ELF64_HEADER_SIZE)

#define NT_TASKSTRUCT 4