]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ENGR00214813 MX6DL SabreSD : Kernel, Enable ARM Perfromance Monitor
authorEric Sun <jian.sun@freescale.com>
Mon, 25 Jun 2012 11:03:46 +0000 (19:03 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 24 May 2013 06:34:52 +0000 (08:34 +0200)
commitc8338e331563d2b5d078417ac91b82c0b3a6e885
treeb01347dbbef0eb1470986c159ffd03d4bd261d89
parentdf7d65886901b6598d2e16c8249e8faad61d47ea
ENGR00214813 MX6DL SabreSD : Kernel, Enable ARM Perfromance Monitor

Register PMU resources during system bootup, so that "Perf" Command can
be used to get misc performance data of a running program

The "Perf" Exe should be built manually in
"./tools/perf" using the following command line
> make CROSS_COMPILER=... ARCH=arm CFLAGS="-static -DGElf_Nhdr=Elf32_Nhdr"
then copy the "Perf" executable to rootfs/bin

Usage :
perf            # show help content
perf list       # show all available statistics options
perf stat ls    # show all statistics of a "ls" command
perf stat -e cycles tar cvfz bin.tgz /bin
                # show "cycles" statistics of command
                #     "tar cvfz ...."

MX6 Series Chips bound all CPUs PERFMON IRQ to one, this may cause some
problems when get per-CPU statistics. Need further investigation

Signed-off-by: Eric Sun <jian.sun@freescale.com>
arch/arm/mach-mx6/board-mx6q_sabresd.c
arch/arm/mach-mx6/devices-imx6q.h
arch/arm/plat-mxc/devices/Makefile
arch/arm/plat-mxc/devices/platform-imx-pmu.c [new file with mode: 0644]
arch/arm/plat-mxc/include/mach/devices-common.h