summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKonstantin Dorfman <kdorfman@codeaurora.org>2015-02-25 16:23:50 +0200
committerSubhash Jadavani <subhashj@codeaurora.org>2016-05-31 15:26:17 -0700
commit70a7e671d5fade5b8b419a45262a880e27cc6773 (patch)
tree812af43f52613959059ce9cee0337cc6f07a043d /include
parent26f1875126f874580c8ef227547cff96185d0eb7 (diff)
mmc: sdhci-msm: Add tracepoints to enhance pm debugging
Instrument the sdhci-msm platform driver with tracepoints to aid in debugging issues and identifying latencies in the following paths: * System suspend/resume * Runtime suspend/resume Change-Id: I4fed1c2ccba7d5d7f978f161e7985c98e869d1d8 Signed-off-by: Konstantin Dorfman <kdorfman@codeaurora.org>
Diffstat (limited to 'include')
-rw-r--r--include/trace/events/mmc.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/trace/events/mmc.h b/include/trace/events/mmc.h
index 98a12711b572..30b2113ace6e 100644
--- a/include/trace/events/mmc.h
+++ b/include/trace/events/mmc.h
@@ -217,6 +217,21 @@ DEFINE_EVENT(mmc_pm_template, mmc_resume,
TP_PROTO(const char *dev_name, int err, s64 usecs),
TP_ARGS(dev_name, err, usecs));
+DEFINE_EVENT(mmc_pm_template, sdhci_msm_suspend,
+ TP_PROTO(const char *dev_name, int err, s64 usecs),
+ TP_ARGS(dev_name, err, usecs));
+
+DEFINE_EVENT(mmc_pm_template, sdhci_msm_resume,
+ TP_PROTO(const char *dev_name, int err, s64 usecs),
+ TP_ARGS(dev_name, err, usecs));
+
+DEFINE_EVENT(mmc_pm_template, sdhci_msm_runtime_suspend,
+ TP_PROTO(const char *dev_name, int err, s64 usecs),
+ TP_ARGS(dev_name, err, usecs));
+
+DEFINE_EVENT(mmc_pm_template, sdhci_msm_runtime_resume,
+ TP_PROTO(const char *dev_name, int err, s64 usecs),
+ TP_ARGS(dev_name, err, usecs));
#endif /* if !defined(_TRACE_MMC_H) || defined(TRACE_HEADER_MULTI_READ) */
/* This part must be outside protection */