aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorHATAYAMA Daisuke <[email protected]>2013-07-03 15:02:18 -0700
committerLinus Torvalds <[email protected]>2013-07-03 16:07:30 -0700
commite69e9d4aee712a22665f008ae0550bb3d7c7f7c1 (patch)
treebb63cd5b881678c902f6b5e197a107022825be30 /tools/perf/scripts/python
parentcef2ac3f6c8ab532e49cf69d05f540931ad8ee64 (diff)
vmalloc: introduce remap_vmalloc_range_partial
We want to allocate ELF note segment buffer on the 2nd kernel in vmalloc space and remap it to user-space in order to reduce the risk that memory allocation fails on system with huge number of CPUs and so with huge ELF note segment that exceeds 11-order block size. Although there's already remap_vmalloc_range for the purpose of remapping vmalloc memory to user-space, we need to specify user-space range via vma. Mmap on /proc/vmcore needs to remap range across multiple objects, so the interface that requires vma to cover full range is problematic. This patch introduces remap_vmalloc_range_partial that receives user-space range as a pair of base address and size and can be used for mmap on /proc/vmcore case. remap_vmalloc_range is rewritten using remap_vmalloc_range_partial. [[email protected]: use PAGE_ALIGNED()] Signed-off-by: HATAYAMA Daisuke <[email protected]> Cc: KOSAKI Motohiro <[email protected]> Cc: Vivek Goyal <[email protected]> Cc: Atsushi Kumagai <[email protected]> Cc: Lisa Mitchell <[email protected]> Cc: Zhang Yanfei <[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