Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
cper.h File Reference
#include <linux/uuid.h>

Go to the source code of this file.

Data Structures

struct  cper_record_header
 
struct  cper_section_descriptor
 
struct  cper_sec_proc_generic
 
struct  cper_sec_proc_ia
 
struct  cper_ia_err_info
 
struct  cper_ia_proc_ctx
 
struct  cper_sec_mem_err
 
struct  cper_sec_pcie
 

Macros

#define CPER_SIG_RECORD   "CPER"
 
#define CPER_SIG_SIZE   4
 
#define CPER_SIG_END   0xffffffff
 
#define CPER_RECORD_REV   0x0100
 
#define CPER_VALID_PLATFORM_ID   0x0001
 
#define CPER_VALID_TIMESTAMP   0x0002
 
#define CPER_VALID_PARTITION_ID   0x0004
 
#define CPER_NOTIFY_CMC
 
#define CPER_NOTIFY_CPE
 
#define CPER_NOTIFY_MCE
 
#define CPER_NOTIFY_PCIE
 
#define CPER_NOTIFY_INIT
 
#define CPER_NOTIFY_NMI
 
#define CPER_NOTIFY_BOOT
 
#define CPER_NOTIFY_DMAR
 
#define CPER_HW_ERROR_FLAGS_RECOVERED   0x1
 
#define CPER_HW_ERROR_FLAGS_PREVERR   0x2
 
#define CPER_HW_ERROR_FLAGS_SIMULATED   0x4
 
#define CPER_SEC_REV   0x0100
 
#define CPER_SEC_VALID_FRU_ID   0x1
 
#define CPER_SEC_VALID_FRU_TEXT   0x2
 
#define CPER_SEC_PRIMARY   0x0001
 
#define CPER_SEC_CONTAINMENT_WARNING   0x0002
 
#define CPER_SEC_RESET   0x0004
 
#define CPER_SEC_ERROR_THRESHOLD_EXCEEDED   0x0008
 
#define CPER_SEC_RESOURCE_NOT_ACCESSIBLE   0x0010
 
#define CPER_SEC_LATENT_ERROR   0x0020
 
#define CPER_SEC_PROC_GENERIC
 
#define CPER_SEC_PROC_IA
 
#define CPER_SEC_PROC_IPF
 
#define CPER_SEC_PLATFORM_MEM
 
#define CPER_SEC_PCIE
 
#define CPER_SEC_FW_ERR_REC_REF
 
#define CPER_SEC_PCI_X_BUS
 
#define CPER_SEC_PCI_DEV
 
#define CPER_SEC_DMAR_GENERIC
 
#define CPER_SEC_DMAR_VT
 
#define CPER_SEC_DMAR_IOMMU
 
#define CPER_PROC_VALID_TYPE   0x0001
 
#define CPER_PROC_VALID_ISA   0x0002
 
#define CPER_PROC_VALID_ERROR_TYPE   0x0004
 
#define CPER_PROC_VALID_OPERATION   0x0008
 
#define CPER_PROC_VALID_FLAGS   0x0010
 
#define CPER_PROC_VALID_LEVEL   0x0020
 
#define CPER_PROC_VALID_VERSION   0x0040
 
#define CPER_PROC_VALID_BRAND_INFO   0x0080
 
#define CPER_PROC_VALID_ID   0x0100
 
#define CPER_PROC_VALID_TARGET_ADDRESS   0x0200
 
#define CPER_PROC_VALID_REQUESTOR_ID   0x0400
 
#define CPER_PROC_VALID_RESPONDER_ID   0x0800
 
#define CPER_PROC_VALID_IP   0x1000
 
#define CPER_MEM_VALID_ERROR_STATUS   0x0001
 
#define CPER_MEM_VALID_PHYSICAL_ADDRESS   0x0002
 
#define CPER_MEM_VALID_PHYSICAL_ADDRESS_MASK   0x0004
 
#define CPER_MEM_VALID_NODE   0x0008
 
#define CPER_MEM_VALID_CARD   0x0010
 
#define CPER_MEM_VALID_MODULE   0x0020
 
#define CPER_MEM_VALID_BANK   0x0040
 
#define CPER_MEM_VALID_DEVICE   0x0080
 
#define CPER_MEM_VALID_ROW   0x0100
 
#define CPER_MEM_VALID_COLUMN   0x0200
 
#define CPER_MEM_VALID_BIT_POSITION   0x0400
 
#define CPER_MEM_VALID_REQUESTOR_ID   0x0800
 
#define CPER_MEM_VALID_RESPONDER_ID   0x1000
 
#define CPER_MEM_VALID_TARGET_ID   0x2000
 
#define CPER_MEM_VALID_ERROR_TYPE   0x4000
 
#define CPER_PCIE_VALID_PORT_TYPE   0x0001
 
#define CPER_PCIE_VALID_VERSION   0x0002
 
#define CPER_PCIE_VALID_COMMAND_STATUS   0x0004
 
#define CPER_PCIE_VALID_DEVICE_ID   0x0008
 
#define CPER_PCIE_VALID_SERIAL_NUMBER   0x0010
 
#define CPER_PCIE_VALID_BRIDGE_CONTROL_STATUS   0x0020
 
#define CPER_PCIE_VALID_CAPABILITY   0x0040
 
#define CPER_PCIE_VALID_AER_INFO   0x0080
 
#define CPER_PCIE_SLOT_SHIFT   3
 

Enumerations

enum  { CPER_SEV_RECOVERABLE, CPER_SEV_FATAL, CPER_SEV_CORRECTED, CPER_SEV_INFORMATIONAL }
 

Functions

u64 cper_next_record_id (void)
 
void cper_print_bits (const char *prefix, unsigned int bits, const char *strs[], unsigned int strs_size)
 

Macro Definition Documentation

#define CPER_HW_ERROR_FLAGS_PREVERR   0x2

Definition at line 106 of file cper.h.

#define CPER_HW_ERROR_FLAGS_RECOVERED   0x1

Definition at line 104 of file cper.h.

#define CPER_HW_ERROR_FLAGS_SIMULATED   0x4

Definition at line 108 of file cper.h.

#define CPER_MEM_VALID_BANK   0x0040

Definition at line 226 of file cper.h.

#define CPER_MEM_VALID_BIT_POSITION   0x0400

Definition at line 230 of file cper.h.

#define CPER_MEM_VALID_CARD   0x0010

Definition at line 224 of file cper.h.

#define CPER_MEM_VALID_COLUMN   0x0200

Definition at line 229 of file cper.h.

#define CPER_MEM_VALID_DEVICE   0x0080

Definition at line 227 of file cper.h.

#define CPER_MEM_VALID_ERROR_STATUS   0x0001

Definition at line 220 of file cper.h.

#define CPER_MEM_VALID_ERROR_TYPE   0x4000

Definition at line 234 of file cper.h.

#define CPER_MEM_VALID_MODULE   0x0020

Definition at line 225 of file cper.h.

#define CPER_MEM_VALID_NODE   0x0008

Definition at line 223 of file cper.h.

#define CPER_MEM_VALID_PHYSICAL_ADDRESS   0x0002

Definition at line 221 of file cper.h.

#define CPER_MEM_VALID_PHYSICAL_ADDRESS_MASK   0x0004

Definition at line 222 of file cper.h.

#define CPER_MEM_VALID_REQUESTOR_ID   0x0800

Definition at line 231 of file cper.h.

#define CPER_MEM_VALID_RESPONDER_ID   0x1000

Definition at line 232 of file cper.h.

#define CPER_MEM_VALID_ROW   0x0100

Definition at line 228 of file cper.h.

#define CPER_MEM_VALID_TARGET_ID   0x2000

Definition at line 233 of file cper.h.

#define CPER_NOTIFY_BOOT
Value:
UUID_LE(0x3D61A466, 0xAB40, 0x409a, 0xA6, 0x98, 0xF3, 0x62, \
0xD4, 0x64, 0xB3, 0x8F)

Definition at line 92 of file cper.h.

#define CPER_NOTIFY_CMC
Value:
UUID_LE(0x2DCE8BB1, 0xBDD7, 0x450e, 0xB9, 0xAD, 0x9C, 0xF4, \
0xEB, 0xD4, 0xF8, 0x90)

Definition at line 68 of file cper.h.

#define CPER_NOTIFY_CPE
Value:
UUID_LE(0x4E292F96, 0xD843, 0x4a55, 0xA8, 0xC2, 0xD4, 0x81, \
0xF2, 0x7E, 0xBE, 0xEE)

Definition at line 72 of file cper.h.

#define CPER_NOTIFY_DMAR
Value:
UUID_LE(0x667DD791, 0xC6B3, 0x4c27, 0x8A, 0x6B, 0x0F, 0x8E, \
0x72, 0x2D, 0xEB, 0x41)

Definition at line 96 of file cper.h.

#define CPER_NOTIFY_INIT
Value:
UUID_LE(0xCC5263E8, 0x9308, 0x454a, 0x89, 0xD0, 0x34, 0x0B, \
0xD3, 0x9B, 0xC9, 0x8E)

Definition at line 84 of file cper.h.

#define CPER_NOTIFY_MCE
Value:
UUID_LE(0xE8F56FFE, 0x919C, 0x4cc5, 0xBA, 0x88, 0x65, 0xAB, \
0xE1, 0x49, 0x13, 0xBB)

Definition at line 76 of file cper.h.

#define CPER_NOTIFY_NMI
Value:
UUID_LE(0x5BAD89FF, 0xB7E6, 0x42c9, 0x81, 0x4A, 0xCF, 0x24, \
0x85, 0xD6, 0xE9, 0x8A)

Definition at line 88 of file cper.h.

#define CPER_NOTIFY_PCIE
Value:
UUID_LE(0xCF93C01F, 0x1A16, 0x4dfc, 0xB8, 0xBC, 0x9C, 0x4D, \
0xAF, 0x67, 0xC1, 0x04)

Definition at line 80 of file cper.h.

#define CPER_PCIE_SLOT_SHIFT   3

Definition at line 245 of file cper.h.

#define CPER_PCIE_VALID_AER_INFO   0x0080

Definition at line 243 of file cper.h.

#define CPER_PCIE_VALID_BRIDGE_CONTROL_STATUS   0x0020

Definition at line 241 of file cper.h.

#define CPER_PCIE_VALID_CAPABILITY   0x0040

Definition at line 242 of file cper.h.

#define CPER_PCIE_VALID_COMMAND_STATUS   0x0004

Definition at line 238 of file cper.h.

#define CPER_PCIE_VALID_DEVICE_ID   0x0008

Definition at line 239 of file cper.h.

#define CPER_PCIE_VALID_PORT_TYPE   0x0001

Definition at line 236 of file cper.h.

#define CPER_PCIE_VALID_SERIAL_NUMBER   0x0010

Definition at line 240 of file cper.h.

#define CPER_PCIE_VALID_VERSION   0x0002

Definition at line 237 of file cper.h.

#define CPER_PROC_VALID_BRAND_INFO   0x0080

Definition at line 213 of file cper.h.

#define CPER_PROC_VALID_ERROR_TYPE   0x0004

Definition at line 208 of file cper.h.

#define CPER_PROC_VALID_FLAGS   0x0010

Definition at line 210 of file cper.h.

#define CPER_PROC_VALID_ID   0x0100

Definition at line 214 of file cper.h.

#define CPER_PROC_VALID_IP   0x1000

Definition at line 218 of file cper.h.

#define CPER_PROC_VALID_ISA   0x0002

Definition at line 207 of file cper.h.

#define CPER_PROC_VALID_LEVEL   0x0020

Definition at line 211 of file cper.h.

#define CPER_PROC_VALID_OPERATION   0x0008

Definition at line 209 of file cper.h.

#define CPER_PROC_VALID_REQUESTOR_ID   0x0400

Definition at line 216 of file cper.h.

#define CPER_PROC_VALID_RESPONDER_ID   0x0800

Definition at line 217 of file cper.h.

#define CPER_PROC_VALID_TARGET_ADDRESS   0x0200

Definition at line 215 of file cper.h.

#define CPER_PROC_VALID_TYPE   0x0001

Definition at line 206 of file cper.h.

#define CPER_PROC_VALID_VERSION   0x0040

Definition at line 212 of file cper.h.

#define CPER_RECORD_REV   0x0100

Definition at line 36 of file cper.h.

#define CPER_SEC_CONTAINMENT_WARNING   0x0002

Definition at line 139 of file cper.h.

#define CPER_SEC_DMAR_GENERIC
Value:
UUID_LE(0x5B51FEF7, 0xC79D, 0x4434, 0x8F, 0x1B, 0xAA, 0x62, \
0xDE, 0x3E, 0x2C, 0x64)

Definition at line 194 of file cper.h.

#define CPER_SEC_DMAR_IOMMU
Value:
UUID_LE(0x036F84E1, 0x7F37, 0x428c, 0xA7, 0x9E, 0x57, 0x5F, \
0xDF, 0xAA, 0x84, 0xEC)

Definition at line 202 of file cper.h.

