diff options
author | Feng Tang <feng.tang@intel.com> | 2024-10-16 23:41:52 +0800 |
---|---|---|
committer | Vlastimil Babka <vbabka@suse.cz> | 2024-11-16 21:19:39 +0100 |
commit | 080c8579c37ec9c11cfb8b9eb25b74912b33dc06 (patch) | |
tree | 53794ad683db5cacaa3330331a178ce77dd0f2fc /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 5474d33ca48e7764ccc38b2ac089863cca83280a (diff) | |
download | linux-stable-080c8579c37ec9c11cfb8b9eb25b74912b33dc06.tar.gz linux-stable-080c8579c37ec9c11cfb8b9eb25b74912b33dc06.tar.bz2 linux-stable-080c8579c37ec9c11cfb8b9eb25b74912b33dc06.zip |
mm/slub, kunit: Add testcase for krealloc redzone and zeroing
Danilo Krummrich raised issue about krealloc+GFP_ZERO [1], and Vlastimil
suggested to add some test case which can sanity test the kmalloc-redzone
and zeroing by utilizing the kmalloc's 'orig_size' debug feature.
It covers the grow and shrink case of krealloc() re-using current kmalloc
object, and the case of re-allocating a new bigger object.
[1]. https://lore.kernel.org/lkml/20240812223707.32049-1-dakr@kernel.org/
Suggested-by: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: Feng Tang <feng.tang@intel.com>
Signed-off-by: Vlastimil Babka <vbabka@suse.cz>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions