System statistical and call profiling

support by Rogier Meurs <rogier@meurs.org>.
This commit is contained in:
Ben Gras
2006-10-30 15:53:38 +00:00
parent fa0ba56bc9
commit 7195fe3325
76 changed files with 2650 additions and 77 deletions

23
lib/syslib/sys_profbuf.c Normal file
View File

@@ -0,0 +1,23 @@
#include "syslib.h"
#include <minix/config.h>
#if CPROFILE
/*===========================================================================*
* sys_profbuf *
*===========================================================================*/
PUBLIC int sys_profbuf(ctl_ptr, mem_ptr)
void *ctl_ptr; /* pointer to control structure */
void *mem_ptr; /* pointer to profiling table */
{
message m;
m.PROF_CTL_PTR = ctl_ptr;
m.PROF_MEM_PTR = mem_ptr;
return(_taskcall(SYSTASK, SYS_PROFBUF, &m));
}
#endif