linux/arch
Peter Xu daf7bf5d90 mm/nds32: use general page fault accounting
Use the general page fault accounting by passing regs into
handle_mm_fault().  It naturally solve the issue of multiple page fault
accounting when page fault retry happened.

Fix PERF_COUNT_SW_PAGE_FAULTS perf event manually for page fault retries,
by moving it before taking mmap_sem.

Signed-off-by: Peter Xu <peterx@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Acked-by: Greentime Hu <green.hu@gmail.com>
Cc: Nick Hu <nickhu@andestech.com>
Cc: Vincent Chen <deanbo422@gmail.com>
Link: http://lkml.kernel.org/r/20200707225021.200906-13-peterx@redhat.com
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2020-08-12 10:58:03 -07:00
..
alpha mm/alpha: use general page fault accounting 2020-08-12 10:58:03 -07:00
arc mm/arc: use general page fault accounting 2020-08-12 10:58:03 -07:00
arm mm/arm: use general page fault accounting 2020-08-12 10:58:03 -07:00
arm64 mm/arm64: use general page fault accounting 2020-08-12 10:58:03 -07:00
c6x Merge branch 'work.regset' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs 2020-08-07 09:29:25 -07:00
csky mm/csky: use general page fault accounting 2020-08-12 10:58:03 -07:00
h8300 uaccess: remove segment_eq 2020-08-12 10:57:58 -07:00
hexagon mm/hexagon: use general page fault accounting 2020-08-12 10:58:03 -07:00
ia64 mm/ia64: use general page fault accounting 2020-08-12 10:58:03 -07:00
m68k mm/m68k: use general page fault accounting 2020-08-12 10:58:03 -07:00
microblaze mm/microblaze: use general page fault accounting 2020-08-12 10:58:03 -07:00
mips mm/mips: use general page fault accounting 2020-08-12 10:58:03 -07:00
nds32 mm/nds32: use general page fault accounting 2020-08-12 10:58:03 -07:00
nios2 mm: do page fault accounting in handle_mm_fault 2020-08-12 10:58:02 -07:00
openrisc mm: do page fault accounting in handle_mm_fault 2020-08-12 10:58:02 -07:00
parisc mm: do page fault accounting in handle_mm_fault 2020-08-12 10:58:02 -07:00
powerpc mm: do page fault accounting in handle_mm_fault 2020-08-12 10:58:02 -07:00
riscv mm: do page fault accounting in handle_mm_fault 2020-08-12 10:58:02 -07:00
s390 mm: do page fault accounting in handle_mm_fault 2020-08-12 10:58:02 -07:00
sh mm: do page fault accounting in handle_mm_fault 2020-08-12 10:58:02 -07:00
sparc mm: do page fault accounting in handle_mm_fault 2020-08-12 10:58:02 -07:00
um mm: do page fault accounting in handle_mm_fault 2020-08-12 10:58:02 -07:00
x86 mm: do page fault accounting in handle_mm_fault 2020-08-12 10:58:02 -07:00
xtensa mm: do page fault accounting in handle_mm_fault 2020-08-12 10:58:02 -07:00
.gitignore
Kconfig Kbuild updates for v5.9 2020-08-09 14:10:26 -07:00