Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 72658177 authored by Laurent Dufour's avatar Laurent Dufour Committed by Vinayak Menon
Browse files

mm: add speculative page fault vmstats



Add speculative_pgfault vmstat counter to count successful speculative page
fault handling.

Also fixing a minor typo in include/linux/vm_event_item.h.

Change-Id: I0d3f3dc5195e1156d4b8edf83aff9d8d85904e8e
Signed-off-by: default avatarLaurent Dufour <ldufour@linux.vnet.ibm.com>
Patch-mainline: linux-mm @ Tue, 17 Apr 2018 16:33:29
Signed-off-by: default avatarVinayak Menon <vinmenon@codeaurora.org>
parent 69761506
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -110,6 +110,9 @@ enum vm_event_item { PGPGIN, PGPGOUT, PGPGOUTCLEAN, PSWPIN, PSWPOUT,
#ifdef CONFIG_SWAP
		SWAP_RA,
		SWAP_RA_HIT,
#endif
#ifdef CONFIG_SPECULATIVE_PAGE_FAULT
		SPECULATIVE_PGFAULT,
#endif
		NR_VM_EVENT_ITEMS
};
+1 −0
Original line number Diff line number Diff line
@@ -4468,6 +4468,7 @@ int __handle_speculative_fault(struct mm_struct *mm, unsigned long address,
	 * If there is no need to retry, don't return the vma to the caller.
	 */
	if (ret != VM_FAULT_RETRY) {
		count_vm_event(SPECULATIVE_PGFAULT);
		put_vma(vmf.vma);
		*vma = NULL;
	}
+4 −1
Original line number Diff line number Diff line
@@ -1219,7 +1219,10 @@ const char * const vmstat_text[] = {
	"swap_ra",
	"swap_ra_hit",
#endif
#endif /* CONFIG_VM_EVENTS_COUNTERS */
#ifdef CONFIG_SPECULATIVE_PAGE_FAULT
	"speculative_pgfault"
#endif
#endif /* CONFIG_VM_EVENT_COUNTERS */
};
#endif /* CONFIG_PROC_FS || CONFIG_SYSFS || CONFIG_NUMA */