diff options
author | Vic Yang <victoryang@chromium.org> | 2013-09-13 17:39:36 +0800 |
---|---|---|
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | 2013-09-14 18:30:43 +0000 |
commit | b718dfc0598c324772171c1df94b68d5546893b5 (patch) | |
tree | 70fc9aac687ab84ecd1f4bc1288037f7b5396314 /include/uart.h | |
parent | 573e695a69ffd8e1bfc5d8507ebc3dfc3e2647ff (diff) | |
download | chrome-ec-b718dfc0598c324772171c1df94b68d5546893b5.tar.gz |
Add hook statistics
If CONFIG_HOOK_DEBUG is defined, the maximum run time of each hook is
recorded. Also, record the delayed amount of time of HOOK_TICK and
HOOK_SECOND firing. The statistics are available through console command
'hookstats'.
Also fix a bug that CC_HOOK is used but not defined when
CONFIG_HOOK_DEBUG is defined.
BUG=chrome-os-partner:21801
TEST=Build with HOOK_DEBUG and check 'hookstats'
BRANCH=None
Change-Id: I3acba3abdd487cf20d9a532429f766cdddea2e93
Signed-off-by: Vic Yang <victoryang@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/169274
Diffstat (limited to 'include/uart.h')
0 files changed, 0 insertions, 0 deletions