Re: [PATCH 7/7] uprobes/perf: Avoid uprobe_apply() whenever possible

2013-02-11 Thread Srikar Dronamraju
* Oleg Nesterov [2013-02-04 20:03:05]: > uprobe_perf_open/close call the costly uprobe_apply() every time, > we can avoid it if: > > - "nr_systemwide != 0" is not changed. > > - There is another process/thread with the same ->mm. > > - copy_proccess() does inherit_event().

Re: [PATCH 7/7] uprobes/perf: Avoid uprobe_apply() whenever possible

2013-02-11 Thread Srikar Dronamraju
* Oleg Nesterov o...@redhat.com [2013-02-04 20:03:05]: uprobe_perf_open/close call the costly uprobe_apply() every time, we can avoid it if: - nr_systemwide != 0 is not changed. - There is another process/thread with the same -mm. - copy_proccess() does

[PATCH 7/7] uprobes/perf: Avoid uprobe_apply() whenever possible

2013-02-04 Thread Oleg Nesterov
uprobe_perf_open/close call the costly uprobe_apply() every time, we can avoid it if: - "nr_systemwide != 0" is not changed. - There is another process/thread with the same ->mm. - copy_proccess() does inherit_event(). dup_mmap() preserves the inserted

[PATCH 7/7] uprobes/perf: Avoid uprobe_apply() whenever possible

2013-02-04 Thread Oleg Nesterov
uprobe_perf_open/close call the costly uprobe_apply() every time, we can avoid it if: - nr_systemwide != 0 is not changed. - There is another process/thread with the same -mm. - copy_proccess() does inherit_event(). dup_mmap() preserves the inserted