summaryrefslogtreecommitdiff
path: root/minix/lib/libsys/sys_sprof.c
blob: a43b0fbb369ffb6aff95a5902c29f503022ae3f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#include "syslib.h"

#if SPROFILE

/*===========================================================================*
 *                                sys_sprof				     *
 *===========================================================================*/
int sys_sprof(action, size, freq, type, endpt, ctl_ptr, mem_ptr)
int action; 				/* start/stop profiling */
int size;				/* available profiling memory */
int freq;				/* sample frequency */
int type;
endpoint_t endpt;			/* caller endpoint */
vir_bytes ctl_ptr;			/* location of info struct */
vir_bytes mem_ptr;			/* location of profiling memory */
{
  message m;

  m.m_lsys_krn_sys_sprof.action		= action;
  m.m_lsys_krn_sys_sprof.mem_size	= size;
  m.m_lsys_krn_sys_sprof.freq		= freq;
  m.m_lsys_krn_sys_sprof.intr_type	= type;
  m.m_lsys_krn_sys_sprof.endpt		= endpt;
  m.m_lsys_krn_sys_sprof.ctl_ptr	= ctl_ptr;
  m.m_lsys_krn_sys_sprof.mem_ptr	= mem_ptr;

  return(_kernel_call(SYS_SPROF, &m));
}

#endif