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:
parent
1594c50861
commit
ae8dafe6b0
2
NEWS
2
NEWS
@ -1,5 +1,7 @@
|
|||||||
Post-v3.5.0
|
Post-v3.5.0
|
||||||
--------------------
|
--------------------
|
||||||
|
- DPDK:
|
||||||
|
* New debug appctl command 'dpdk/get-memzone-stats'.
|
||||||
|
|
||||||
|
|
||||||
v3.5.0 - xx xxx xxxx
|
v3.5.0 - xx xxx xxxx
|
||||||
|
@ -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.
|
by a colon from the logging \fBlevel\fR to apply.
|
||||||
.IP "\fBdpdk/get-malloc-stats\fR"
|
.IP "\fBdpdk/get-malloc-stats\fR"
|
||||||
Prints the heap information statistics about DPDK malloc.
|
Prints the heap information statistics about DPDK malloc.
|
||||||
|
.IP "\fBdpdk/get-memzone-stats\fR"
|
||||||
|
Prints the reserved memory zones from DPDK.
|
||||||
.RE
|
.RE
|
||||||
.
|
.
|
||||||
|
@ -437,6 +437,8 @@ dpdk_init__(const struct smap *ovs_other_config)
|
|||||||
unixctl_command_register("dpdk/get-malloc-stats", "", 0, 0,
|
unixctl_command_register("dpdk/get-malloc-stats", "", 0, 0,
|
||||||
dpdk_unixctl_mem_stream,
|
dpdk_unixctl_mem_stream,
|
||||||
malloc_dump_stats_wrapper);
|
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 */
|
/* We are called from the main thread here */
|
||||||
RTE_PER_LCORE(_lcore_id) = NON_PMD_CORE_ID;
|
RTE_PER_LCORE(_lcore_id) = NON_PMD_CORE_ID;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user