5 /*===========================================================================*
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 */
18 m
.PROF_ACTION
= action
;
19 m
.PROF_MEM_SIZE
= size
;
22 m
.PROF_CTL_PTR
= ctl_ptr
;
23 m
.PROF_MEM_PTR
= mem_ptr
;
25 return(_taskcall(SYSTASK
, SYS_SPROF
, &m
));