78925604e9
- use libunwrap which seems to be industry standard - display traceback on console if running interactive or with syslog disabled (color output unless nocolor specified) - print hexdump of offending code - print library filename for each stack frame Type: improvement Change-Id: I61d3056251b87076be0578ccda300aa311c222ef Signed-off-by: Damjan Marion <damarion@cisco.com>
50 lines
1.1 KiB
YAML
50 lines
1.1 KiB
YAML
# Minimal clang-format version is 11
|
|
|
|
BasedOnStyle: GNU
|
|
UseTab: Always
|
|
SpaceAfterCStyleCast: true
|
|
SortIncludes: false
|
|
AlignConsecutiveMacros: true
|
|
BreakBeforeTernaryOperators: false
|
|
BreakBeforeBinaryOperators: None
|
|
ContinuationIndentWidth: 2
|
|
|
|
ForEachMacros:
|
|
- 'clib_bitmap_foreach'
|
|
- 'pool_foreach'
|
|
- 'pool_foreach_index'
|
|
- 'pool_foreach_pointer'
|
|
- 'vec_foreach'
|
|
- 'vec_foreach_backwards'
|
|
- 'vec_foreach_index'
|
|
- 'vec_foreach_index_backwards'
|
|
- 'vec_foreach_pointer'
|
|
- 'vlib_foreach_rx_tx'
|
|
- 'foreach_int'
|
|
- 'foreach_pointer'
|
|
- 'foreach_vlib_main'
|
|
- 'foreach_set_bit_index'
|
|
- 'foreach_vlib_frame_bitmap_set_bit_index'
|
|
- 'FOREACH_ARRAY_ELT'
|
|
- 'RTE_ETH_FOREACH_DEV'
|
|
- 'foreach_clib_stack_frame'
|
|
- 'foreach_vnet_dev_rx_queue_runtime'
|
|
- 'foreach_vnet_dev_counter'
|
|
- 'foreach_vnet_dev_port_rx_queue'
|
|
- 'foreach_vnet_dev_port_tx_queue'
|
|
- 'foreach_vnet_dev_port'
|
|
- 'foreach_vnet_dev_args'
|
|
- 'foreach_vnet_dev_port_args'
|
|
|
|
StatementMacros:
|
|
- 'CLIB_MULTIARCH_FN'
|
|
- 'VLIB_NODE_FN'
|
|
- 'VNET_DEV_NODE_FN'
|
|
- 'VNET_DEVICE_CLASS_TX_FN'
|
|
- '__clib_section'
|
|
- '__clib_aligned'
|
|
|
|
WhitespaceSensitiveMacros:
|
|
- 'WARN_ON'
|
|
- 'WARN_OFF'
|