Skip to content

Commit

Permalink
example: debug: call odp_pktio_extra_stats_print()
Browse files Browse the repository at this point in the history
In pktio case, call extra statistics print in addition to pktio
print.

Signed-off-by: Petri Savolainen <petri.savolainen@nokia.com>
Reviewed-by: Matias Elo <matias.elo@nokia.com>
  • Loading branch information
psavol committed Dec 14, 2023
1 parent 47fb707 commit 17b9c31
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion example/debug/odp_debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ static void print_usage(void)
" -s, --shm Create a SHM and call odp_shm_print()\n"
" -p, --pool Create various types of pools and call odp_pool_print()\n"
" -q, --queue Create various types of queues and call odp_queue_print()\n"
" -i, --interface Create packet IO interface (loop) and call odp_pktio_print()\n"
" -i, --interface Create packet IO interface (loop), and call both odp_pktio_print()\n"
" and odp_pktio_extra_stats_print()\n"
" -I, --ipsec Call odp_ipsec_print()\n"
" -t, --timer Call timer pool, timer and timeout print functions\n"
" -a, --stash Create stash and call odp_stash_print()\n"
Expand Down Expand Up @@ -342,6 +343,9 @@ static int pktio_debug(void)
printf("\n");
odp_pktio_print(pktio);

printf("\n");
odp_pktio_extra_stats_print(pktio);

if (odp_pktio_close(pktio)) {
ODPH_ERR("Pktio close failed\n");
return -1;
Expand Down

0 comments on commit 17b9c31

Please sign in to comment.