2006-10-30 16:53:38 +01:00
|
|
|
#include <lib.h>
|
|
|
|
|
|
|
|
#define sprofile _sprofile
|
|
|
|
|
2010-09-23 12:49:42 +02:00
|
|
|
PUBLIC int sprofile(int action,
|
|
|
|
int size,
|
|
|
|
int freq,
|
|
|
|
int type,
|
|
|
|
char *ctl_ptr,
|
|
|
|
int *mem_ptr)
|
2006-10-30 16:53:38 +01:00
|
|
|
{
|
|
|
|
message m;
|
|
|
|
|
|
|
|
m.PROF_ACTION = action;
|
|
|
|
m.PROF_MEM_SIZE = size;
|
|
|
|
m.PROF_FREQ = freq;
|
2010-09-23 12:49:42 +02:00
|
|
|
m.PROF_INTR_TYPE = type;
|
2006-10-30 16:53:38 +01:00
|
|
|
m.PROF_CTL_PTR = (void *) ctl_ptr;
|
|
|
|
m.PROF_MEM_PTR = (void *) mem_ptr;
|
|
|
|
|
2010-06-08 15:58:01 +02:00
|
|
|
return _syscall(PM_PROC_NR, SPROF, &m);
|
2006-10-30 16:53:38 +01:00
|
|
|
}
|
|
|
|
|