summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTony Lin <tony.lin@freescale.com>2011-01-11 18:01:03 +0800
committerAlan Tull <alan.tull@freescale.com>2011-02-03 16:43:57 -0600
commitc8d1b563e333b50938c3a904f45cfc1100e69a37 (patch)
treee0049198e6f1849e8c218b693db1a48d0e5fccd1 /include
parentc8d17a24a501c578d24fd3fcdf071f0fa4b6aee9 (diff)
ENGR00137979-3 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>
Diffstat (limited to 'include')
-rw-r--r--include/linux/fsl_devices.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/linux/fsl_devices.h b/include/linux/fsl_devices.h
index 91d4d427d727..0e6e744f828c 100644
--- a/include/linux/fsl_devices.h
+++ b/include/linux/fsl_devices.h
@@ -630,4 +630,15 @@ int fsl_deep_sleep(void);
static inline int fsl_deep_sleep(void) { return 0; }
#endif
+struct mxs_perfmon_bit_config {
+ int reg;
+ int field;
+ const char *name;
+};
+
+struct mxs_platform_perfmon_data {
+ struct mxs_perfmon_bit_config *bit_config_tab;
+ int bit_config_cnt;
+};
+
#endif /* _FSL_DEVICE_H_ */