Oleg Nesterov b2fe8ba674 uprobes/perf: Avoid uprobe_apply() whenever possible
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 breakpoints.

	- event->attr.enable_on_exec == T, we can rely on uprobe_mmap()
	  called by exec/mmap paths.

	- tp_target is exiting. Only _close() checks PF_EXITING, I don't
	  think TRACE_REG_PERF_OPEN can hit the dying task too often.

Signed-off-by: Oleg Nesterov <oleg@redhat.com>
2013-02-08 18:28:08 +01:00
..
2013-02-08 18:28:04 +01:00
2012-12-18 15:02:11 -08:00
2013-01-22 16:21:24 -08:00
2012-12-26 01:15:03 -05:00
2012-12-20 17:40:19 -08:00
2012-10-06 03:05:19 +09:00
2013-01-24 15:37:26 +01:00
2013-02-08 17:47:13 +01:00
2012-10-29 21:31:32 +01:00
2012-12-16 15:18:08 -08:00