diff options
author | Thomas Gleixner <[email protected]> | 2021-12-06 23:51:50 +0100 |
---|---|---|
committer | Thomas Gleixner <[email protected]> | 2021-12-16 22:22:20 +0100 |
commit | bf5e758f02fc739589dcc6a3395c3a3eb77b5c90 (patch) | |
tree | 5829e365ed469cf59d515539dd336a866124fc65 /tools/perf/scripts/python/syscall-counts-by-pid.py | |
parent | ef3350c53d2aac65cf1c4ecc968bbb1de5f421ea (diff) |
genirq/msi: Simplify sysfs handling
The sysfs handling for MSI is a convoluted maze and it is in the way of
supporting dynamic expansion of the MSI-X vectors because it only supports
a one off bulk population/free of the sysfs entries.
Change it to do:
1) Creating an empty sysfs attribute group when msi_device_data is
allocated
2) Populate the entries when the MSI descriptor is initialized
3) Free the entries when a MSI descriptor is detached from a Linux
interrupt.
4) Provide functions for the legacy non-irqdomain fallback code to
do a bulk population/free. This code won't support dynamic
expansion.
This makes the code simpler and reduces the number of allocations as the
empty attribute group can be shared.
Signed-off-by: Thomas Gleixner <[email protected]>
Tested-by: Michael Kelley <[email protected]>
Tested-by: Nishanth Menon <[email protected]>
Reviewed-by: Greg Kroah-Hartman <[email protected]>
Reviewed-by: Jason Gunthorpe <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions