aerdrv: Trace Event for PCI Express Advanced Error Reporting
authorLance Ortiz <lance.ortiz@hp.com>
Thu, 3 Jan 2013 22:34:01 +0000 (15:34 -0700)
committerTony Luck <tony.luck@intel.com>
Thu, 3 Jan 2013 22:31:44 +0000 (14:31 -0800)
commit1ca1d8d54f925ad0eb6d9806ecd4309738f25301
tree6da893ddc4487da134c5018a8406359cea19294a
parentd1c3ed669a2d452cacfb48c2d171a1f364dae2ed
aerdrv: Trace Event for PCI Express Advanced Error Reporting

This header file will define a new trace event that will be triggered when
a AER event occurs.  The following data will be provided to the trace
event.

char * dev_name - The name of the slot where the device resides
                  ([domain:]bus:device.function).

u32 status - Either the correctable or uncorrectable register
             indicating what error or errors have been see.

u8 severity - error severity 0:NONFATAL 1:FATAL 2:CORRECTED

The trace event will also provide a trace string that may look like:

"0000:05:00.0 PCIe Bus Error:severity=Uncorrected (Non-Fatal), Poisoned
TLP"

Signed-off-by: Lance Ortiz <lance.ortiz@hp.com>
Acked-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Acked-by: Boris Petkov <bp@alien8.de>
Signed-off-by: Tony Luck <tony.luck@intel.com>
include/trace/events/ras.h [new file with mode: 0644]