memleak: expand allocator coverage (#1214)
authorRinat Ibragimov <ibragimovrinat@mail.ru>
Tue, 11 Jul 2017 18:14:08 +0000 (21:14 +0300)
committerSasha Goldshtein <goldshtn@gmail.com>
Tue, 11 Jul 2017 18:14:08 +0000 (21:14 +0300)
commit2c1799c9f901ec68b1bf421f89e93340c33c620e
tree636631ffd3d1ab00633d8df0b7cb12a09f28eff3
parentb4691fbaea4ce10bce124c350db648abb49f1c5c
memleak: expand allocator coverage (#1214)

* memleak: handle libc allocation functions other than malloc

* memleak: use tracepoints to track kernel allocations

* memleak: add combined-only mode

With large number of outstanding allocations, amount of data passed from
kernel becomes large, which slows everything down.

This patch calculates allocation statistics inside kernel, allowing user-
space part to pull combined statistics data only, thus significantly
reducing amount of passed data.

* memleak: increase hashtable capacities

There are a lot of allocations happen in kernel. Default values are not
enough to keep up.

* test: add a test for the memleak tool
man/man8/memleak.8
tests/python/CMakeLists.txt
tests/python/test_tools_memleak.py [new file with mode: 0755]
tests/python/test_tools_memleak_leaker_app.c [new file with mode: 0644]
tools/memleak.py
tools/memleak_example.txt