aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/common
diff options
context:
space:
mode:
authorRebecca Schultz Zavin <rebecca@android.com>2010-10-22 15:55:17 -0700
committerColin Cross <ccross@android.com>2011-06-14 09:09:38 -0700
commitb824eef4ce617311a08c910e278546b435b50a13 (patch)
treeb7f2819ad0494c02e718a18498df6fdf329aa88e /arch/arm/common
parentd6f5a84e5f38d92147cb74605fcd308ef5dbb2a8 (diff)
downloadkernel_samsung_crespo-b824eef4ce617311a08c910e278546b435b50a13.zip
kernel_samsung_crespo-b824eef4ce617311a08c910e278546b435b50a13.tar.gz
kernel_samsung_crespo-b824eef4ce617311a08c910e278546b435b50a13.tar.bz2
[ARM] fiq_debugger: Print local timer irqs count
Prints the number of local timer irqs on each cpu when the irqs command is executed. Change-Id: Ic70fa9f528d98996fabb2d0cc80e937c5b239c1a Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
Diffstat (limited to 'arch/arm/common')
-rw-r--r--arch/arm/common/fiq_debugger.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/arch/arm/common/fiq_debugger.c b/arch/arm/common/fiq_debugger.c
index 3300538..6b7ce43 100644
--- a/arch/arm/common/fiq_debugger.c
+++ b/arch/arm/common/fiq_debugger.c
@@ -87,6 +87,7 @@ struct fiq_debugger_state {
#endif
unsigned int last_irqs[NR_IRQS];
+ unsigned int last_local_timer_irqs[NR_CPUS];
};
#ifdef CONFIG_FIQ_DEBUGGER_NO_SLEEP
@@ -323,6 +324,8 @@ static void dump_allregs(struct fiq_debugger_state *state, unsigned *regs)
static void dump_irqs(struct fiq_debugger_state *state)
{
int n;
+ unsigned int cpu;
+
debug_printf(state, "irqnr total since-last status name\n");
for (n = 0; n < NR_IRQS; n++) {
struct irqaction *act = irq_desc[n].action;
@@ -335,6 +338,16 @@ static void dump_irqs(struct fiq_debugger_state *state)
(act && act->name) ? act->name : "???");
state->last_irqs[n] = kstat_irqs(n);
}
+
+ for (cpu = 0; cpu < NR_CPUS; cpu++) {
+
+ debug_printf(state, "LOC %d: %10u %11u\n", cpu,
+ __IRQ_STAT(cpu, local_timer_irqs),
+ __IRQ_STAT(cpu, local_timer_irqs) -
+ state->last_local_timer_irqs[cpu]);
+ state->last_local_timer_irqs[cpu] =
+ __IRQ_STAT(cpu, local_timer_irqs);
+ }
}
struct stacktrace_state {