Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions | Variables
zcore.c File Reference
#include <linux/init.h>
#include <linux/slab.h>
#include <linux/miscdevice.h>
#include <linux/debugfs.h>
#include <linux/module.h>
#include <asm/asm-offsets.h>
#include <asm/ipl.h>
#include <asm/sclp.h>
#include <asm/setup.h>
#include <asm/uaccess.h>
#include <asm/debug.h>
#include <asm/processor.h>
#include <asm/irqflags.h>
#include <asm/checksum.h>
#include "sclp.h"

Go to the source code of this file.

Data Structures

struct  sys_info
 
struct  ipib_info
 
struct  zcore_header
 

Macros

#define KMSG_COMPONENT   "zdump"
 
#define pr_fmt(fmt)   KMSG_COMPONENT ": " fmt
 
#define TRACE(x...)   debug_sprintf_event(zcore_dbf, 1, x)
 
#define TO_USER   0
 
#define TO_KERNEL   1
 
#define CHUNK_INFO_SIZE   34 /* 2 16-byte char, each followed by blank */
 
#define DUMP_VERSION   0x5
 
#define DUMP_MAGIC   0xa8190173618f23fdULL
 
#define DUMP_ARCH_S390X   2
 
#define DUMP_ARCH_S390   1
 
#define HEADER_SIZE   4096
 

Enumerations

enum  arch_id { ARCH_S390 = 0, ARCH_S390X = 1 }
 

Functions

struct ipib_info __attribute__ ((packed))
 
struct zcore_header __attribute__ ((packed, __aligned__(16)))
 
 MODULE_AUTHOR ("Copyright IBM Corp. 2003,2008")
 
 MODULE_DESCRIPTION ("zcore module for zfcpdump support")
 
 MODULE_LICENSE ("GPL")
 
 subsys_initcall (zcore_init)
 
 module_exit (zcore_exit)
 

Variables

unsigned long ipib
 
u32 checksum
 
u64 magic
 
u32 version
 
u32 header_size
 
u32 dump_level
 
u32 page_size
 
u64 mem_size
 
u64 mem_start
 
u64 mem_end
 
u32 num_pages
 
u32 pad1
 
u64 tod
 
struct cpuid cpu_id
 
u32 arch_id
 
u32 volnr
 
u32 build_arch
 
u64 rmem_size
 
u8 mvdump
 
u16 cpu_cnt
 
u16 real_cpu_cnt
 
u8 end_pad1 [0x200-0x061]
 
u64 mvdump_sign
 
u64 mvdump_zipl_time
 
u8 end_pad2 [0x800-0x210]
 
u32 lc_vec [512]
 

Macro Definition Documentation

#define CHUNK_INFO_SIZE   34 /* 2 16-byte char, each followed by blank */

Definition at line 35 of file zcore.c.

#define DUMP_ARCH_S390   1

Definition at line 168 of file zcore.c.

#define DUMP_ARCH_S390X   2

Definition at line 167 of file zcore.c.

#define DUMP_MAGIC   0xa8190173618f23fdULL

Definition at line 166 of file zcore.c.

#define DUMP_VERSION   0x5

Definition at line 165 of file zcore.c.

#define HEADER_SIZE   4096

Definition at line 169 of file zcore.c.

#define KMSG_COMPONENT   "zdump"

Definition at line 12 of file zcore.c.

#define pr_fmt (   fmt)    KMSG_COMPONENT ": " fmt

Definition at line 13 of file zcore.c.

#define TO_KERNEL   1

Definition at line 34 of file zcore.c.

#define TO_USER   0

Definition at line 33 of file zcore.c.

#define TRACE (   x...)    debug_sprintf_event(zcore_dbf, 1, x)

Definition at line 31 of file zcore.c.

Enumeration Type Documentation

enum arch_id
Enumerator:
ARCH_S390 
ARCH_S390X 

Definition at line 37 of file zcore.c.

Function Documentation

struct ipib_info __attribute__ ( (packed)  )
read

Definition at line 171 of file esd_usb2.c.

struct zcore_header __attribute__ ( (packed, __aligned__(16))  )
MODULE_AUTHOR ( "Copyright IBM Corp.  2003,
2008"   
)
MODULE_DESCRIPTION ( "zcore module for zfcpdump support )
module_exit ( zcore_exit  )
MODULE_LICENSE ( "GPL"  )
subsys_initcall ( zcore_init  )

Variable Documentation

Definition at line 211 of file zcore.c.

u32 build_arch

Definition at line 213 of file zcore.c.

u32 checksum

Definition at line 58 of file zcore.c.

u16 cpu_cnt

Definition at line 216 of file zcore.c.

Definition at line 210 of file zcore.c.

u32 dump_level

Definition at line 202 of file zcore.c.

u8 end_pad1[0x200-0x061]

Definition at line 218 of file zcore.c.

u8 end_pad2[0x800-0x210]

Definition at line 221 of file zcore.c.

u32 header_size

Definition at line 201 of file zcore.c.

unsigned long ipib

Definition at line 57 of file zcore.c.

u32 lc_vec[512]

Definition at line 222 of file zcore.c.

u64 magic

Definition at line 199 of file zcore.c.

u64 mem_end

Definition at line 206 of file zcore.c.

u64 mem_size

Definition at line 204 of file zcore.c.

u64 mem_start

Definition at line 205 of file zcore.c.

u8 mvdump

Definition at line 215 of file zcore.c.

u64 mvdump_sign

Definition at line 219 of file zcore.c.

u64 mvdump_zipl_time

Definition at line 220 of file zcore.c.

u32 num_pages

Definition at line 207 of file zcore.c.

u32 pad1

Definition at line 208 of file zcore.c.

u32 page_size

Definition at line 203 of file zcore.c.

u16 real_cpu_cnt

Definition at line 217 of file zcore.c.

u64 rmem_size

Definition at line 214 of file zcore.c.

u64 tod

Definition at line 209 of file zcore.c.

u32 version

Definition at line 200 of file zcore.c.

u32 volnr

Definition at line 212 of file zcore.c.