/Zephyr-Core-2.7.6/subsys/net/l2/ethernet/ |
D | eth_stats.h | 21 struct net_stats_eth *stats; in eth_stats_update_bytes_rx() local 27 stats = api->get_stats(net_if_get_device(iface)); in eth_stats_update_bytes_rx() 28 if (!stats) { in eth_stats_update_bytes_rx() 32 stats->bytes.received += bytes; in eth_stats_update_bytes_rx() 40 struct net_stats_eth *stats; in eth_stats_update_bytes_tx() local 46 stats = api->get_stats(net_if_get_device(iface)); in eth_stats_update_bytes_tx() 47 if (!stats) { in eth_stats_update_bytes_tx() 51 stats->bytes.sent += bytes; in eth_stats_update_bytes_tx() 58 struct net_stats_eth *stats; in eth_stats_update_pkts_rx() local 64 stats = api->get_stats(net_if_get_device(iface)); in eth_stats_update_pkts_rx() [all …]
|
/Zephyr-Core-2.7.6/subsys/net/l2/ppp/ |
D | ppp_stats.h | 21 struct net_stats_ppp *stats; in ppp_stats_update_bytes_rx() local 27 stats = api->get_stats(net_if_get_device(iface)); in ppp_stats_update_bytes_rx() 28 if (!stats) { in ppp_stats_update_bytes_rx() 32 stats->bytes.received += bytes; in ppp_stats_update_bytes_rx() 40 struct net_stats_ppp *stats; in ppp_stats_update_bytes_tx() local 46 stats = api->get_stats(net_if_get_device(iface)); in ppp_stats_update_bytes_tx() 47 if (!stats) { in ppp_stats_update_bytes_tx() 51 stats->bytes.sent += bytes; in ppp_stats_update_bytes_tx() 58 struct net_stats_ppp *stats; in ppp_stats_update_pkts_rx() local 64 stats = api->get_stats(net_if_get_device(iface)); in ppp_stats_update_pkts_rx() [all …]
|
/Zephyr-Core-2.7.6/subsys/net/ip/ |
D | net_stats.h | 22 #define GET_STAT(iface, s) (iface ? iface->stats.s : net_stats.s) 23 #define GET_STAT_ADDR(iface, s) (iface ? &iface->stats.s : &net_stats.s) 38 UPDATE_STAT(iface, stats.processing_error++); in net_stats_update_processing_error() 43 UPDATE_STAT(iface, stats.ip_errors.protoerr++); in net_stats_update_ip_errors_protoerr() 48 UPDATE_STAT(iface, stats.ip_errors.vhlerr++); in net_stats_update_ip_errors_vhlerr() 54 UPDATE_STAT(iface, stats.bytes.received += bytes); in net_stats_update_bytes_recv() 60 UPDATE_STAT(iface, stats.bytes.sent += bytes); in net_stats_update_bytes_sent() 75 UPDATE_STAT(iface, stats.ipv6.sent++); in net_stats_update_ipv6_sent() 80 UPDATE_STAT(iface, stats.ipv6.recv++); in net_stats_update_ipv6_recv() 85 UPDATE_STAT(iface, stats.ipv6.drop++); in net_stats_update_ipv6_drop() [all …]
|
/Zephyr-Core-2.7.6/tests/kernel/mem_protect/demand_paging/src/ |
D | main.c | 97 void print_paging_stats(struct k_mem_paging_stats_t *stats, const char *scope) in print_paging_stats() argument 100 printk(" - Total: %lu\n", stats->pagefaults.cnt); in print_paging_stats() 101 printk(" - IRQ locked: %lu\n", stats->pagefaults.irq_locked); in print_paging_stats() 102 printk(" - IRQ unlocked: %lu\n", stats->pagefaults.irq_unlocked); in print_paging_stats() 104 printk(" - in ISR: %lu\n", stats->pagefaults.in_isr); in print_paging_stats() 109 stats->eviction.clean + stats->eviction.dirty); in print_paging_stats() 111 stats->eviction.clean); in print_paging_stats() 113 stats->eviction.dirty); in print_paging_stats() 119 struct k_mem_paging_stats_t stats; in test_touch_anon_pages() local 152 k_mem_paging_stats_get(&stats); in test_touch_anon_pages() [all …]
|
/Zephyr-Core-2.7.6/kernel/paging/ |
D | statistics.c | 91 void z_impl_k_mem_paging_stats_get(struct k_mem_paging_stats_t *stats) in z_impl_k_mem_paging_stats_get() argument 93 if (stats == NULL) { in z_impl_k_mem_paging_stats_get() 98 memcpy(stats, &paging_stats, sizeof(paging_stats)); in z_impl_k_mem_paging_stats_get() 103 void z_vrfy_k_mem_paging_stats_get(struct k_mem_paging_stats_t *stats) in z_vrfy_k_mem_paging_stats_get() argument 105 Z_OOPS(Z_SYSCALL_MEMORY_WRITE(stats, sizeof(*stats))); in z_vrfy_k_mem_paging_stats_get() 106 z_impl_k_mem_paging_stats_get(stats); in z_vrfy_k_mem_paging_stats_get() 113 struct k_mem_paging_stats_t *stats) in z_impl_k_mem_paging_thread_stats_get() argument 115 if ((thread == NULL) || (stats == NULL)) { in z_impl_k_mem_paging_thread_stats_get() 120 memcpy(stats, &thread->paging_stats, sizeof(thread->paging_stats)); in z_impl_k_mem_paging_thread_stats_get() 126 struct k_mem_paging_stats_t *stats) in z_vrfy_k_mem_paging_thread_stats_get() argument [all …]
|
/Zephyr-Core-2.7.6/samples/kernel/metairq_dispatch/src/ |
D | main.c | 41 } stats; variable 122 int lidx = stats.threads[t].nevt++; in record_latencies() 124 if (lidx < ARRAY_SIZE(stats.threads[t].latencies)) { in record_latencies() 125 stats.threads[t].latencies[lidx] = latency; in record_latencies() 128 stats.mirq_latencies[atomic_inc(&stats.num_mirq)] = m->metairq_latency; in record_latencies() 143 calc_stats(stats.mirq_latencies, stats.num_mirq, in record_latencies() 152 if (stats.threads[i].nevt == 0) { in record_latencies() 157 calc_stats(stats.threads[i].latencies, in record_latencies() 158 stats.threads[i].nevt, in record_latencies()
|
/Zephyr-Core-2.7.6/samples/boards/reel_board/mesh_badge/src/ |
D | reel_board.c | 177 } stats[STAT_COUNT] = { variable 192 for (i = 0; i < ARRAY_SIZE(stats); i++) { in add_hello() 193 struct stat *stat = &stats[i]; in add_hello() 223 for (i = 0; i < ARRAY_SIZE(stats); i++) { in add_heartbeat() 224 struct stat *stat = &stats[i]; in add_heartbeat() 290 for (i = 0; i < ARRAY_SIZE(stats); i++) { in show_statistics() 293 stat = &stats[i]; in show_statistics() 308 if (stat->hello_count <= stats[top[j]].hello_count) { in show_statistics() 333 stat = &stats[top[i]]; in show_statistics()
|
/Zephyr-Core-2.7.6/samples/bluetooth/iso_broadcast_benchmark/src/ |
D | receiver.c | 161 static void print_stats(char *name, struct iso_recv_stats *stats) in print_stats() argument 165 total_packets = stats->iso_recv_count + stats->iso_lost_count; in print_stats() 168 name, stats->iso_recv_count, total_packets, in print_stats() 169 (float)stats->iso_recv_count * 100 / total_packets, in print_stats() 170 stats->iso_lost_count); in print_stats()
|
/Zephyr-Core-2.7.6/subsys/stats/ |
D | CMakeLists.txt | 3 zephyr_sources_ifdef(CONFIG_STATS stats.c)
|
/Zephyr-Core-2.7.6/tests/kernel/threads/thread_apis/src/ |
D | main.c | 531 k_thread_runtime_stats_t stats; in foreach_callback() local 535 ret = k_thread_runtime_stats_get(NULL, &stats); in foreach_callback() 540 k_thread_runtime_stats_get((k_tid_t)thread, &stats); in foreach_callback() 542 stats.execution_cycles; in foreach_callback() 551 k_thread_runtime_stats_t stats, stats_all; in test_thread_runtime_stats_get() local 554 stats.execution_cycles = 0; in test_thread_runtime_stats_get() 555 k_thread_foreach(foreach_callback, &stats); in test_thread_runtime_stats_get() 562 zassert_equal(stats.execution_cycles, stats_all.execution_cycles, NULL); in test_thread_runtime_stats_get()
|
/Zephyr-Core-2.7.6/doc/reference/networking/ |
D | net_stats.rst | 16 :zephyr_file:`subsys/net/ip/Kconfig.stats` file for details. 33 show statistics information with ``net stats`` command.
|
/Zephyr-Core-2.7.6/subsys/bluetooth/shell/ |
D | gatt.c | 655 } stats; variable 663 stats.attr_count++; in print_attr() 667 stats.svc_count++; in print_attr() 671 stats.chrc_count++; in print_attr() 676 stats.ccc_count++; in print_attr() 691 memset(&stats, 0, sizeof(stats)); in cmd_show_db() 711 if (!stats.attr_count) { in cmd_show_db() 716 total_len = stats.svc_count * sizeof(struct bt_gatt_service); in cmd_show_db() 717 total_len += stats.chrc_count * sizeof(struct bt_gatt_chrc); in cmd_show_db() 718 total_len += stats.attr_count * sizeof(struct bt_gatt_attr); in cmd_show_db() [all …]
|
/Zephyr-Core-2.7.6/samples/net/stats/ |
D | README.rst | 13 :zephyr_file:`samples/net/stats`. 29 :zephyr-app: samples/net/stats
|
D | CMakeLists.txt | 6 project(stats) project
|
/Zephyr-Core-2.7.6/kernel/ |
D | thread.c | 1057 thread->rt_stats.stats.execution_cycles += diff; in z_thread_mark_switched_out() 1069 k_thread_runtime_stats_t *stats) in k_thread_runtime_stats_get() argument 1071 if ((thread == NULL) || (stats == NULL)) { in k_thread_runtime_stats_get() 1075 (void)memcpy(stats, &thread->rt_stats.stats, in k_thread_runtime_stats_get() 1076 sizeof(thread->rt_stats.stats)); in k_thread_runtime_stats_get() 1081 int k_thread_runtime_stats_all_get(k_thread_runtime_stats_t *stats) in k_thread_runtime_stats_all_get() argument 1083 if (stats == NULL) { in k_thread_runtime_stats_all_get() 1087 (void)memcpy(stats, &threads_runtime_stats, in k_thread_runtime_stats_all_get()
|
/Zephyr-Core-2.7.6/include/sys/ |
D | mem_manage.h | 453 __syscall void k_mem_paging_stats_get(struct k_mem_paging_stats_t *stats); 467 struct k_mem_paging_stats_t *stats);
|
/Zephyr-Core-2.7.6/samples/net/stats/src/ |
D | main.c | 20 #define GET_STAT(iface, s) (iface ? iface->stats.s : data->s) 160 static void stats(struct k_work *work) in stats() function 185 k_work_init_delayable(&stats_timer, stats); in init_app()
|
/Zephyr-Core-2.7.6/drivers/net/ |
D | ppp.c | 83 struct net_stats_ppp stats; member 382 ppp->stats.chkerr++; in ppp_check_fcs() 398 ppp->stats.drop++; in ppp_process_msg() 399 ppp->stats.pkts.rx++; in ppp_process_msg() 414 ppp->stats.drop++; in ppp_process_msg() 415 ppp->stats.pkts.rx++; in ppp_process_msg() 797 return &context->stats; in ppp_get_stats()
|
/Zephyr-Core-2.7.6/drivers/ethernet/ |
D | eth_xlnx_gem.c | 358 dev_data->stats.tx_dropped++; in eth_xlnx_gem_send() 367 dev_data->stats.errors.tx++; in eth_xlnx_gem_send() 406 dev_data->stats.tx_dropped++; in eth_xlnx_gem_send() 485 dev_data->stats.bytes.sent += tx_data_length; in eth_xlnx_gem_send() 486 dev_data->stats.pkts.tx++; in eth_xlnx_gem_send() 494 dev_data->stats.tx_timeout_count++; in eth_xlnx_gem_send() 660 return &(DEV_DATA(dev)->stats); in eth_xlnx_gem_stats() 1429 dev_data->stats.errors.rx++; in eth_xlnx_gem_handle_rx_pending() 1430 dev_data->stats.error_details.rx_no_buffer_count++; in eth_xlnx_gem_handle_rx_pending() 1474 dev_data->stats.bytes.received += rx_data_length; in eth_xlnx_gem_handle_rx_pending() [all …]
|
D | eth_stellaris_priv.h | 59 struct net_stats_eth stats; member
|
/Zephyr-Core-2.7.6/drivers/wifi/esp32/src/ |
D | esp_wifi_drv.c | 40 struct net_stats_eth stats; member 170 return &(DEV_DATA(dev)->stats); in eth_esp32_stats()
|
/Zephyr-Core-2.7.6/subsys/ |
D | CMakeLists.txt | 24 add_subdirectory(stats)
|
/Zephyr-Core-2.7.6/drivers/neural_net/ |
D | intel_gna.c | 96 pending_resp.response.stats.cycles_per_sec = 200000000U; 98 pending_resp.response.stats.total_cycles = regs->gnaptc; 99 pending_resp.response.stats.stall_cycles = regs->gnasc; 101 pending_resp.response.stats.total_cycles = 0U; 102 pending_resp.response.stats.stall_cycles = 0U;
|
/Zephyr-Core-2.7.6/samples/bluetooth/iso_connected_benchmark/src/ |
D | main.c | 130 static void print_stats(char *name, struct iso_recv_stats *stats) in print_stats() argument 134 total_packets = stats->iso_recv_count + stats->iso_lost_count; in print_stats() 137 name, stats->iso_recv_count, total_packets, in print_stats() 138 (float)stats->iso_recv_count * 100 / total_packets, in print_stats() 139 stats->iso_lost_count); in print_stats()
|
/Zephyr-Core-2.7.6/subsys/shell/ |
D | shell_cmds.c | 317 shell_print(shell, "Lost logs: %u", shell->stats->log_lost_cnt); in cmd_shell_stats_show() 328 shell->stats->log_lost_cnt = 0; in cmd_shell_stats_reset() 434 SHELL_COND_CMD(CONFIG_SHELL_STATS, stats, &m_sub_shell_stats,
|