aboutsummaryrefslogtreecommitdiff
path: root/include/iotrace.h
diff options
context:
space:
mode:
authorRamon Fried2018-05-30 23:09:58 +0300
committerTom Rini2018-06-07 17:08:06 -0400
commita74440b27b3f12d2cce54d7910953af19f1ac051 (patch)
tree3ba514ce64e860097787783dcc52410705e97cf6 /include/iotrace.h
parentb559c4af803fe22bef09a4e879fd8605391767f3 (diff)
iotrace: add IO region limit
When dealing with a lot of IO regions, sometimes it makes sense only to trace a specific one. This patch adds support for region limits. If region is not set, the iotrace works the same as it was. If region is set, the iotrace only logs io operation that falls in the defined region. Signed-off-by: Ramon Fried <ramon.fried@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/iotrace.h')
-rw-r--r--include/iotrace.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/include/iotrace.h b/include/iotrace.h
index 9fe5733f877..1efb117343a 100644
--- a/include/iotrace.h
+++ b/include/iotrace.h
@@ -59,6 +59,30 @@ void iotrace_reset_checksum(void);
u32 iotrace_get_checksum(void);
/**
+ * iotrace_set_region() - Set whether iotrace is limited to a specific
+ * io region.
+ *
+ * Defines the address and size of the limited region.
+ *
+ * @start: address of the beginning of the region
+ * @size: size of the region in bytes.
+ */
+void iotrace_set_region(ulong start, ulong size);
+
+/**
+ * iotrace_reset_region() - Reset the region limit
+ */
+void iotrace_reset_region(void);
+
+/**
+ * iotrace_get_region() - Get region information
+ *
+ * @start: Returns start address of region
+ * @size: Returns size of region in bytes
+ */
+void iotrace_get_region(ulong *start, ulong *size);
+
+/**
* iotrace_set_enabled() - Set whether iotracing is enabled or not
*
* This controls whether the checksum is updated and a trace record added