[PATCH v3 0/5] add mbuf debug capabilities
Thomas Monjalon
thomas at monjalon.net
Wed Oct 1 01:25:01 CEST 2025
History is added to mbuf for debugging.
This series set some marks in mbuf allocation/freeing and ethdev Rx/Tx.
More marks could be added in other libraries.
Drivers could benefit a finer debugging by marking alloc/free calls,
in addition to marks already done in the mbuf library.
Even better, the application could add its own marks.
As part of this series, mbuf statistics can be dumped,
and a Python script will help to parse mbuf history.
The changes in this v3 are mainly in the mbuf library.
Most comments are addressed, except suggestions for the mempool library.
The patch adding detailed marks in the mlx5 PMD is removed from this series.
Shani Peretz (4):
mbuf: record mbuf operations history
ethdev: mark mbufs in burst functions
app/testpmd: add commands to dump mbuf history
usertools/mbuf: parse mbuf history dump
Thomas Monjalon (1):
mbuf: move header include for logs
app/test-pmd/cmdline.c | 246 +++++++++++++++++++++++++-
config/meson.build | 1 +
lib/ethdev/rte_ethdev.h | 15 ++
lib/mbuf/mbuf_history.c | 214 ++++++++++++++++++++++
lib/mbuf/mbuf_log.h | 2 +
lib/mbuf/meson.build | 2 +
lib/mbuf/rte_mbuf.c | 7 +-
lib/mbuf/rte_mbuf.h | 13 +-
lib/mbuf/rte_mbuf_dyn.h | 18 ++
lib/mbuf/rte_mbuf_history.h | 174 ++++++++++++++++++
meson_options.txt | 2 +
usertools/dpdk-mbuf_history_parser.py | 173 ++++++++++++++++++
12 files changed, 862 insertions(+), 5 deletions(-)
create mode 100644 lib/mbuf/mbuf_history.c
create mode 100644 lib/mbuf/rte_mbuf_history.h
create mode 100755 usertools/dpdk-mbuf_history_parser.py
--
2.51.0
More information about the dev
mailing list