diff options
| author | David Matlack <dmatlack@google.com> | 2026-06-26 14:35:21 -0700 |
|---|---|---|
| committer | Sean Christopherson <seanjc@google.com> | 2026-07-07 11:24:44 -0700 |
| commit | 362cc00162499413d720fd1c9dfcf1fbba762e9b (patch) | |
| tree | 8bf660ac9c46c83d77b6292d4f6355e3421f774e /tools/perf/scripts/python/bin/stackcollapse-record | |
| parent | 3ceab37ac973a27a15e72af88d30d7a820b380f4 (diff) | |
KVM: selftests: Add helper to get host IRQ from device MSI-X for IRQ bypass test
Introduce proc_util.c and proc_util.h to house utility functions for
interacting with the proc filesystem.
Add vfio_msix_to_host_irq(), which parses /proc/interrupts, to get the host
Linux IRQ for a given VFIO device BDF and MSI-X vector.
This helper will be used by the eventfd IRQ test to print the host IRQ
number when triggering IRQs via VFIO device, e.g. to aid in debugging if
the test fails.
Suggested-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: David Matlack <dmatlack@google.com>
Co-developed-by: Josh Hilke <jrhilke@google.com>
Signed-off-by: Josh Hilke <jrhilke@google.com>
[sean: massage changelog]
Link: https://patch.msgid.link/20260626213534.3866178-9-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions
