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/console.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/console.h')
-rw-r--r-- | include/console.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/console.h b/include/console.h index 827517eee8..623d5a5551 100644 --- a/include/console.h +++ b/include/console.h @@ -48,6 +48,7 @@ enum console_channel { CC_THERMAL, CC_USBCHARGE, CC_VBOOT, + CC_HOOK, /* Channel count; not itself a channel */ CC_CHANNEL_COUNT }; |