make vfs & filesystems use failable copying
[minix3.git] / lib / libsys / sys_sprof.c
blob380609f92f09fcd6e72eb7099381890043f576f8
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 void *ctl_ptr; /* location of info struct */
15 void *mem_ptr; /* location of profiling memory */
17 message m;
19 m.PROF_ACTION = action;
20 m.PROF_MEM_SIZE = size;
21 m.PROF_FREQ = freq;
22 m.PROF_INTR_TYPE = type;
23 m.PROF_ENDPT = endpt;
24 m.PROF_CTL_PTR = ctl_ptr;
25 m.PROF_MEM_PTR = mem_ptr;
27 return(_kernel_call(SYS_SPROF, &m));
30 #endif