Lines 76-81
Link Here
|
76 |
__FBSDID("$FreeBSD$"); |
76 |
__FBSDID("$FreeBSD$"); |
77 |
|
77 |
|
78 |
#include "opt_vm.h" |
78 |
#include "opt_vm.h" |
|
|
79 |
#include "opt_kdtrace.h" |
79 |
#include <sys/param.h> |
80 |
#include <sys/param.h> |
80 |
#include <sys/systm.h> |
81 |
#include <sys/systm.h> |
81 |
#include <sys/kernel.h> |
82 |
#include <sys/kernel.h> |
Lines 89-94
__FBSDID("$FreeBSD$");
Link Here
|
89 |
#include <sys/racct.h> |
90 |
#include <sys/racct.h> |
90 |
#include <sys/resourcevar.h> |
91 |
#include <sys/resourcevar.h> |
91 |
#include <sys/sched.h> |
92 |
#include <sys/sched.h> |
|
|
93 |
#include <sys/sdt.h> |
92 |
#include <sys/signalvar.h> |
94 |
#include <sys/signalvar.h> |
93 |
#include <sys/smp.h> |
95 |
#include <sys/smp.h> |
94 |
#include <sys/vnode.h> |
96 |
#include <sys/vnode.h> |
Lines 133-138
static struct kproc_desc page_kp = {
Link Here
|
133 |
SYSINIT(pagedaemon, SI_SUB_KTHREAD_PAGE, SI_ORDER_SECOND, kproc_start, |
135 |
SYSINIT(pagedaemon, SI_SUB_KTHREAD_PAGE, SI_ORDER_SECOND, kproc_start, |
134 |
&page_kp); |
136 |
&page_kp); |
135 |
|
137 |
|
|
|
138 |
SDT_PROVIDER_DEFINE(vm); |
139 |
SDT_PROBE_DEFINE(vm, , , vm__lowmem_cache); |
140 |
SDT_PROBE_DEFINE(vm, , , vm__lowmem_scan); |
141 |
|
136 |
#if !defined(NO_SWAPPING) |
142 |
#if !defined(NO_SWAPPING) |
137 |
/* the kernel process "vm_daemon"*/ |
143 |
/* the kernel process "vm_daemon"*/ |
138 |
static void vm_daemon(void); |
144 |
static void vm_daemon(void); |
Lines 667-672
vm_pageout_grow_cache(int tries, vm_paddr_t low, v
Link Here
|
667 |
* may acquire locks and/or sleep, so they can only be invoked |
673 |
* may acquire locks and/or sleep, so they can only be invoked |
668 |
* when "tries" is greater than zero. |
674 |
* when "tries" is greater than zero. |
669 |
*/ |
675 |
*/ |
|
|
676 |
SDT_PROBE0(vm, , , vm__lowmem_cache); |
670 |
EVENTHANDLER_INVOKE(vm_lowmem, 0); |
677 |
EVENTHANDLER_INVOKE(vm_lowmem, 0); |
671 |
|
678 |
|
672 |
/* |
679 |
/* |
Lines 899-905
vm_pageout_map_deactivate_pages(map, desired)
Link Here
|
899 |
* pass 1 - Move inactive to cache or free |
906 |
* pass 1 - Move inactive to cache or free |
900 |
* pass 2 - Launder dirty pages |
907 |
* pass 2 - Launder dirty pages |
901 |
*/ |
908 |
*/ |
902 |
static void |
909 |
static void __used |
903 |
vm_pageout_scan(struct vm_domain *vmd, int pass) |
910 |
vm_pageout_scan(struct vm_domain *vmd, int pass) |
904 |
{ |
911 |
{ |
905 |
vm_page_t m, next; |
912 |
vm_page_t m, next; |
Lines 920-925
vm_pageout_scan(struct vm_domain *vmd, int pass)
Link Here
|
920 |
/* |
927 |
/* |
921 |
* Decrease registered cache sizes. |
928 |
* Decrease registered cache sizes. |
922 |
*/ |
929 |
*/ |
|
|
930 |
SDT_PROBE0(vm, , , vm__lowmem_scan); |
923 |
EVENTHANDLER_INVOKE(vm_lowmem, 0); |
931 |
EVENTHANDLER_INVOKE(vm_lowmem, 0); |
924 |
/* |
932 |
/* |
925 |
* We do this explicitly after the caches have been |
933 |
* We do this explicitly after the caches have been |