]> 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)
committerOliver Wendt <ow@karo-electronics.de>
Mon, 30 Sep 2013 12:12:11 +0000 (14:12 +0200)
commitfadd9a0cf456554b57db48db618fe68f74469353
treeb01347dbbef0eb1470986c159ffd03d4bd261d89
parent2e11a2660d85f8ce5bb249b8d47114f82fc97cd4
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