aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorSong Liu <[email protected]>2019-09-23 15:38:22 -0700
committerLinus Torvalds <[email protected]>2019-09-24 15:54:11 -0700
commitfb4fb04ff4dd377b3132e9b31259263ec37b830a (patch)
tree92139b2f893e8bb0dd15e801a022dd46b83cc7a4 /tools/perf/scripts/python
parent010c164a5fa7e169deab0a4d8211611f1930c1cd (diff)
uprobe: use original page when all uprobes are removed
Currently, uprobe swaps the target page with a anonymous page in both install_breakpoint() and remove_breakpoint(). When all uprobes on a page are removed, the given mm is still using an anonymous page (not the original page). This patch allows uprobe to use original page when possible (all uprobes on the page are already removed, and the original page is in page cache and uptodate). As suggested by Oleg, we unmap the old_page and let the original page fault in. Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Song Liu <[email protected]> Suggested-by: Oleg Nesterov <[email protected]> Reviewed-by: Oleg Nesterov <[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