aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/sctop.py
diff options
context:
space:
mode:
authorOleg Nesterov <[email protected]>2014-05-19 18:41:36 +0000
committerIngo Molnar <[email protected]>2014-06-05 10:30:11 +0000
commit40814f6805a524130a5ec313871147f7aa9b5318 (patch)
tree2605a03d0a7360c377126c590cb929e1ed9d0057 /tools/perf/scripts/python/sctop.py
parentuprobes: Shift ->readpage check from __copy_insn() to uprobe_register() (diff)
downloadkernel-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/sctop.py')
0 files changed, 0 insertions, 0 deletions