KSAPI: Performance monitoring tool for Snapdragon linux

KSAPI records performance statistics for Snapdragon linux platform.
It uses the /proc FS as a means to exchange configuration data and counter
statistics. It can monitor the counter statistics for Scorpion processor
supported hardware performance counters on a per thread basis or AXI
counters on an overall system basis.

Change-Id: Iaaf51db68dbd6d5a55fe34328d041bde5015230d
Signed-off-by: Sheetal Sahasrabudhe <sheetals@codeaurora.org>
(cherry picked from commit 4e6bb52bcee479762f283b4a44a1bdd4f1277aa2)

Conflicts:

	arch/arm/Kconfig
This commit is contained in:
Sheetal Sahasrabudhe
2010-09-15 12:50:40 -04:00
committed by Stephen Boyd
parent 8636af8f7a
commit e11d14dfd1
16 changed files with 4532 additions and 0 deletions

View File

@@ -40,6 +40,8 @@
#include <asm/mach/irq.h>
#include <asm/mach/time.h>
#include <asm/perftypes.h>
/*
* No architecture-specific irq_finish function defined in arm/arch/irqs.h.
*/
@@ -71,6 +73,7 @@ void handle_IRQ(unsigned int irq, struct pt_regs *regs)
{
struct pt_regs *old_regs = set_irq_regs(regs);
perf_mon_interrupt_in();
irq_enter();
/*
@@ -90,6 +93,7 @@ void handle_IRQ(unsigned int irq, struct pt_regs *regs)
irq_exit();
set_irq_regs(old_regs);
perf_mon_interrupt_out();
}
/*