diff options
| author | Oleg Nesterov <[email protected]> | 2014-05-19 18:41:36 +0000 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2014-06-05 10:30:11 +0000 |
| commit | 40814f6805a524130a5ec313871147f7aa9b5318 (patch) | |
| tree | 2605a03d0a7360c377126c590cb929e1ed9d0057 /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/EventClass.py | |
| parent | uprobes: Shift ->readpage check from __copy_insn() to uprobe_register() (diff) | |
| download | kernel-40814f6805a524130a5ec313871147f7aa9b5318.tar.gz kernel-40814f6805a524130a5ec313871147f7aa9b5318.zip | |
uprobes: Teach copy_insn() to support tmpfs
tmpfs is widely used but as Denys reports shmem_aops doesn't have
->readpage() and thus you can't probe a binary on this filesystem.
As Hugh suggested we can use shmem_read_mapping_page() in this case,
just we need to check shmem_mapping() if ->readpage == NULL.
Reported-by: Denys Vlasenko <[email protected]>
Suggested-by: Hugh Dickins <[email protected]>
Signed-off-by: Oleg Nesterov <[email protected]>
Acked-by: Srikar Dronamraju <[email protected]>
Signed-off-by: Peter Zijlstra <[email protected]>
Cc: Arnaldo Carvalho de Melo <[email protected]>
Cc: Linus Torvalds <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/EventClass.py')
0 files changed, 0 insertions, 0 deletions
