custom message type for VM_INFO
[minix3.git] / lib / libsys / sys_trace.c
blob58540da2ed50eaac299e21192f34f029bc3602da
1 #include "syslib.h"
3 int sys_trace(req, proc_ep, addr, data_p)
4 int req;
5 endpoint_t proc_ep;
6 long addr, *data_p;
8 message m;
9 int r;
11 m.m_lsys_krn_sys_trace.endpt = proc_ep;
12 m.m_lsys_krn_sys_trace.request = req;
13 m.m_lsys_krn_sys_trace.address = addr;
14 if (data_p) m.m_lsys_krn_sys_trace.data = *data_p;
15 r = _kernel_call(SYS_TRACE, &m);
16 if (data_p) *data_p = m.m_krn_lsys_sys_trace.data;
17 return(r);