2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-22 09:58:01 +00:00

dpdk: Add ovs-appctl dpdk/get-memzone-stats command.

New appctl 'dpdk/get-memzone-stats' implemented to get result of
'rte_memzone_dump()' function.

Could be used for debugging.

Acked-by: Roi Dayan <roid@nvidia.com>
Acked-by: Simon Horman <horms@ovn.org>
Signed-off-by: Eli Britstein <elibr@nvidia.com>
Signed-off-by: Eelco Chaudron <echaudro@redhat.com>
This commit is contained in:
Eli Britstein 2025-01-21 12:41:38 +02:00 committed by Eelco Chaudron
parent 1594c50861
commit ae8dafe6b0
3 changed files with 6 additions and 0 deletions

2
NEWS
View File

@ -1,5 +1,7 @@
Post-v3.5.0
--------------------
- DPDK:
* New debug appctl command 'dpdk/get-memzone-stats'.
v3.5.0 - xx xxx xxxx

View File

@ -15,5 +15,7 @@ components (see \fBdpdk/log-list\fR command on \fBovs\-appctl\fR(8)) separated
by a colon from the logging \fBlevel\fR to apply.
.IP "\fBdpdk/get-malloc-stats\fR"
Prints the heap information statistics about DPDK malloc.
.IP "\fBdpdk/get-memzone-stats\fR"
Prints the reserved memory zones from DPDK.
.RE
.

View File

@ -437,6 +437,8 @@ dpdk_init__(const struct smap *ovs_other_config)
unixctl_command_register("dpdk/get-malloc-stats", "", 0, 0,
dpdk_unixctl_mem_stream,
malloc_dump_stats_wrapper);
unixctl_command_register("dpdk/get-memzone-stats", "", 0, 0,
dpdk_unixctl_mem_stream, rte_memzone_dump);
/* We are called from the main thread here */
RTE_PER_LCORE(_lcore_id) = NON_PMD_CORE_ID;