diff options
| author | Xishi Qiu <[email protected]> | 2015-02-11 15:25:07 -0800 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2015-02-11 17:06:01 -0800 |
| commit | 23f086f962e67a1b8a508c0d8e86b7833c941564 (patch) | |
| tree | e76cfd9b87fe025fde008bbc3d8520cc7184a96c /tools/perf/scripts/python | |
| parent | 91fbdc0f89807bb97792ea6893717a8d3154b871 (diff) | |
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 <[email protected]>
Cc: Vegard Nossum <[email protected]>
Cc: Pekka Enberg <[email protected]>
Cc: Li Zefan <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions