Lines Matching refs:printf

48 #define STATS_BDR_STR(w, s) printf("%.*s%s%.*s\n", w, \
108 printf("%s [EAL options] -- -p PORTMASK\n" in proc_info_usage()
197 printf("Invalid host id or not specified\n"); in proc_info_preparse_args()
317 printf("name:%s:%s\n", in proc_info_parse_args()
326 printf("xstats-id list parse error.\n"); in proc_info_parse_args()
343 printf("----------- MEMORY_SEGMENTS -----------\n"); in meminfo_display()
345 printf("--------- END_MEMORY_SEGMENTS ---------\n"); in meminfo_display()
347 printf("------------ MEMORY_ZONES -------------\n"); in meminfo_display()
349 printf("---------- END_MEMORY_ZONES -----------\n"); in meminfo_display()
351 printf("------------- TAIL_QUEUES -------------\n"); in meminfo_display()
353 printf("---------- END_TAIL_QUEUES ------------\n"); in meminfo_display()
365 printf("\n %s NIC statistics for port %-2d %s\n", in nic_stats_display()
368 printf(" RX-packets: %-10"PRIu64" RX-errors: %-10"PRIu64 in nic_stats_display()
371 printf(" RX-nombuf: %-10"PRIu64"\n", stats.rx_nombuf); in nic_stats_display()
372 printf(" TX-packets: %-10"PRIu64" TX-errors: %-10"PRIu64 in nic_stats_display()
376 printf("\n"); in nic_stats_display()
378 printf(" Stats reg %2d RX-packets: %-10"PRIu64 in nic_stats_display()
384 printf("\n"); in nic_stats_display()
386 printf(" Stats reg %2d TX-packets: %-10"PRIu64 in nic_stats_display()
391 printf(" %s############################%s\n", in nic_stats_display()
398 printf("\n Clearing NIC stats for port %d\n", port_id); in nic_stats_clear()
400 printf("\n NIC statistics for port %d cleared\n", port_id); in nic_stats_clear()
460 printf("###### NIC statistics for port %-2d, statistic name '%s':\n", in nic_xstats_by_name_display()
464 printf("%s: %"PRIu64"\n", name, id); in nic_xstats_by_name_display()
466 printf("Statistic not found...\n"); in nic_xstats_by_name_display()
480 printf("Cannot allocate memory for xstats\n"); in nic_xstats_by_ids_display()
486 printf("Cannot allocate memory for xstat names\n"); in nic_xstats_by_ids_display()
493 printf("Cannot get xstat names\n"); in nic_xstats_by_ids_display()
497 printf("###### NIC extended statistics for port %-2d #########\n", in nic_xstats_by_ids_display()
499 printf("%s############################\n", nic_stats_border); in nic_xstats_by_ids_display()
502 printf("Cannot get xstats\n"); in nic_xstats_by_ids_display()
507 printf("%s: %"PRIu64"\n", in nic_xstats_by_ids_display()
511 printf("%s############################\n", nic_stats_border); in nic_xstats_by_ids_display()
527 printf("Cannot get xstats count\n"); in nic_xstats_display()
532 printf("Cannot allocate memory for xstats\n"); in nic_xstats_display()
538 printf("Cannot allocate memory for xstat names\n"); in nic_xstats_display()
544 printf("Cannot get xstat names\n"); in nic_xstats_display()
548 printf("###### NIC extended statistics for port %-2d #########\n", in nic_xstats_display()
550 printf("%s############################\n", in nic_xstats_display()
554 printf("Cannot get xstats\n"); in nic_xstats_display()
577 printf("%s: %"PRIu64"\n", xstats_names[i].name, in nic_xstats_display()
582 printf("%s############################\n", in nic_xstats_display()
594 printf("\n Clearing NIC xstats for port %d\n", port_id); in nic_xstats_clear()
597 printf("\n Error clearing xstats for port %d: %s\n", port_id, in nic_xstats_clear()
602 printf("\n NIC extended statistics for port %d cleared\n", port_id); in nic_xstats_clear()
616 printf("Cannot get metrics count\n"); in metrics_display()
620 printf("No metrics to display (none have been registered)\n"); in metrics_display()
627 printf("Cannot allocate memory for metrics\n"); in metrics_display()
633 printf("Cannot allocate memory for metrics names\n"); in metrics_display()
639 printf("Cannot get metrics names\n"); in metrics_display()
646 printf("###### Non port specific metrics #########\n"); in metrics_display()
648 printf("###### metrics for port %-2d #########\n", port_id); in metrics_display()
649 printf("%s############################\n", nic_stats_border); in metrics_display()
652 printf("Cannot get metrics values\n"); in metrics_display()
660 printf("%s: %"PRIu64"\n", names[i].name, metrics[i].value); in metrics_display()
662 printf("%s############################\n", nic_stats_border); in metrics_display()
682 printf(" - crypto context\n"); in show_security_context()
683 printf("\t -- security context - %p\n", p_ctx); in show_security_context()
684 printf("\t -- size %u\n", in show_security_context()
689 printf("\t -- action (0x%x), protocol (0x%x)," in show_security_context()
694 printf("\t -- capabilities - oper type %x\n", in show_security_context()
703 printf(" offloads :"); in show_offloads()
706 printf(" %s", show_offload(offload_flag)); in show_offloads()
741 printf(" - generic config\n"); in show_port()
745 printf("Error during getting device info: %s\n", in show_port()
750 printf("\t -- driver %s device %s socket %d\n", in show_port()
756 printf("\t -- owner %#"PRIx64":%s\n", in show_port()
761 printf("Link get failed (port %u): %s\n", in show_port()
767 printf("\t%s\n", link_status_text); in show_port()
772 printf("\t -- flow control mode %s%s high %u low %u pause %u%s%s\n", in show_port()
789 printf("\t -- mac %s\n", ebuf); in show_port()
794 printf("\t -- promiscuous mode %s\n", in show_port()
799 printf("\t -- all multicast mode %s\n", in show_port()
804 printf("\t -- mtu (%d)\n", mtu); in show_port()
815 printf(" - rx queue\n"); in show_port()
817 printf("\t -- %d descriptors ", j); in show_port()
820 printf("%d/", count); in show_port()
821 printf("%u", queue_info.nb_desc); in show_port()
824 printf(" scattered"); in show_port()
827 printf(" drop_en"); in show_port()
830 printf(" deferred_start"); in show_port()
833 printf(" rx buffer size %u", in show_port()
836 printf(" mempool %s socket %d", in show_port()
843 printf("\n"); in show_port()
854 printf(" - tx queue\n"); in show_port()
856 printf("\t -- %d descriptors %d", in show_port()
859 printf(" thresh %u/%u", in show_port()
864 printf(" deferred_start"); in show_port()
868 printf("\n"); in show_port()
874 printf(" - RSS\n"); in show_port()
875 printf("\t -- RSS len %u key (hex):", in show_port()
878 printf(" %x", rss_conf.rss_key[k]); in show_port()
879 printf("\t -- hf 0x%"PRIx64"\n", in show_port()
897 printf("\t -- nonleaf sched max:\n" in display_nodecap_info()
909 printf("\t -- leaf cman support:\n" in display_nodecap_info()
930 printf("\t -- shaper private: (%d) dual rate (%d)\n", in display_levelcap_info()
933 printf("\t -- shaper share: (%u)\n", in display_levelcap_info()
935 printf("\t -- non leaf sched MAX:\n" in display_levelcap_info()
947 printf("\t -- shaper private: (%d) dual rate (%d)\n", in display_levelcap_info()
950 printf("\t -- shaper share: (%u)\n", in display_levelcap_info()
952 printf(" -- leaf cman support:\n" in display_levelcap_info()
989 printf("Error during getting device (port %u) info: %s\n", in show_tm()
994 printf(" - Generic for port (%u)\n" in show_tm()
1009 printf(" - MAX: nodes (%u) levels (%u) children (%u)\n", in show_tm()
1014 printf(" - identical nodes: non leaf (%d) leaf (%d)\n", in show_tm()
1018 printf(" - Shaper MAX:\n" in show_tm()
1028 printf(" - mark support:\n"); in show_tm()
1029 printf("\t -- vlan dei: GREEN (%d) YELLOW (%d) RED (%d)\n", in show_tm()
1033 printf("\t -- ip ecn tcp: GREEN (%d) YELLOW (%d) RED (%d)\n", in show_tm()
1037 printf("\t -- ip ecn sctp: GREEN (%d) YELLOW (%d) RED (%d)\n", in show_tm()
1041 printf("\t -- ip dscp: GREEN (%d) YELLOW (%d) RED (%d)\n", in show_tm()
1046 printf(" - mask stats (0x%"PRIx64")" in show_tm()
1051 printf(" - sched MAX:\n" in show_tm()
1063 printf(" - CMAN support:\n" in show_tm()
1069 printf("\t -- MAX WRED CONTEXT:" in show_tm()
1084 printf(" NODE %u\n", j); in show_tm()
1085 printf("\t - shaper private: (%d) dual rate (%d)\n", in show_tm()
1088 printf("\t - shaper shared max: (%u)\n", in show_tm()
1090 printf("\t - stats mask %"PRIx64"\n", in show_tm()
1107 printf(" - Level %u\n", j); in show_tm()
1108 printf("\t -- node MAX: %u non leaf %u leaf %u\n", in show_tm()
1112 printf("\t -- identical: non leaf %u leaf %u\n", in show_tm()
1130 printf(" - leaf nodes (%u)\n", n_leaf_nodes); in show_tm()
1142 printf(" - STATS for node (%u)\n", j); in show_tm()
1143 printf(" -- pkts (%"PRIu64") bytes (%"PRIu64")\n", in show_tm()
1150 printf(" -- leaf queued:" in show_tm()
1154 printf(" - dropped:\n" in show_tm()
1177 printf("\t -- feature flags\n"); in display_crypto_feature_info()
1178 printf("\t\t + symmetric (%c), asymmetric (%c)\n" in display_crypto_feature_info()
1183 printf("\t\t + CPU: SSE (%c), AVX (%c), AVX2 (%c), AVX512 (%c)\n", in display_crypto_feature_info()
1188 printf("\t\t + AESNI: CPU (%c), HW (%c)\n", in display_crypto_feature_info()
1191 printf("\t\t + SECURITY OFFLOAD (%c)\n", in display_crypto_feature_info()
1193 printf("\t\t + ARM: NEON (%c), CE (%c)\n", in display_crypto_feature_info()
1196 printf("\t -- buffer offload\n"); in display_crypto_feature_info()
1197 printf("\t\t + IN_PLACE_SGL (%c)\n", in display_crypto_feature_info()
1199 printf("\t\t + OOP_SGL_IN_SGL_OUT (%c)\n", in display_crypto_feature_info()
1201 printf("\t\t + OOP_SGL_IN_LB_OUT (%c)\n", in display_crypto_feature_info()
1203 printf("\t\t + OOP_LB_IN_SGL_OUT (%c)\n", in display_crypto_feature_info()
1205 printf("\t\t + OOP_LB_IN_LB_OUT (%c)\n", in display_crypto_feature_info()
1223 printf(" - device (%u)\n", i); in show_crypto()
1224 printf("\t -- name (%s)\n" in show_crypto()
1237 printf("\t -- stats\n"); in show_crypto()
1238 printf("\t\t + enqueue count (%"PRIu64")" in show_crypto()
1242 printf("\t\t + dequeue count (%"PRIu64")" in show_crypto()
1263 printf(" - Name (%s) on socket (%d)\n" in show_ring()
1271 printf(" - size (%u) mask (0x%x) capacity (%u)\n", in show_ring()
1275 printf(" - count (%u) free count (%u)\n", in show_ring()
1278 printf(" - full (%d) empty (%d)\n", in show_ring()
1303 printf(" - Name: %s on socket %d\n" in show_mempool()
1320 printf(" - Size %u Cache %u element %u\n" in show_mempool()
1329 printf(" - memezone - socket %d\n", in show_mempool()
1331 printf(" - Count: avail (%u), in use (%u)\n", in show_mempool()
1334 printf(" - ops_index %d ops_name %s\n", in show_mempool()
1348 printf(" - obj_idx %u opaque %p obj %p\n", in mempool_itr_obj()
1368 printf("\n - iterated %u objects\n", ret); in iter_mempool()
1400 printf("Error getting device info: %d\n", ret); in dump_regs()
1407 printf("Error getting device reg info: %d\n", ret); in dump_regs()
1414 printf("Error allocating %zu bytes buffer\n", buf_size); in dump_regs()
1422 printf("Error getting regs from device: %d\n", ret); in dump_regs()
1431 printf("Error during opening '%s' for writing: %s\n", in dump_regs()
1438 printf("Error during writing %s: %s\n", in dump_regs()
1441 printf("Device (%s) regs dumped successfully, " in dump_regs()
1468 printf("Failed to parse arguments\n"); in main()
1570 printf("Error from rte_eal_cleanup(), %d\n", ret); in main()