diff options
author | Stefan Roese <sr@denx.de> | 2022-09-02 13:57:51 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2022-09-13 16:01:44 -0400 |
commit | 1f865ee0baa3009bda3d9dd7808d0473424fae11 (patch) | |
tree | f16a40b52e95ae7d138e923b48421dc907189cee /MAINTAINERS | |
parent | 70545642a0fdc5d7eb1664174dbd4d06a1a62e81 (diff) | |
download | u-boot-1f865ee0baa3009bda3d9dd7808d0473424fae11.zip u-boot-1f865ee0baa3009bda3d9dd7808d0473424fae11.tar.gz u-boot-1f865ee0baa3009bda3d9dd7808d0473424fae11.tar.bz2 |
cyclic: Add 'cyclic list' and 'cyclic demo' commands
This patch adds the cyclic command, which currently only supports the
'list' subcommand, to list all currently registered cyclic functions.
Here an example:
=> cyclic list
function: cyclic_demo, cpu-time: 7010 us, frequency: 99.80 times/s
function: cyclic_demo2, cpu-time: 1 us, frequency: 1.13 times/s
As you can see, the cpu-time is accounted, so that cyclic functions
that take too long might be discovered. Additionally the frequency is
logged.
The 'cyclic demo' commands registers the cyclic_demo() function to
be executed all 'cycletime_ms' milliseconds. The only thing this
function does is delaying by 'delay_us' microseconds.
Signed-off-by: Stefan Roese <sr@denx.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'MAINTAINERS')
-rw-r--r-- | MAINTAINERS | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/MAINTAINERS b/MAINTAINERS index 4af527e..25a11a0 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -798,6 +798,7 @@ F: doc/arch/m68k.rst CYCLIC M: Stefan Roese <sr@denx.de> S: Maintained +F: cmd/cyclic.c F: common/cyclic.c F: include/cyclic.h |