summaryrefslogtreecommitdiff
path: root/include/trace
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2011-11-30 14:27:08 +0000
committerLokesh Pathak <lpathak@nvidia.com>2012-03-05 07:55:14 -0800
commit65a11acf350177394a96e21919c6fef2551a2cc3 (patch)
treee17a26506b18cc432ebc8290191b52b714cd0561 /include/trace
parent818abf71538cf2e880a5be127f3f852b3d291a15 (diff)
regmap: Add trace event for successful cache reads
Currently we only trace physical reads, there's no instrumentation if the read is satisfied from cache. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> (cherry picked from commit bc7ee55633867909bb05e71f957a4d3c1aa1b488) Change-Id: Ibbd7caff4e97b8a511f1d36b98bfdaa706ff8af4 Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-on: http://git-master/r/87572
Diffstat (limited to 'include/trace')
-rw-r--r--include/trace/events/regmap.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/trace/events/regmap.h b/include/trace/events/regmap.h
index 1e3193b8fcc8..12fbf43524e9 100644
--- a/include/trace/events/regmap.h
+++ b/include/trace/events/regmap.h
@@ -55,6 +55,15 @@ DEFINE_EVENT(regmap_reg, regmap_reg_read,
);
+DEFINE_EVENT(regmap_reg, regmap_reg_read_cache,
+
+ TP_PROTO(struct device *dev, unsigned int reg,
+ unsigned int val),
+
+ TP_ARGS(dev, reg, val)
+
+);
+
DECLARE_EVENT_CLASS(regmap_block,
TP_PROTO(struct device *dev, unsigned int reg, int count),