diff options
author | 2025-05-22 18:21:11 -0500 | |
---|---|---|
committer | 2025-05-23 11:00:27 -0500 | |
commit | f40bd2865501437bf5dfc7167be7b5c8f536b323 (patch) | |
tree | 2bd76bb2f6f76aa78393813f55e35dc989a55c0d /tools/perf/scripts/python/export-to-postgresql.py | |
parent | PCI/AER: Consolidate Error Source ID logging in aer_isr_one_error_type() (diff) | |
download | wireguard-linux-f40bd2865501437bf5dfc7167be7b5c8f536b323.tar.xz wireguard-linux-f40bd2865501437bf5dfc7167be7b5c8f536b323.zip |
PCI/AER: Extract bus/dev/fn in aer_print_port_info() with PCI_BUS_NUM(), etc
Use PCI_BUS_NUM(), PCI_SLOT(), PCI_FUNC() to extract the bus number,
device, and function number directly from the Error Source ID. There's no
need to shift and mask it explicitly.
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Tested-by: Krzysztof Wilczyński <kwilczynski@kernel.org>
Reviewed-by: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Link: https://patch.msgid.link/20250522232339.1525671-6-helgaas@kernel.org
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions