]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ENGR00137979-1 add performance monitor driver
authorTony Lin <tony.lin@freescale.com>
Tue, 11 Jan 2011 10:01:03 +0000 (18:01 +0800)
committerOliver Wendt <ow@karo-electronics.de>
Mon, 30 Sep 2013 12:08:54 +0000 (14:08 +0200)
commitb4acfcf94deca5693778ec7e443d0a34467f45a1
treec92c227abd9e37ec817302f2ebee6a774497fb9c
parent9d1169a340c4bbf034c7dc448e4f3dbe9c3393ff
ENGR00137979-1 add performance monitor driver

add performance monitor driver.
sample:
cd /sys/devices/platform/mxs-perfmon.0/
    'echo 1 > MIDn-xxx' to enable monitor this channel
n: channel number; xxx: name of channel (PXP, LCD...)
you can enable the multiple channels you want to
monitor respectively using this command.
use following command to check the channel is enabled
'cat MIDn-xxx'
1: enable; 0: disable

'echo read > Monitor' to monitor all read activities
'echo start > Monitor' to start monitoring
'echo fetch > Monitor' to get a snapshot of monitor statistics.
'cat xxx_Count' to show the statistics.
xxx: name of statistics, (Data, Transfer, Latency...)

'echo clear > Monitor' to clear snapshot of monitor statistics.
'echo stop > Monitor' to stop monitoring

Signed-off-by: Tony Lin <tony.lin@freescale.com>
drivers/misc/Kconfig
drivers/misc/Makefile
drivers/misc/mxs-perfmon.c [new file with mode: 0644]
drivers/misc/regs-perfmon.h [new file with mode: 0644]