1 #include "syslib.h"
2
3 #if SPROFILE
4
5 /*===========================================================================*
6 * sys_sprof *
7 *===========================================================================*/
sys_sprof(action,size,freq,type,endpt,ctl_ptr,mem_ptr)8 int sys_sprof(action, size, freq, type, endpt, ctl_ptr, mem_ptr)
9 int action; /* start/stop profiling */
10 int size; /* available profiling memory */
11 int freq; /* sample frequency */
12 int type;
13 endpoint_t endpt; /* caller endpoint */
14 vir_bytes ctl_ptr; /* location of info struct */
15 vir_bytes mem_ptr; /* location of profiling memory */
16 {
17 message m;
18
19 m.m_lsys_krn_sys_sprof.action = action;
20 m.m_lsys_krn_sys_sprof.mem_size = size;
21 m.m_lsys_krn_sys_sprof.freq = freq;
22 m.m_lsys_krn_sys_sprof.intr_type = type;
23 m.m_lsys_krn_sys_sprof.endpt = endpt;
24 m.m_lsys_krn_sys_sprof.ctl_ptr = ctl_ptr;
25 m.m_lsys_krn_sys_sprof.mem_ptr = mem_ptr;
26
27 return(_kernel_call(SYS_SPROF, &m));
28 }
29
30 #endif
31
32