Whamcloud - gitweb
LU-14736 utils: update leak-finder.pl for new format
Update leak-finder.pl to handle some of the newer log formats,
so that it produces more useful results. The changes include:
- add option "--by_func" to sort leak logs by function name in
ascending order;
- add option "--summary" to print a summary report by the total
number of leak bytes of each function in ascending order in
YAML format,
"- { func: <function_name>, alloc_bytes: <bytes>,
leak_count: <count>, leak_bytes: <bytes> },"
- define LIBCFS_MEM_MSG() to print alloc/free log in a uniform
format, as follows, also define LIBCFS_ALLOC_POST() and
LIBCFS_FREE_PRE():
mask:subs:cpu:epoch second.usec:?:pid:?:
(filename:line:function_name()) alloc-type 'var_name': size at
memory_address
- correct some alloc/free debug messages in lnet part.
Test-Parameters: trivial
Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Signed-off-by: Emoly Liu <emoly@whamcloud.com>
Change-Id: Idee539f7aebbd49a52fe5254d292860c283ebbe5
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/43983
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Zhenyu Xu <bobijam@hotmail.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
13 files changed: