Uninitialized vector entry?
[minix3.git] / lib / syslib / sys_sprof.c
blob1553e8985ce7709ac4d9f9fefe8adffc555449c5
1 #include "syslib.h"
3 #if SPROFILE
5 /*===========================================================================*
6 * sys_sprof *
7 *===========================================================================*/
8 PUBLIC int sys_sprof(action, size, freq, endpt, ctl_ptr, mem_ptr)
9 int action; /* start/stop profiling */
10 int size; /* available profiling memory */
11 int freq; /* sample frequency */
12 int endpt; /* caller endpoint */
13 void *ctl_ptr; /* location of info struct */
14 void *mem_ptr; /* location of profiling memory */
16 message m;
18 m.PROF_ACTION = action;
19 m.PROF_MEM_SIZE = size;
20 m.PROF_FREQ = freq;
21 m.PROF_ENDPT = endpt;
22 m.PROF_CTL_PTR = ctl_ptr;
23 m.PROF_MEM_PTR = mem_ptr;
25 return(_taskcall(SYSTASK, SYS_SPROF, &m));
28 #endif