Lines Matching +full:100 +full:base +full:- +full:t
4 * SPDX-License-Identifier: Apache-2.0
54 return "VI"; /* Video, < 100 ms latency and jitter */ in priority2str()
69 return (int64_t)(val1 - val2); in cmp_val()
88 NET_INFO("IPv6 recv %d\tsent\t%d\tdrop\t%d\tforwarded\t%d", in stats()
94 NET_INFO("IPv6 ND recv %d\tsent\t%d\tdrop\t%d", in stats()
100 NET_INFO("IPv6 PMTU recv %d\tsent\t%d\tdrop\t%d", in stats()
106 NET_INFO("IPv6 MLD recv %d\tsent\t%d\tdrop\t%d", in stats()
114 NET_INFO("IPv4 recv %d\tsent\t%d\tdrop\t%d\tforwarded\t%d", in stats()
121 NET_INFO("IP vhlerr %d\thblener\t%d\tlblener\t%d", in stats()
125 NET_INFO("IP fragerr %d\tchkerr\t%d\tprotoer\t%d", in stats()
131 NET_INFO("IPv4 PMTU recv %d\tsent\t%d\tdrop\t%d", in stats()
137 NET_INFO("ICMP recv %d\tsent\t%d\tdrop\t%d", in stats()
141 NET_INFO("ICMP typeer %d\tchkerr\t%d", in stats()
146 NET_INFO("UDP recv %d\tsent\t%d\tdrop\t%d", in stats()
155 NET_INFO("TCP bytes recv %u\tsent\t%d", in stats()
158 NET_INFO("TCP seg recv %d\tsent\t%d\tdrop\t%d", in stats()
162 NET_INFO("TCP seg resent %d\tchkerr\t%d\tackerr\t%d", in stats()
166 NET_INFO("TCP seg rsterr %d\trst\t%d\tre-xmit\t%d", in stats()
170 NET_INFO("TCP conn drop %d\tconnrst\t%d", in stats()
186 NET_INFO("[%d] %s (%d)\t%d\t\t%d", i, in stats()
200 NET_INFO("[%d] %s (%d)\t%d\t\t%d", i, in stats()
265 src = iface ? &iface->stats : &net_stats; in net_stats_get()
339 return -EINVAL; in net_stats_get()
424 if (entry->user_data == (void *)iface) { in register_prometheus_metrics()
425 iface->collector = entry; in register_prometheus_metrics()
430 if (iface->collector == NULL) { in register_prometheus_metrics()
437 if (entry->base.collector != iface->collector) { in register_prometheus_metrics()
441 prometheus_collector_register_metric(iface->collector, in register_prometheus_metrics()
442 &entry->base); in register_prometheus_metrics()
447 if (entry->base.collector != iface->collector) { in register_prometheus_metrics()
451 prometheus_collector_register_metric(iface->collector, in register_prometheus_metrics()
452 &entry->base); in register_prometheus_metrics()
457 if (entry->base.collector != iface->collector) { in register_prometheus_metrics()
461 prometheus_collector_register_metric(iface->collector, in register_prometheus_metrics()
462 &entry->base); in register_prometheus_metrics()
467 if (entry->base.collector != iface->collector) { in register_prometheus_metrics()
471 prometheus_collector_register_metric(iface->collector, in register_prometheus_metrics()
472 &entry->base); in register_prometheus_metrics()
493 return -EINVAL; in net_stats_prometheus_scrape()
496 if (iface->collector != collector) { in net_stats_prometheus_scrape()
497 return -EINVAL; in net_stats_prometheus_scrape()
501 if (metric->type == PROMETHEUS_COUNTER) { in net_stats_prometheus_scrape()
503 CONTAINER_OF(metric, struct prometheus_counter, base); in net_stats_prometheus_scrape()
505 if (counter->user_data == NULL) { in net_stats_prometheus_scrape()
506 return -EAGAIN; in net_stats_prometheus_scrape()
509 value = *((net_stats_t *)counter->user_data); in net_stats_prometheus_scrape()
513 } else if (metric->type == PROMETHEUS_GAUGE) { in net_stats_prometheus_scrape()
515 CONTAINER_OF(metric, struct prometheus_gauge, base); in net_stats_prometheus_scrape()
517 if (gauge->user_data == NULL) { in net_stats_prometheus_scrape()
518 return -EAGAIN; in net_stats_prometheus_scrape()
521 value = *((net_stats_t *)gauge->user_data); in net_stats_prometheus_scrape()
525 } else if (metric->type == PROMETHEUS_HISTOGRAM) { in net_stats_prometheus_scrape()
527 CONTAINER_OF(metric, struct prometheus_histogram, base); in net_stats_prometheus_scrape()
529 if (histogram->user_data == NULL) { in net_stats_prometheus_scrape()
530 return -EAGAIN; in net_stats_prometheus_scrape()
533 } else if (metric->type == PROMETHEUS_SUMMARY) { in net_stats_prometheus_scrape()
535 CONTAINER_OF(metric, struct prometheus_summary, base); in net_stats_prometheus_scrape()
537 if (summary->user_data == NULL) { in net_stats_prometheus_scrape()
538 return -EAGAIN; in net_stats_prometheus_scrape()
542 strstr(metric->name, "_tx_time_summary") == 0) { in net_stats_prometheus_scrape()
545 (struct net_stats_tx_time *)summary->user_data; in net_stats_prometheus_scrape()
549 (double)tx_time->sum, in net_stats_prometheus_scrape()
550 (unsigned long)tx_time->count))); in net_stats_prometheus_scrape()
552 strstr(metric->name, "_rx_time_summary") == 0) { in net_stats_prometheus_scrape()
555 (struct net_stats_rx_time *)summary->user_data; in net_stats_prometheus_scrape()
559 (double)rx_time->sum, in net_stats_prometheus_scrape()
560 (unsigned long)rx_time->count))); in net_stats_prometheus_scrape()
563 NET_DBG("Unknown metric type %d", metric->type); in net_stats_prometheus_scrape()