summaryrefslogtreecommitdiff
path: root/doc/usage
diff options
context:
space:
mode:
authorStefan Roese <[email protected]>2022-09-02 13:57:53 +0200
committerTom Rini <[email protected]>2022-09-13 16:01:44 -0400
commit00275f5ead89dcbed583da2a698b7ba2c6384d0d (patch)
treeda5befb3e8b8c5fcfacd4854c36ae73c8912b998 /doc/usage
parent5ee0fa722c300d443b82d214a67583b36ae40909 (diff)
cyclic: Add documentation
Add documentation for the cyclic function infrastructure, including the cyclic command. Signed-off-by: Stefan Roese <[email protected]> Reviewed-by: Simon Glass <[email protected]>
Diffstat (limited to 'doc/usage')
-rw-r--r--doc/usage/cmd/cyclic.rst45
-rw-r--r--doc/usage/index.rst1
2 files changed, 46 insertions, 0 deletions
diff --git a/doc/usage/cmd/cyclic.rst b/doc/usage/cmd/cyclic.rst
new file mode 100644
index 00000000000..3085cc7204c
--- /dev/null
+++ b/doc/usage/cmd/cyclic.rst
@@ -0,0 +1,45 @@
+.. SPDX-License-Identifier: GPL-2.0+
+
+cyclic command
+==============
+
+Synopsis
+--------
+
+::
+
+ cyclic list
+
+Description
+-----------
+
+The cyclic list command provides a list of the currently registered
+cyclic functions.
+
+This shows the following information:
+
+Function
+ Function name
+
+cpu-time
+ Total time spent in this cyclic function.
+
+Frequency
+ Frequency of execution of this function, e.g. 100 times/s for a
+ pediod of 10ms.
+
+
+See :doc:`../../develop/cyclic` for more information on cyclic functions.
+
+Example
+-------
+
+::
+
+ => cyclic list
+ function: cyclic_demo, cpu-time: 52906 us, frequency: 99.20 times/s
+
+Configuration
+-------------
+
+The cyclic command is only available if CONFIG_CMD_CYCLIC=y.
diff --git a/doc/usage/index.rst b/doc/usage/index.rst
index 5170fa8b4a5..10313f83dd6 100644
--- a/doc/usage/index.rst
+++ b/doc/usage/index.rst
@@ -33,6 +33,7 @@ Shell commands
cmd/bootz
cmd/cbsysinfo
cmd/conitrace
+ cmd/cyclic
cmd/dm
cmd/echo
cmd/env