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

Commit 9394199e 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
[vinmenon@codeaurora.org: 4.9 porting conflicts]
Signed-off-by: default avatarVinayak Menon <vinmenon@codeaurora.org>
parent 7ba21390
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -98,6 +98,9 @@ enum vm_event_item { PGPGIN, PGPGOUT, PGPGOUTCLEAN, PSWPIN, PSWPOUT,
		VMACACHE_FIND_CALLS,
		VMACACHE_FIND_HITS,
		VMACACHE_FULL_FLUSHES,
#endif
#ifdef CONFIG_SPECULATIVE_PAGE_FAULT
		SPECULATIVE_PGFAULT,
#endif
		NR_VM_EVENT_ITEMS
};
+1 −0
Original line number Diff line number Diff line
@@ -4008,6 +4008,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(fe.vma);
		*vma = NULL;
	}
+4 −1
Original line number Diff line number Diff line
@@ -1088,7 +1088,10 @@ const char * const vmstat_text[] = {
	"vmacache_find_hits",
	"vmacache_full_flushes",
#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 */