#define CPER_SEC_DMAR_VT
Value:
UUID_LE(0x71761D37, 0x32B2, 0x45cd, 0xA7, 0xD0, 0xB0, 0xFE, \
0xDD, 0x93, 0xE8, 0xCF)

Definition at line 198 of file cper.h.

#define CPER_SEC_ERROR_THRESHOLD_EXCEEDED   0x0008

Definition at line 143 of file cper.h.

#define CPER_SEC_FW_ERR_REC_REF
Value:
UUID_LE(0x81212A96, 0x09ED, 0x4996, 0x94, 0x71, 0x8D, 0x72, \
0x9C, 0x8E, 0x69, 0xED)

Definition at line 183 of file cper.h.

#define CPER_SEC_LATENT_ERROR   0x0020

Definition at line 156 of file cper.h.

#define CPER_SEC_PCI_DEV
Value:
UUID_LE(0xEB5E4685, 0xCA66, 0x4769, 0xB6, 0xA2, 0x26, 0x06, \
0x8B, 0x00, 0x13, 0x26)

Definition at line 191 of file cper.h.

#define CPER_SEC_PCI_X_BUS
Value:
UUID_LE(0xC5753963, 0x3B84, 0x4095, 0xBF, 0x78, 0xED, 0xDA, \
0xD3, 0xF9, 0xC9, 0xDD)

Definition at line 187 of file cper.h.

#define CPER_SEC_PCIE
Value:
UUID_LE(0xD995E954, 0xBBC1, 0x430F, 0xAD, 0x91, 0xB4, 0x4D, \
0xCB, 0x3C, 0x6F, 0x35)

Definition at line 179 of file cper.h.

#define CPER_SEC_PLATFORM_MEM
Value:
UUID_LE(0xA5BC1114, 0x6F64, 0x4EDE, 0xB8, 0x63, 0x3E, 0x83, \
0xED, 0x7C, 0x83, 0xB1)

Definition at line 176 of file cper.h.

#define CPER_SEC_PRIMARY   0x0001

Definition at line 133 of file cper.h.

#define CPER_SEC_PROC_GENERIC
Value:
UUID_LE(0x9876CCAD, 0x47B4, 0x4bdb, 0xB6, 0x5E, 0x16, 0xF1, \
0x93, 0xC4, 0xF3, 0xDB)

Definition at line 164 of file cper.h.

#define CPER_SEC_PROC_IA
Value:
UUID_LE(0xDC3EA0B0, 0xA144, 0x4797, 0xB9, 0x5B, 0x53, 0xFA, \
0x24, 0x2B, 0x6E, 0x1D)

Definition at line 168 of file cper.h.

#define CPER_SEC_PROC_IPF
Value:
UUID_LE(0xE429FAF1, 0x3CB7, 0x11D4, 0x0B, 0xCA, 0x07, 0x00, \
0x80, 0xC7, 0x3C, 0x88, 0x81)

Definition at line 172 of file cper.h.

#define CPER_SEC_RESET   0x0004

Definition at line 141 of file cper.h.

#define CPER_SEC_RESOURCE_NOT_ACCESSIBLE   0x0010

Definition at line 149 of file cper.h.

#define CPER_SEC_REV   0x0100

Definition at line 114 of file cper.h.

#define CPER_SEC_VALID_FRU_ID   0x1

Definition at line 123 of file cper.h.

#define CPER_SEC_VALID_FRU_TEXT   0x2

Definition at line 125 of file cper.h.

#define CPER_SIG_END   0xffffffff

Definition at line 30 of file cper.h.

#define CPER_SIG_RECORD   "CPER"

Definition at line 27 of file cper.h.

#define CPER_SIG_SIZE   4

Definition at line 28 of file cper.h.

#define CPER_VALID_PARTITION_ID   0x0004

Definition at line 60 of file cper.h.

#define CPER_VALID_PLATFORM_ID   0x0001

Definition at line 56 of file cper.h.

#define CPER_VALID_TIMESTAMP   0x0002

Definition at line 58 of file cper.h.

Enumeration Type Documentation

anonymous enum
Enumerator:
CPER_SEV_RECOVERABLE 
CPER_SEV_FATAL 
CPER_SEV_CORRECTED 
CPER_SEV_INFORMATIONAL 

Definition at line 42 of file cper.h.

Function Documentation

u64 cper_next_record_id ( void  )

Definition at line 39 of file cper.c.

void cper_print_bits ( const char prefix,
unsigned int  bits,
const char strs[],
unsigned int  strs_size 
)

Definition at line 74 of file cper.c.