Basic statistical profiling fixes
At least it works again now. Sprofalyze should be made aware of the kernel information page, though (i.e., /proc/ipcvecs). Change-Id: Id4e5f6417ad152607c4e53b323b6f65ea4b10c6e
This commit is contained in:
parent
1d80a87694
commit
373b793920
@ -20,10 +20,29 @@
|
||||
static const char *default_binaries[] = {
|
||||
"kernel/kernel",
|
||||
"servers/",
|
||||
"drivers/",
|
||||
/* XXX this should not be necessary */
|
||||
"drivers/audio/",
|
||||
"drivers/bus/",
|
||||
"drivers/clock/",
|
||||
"drivers/eeprom/",
|
||||
"drivers/examples/",
|
||||
"drivers/hid/",
|
||||
"drivers/iommu/",
|
||||
"drivers/net/",
|
||||
"drivers/power/",
|
||||
"drivers/printer/",
|
||||
"drivers/sensors/",
|
||||
"drivers/storage/",
|
||||
"drivers/system/",
|
||||
"drivers/tty/",
|
||||
"drivers/usb/",
|
||||
"drivers/video/",
|
||||
"drivers/vmm_guest/",
|
||||
"fs/",
|
||||
"net/",
|
||||
};
|
||||
|
||||
static const char *src_path = "/usr/src";
|
||||
static const char *src_path = "/usr/src/minix";
|
||||
|
||||
/* types */
|
||||
|
||||
|
@ -253,7 +253,7 @@ int pci_get_bar(int devind, int port, u32_t *base, u32_t *size, int
|
||||
|
||||
/* Profiling. */
|
||||
int sys_sprof(int action, int size, int freq, int type, endpoint_t
|
||||
endpt, void *ctl_ptr, void *mem_ptr);
|
||||
endpt, vir_bytes ctl_ptr, vir_bytes mem_ptr);
|
||||
|
||||
/* machine context */
|
||||
int sys_getmcontext(endpoint_t proc, vir_bytes mcp);
|
||||
|
@ -77,7 +77,7 @@ int do_sprofile(struct proc * caller, message * m_ptr)
|
||||
break;
|
||||
case PROF_NMI:
|
||||
err = nmi_watchdog_start_profiling(
|
||||
_ptr->m_lsys_krn_sys_sprof.freq);
|
||||
m_ptr->m_lsys_krn_sys_sprof.freq);
|
||||
if (err)
|
||||
return err;
|
||||
break;
|
||||
|
@ -11,8 +11,8 @@ int size; /* available profiling memory */
|
||||
int freq; /* sample frequency */
|
||||
int type;
|
||||
endpoint_t endpt; /* caller endpoint */
|
||||
void *ctl_ptr; /* location of info struct */
|
||||
void *mem_ptr; /* location of profiling memory */
|
||||
vir_bytes ctl_ptr; /* location of info struct */
|
||||
vir_bytes mem_ptr; /* location of profiling memory */
|
||||
{
|
||||
message m;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user