]> git.baikalelectronics.ru Git - kernel.git/commit
uprobes: Introduce MMF_RECALC_UPROBES
authorOleg Nesterov <oleg@redhat.com>
Sun, 19 Aug 2012 14:15:09 +0000 (16:15 +0200)
committerOleg Nesterov <oleg@redhat.com>
Sat, 15 Sep 2012 15:37:27 +0000 (17:37 +0200)
commitb8c428ad920279d40b1eed08b10b4447f73917b1
treeeb389851ce75fa15ad2b5e34c88d4c6af1fb197a
parent806b915ee15479cb8e306afdfd48cbdfd6ecd41d
uprobes: Introduce MMF_RECALC_UPROBES

Add the new MMF_RECALC_UPROBES flag, it means that MMF_HAS_UPROBES
can be false positive after remove_breakpoint() or uprobe_munmap().
It is also set by uprobe_dup_mmap(), this is not optimal but simple.
We could add the new hook, uprobe_dup_vma(), to set MMF_HAS_UPROBES
only if the new mm actually has uprobes, but I don't think this
makes sense.

The next patch will use this flag to clear MMF_HAS_UPROBES.

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