fix compiler warning
[minix.git] / kernel / profile.h
blobe09847f35857f2ebdb614b540ce80be674ea42be
1 #ifndef PROFILE_H
2 #define PROFILE_H
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 */
14 #endif /* SPROFILE */
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 */