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