2016-08-24 11:58:29 +02:00
|
|
|
# Kconfig.debug - Debug Options
|
|
|
|
|
|
|
|
#
|
|
|
|
# Copyright (c) 2016 Intel Corporation.
|
|
|
|
#
|
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
# you may not use this file except in compliance with the License.
|
|
|
|
# You may obtain a copy of the License at
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
# limitations under the License.
|
|
|
|
#
|
|
|
|
|
|
|
|
menuconfig NET_LOG
|
|
|
|
bool "Enable network stack logging and debugging"
|
|
|
|
default n
|
|
|
|
select SYS_LOG
|
|
|
|
help
|
|
|
|
Enable logging in various parts of the network stack.
|
|
|
|
Specific debugging options to other sub-menus will be unlocked
|
|
|
|
as well (IPv6, IPv4, ...).
|
|
|
|
|
|
|
|
if NET_LOG
|
|
|
|
|
2016-12-15 13:55:01 +01:00
|
|
|
config SYS_LOG_NET_LEVEL
|
|
|
|
int
|
|
|
|
prompt "Network Stack Logging level"
|
|
|
|
default 1
|
|
|
|
range 0 4
|
|
|
|
help
|
|
|
|
Sets log level for the network stack.
|
|
|
|
Levels are:
|
|
|
|
0 OFF, do not write
|
|
|
|
1 ERROR, only write SYS_LOG_ERR
|
|
|
|
2 WARNING, write SYS_LOG_WRN in adition to previous level
|
|
|
|
3 INFO, write SYS_LOG_INF in adition to previous levels
|
|
|
|
4 DEBUG, write SYS_LOG_DBG in adition to previous levels
|
|
|
|
|
|
|
|
config NET_LOG_GLOBAL
|
|
|
|
bool "Enable global network stack logging"
|
|
|
|
default n
|
|
|
|
select NET_DEBUG_CORE
|
|
|
|
select NET_DEBUG_IF
|
|
|
|
select NET_DEBUG_UTILS
|
|
|
|
select NET_DEBUG_CONTEXT
|
|
|
|
select NET_DEBUG_NET_BUF
|
|
|
|
select NET_DEBUG_CONN
|
|
|
|
select NET_DEBUG_ROUTE if NET_ROUTE
|
|
|
|
select NET_DEBUG_IPV6 if NET_IPV6
|
|
|
|
select NET_DEBUG_ICMPV6 if NET_IPV6
|
|
|
|
select NET_DEBUG_IPV6_NBR_CACHE if NET_IPV6
|
|
|
|
select NET_DEBUG_6LO if NET_6LO
|
|
|
|
select NET_DEBUG_IPV4 if NET_IPV4
|
|
|
|
select NET_DEBUG_ICMPV4 if NET_IPV4
|
|
|
|
select NET_DEBUG_DHCPV4 if NET_DHCPV4
|
|
|
|
select NET_DEBUG_UDP if NET_UDP
|
|
|
|
select NET_DEBUG_TCP if NET_TCP
|
|
|
|
select NET_DEBUG_RPL if NET_RPL
|
|
|
|
select NET_DEBUG_TRICKLE if NET_TRICKLE
|
|
|
|
select NET_DEBUG_MGMT_EVENT if NET_MGMT
|
|
|
|
select NET_DEBUG_MGMT_EVENT_STACK if NET_MGMT_EVENT
|
|
|
|
help
|
|
|
|
By default, logging will apply only on enabled CONFIG_NET_DEBUG_*
|
|
|
|
options, on which CONFIG_SYS_LOG_NET_LEVEL would be applied.
|
|
|
|
However, if you want all the network stack logging enabled at once,
|
|
|
|
use this option. Beware logging takes a lot of ROM/RAM and kills
|
|
|
|
execution timing so it can affect your use case.
|
|
|
|
|
2016-08-24 11:58:29 +02:00
|
|
|
config NET_DEBUG_CORE
|
|
|
|
bool "Debug core IP stack"
|
|
|
|
default n
|
|
|
|
help
|
|
|
|
Enables core network stack code part to output debug messages
|
|
|
|
|
|
|
|
config NET_DEBUG_IF
|
|
|
|
bool "Debug network interface code"
|
|
|
|
default n
|
|
|
|
help
|
|
|
|
Enables network interface code part to output debug messages
|
|
|
|
|
|
|
|
config NET_DEBUG_UTILS
|
|
|
|
bool "Debug utility functions in IP stack"
|
|
|
|
default n
|
|
|
|
help
|
|
|
|
Enables utility functions to output debug messages
|
|
|
|
|
|
|
|
config NET_DEBUG_CONTEXT
|
|
|
|
bool "Debug network context allocation"
|
|
|
|
default n
|
|
|
|
help
|
|
|
|
Enables printing of network context allocations and frees.
|
|
|
|
|
|
|
|
config NET_DEBUG_NET_BUF
|
|
|
|
bool "Debug network buffer allocation"
|
|
|
|
default n
|
|
|
|
help
|
|
|
|
Enables printing of network buffer allocations and frees.
|
|
|
|
|
|
|
|
config NET_DEBUG_CONN
|
|
|
|
bool "Debug connection handling"
|
|
|
|
default n
|
|
|
|
help
|
|
|
|
Enables connection debug messages
|
|
|
|
|
2016-09-19 14:09:37 +02:00
|
|
|
config NET_DEBUG_ROUTE
|
|
|
|
bool "Debug route management"
|
|
|
|
depends on NET_ROUTE
|
|
|
|
default n
|
|
|
|
help
|
|
|
|
Enables routing engine debug messages
|
|
|
|
|
2016-08-24 11:58:29 +02:00
|
|
|
endif # NET_LOG
|