1 /* This file implements entry points for system profiling.
3 * The entry points in this file are:
4 * do_sprofile: start/stop statistical profiling
5 * do_cprofile: get/reset call profiling tables
8 * 14 Aug, 2006 Created (Rogier Meurs)
11 #include <minix/config.h>
12 #include <minix/profile.h>
15 #include <minix/callnr.h>
16 #include <minix/com.h>
21 /*===========================================================================*
23 *===========================================================================*/
30 switch(m_in
.PROF_ACTION
) {
33 return sys_sprof(PROF_START
, m_in
.PROF_MEM_SIZE
, m_in
.PROF_FREQ
,
35 who_e
, m_in
.PROF_CTL_PTR
, m_in
.PROF_MEM_PTR
);
38 return sys_sprof(PROF_STOP
,0,0,0,0,0,0);
50 /*===========================================================================*
52 *===========================================================================*/
59 switch(m_in
.PROF_ACTION
) {
62 return sys_cprof(PROF_GET
, m_in
.PROF_MEM_SIZE
, who_e
,
63 m_in
.PROF_CTL_PTR
, m_in
.PROF_MEM_PTR
);
66 return sys_cprof(PROF_RESET
,0,0,0,0);