Lines Matching +full:- +full:t
5 * SPDX-License-Identifier: Apache-2.0
30 if (info->tx_slabs[i] == slab) { in slab_pool_found_already()
34 if (info->data_pools[i] == pool) { in slab_pool_found_already()
48 const struct shell *sh = data->sh; in context_info()
49 struct ctx_info *info = data->user_data; in context_info()
57 if (context->tx_slab) { in context_info()
58 slab = context->tx_slab(); in context_info()
65 PR("%p\t%u\t%u\tETX\n", in context_info()
66 slab, slab->info.num_blocks, k_mem_slab_num_free_get(slab)); in context_info()
68 PR("%p\t%d\tETX\n", slab, slab->info.num_blocks); in context_info()
70 info->are_external_pools = true; in context_info()
71 info->tx_slabs[info->pos] = slab; in context_info()
74 if (context->data_pool) { in context_info()
75 pool = context->data_pool(); in context_info()
82 PR("%p\t%d\t%ld\tEDATA (%s)\n", pool, pool->buf_count, in context_info()
83 atomic_get(&pool->avail_count), pool->name); in context_info()
85 PR("%p\t%d\tEDATA\n", pool, pool->buf_count); in context_info()
87 info->are_external_pools = true; in context_info()
88 info->data_pools[info->pos] = pool; in context_info()
91 info->pos++; in context_info()
117 PR("Address\t\tTotal\tAvail\tName\n"); in cmd_net_mem()
119 PR("%p\t%d\t%u\tRX\n", in cmd_net_mem()
120 rx, rx->info.num_blocks, k_mem_slab_num_free_get(rx)); in cmd_net_mem()
122 PR("%p\t%d\t%u\tTX\n", in cmd_net_mem()
123 tx, tx->info.num_blocks, k_mem_slab_num_free_get(tx)); in cmd_net_mem()
125 PR("%p\t%d\t%ld\tRX DATA (%s)\n", rx_data, rx_data->buf_count, in cmd_net_mem()
126 atomic_get(&rx_data->avail_count), rx_data->name); in cmd_net_mem()
128 PR("%p\t%d\t%ld\tTX DATA (%s)\n", tx_data, tx_data->buf_count, in cmd_net_mem()
129 atomic_get(&tx_data->avail_count), tx_data->name); in cmd_net_mem()
131 PR("Address\t\tTotal\tName\n"); in cmd_net_mem()
133 PR("%p\t%d\tRX\n", rx, rx->info.num_blocks); in cmd_net_mem()
134 PR("%p\t%d\tTX\n", tx, tx->info.num_blocks); in cmd_net_mem()
135 PR("%p\t%d\tRX DATA\n", rx_data, rx_data->buf_count); in cmd_net_mem()
136 PR("%p\t%d\tTX DATA\n", tx_data, tx_data->buf_count); in cmd_net_mem()
159 PR("Slab\t\tStatus\tAllocs\tAvg size\tAvg time (usec)\n"); in cmd_net_mem()
162 if (stats->ok.count) { in cmd_net_mem()
163 PR("%p\tOK \t%u\t%llu\t\t%llu\n", stats->slab, stats->ok.count, in cmd_net_mem()
164 stats->ok.alloc_sum / (uint64_t)stats->ok.count, in cmd_net_mem()
165 k_cyc_to_us_ceil64(stats->ok.time_sum / in cmd_net_mem()
166 (uint64_t)stats->ok.count)); in cmd_net_mem()
169 if (stats->fail.count) { in cmd_net_mem()
170 PR("%p\tFAIL\t%u\t%llu\t\t%llu\n", stats->slab, stats->fail.count, in cmd_net_mem()
171 stats->fail.alloc_sum / (uint64_t)stats->fail.count, in cmd_net_mem()
172 k_cyc_to_us_ceil64(stats->fail.time_sum / in cmd_net_mem()
173 (uint64_t)stats->fail.count)); in cmd_net_mem()