[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20201205014340.148235-2-jsnitsel@redhat.com>
Date: Fri, 4 Dec 2020 18:43:37 -0700
From: Jerry Snitselaar <jsnitsel@...hat.com>
To: linux-kernel@...r.kernel.org
Cc: linux-integrity@...r.kernel.org, intel-gfx@...ts.freedesktop.org,
dri-devel@...ts.freedesktop.org, kernel test robot <lkp@...el.com>,
Thomas Gleixner <tglx@...utronix.de>,
Jarkko Sakkinen <jarkko@...nel.org>,
Jason Gunthorpe <jgg@...pe.ca>,
Peter Huewe <peterhuewe@....de>,
James Bottomley <James.Bottomley@...senPartnership.com>,
Matthew Garrett <mjg59@...gle.com>,
Hans de Goede <hdegoede@...hat.com>
Subject: [PATCH v3 1/4] irq: export kstat_irqs
To try and detect potential interrupt storms that
have been occurring with tpm_tis devices it was suggested
to use kstat_irqs() to get the number of interrupts.
Since tpm_tis can be built as a module it needs kstat_irqs
exported.
Reported-by: kernel test robot <lkp@...el.com>
Cc: Thomas Gleixner <tglx@...utronix.de>
Cc: Jarkko Sakkinen <jarkko@...nel.org>
Cc: Jason Gunthorpe <jgg@...pe.ca>
Cc: Peter Huewe <peterhuewe@....de>
Cc: James Bottomley <James.Bottomley@...senPartnership.com>
Cc: Matthew Garrett <mjg59@...gle.com>
Cc: Hans de Goede <hdegoede@...hat.com>
Signed-off-by: Jerry Snitselaar <jsnitsel@...hat.com>
---
include/linux/irqdesc.h | 1 +
kernel/irq/irqdesc.c | 1 +
2 files changed, 2 insertions(+)
diff --git a/include/linux/irqdesc.h b/include/linux/irqdesc.h
index 5745491303e0..fff88c1f1ac6 100644
--- a/include/linux/irqdesc.h
+++ b/include/linux/irqdesc.h
@@ -153,6 +153,7 @@ static inline void generic_handle_irq_desc(struct irq_desc *desc)
}
int generic_handle_irq(unsigned int irq);
+unsigned int kstat_irqs(unsigned int irq);
#ifdef CONFIG_HANDLE_DOMAIN_IRQ
/*
diff --git a/kernel/irq/irqdesc.c b/kernel/irq/irqdesc.c
index 1a7723604399..12398ef1796b 100644
--- a/kernel/irq/irqdesc.c
+++ b/kernel/irq/irqdesc.c
@@ -1000,6 +1000,7 @@ unsigned int kstat_irqs(unsigned int irq)
sum += *per_cpu_ptr(desc->kstat_irqs, cpu);
return sum;
}
+EXPORT_SYMBOL_GPL(kstat_irqs);
/**
* kstat_irqs_usr - Get the statistics for an interrupt
--
2.27.0
Powered by blists - more mailing lists