mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-30 18:41:11 +00:00
Make the size of extra stack needed by exceptions configurable.
It can be set in the annotation file.
BUG=chromium:648840
BRANCH=none
TEST=extra/stack_analyzer/stack_analyzer_unittest.py
make BOARD=elm SECTION=RW \
ANNOTATION=./extra/stack_analyzer/example_annotation.yaml \
analyzestack
Change-Id: Idf2a59650dd20257a0291f89d788c0c83b91a7c9
Signed-off-by: Che-yu Wu <cheyuw@google.com>
Reviewed-on: https://chromium-review.googlesource.com/649454
Reviewed-by: Nicolas Boichat <drinkcat@chromium.org>
45 lines
1.7 KiB
YAML
45 lines
1.7 KiB
YAML
# Size of extra stack frame needed by exception context switch.
|
|
exception_frame_size: 64
|
|
|
|
# Add some missing calls.
|
|
add:
|
|
# console_task also calls command_display_accel_info and command_accel_init.
|
|
console_task:
|
|
- command_display_accel_info
|
|
- command_accel_init
|
|
|
|
# Function name can be followed by [source code path] to indicate where is it
|
|
# declared (there may be several functions with the same name).
|
|
motion_lid_calc[common/motion_lid.c]:
|
|
- get_range[driver/accel_kionix.c]
|
|
|
|
# The full signature (function name[path:line number]) can be used to
|
|
# eliminate the indirect call (see README.md).
|
|
tcpm_transmit[driver/tcpm/tcpm.h:142]:
|
|
- anx74xx_tcpm_transmit
|
|
|
|
# Remove some call paths.
|
|
remove:
|
|
# Remove all callsites pointing to panic_assert_fail.
|
|
- panic_assert_fail
|
|
- panic
|
|
- [software_panic]
|
|
# Remove some invalid paths.
|
|
- [pd_send_request_msg, set_state, pd_power_supply_reset]
|
|
- [__tx_char, __tx_char]
|
|
- [set_state, set_state, set_state]
|
|
|
|
# Remove two invalid paths with the common prefix.
|
|
- [pd_execute_hard_reset, set_state, [charge_manager_update_dualrole, pd_dfp_exit_mode]]
|
|
# It is equivalent to the following two lines,
|
|
# - [pd_execute_hard_reset, set_state, charge_manager_update_dualrole]
|
|
# - [pd_execute_hard_reset, set_state, pd_dfp_exit_mode]
|
|
|
|
# Remove four invalid paths with the common segment.
|
|
- [[pd_send_request_msg, pd_request_vconn_swap], set_state, [usb_mux_set, pd_power_supply_reset]]
|
|
# It is equivalent to the following four lines,
|
|
# - [pd_send_request_msg, set_state, usb_mux_set]
|
|
# - [pd_send_request_msg, set_state, pd_power_supply_reset]
|
|
# - [pd_request_vconn_swap, set_state, usb_mux_set]
|
|
# - [pd_request_vconn_swap, set_state, pd_power_supply_reset]
|