diff options
author | Qiaowei Ren <[email protected]> | 2014-11-14 07:18:27 -0800 |
---|---|---|
committer | Thomas Gleixner <[email protected]> | 2014-11-18 00:58:53 +0100 |
commit | 57319d80e1d328e34cb24868a4f4405661485e30 (patch) | |
tree | bf8d64fe730c72f9e52717cc7ff7389aa44ba209 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | 4aae7e436fa51faf4bf5d11b175aea82cfe8224a (diff) |
x86, mpx: Add MPX-specific mmap interface
We have chosen to perform the allocation of bounds tables in
kernel (See the patch "on-demand kernel allocation of bounds
tables") and to mark these VMAs with VM_MPX.
However, there is currently no suitable interface to actually do
this. Existing interfaces, like do_mmap_pgoff(), have no way to
set a modified ->vm_ops or ->vm_flags and don't hold mmap_sem
long enough to let a caller do it.
This patch wraps mmap_region() and hold mmap_sem long enough to
make the modifications to the VMA which we need.
Also note the 32/64-bit #ifdef in the header. We actually need
to do this at runtime eventually. But, for now, we don't support
running 32-bit binaries on 64-bit kernels. Support for this will
come in later patches.
Signed-off-by: Qiaowei Ren <[email protected]>
Signed-off-by: Dave Hansen <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: Dave Hansen <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Thomas Gleixner <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions