If CONFIG_NET_PKT_ALLOC_STATS is enabled, then "net mem" command can show net_pkt allocation statistics like succeed / failed allocation counts, average sizes and allocation time. Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
10 lines
216 B
Plaintext
10 lines
216 B
Plaintext
/*
|
|
* Copyright (c) 2024 Nordic Semiconductor ASA
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
#include <zephyr/linker/iterable_sections.h>
|
|
|
|
ITERABLE_SECTION_RAM(net_pkt_alloc_stats_slab, Z_LINK_ITERABLE_SUBALIGN)
|