From: Oleg Nesterov Date: Sun, 19 Aug 2012 14:15:09 +0000 (+0200) Subject: uprobes: Introduce MMF_RECALC_UPROBES X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~97^2~6^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9f68f672c47b9bd4cfe0a667ecb0b1382c61e2de;p=pandora-kernel.git 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 Acked-by: Srikar Dronamraju --- Reading git-diff-tree failed