4 #include <minix/profile.h>
6 #if SPROFILE /* statistical profiling */
8 EXTERN
int sprofiling
; /* whether profiling is running */
9 EXTERN
int sprof_mem_size
; /* available user memory for data */
10 EXTERN
struct sprof_info_s sprof_info
; /* profiling info for user program */
11 EXTERN vir_bytes sprof_data_addr_vir
; /* user address to write data */
12 EXTERN endpoint_t sprof_ep
; /* user process */
17 EXTERN
int cprof_mem_size
; /* available user memory for data */
18 EXTERN
struct cprof_info_s cprof_info
; /* profiling info for user program */
19 EXTERN
int cprof_procs_no
; /* number of profiled processes */
20 EXTERN
struct cprof_proc_info_s
{ /* info about profiled process */
21 endpoint_t endpt
; /* endpoint */
22 char *name
; /* name */
23 vir_bytes ctl_v
; /* location of control struct */
24 vir_bytes buf_v
; /* location of buffer */
25 int slots_used
; /* table slots used */
26 } cprof_proc_info_inst
;
27 EXTERN
struct cprof_proc_info_s cprof_proc_info
[NR_SYS_PROCS
];
29 #endif /* PROFILE_H */