]> git.baikalelectronics.ru Git - kernel.git/commit
uprobes: _unregister() should always do register_for_each_vma(false)
authorOleg Nesterov <oleg@redhat.com>
Fri, 23 Nov 2012 18:43:50 +0000 (19:43 +0100)
committerOleg Nesterov <oleg@redhat.com>
Fri, 8 Feb 2013 16:47:03 +0000 (17:47 +0100)
commit849951d4cc4310b3cbcb96c37b880b88355cd317
tree380a170734c6d850077e56848df0528f410247be
parent6c42d892c6abf3736e861b7f8ccfa2fa68703e70
uprobes: _unregister() should always do register_for_each_vma(false)

uprobe_unregister() removes the breakpoints only if the last consumer
goes away. To support the filtering it should do this every time, we
want to remove the breakpoints which nobody else want to keep.

Note: given that filter_chain() is not actually implemented, this patch
itself doesn't change the behaviour yet, register_for_each_vma(false)
is a heavy "nop" unless there are no more consumers.

Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Acked-by: Srikar Dronamraju <srikar@linux.vnet.ibm.com>
kernel/events/uprobes.c