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 vir_bytes ctl_ptr
; /* location of info struct */
15 vir_bytes mem_ptr
; /* location of profiling memory */
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
));