Failed to enable tracking in Net subsys.

Hi,

I'm working on a project where we would like to track system performance using Segger Systemview.

I'm building with the following RTT configs:

CONFIG_USE_SEGGER_RTT=y

CONFIG_DEBUG_OPTIMIZATIONS=n
CONFIG_DEBUG_THREAD_INFO=y

CONFIG_TRACING=y
CONFIG_SEGGER_SYSTEMVIEW=y
CONFIG_SEGGER_SYSTEMVIEW_BOOT_ENABLE=n
CONFIG_SEGGER_SYSVIEW_POST_MORTEM_MODE=n


and I'm getting the following errors:

/home/<user>/ncs/v2.9.0/zephyr/include/zephyr/tracing/tracing_macros.h:43:9: warning: implicit declaration of function 'sys_port_trace_net_tx_time' [-Wimplicit-function-declaration]
   43 |         sys_port_trace_ ## name ## _ ## func
      |         ^~~~~~~~~~~~~~~
/home/<user>/ncs/v2.9.0/zephyr/include/zephyr/sys/util_internal.h:72:26: note: in definition of macro '__DEBRACKET'
   72 | #define __DEBRACKET(...) __VA_ARGS__
      |                          ^~~~~~~~~~~
/home/<user>/ncs/v2.9.0/zephyr/include/zephyr/sys/util_internal.h:64:9: note: in expansion of macro '__GET_ARG2_DEBRACKET'
   64 |         __GET_ARG2_DEBRACKET(one_or_two_args _if_code, _else_code)
      |         ^~~~~~~~~~~~~~~~~~~~
/home/<user>/ncs/v2.9.0/zephyr/include/zephyr/sys/util_internal.h:59:9: note: in expansion of macro '__COND_CODE'
   59 |         __COND_CODE(_XXXX##_flag, _if_1_code, _else_code)
      |         ^~~~~~~~~~~
/home/<user>/ncs/v2.9.0/zephyr/include/zephyr/sys/util_macro.h:180:9: note: in expansion of macro 'Z_COND_CODE_1'
  180 |         Z_COND_CODE_1(_flag, _if_1_code, _else_code)
      |         ^~~~~~~~~~~~~
/home/<user>/ncs/v2.9.0/zephyr/include/zephyr/tracing/tracing_macros.h:211:9: note: in expansion of macro 'COND_CODE_1'
  211 |         COND_CODE_1(_SYS_PORT_TRACE_IS_DISABLED(type), (),                                         \
      |         ^~~~~~~~~~~
/home/<user>/ncs/v2.9.0/zephyr/include/zephyr/tracing/tracing_macros.h:212:22: note: in expansion of macro '_SYS_PORT_TRACE_WRAP'
  212 |                     (_SYS_PORT_TRACE_WRAP(func, __VA_ARGS__)))
      |                      ^~~~~~~~~~~~~~~~~~~~
/home/<user>/ncs/v2.9.0/zephyr/include/zephyr/tracing/tracing_macros.h:236:9: note: in expansion of macro '_SYS_PORT_TRACE_IF_NOT_DISABLED'
  236 |         _SYS_PORT_TRACE_IF_NOT_DISABLED(type, _SYS_PORT_TRACING_FUNC(type, func), __VA_ARGS__)
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/<user>/ncs/v2.9.0/zephyr/include/zephyr/tracing/tracing_macros.h:236:47: note: in expansion of macro '_SYS_PORT_TRACING_FUNC'
  236 |         _SYS_PORT_TRACE_IF_NOT_DISABLED(type, _SYS_PORT_TRACING_FUNC(type, func), __VA_ARGS__)
      |                                               ^~~~~~~~~~~~~~~~~~~~~~
/home/<user>/ncs/v2.9.0/zephyr/subsys/net/ip/net_if.c:281:25: note: in expansion of macro 'SYS_PORT_TRACING_FUNC'
  281 |                         SYS_PORT_TRACING_FUNC(net, tx_time, pkt, end_tick);
      |                         ^~~~~~~~~~~~~~~~~~~~~

I have tried to add these configs as well but without any luck:

CONFIG_TRACING_NET_CORE=n
CONFIG_TRACING_NET_SOCKETS=n


Forgot to add:
Nordic SDK: 2.9.0
SiP: nrf9160
Modem FW version: 1.3.7

Parents Reply Children
Related