diff options
author | 2015-02-11 15:25:07 -0800 | |
---|---|---|
committer | 2015-02-11 17:06:01 -0800 | |
commit | 23f086f962e67a1b8a508c0d8e86b7833c941564 (patch) | |
tree | e76cfd9b87fe025fde008bbc3d8520cc7184a96c /tools/perf/scripts/python/syscall-counts.py | |
parent | mm/page_alloc.c:__alloc_pages_nodemask(): don't alter arg gfp_mask (diff) | |
download | linux-dev-23f086f962e67a1b8a508c0d8e86b7833c941564.tar.xz linux-dev-23f086f962e67a1b8a508c0d8e86b7833c941564.zip |
kmemcheck: move hook into __alloc_pages_nodemask() for the page allocator
Now kmemcheck_pagealloc_alloc() is only called by __alloc_pages_slowpath().
__alloc_pages_nodemask()
__alloc_pages_slowpath()
kmemcheck_pagealloc_alloc()
And the page will not be tracked by kmemcheck in the following path.
__alloc_pages_nodemask()
get_page_from_freelist()
So move kmemcheck_pagealloc_alloc() into __alloc_pages_nodemask(),
like this:
__alloc_pages_nodemask()
...
get_page_from_freelist()
if (!page)
__alloc_pages_slowpath()
kmemcheck_pagealloc_alloc()
...
Signed-off-by: Xishi Qiu <qiuxishi@huawei.com>
Cc: Vegard Nossum <vegard.nossum@oracle.com>
Cc: Pekka Enberg <penberg@kernel.org>
Cc: Li Zefan <lizefan@huawei.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions