]> git.baikalelectronics.ru Git - kernel.git/commit
PCI/AER: Define aer_stats structure for AER capable devices
authorRajat Jain <rajatja@google.com>
Sat, 30 Jun 2018 20:07:17 +0000 (15:07 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 19 Jul 2018 21:17:03 +0000 (16:17 -0500)
commit1b2033bb8ad8fd09312b85bffbfcc3ca17728c90
treeb64d2f860d9c3b47eb9abf529c6c5424a074ff1a
parentda1d8ddfea2f0870584b1ebbe40393184d1db404
PCI/AER: Define aer_stats structure for AER capable devices

Define a structure to hold the AER statistics.  There are 2 groups of
statistics: dev_* counters that are to be collected for all AER capable
devices and rootport_* counters that are collected for all (AER capable)
rootports only.  Allocate and free this structure when device is added or
released (thus counters survive the lifetime of the device).

Signed-off-by: Rajat Jain <rajatja@google.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/pci.h
drivers/pci/pcie/aer.c
drivers/pci/probe.c
include/linux/pci.h