#define SMS_BYTES m2_l2 /* bytes from offset */
#define SMS_PATTERN m2_i2 /* memset() pattern */
-/* Field names for SYS_SPROF, _CPROF, _PROFBUF. */
-#define PROF_CTL_PTR m7_p1 /* location of info struct */
-#define PROF_MEM_PTR m7_p2 /* location of profiling data */
-
/* Field names for SYS_VMCTL. */
#define SVMCTL_WHO m1_i1
#define SVMCTL_PARAM m1_i2 /* All SYS_VMCTL requests. */
} mess_lc_pm_cprof;
_ASSERT_MSG_SIZE(mess_lc_pm_cprof);
+typedef struct {
+ vir_bytes ctl_ptr;
+ vir_bytes mem_ptr;
+
+ uint8_t padding[48];
+} mess_lsys_krn_sys_profbuf;
+_ASSERT_MSG_SIZE(mess_lsys_krn_sys_profbuf);
+
typedef struct {
endpoint_t endpt;
int action;
mess_lc_pm_sprof m_lc_pm_sprof;
mess_lsys_krn_sys_diagctl m_lsys_krn_sys_diagctl;
mess_lsys_krn_sys_cprof m_lsys_krn_sys_cprof;
+ mess_lsys_krn_sys_profbuf m_lsys_krn_sys_profbuf;
mess_lsys_krn_sys_sprof m_lsys_krn_sys_sprof;
mess_lsys_krn_readbios m_lsys_krn_readbios;
mess_pm_lsys_sigs_signal m_pm_lsys_sigs_signal;
* m_type: SYS_PROFBUF
*
* The parameters for this kernel call are:
- * m7_p1: PROF_CTL_PTR (location of control struct)
- * m7_p2: PROF_MEM_PTR (location of profiling table)
+ * m_lsys_krn_sys_profbuf.ctl_ptr (location of control struct)
+ * m_lsys_krn_sys_profbuf.mem_ptr (location of profiling table)
*
* Changes:
* 14 Aug, 2006 Created (Rogier Meurs)
cprof_proc_info[cprof_procs_no].endpt = caller->p_endpoint;
cprof_proc_info[cprof_procs_no].name = rp->p_name;
- cprof_proc_info[cprof_procs_no].ctl_v = (vir_bytes) m_ptr->PROF_CTL_PTR;
- cprof_proc_info[cprof_procs_no].buf_v = (vir_bytes) m_ptr->PROF_MEM_PTR;
+ cprof_proc_info[cprof_procs_no].ctl_v = m_ptr->m_lsys_krn_sys_profbuf.ctl_ptr;
+ cprof_proc_info[cprof_procs_no].buf_v = m_ptr->m_lsys_krn_sys_profbuf.mem_ptr;
cprof_procs_no++;
}
#endif /* CPROFILE */
-
{
message m;
- m.PROF_CTL_PTR = ctl_ptr;
- m.PROF_MEM_PTR = mem_ptr;
+ m.m_lsys_krn_sys_profbuf.ctl_ptr = (vir_bytes)ctl_ptr;
+ m.m_lsys_krn_sys_profbuf.mem_ptr = (vir_bytes)mem_ptr;
return(_kernel_call(SYS_PROFBUF, &m));
}