4 #if SPROFILE || CPROFILE
5 #include <minix/profile.h>
8 #if SPROFILE /* statistical profiling */
10 EXTERN
int sprofiling
; /* whether profiling is running */
11 EXTERN
int sprof_mem_size
; /* available user memory for data */
12 EXTERN
struct sprof_info_s sprof_info
; /* profiling info for user program */
13 EXTERN phys_bytes sprof_data_addr
; /* user address to write data */
14 EXTERN phys_bytes sprof_info_addr
; /* user address to write info struct */
19 #if CPROFILE /* call profiling */
21 EXTERN
int cprof_mem_size
; /* available user memory for data */
22 EXTERN
struct cprof_info_s cprof_info
; /* profiling info for user program */
23 EXTERN phys_bytes cprof_data_addr
; /* user address to write data */
24 EXTERN phys_bytes cprof_info_addr
; /* user address to write info struct */
25 EXTERN
int cprof_procs_no
; /* number of profiled processes */
26 EXTERN
struct cprof_proc_info_s
{ /* info about profiled process */
27 int endpt
; /* endpoint */
28 char *name
; /* name */
29 phys_bytes ctl
; /* location of control struct */
30 phys_bytes buf
; /* location of buffer */
31 int slots_used
; /* table slots used */
32 } cprof_proc_info_inst
;
33 EXTERN
struct cprof_proc_info_s cprof_proc_info
[NR_SYS_PROCS
];
37 #endif /* PROFILE_H */