summaryrefslogtreecommitdiff
path: root/Makefile.rules
diff options
context:
space:
mode:
authorChe-yu Wu <cheyuw@google.com>2017-08-09 12:33:40 +0800
committerchrome-bot <chrome-bot@chromium.org>2017-08-21 23:48:14 -0700
commitef09835e1941a2388e15b410791bed6ff5d84339 (patch)
treee7612a3e629469cd4521f17706af6923fe1b3ac8 /Makefile.rules
parent20c3de1c36bf44822834ff0daa308499aa466b5c (diff)
downloadchrome-ec-ef09835e1941a2388e15b410791bed6ff5d84339.tar.gz
ec: Add annotation feature to the stack analyzer.
Get stack analyzer supported to read annotation file and do basic annotation on the callgraph. The basic annotation includes: 1. Add missing calls to the callgraph 2. Ignore functions on the callgraph BUG=chromium:648840 BRANCH=none TEST=extra/stack_analyzer/stack_analyzer_unittest.py make BOARD=elm && extra/stack_analyzer/stack_analyzer.py \ --objdump=arm-none-eabi-objdump \ --addr2line=arm-none-eabi-addr2line \ --export_taskinfo=./build/elm/util/export_taskinfo.so \ --section=RW \ --annotation=./extra/stack_analyzer/example_annotation.yaml \ ./build/elm/RW/ec.RW.elf make BOARD=elm SECTION=RW \ ANNOTATION=./extra/stack_analyzer/example_annotation.yaml \ analyzestack Change-Id: I4cc7c34f422655708a7312db3f6b4416e1af917f Signed-off-by: Che-yu Wu <cheyuw@google.com> Reviewed-on: https://chromium-review.googlesource.com/614825 Reviewed-by: Nicolas Boichat <drinkcat@chromium.org> Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'Makefile.rules')
-rw-r--r--Makefile.rules1
1 files changed, 1 insertions, 0 deletions
diff --git a/Makefile.rules b/Makefile.rules
index 4256f921ee..7e66d2ef77 100644
--- a/Makefile.rules
+++ b/Makefile.rules
@@ -554,6 +554,7 @@ analyzestack: $(out)/util/export_taskinfo.so
fi; \
extra/stack_analyzer/stack_analyzer.py --objdump "$(OBJDUMP)" \
--addr2line "$(ADDR2LINE)" --section "$$SECTION" \
+ $(if $(ANNOTATION),--annotation $(ANNOTATION),) \
--export_taskinfo "$$EXPORT_TASKINFO" "$$ELF"
.SECONDARY: