summaryrefslogtreecommitdiffstats
path: root/kernel/trace
diff options
context:
space:
mode:
authorCraig Gallek <kraig@google.com>2016-09-13 12:14:51 -0400
committerThomas Gleixner <tglx@linutronix.de>2016-09-14 15:28:15 +0200
commitecb3f394c5dba897d215a5422f1b363e93e2ce4e (patch)
treee6807b6c7eddf7b7579e01fb0edcd0c0a87c1dca /kernel/trace
parent00b992deaa08495ab958da5950c9ebbba27d0ddc (diff)
downloadblackbird-op-linux-ecb3f394c5dba897d215a5422f1b363e93e2ce4e.tar.gz
blackbird-op-linux-ecb3f394c5dba897d215a5422f1b363e93e2ce4e.zip
genirq: Expose interrupt information through sysfs
Information about interrupts is exposed via /proc/interrupts, but the format of that file has changed over kernel versions and differs across architectures. It also has varying column numbers depending on hardware. That all makes it hard for tools to parse. To solve this, expose the information through sysfs so each irq attribute is in a separate file in a consistent, machine parsable way. This feature is only available when both CONFIG_SPARSE_IRQ and CONFIG_SYSFS are enabled. Examples: /sys/kernel/irq/18/actions: i801_smbus,ehci_hcd:usb1,uhci_hcd:usb7 /sys/kernel/irq/18/chip_name: IR-IO-APIC /sys/kernel/irq/18/hwirq: 18 /sys/kernel/irq/18/name: fasteoi /sys/kernel/irq/18/per_cpu_count: 0,0 /sys/kernel/irq/18/type: level /sys/kernel/irq/25/actions: ahci0 /sys/kernel/irq/25/chip_name: IR-PCI-MSI /sys/kernel/irq/25/hwirq: 512000 /sys/kernel/irq/25/name: edge /sys/kernel/irq/25/per_cpu_count: 29036,0 /sys/kernel/irq/25/type: edge [ tglx: Moved kobject_del() under sparse_irq_lock, massaged code comments and changelog ] Signed-off-by: Craig Gallek <kraig@google.com> Cc: David Decotigny <decot@google.com> Link: http://lkml.kernel.org/r/1473783291-122873-1-git-send-email-kraigatgoog@gmail.com Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'kernel/trace')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud