Home
last modified time | relevance | path

Searched refs:stats (Results 1 – 25 of 33) sorted by relevance

12

/subsys/net/l2/ethernet/
A Deth_stats.h29 if (!stats) { in eth_stats_update_bytes_rx()
48 if (!stats) { in eth_stats_update_bytes_tx()
66 if (!stats) { in eth_stats_update_pkts_rx()
84 if (!stats) { in eth_stats_update_pkts_tx()
102 if (!stats) { in eth_stats_update_broadcast_rx()
120 if (!stats) { in eth_stats_update_broadcast_tx()
138 if (!stats) { in eth_stats_update_multicast_rx()
156 if (!stats) { in eth_stats_update_multicast_tx()
181 if (!stats) { in eth_stats_update_errors_rx()
199 if (!stats) { in eth_stats_update_errors_tx()
[all …]
/subsys/net/l2/ppp/
A Dppp_stats.h21 struct net_stats_ppp *stats; in ppp_stats_update_bytes_rx() local
28 if (!stats) { in ppp_stats_update_bytes_rx()
47 if (!stats) { in ppp_stats_update_bytes_tx()
65 if (!stats) { in ppp_stats_update_pkts_rx()
69 stats->pkts.rx++; in ppp_stats_update_pkts_rx()
83 if (!stats) { in ppp_stats_update_pkts_tx()
87 stats->pkts.tx++; in ppp_stats_update_pkts_tx()
101 if (!stats) { in ppp_stats_update_drop_rx()
105 stats->drop++; in ppp_stats_update_drop_rx()
119 if (!stats) { in ppp_stats_update_fcs_error_rx()
[all …]
/subsys/net/ip/
A Dnet_stats.h119 UPDATE_STAT(iface, stats.ipv6.sent++); in net_stats_update_ipv6_sent()
124 UPDATE_STAT(iface, stats.ipv6.recv++); in net_stats_update_ipv6_recv()
129 UPDATE_STAT(iface, stats.ipv6.drop++); in net_stats_update_ipv6_drop()
255 UPDATE_STAT(iface, stats.udp.sent++); in net_stats_update_udp_sent()
260 UPDATE_STAT(iface, stats.udp.recv++); in net_stats_update_udp_recv()
265 UPDATE_STAT(iface, stats.udp.drop++); in net_stats_update_udp_drop()
299 UPDATE_STAT(iface, stats.tcp.drop++); in net_stats_update_tcp_drop()
304 UPDATE_STAT(iface, stats.tcp.sent++); in net_stats_update_tcp_seg_sent()
319 UPDATE_STAT(iface, stats.tcp.rst++); in net_stats_update_tcp_seg_rst()
482 stats.tx_time_detail[i].sum += in net_stats_update_tx_time_detail()
[all …]
A Dnet_stats.c72 static inline void stats(struct net_if *iface) in stats() function
233 stats(iface); in net_print_statistics_iface()
265 src = iface ? &iface->stats : &net_stats; in net_stats_get()
/subsys/net/lib/shell/
A Dmem.c167 STRUCT_SECTION_FOREACH(net_pkt_alloc_stats_slab, stats) { in cmd_net_mem()
168 if (stats->ok.count) { in cmd_net_mem()
169 PR("%p\tOK \t%u\t%llu\t\t%llu\n", stats->slab, stats->ok.count, in cmd_net_mem()
170 stats->ok.alloc_sum / (uint64_t)stats->ok.count, in cmd_net_mem()
171 k_cyc_to_us_ceil64(stats->ok.time_sum / in cmd_net_mem()
172 (uint64_t)stats->ok.count)); in cmd_net_mem()
175 if (stats->fail.count) { in cmd_net_mem()
176 PR("%p\tFAIL\t%u\t%llu\t\t%llu\n", stats->slab, stats->fail.count, in cmd_net_mem()
177 stats->fail.alloc_sum / (uint64_t)stats->fail.count, in cmd_net_mem()
178 k_cyc_to_us_ceil64(stats->fail.time_sum / in cmd_net_mem()
[all …]
A Dsockets.c27 struct sock_obj_type_raw_stats stats = { 0 }; in walk_sockets() local
48 &stats, sizeof(stats)); in walk_sockets()
78 fd, lifetime, stats.sent, stats.received); in walk_sockets()
A DCMakeLists.txt33 zephyr_library_sources_ifdef(CONFIG_NET_SHELL_STATISTICS_SUPPORTED stats.c)
/subsys/shell/modules/kernel_service/
A Dheap.c21 struct sys_memory_stats stats; in cmd_kernel_heap() local
23 err = sys_heap_runtime_stats_get(&_system_heap, &stats); in cmd_kernel_heap()
29 shell_print(sh, "free: %zu", stats.free_bytes); in cmd_kernel_heap()
30 shell_print(sh, "allocated: %zu", stats.allocated_bytes); in cmd_kernel_heap()
31 shell_print(sh, "max. allocated: %zu", stats.max_allocated_bytes); in cmd_kernel_heap()
/subsys/pm/
A Dpm_stats.c27 static STATS_SECT_DECL(pm_stats) stats[CONFIG_MP_MAX_NUM_CPUS][PM_STATE_COUNT];
43 stats_init(&(stats[i][j].s_hdr), STATS_SIZE_32, 3U, in pm_stats_init()
45 stats_register(names[i][j], &(stats[i][j].s_hdr)); in pm_stats_init()
69 STATS_INC(stats[cpu][state], state_count); in pm_stats_update()
70 STATS_INCN(stats[cpu][state], state_total_cycles, time_total); in pm_stats_update()
71 STATS_SET(stats[cpu][state], state_last_cycles, time_total); in pm_stats_update()
/subsys/testsuite/ztest/src/
A Dztest.c861 test->stats->run_count++; in z_ztest_run_test_suite_ptr()
944 if (test->stats->skip_count == test->stats->run_count) { in __ztest_show_suite_summary_oneline()
946 } else if (test->stats->pass_count == test->stats->run_count) { in __ztest_show_suite_summary_oneline()
988 if (test->stats->skip_count == test->stats->run_count) { in __ztest_show_suite_summary_verbose()
990 } else if (test->stats->pass_count == test->stats->run_count) { in __ztest_show_suite_summary_verbose()
1003 test->stats->run_count - test->stats->pass_count, in __ztest_show_suite_summary_verbose()
1004 test->stats->run_count, test->stats->duration_worst_ms / 1000, in __ztest_show_suite_summary_verbose()
1047 struct ztest_suite_stats *stats = ptr->stats; in __ztest_run_test_suite() local
1056 stats->run_count++; in __ztest_run_test_suite()
1059 stats->skip_count++; in __ztest_run_test_suite()
[all …]
A Dztest_shell.c126 suite->stats->run_count++; in z_ztest_should_suite_run()
A Dztest_posix.c225 suite->stats->run_count++; in z_ztest_should_suite_run()
/subsys/net/lib/sockets/
A Dsocket_obj_core.c32 static int sock_obj_stats_raw(struct k_obj_core *obj_core, void *stats);
76 k_obj_core_stats_register(K_OBJ_CORE(sock), &sock->stats, in sock_obj_core_init_and_link()
83 static int sock_obj_stats_raw(struct k_obj_core *obj_core, void *stats) in sock_obj_stats_raw() argument
85 memcpy(stats, obj_core->stats, sizeof(struct sock_obj_type_raw_stats)); in sock_obj_stats_raw()
92 memset(obj_core->stats, 0, sizeof(struct sock_obj_type_raw_stats)); in sock_obj_core_stats_reset()
229 sock_objects[i].stats.sent += bytes; in sock_obj_core_update_send_stats()
245 sock_objects[i].stats.received += bytes; in sock_obj_core_update_recv_stats()
/subsys/testsuite/ztest/include/zephyr/
A Dztest_test.h116 struct ztest_unit_test_stats *const stats; member
210 struct ztest_suite_stats *const stats; member
243 .stats = &UTIL_CAT(z_ztest_suite_node_stats_, SUITE_NAME), \
418 .stats = &z_ztest_unit_test_stats_##suite##_##fn \
439 .stats = &z_ztest_unit_test_stats_##suite##_##fn \
/subsys/net/lib/zperf/
A Dzperf_udp_uploader.c64 uint8_t stats[sizeof(struct zperf_udp_datagram) + in zperf_upload_fin() local
124 ret = zsock_recv(sock, stats, sizeof(stats), 0); in zperf_upload_fin()
140 zperf_upload_decode_stat(stats, ret, results); in zperf_upload_fin()
147 ret = zsock_recv(sock, stats, sizeof(stats), ZSOCK_MSG_DONTWAIT); in zperf_upload_fin()
/subsys/bluetooth/host/shell/
A Dgatt.c684 } stats; variable
692 stats.attr_count++; in print_attr()
696 stats.svc_count++; in print_attr()
700 stats.chrc_count++; in print_attr()
705 stats.ccc_count++; in print_attr()
720 memset(&stats, 0, sizeof(stats)); in cmd_show_db()
740 if (!stats.attr_count) { in cmd_show_db()
745 total_len = stats.svc_count * sizeof(struct bt_gatt_service); in cmd_show_db()
746 total_len += stats.chrc_count * sizeof(struct bt_gatt_chrc); in cmd_show_db()
747 total_len += stats.attr_count * sizeof(struct bt_gatt_attr); in cmd_show_db()
[all …]
/subsys/stats/
A DCMakeLists.txt3 zephyr_sources_ifdef(CONFIG_STATS stats.c)
A Dstats_shell.c51 SHELL_CMD_REGISTER(stats, &sub_stats, "Stats commands", NULL);
/subsys/shell/
A Dshell_cmds.c385 shell_print(sh, "Lost logs: %lu", sh->stats->log_lost_cnt); in cmd_shell_stats_show()
396 sh->stats->log_lost_cnt = 0; in cmd_shell_stats_reset()
529 SHELL_COND_CMD(CONFIG_SHELL_STATS, stats, &m_sub_shell_stats,
A Dshell_log_backend.c121 atomic_add(&sh->stats->log_lost_cnt, cnt); in dropped()
/subsys/net/lib/ptp/
A Dds.h91 bool stats; member
/subsys/modem/
A Dmodem_ppp.c293 ppp->stats.drop++; in modem_ppp_process_received_byte()
306 ppp->stats.drop++; in modem_ppp_process_received_byte()
487 return &ppp->stats; in modem_ppp_ppp_get_stats()
A DKconfig94 int "Maximum string size of modem stats buffer name"
/subsys/
A DCMakeLists.txt31 add_subdirectory(stats)
A DKconfig48 source "subsys/stats/Kconfig"

Completed in 51 milliseconds

12