5 __weak_alias(sprofile
, _sprofile
)
10 #include <minix/profile.h>
12 int sprofile(int action
,
21 memset(&m
, 0, sizeof(m
));
22 m
.m_lc_pm_sprof
.action
= action
;
23 m
.m_lc_pm_sprof
.mem_size
= size
;
24 m
.m_lc_pm_sprof
.freq
= freq
;
25 m
.m_lc_pm_sprof
.intr_type
= type
;
26 m
.m_lc_pm_sprof
.ctl_ptr
= (vir_bytes
)ctl_ptr
;
27 m
.m_lc_pm_sprof
.mem_ptr
= (vir_bytes
)mem_ptr
;
29 return _syscall(PM_PROC_NR
, PM_SPROF
, &m
);