diff options
author | Che-yu Wu <cheyuw@google.com> | 2017-07-19 15:51:40 +0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2017-08-14 05:54:35 -0700 |
commit | 1bf7abdc206a177c0b8a8d6b541cc4250a8f0026 (patch) | |
tree | 8df82e09233db620054d2a3cc8de7ceeb34febf0 /include/task_filter.h | |
parent | 041b90bcac4b03b484d6e5530e297100a7ff76f5 (diff) | |
download | chrome-ec-1bf7abdc206a177c0b8a8d6b541cc4250a8f0026.tar.gz |
ec: Add analysis tool for firmware stack usage.
Add a static analysis tool for firmware stack usage.
Add an new Makefile rule to analyze the stack usages of firmwares.
Details about the tool can be found in extra/stack_analyzer/README.md.
BUG=chromium:648840
BRANCH=none
TEST=extra/stack_analyzer/stack_analyzer_unittest.py
make BOARD=elm && make BOARD=elm build/elm/RW/ec.RW.taskinfo && \
extra/stack_analyzer/stack_analyzer.py \
--objdump=arm-none-eabi-objdump \
--addr2line=arm-none-eabi-addr2line \
./build/elm/RW/ec.RW.elf ./build/elm/RW/ec.RW.taskinfo
make BOARD=${BOARD} SECTION=${SECTION} analyzestack
Change-Id: Ifb1b5f5ad6be8f8b125b14d6ee03e25cb385895b
Signed-off-by: Che-yu Wu <cheyuw@google.com>
Reviewed-on: https://chromium-review.googlesource.com/576411
Reviewed-by: Nicolas Boichat <drinkcat@chromium.org>
Diffstat (limited to 'include/task_filter.h')
-rw-r--r-- | include/task_filter.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/task_filter.h b/include/task_filter.h index cac1baf76c..2840a01e13 100644 --- a/include/task_filter.h +++ b/include/task_filter.h @@ -46,4 +46,11 @@ CONFIG_TASK_LIST CONFIG_TEST_TASK_LIST CONFIG_CTS_TASK_LIST #endif +/* If included directly from Makefile, dump details of task list. */ +#ifdef _MAKEFILE_DUMP_INFO +#define TASK(n, r, d, s) (#n, r, s) +CONFIG_TASK_LIST CONFIG_TEST_TASK_LIST CONFIG_CTS_TASK_LIST +#endif + + #endif /* __CROS_EC_TASK_FILTER_H */ |