Remove building with NOCRYPTO option
[minix.git] / minix / lib / libsys / sys_sprof.c
bloba43b0fbb369ffb6aff95a5902c29f503022ae3f0
1 #include "syslib.h"
3 #if SPROFILE
5 /*===========================================================================*
6 * sys_sprof *
7 *===========================================================================*/
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 */
17 message m;
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;
27 return(_kernel_call(SYS_SPROF, &m));
30 #endif