5 #define cprofile _cprofile
6 __weak_alias(cprofile
, _cprofile
)
10 #include <minix/profile.h>
12 int cprofile(int action
, int size
, void *ctl_ptr
, void *mem_ptr
)
16 m
.PROF_ACTION
= action
;
17 m
.PROF_MEM_SIZE
= size
;
18 m
.PROF_CTL_PTR
= (void *) ctl_ptr
;
19 m
.PROF_MEM_PTR
= (void *) mem_ptr
;
21 return _syscall(PM_PROC_NR
, CPROF
, &m
);