common: fix kmemleak to work with sections
authorDarrick J. Wong <darrick.wong@oracle.com>
Tue, 12 Feb 2019 02:17:26 +0000 (18:17 -0800)
committerEryu Guan <guaneryu@gmail.com>
Sat, 16 Feb 2019 11:10:38 +0000 (19:10 +0800)
commit0c24aa077f6452710ba38c21e2b5dbded4951afe
treeba0ed02e6860f6e1e6c6e957fd08fc93131ff7c6
parentc869a6712a86ae1971f39baf3ebeb4d71d106f1c
common: fix kmemleak to work with sections

Refactor the kmemleak code to work correctly with sections.  This
requires changing the location of the "is kmemleak enabled?" flag to
use /tmp instead of RESULT_BASE, scanning for leaks after every
test, and clarifying which functions get used when.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
README
check
common/rc