kernel: mmu: demand paging execution time histogram

This adds the bits to record execution time of eviction selection,
and backing store page-in/page-out in histograms.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
diff --git a/kernel/include/kernel_internal.h b/kernel/include/kernel_internal.h
index 443e22f..d377d73 100644
--- a/kernel/include/kernel_internal.h
+++ b/kernel/include/kernel_internal.h
@@ -249,6 +249,22 @@
 
 #endif
 
+#ifdef CONFIG_DEMAND_PAGING_TIMING_HISTOGRAM
+/**
+ * Initialize the timing histograms for demand paging.
+ */
+void z_paging_histogram_init(void);
+
+/**
+ * Increment the counter in the timing histogram.
+ *
+ * @param hist The timing histogram to be updated.
+ * @param cycles Time spent in measured operation.
+ */
+void z_paging_histogram_inc(struct k_mem_paging_histogram_t *hist,
+			    uint32_t cycles);
+#endif /* CONFIG_DEMAND_PAGING_TIMING_HISTOGRAM */
+
 #ifdef __cplusplus
 }
 #endif