1433d6423SLionel Sambuc #include "syslib.h"
2433d6423SLionel Sambuc
3433d6423SLionel Sambuc #if SPROFILE
4433d6423SLionel Sambuc
5433d6423SLionel Sambuc /*===========================================================================*
6433d6423SLionel Sambuc * sys_sprof *
7433d6423SLionel Sambuc *===========================================================================*/
sys_sprof(action,size,freq,type,endpt,ctl_ptr,mem_ptr)8433d6423SLionel Sambuc int sys_sprof(action, size, freq, type, endpt, ctl_ptr, mem_ptr)
9433d6423SLionel Sambuc int action; /* start/stop profiling */
10433d6423SLionel Sambuc int size; /* available profiling memory */
11433d6423SLionel Sambuc int freq; /* sample frequency */
12433d6423SLionel Sambuc int type;
13433d6423SLionel Sambuc endpoint_t endpt; /* caller endpoint */
14*373b7939SDavid van Moolenbroek vir_bytes ctl_ptr; /* location of info struct */
15*373b7939SDavid van Moolenbroek vir_bytes mem_ptr; /* location of profiling memory */
16433d6423SLionel Sambuc {
17433d6423SLionel Sambuc message m;
18433d6423SLionel Sambuc
19433d6423SLionel Sambuc m.m_lsys_krn_sys_sprof.action = action;
20433d6423SLionel Sambuc m.m_lsys_krn_sys_sprof.mem_size = size;
21433d6423SLionel Sambuc m.m_lsys_krn_sys_sprof.freq = freq;
22433d6423SLionel Sambuc m.m_lsys_krn_sys_sprof.intr_type = type;
23433d6423SLionel Sambuc m.m_lsys_krn_sys_sprof.endpt = endpt;
24433d6423SLionel Sambuc m.m_lsys_krn_sys_sprof.ctl_ptr = ctl_ptr;
25433d6423SLionel Sambuc m.m_lsys_krn_sys_sprof.mem_ptr = mem_ptr;
26433d6423SLionel Sambuc
27433d6423SLionel Sambuc return(_kernel_call(SYS_SPROF, &m));
28433d6423SLionel Sambuc }
29433d6423SLionel Sambuc
30433d6423SLionel Sambuc #endif
31433d6423SLionel Sambuc
32