summaryrefslogtreecommitdiff
path: root/extra/stack_analyzer/example_annotation.yaml
blob: 3b96d90b89aa618e36f5d6b3ddf8e10411ece1d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# 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]
- [pd_send_request_msg, set_state, set_state]
- [pd_send_request_msg, set_state, set_state, pd_power_supply_reset]
- [set_state, set_state, set_state]