Re: [dpdk-dev] [RFC] malloc: add malloc and free log function

2020-04-03 Thread Burakov, Anatoly
On 03-Apr-20 8:54 AM, Xueming Li wrote: This patch introduces new feature to track rte_malloc leakage by logging malloc and free function. Hi, Thanks for the patch. A general comment - i would avoid mixing testpmd code with adding a new API to malloc. I understand this is an RFC so it's OK f

[dpdk-dev] [RFC] malloc: add malloc and free log function

2020-04-03 Thread Xueming Li
DPDK uses second level memory allocation management, this makes regular memory profiler tool not applicant. This patch trys to provide a lightweight malloc and free logging, then show leaked memory entries based on logs. This tool only target to malloc and free tracking, for memzone used by ring a

[dpdk-dev] [RFC] malloc: add malloc and free log function

2020-04-03 Thread Xueming Li
DPDK uses second level memory allocation management, this makes regular memory profiler tool not applicant. This patch trys to provide a lightweight malloc and free logging, then show leaked memory entries based on logs. This tool only target to malloc and free tracking, for memzone used by ring a

[dpdk-dev] [RFC] malloc: add malloc and free log function

2020-04-03 Thread Xueming Li
This patch introduces new feature to track rte_malloc leakage by logging malloc and free function. Signed-off-by: Xueming Li --- app/test-pmd/cmdline.c | 61 ++- doc/guides/testpmd_app_ug/testpmd_funcs.rst | 15 +++ lib/librte_eal/common/eal_memcfg.h | 18