5 /*===========================================================================*
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 */
13 endpoint_t endpt
; /* caller endpoint */
14 void *ctl_ptr
; /* location of info struct */
15 void *mem_ptr
; /* location of profiling memory */
19 m
.PROF_ACTION
= action
;
20 m
.PROF_MEM_SIZE
= size
;
22 m
.PROF_INTR_TYPE
= type
;
24 m
.PROF_CTL_PTR
= ctl_ptr
;
25 m
.PROF_MEM_PTR
= mem_ptr
;
27 return(_kernel_call(SYS_SPROF
, &m
));