xref: /minix/minix/kernel/profile.h (revision 0a6a1f1d)
1 #ifndef PROFILE_H
2 #define PROFILE_H
3 
4 #include <minix/profile.h>
5 
6 #if SPROFILE	/* statistical profiling */
7 
8 #include "arch_watchdog.h"
9 
10 #define SAMPLE_BUFFER_SIZE	(64 << 20)
11 extern char sprof_sample_buffer[SAMPLE_BUFFER_SIZE];
12 
13 EXTERN int sprofiling;			/* whether profiling is running */
14 EXTERN int sprofiling_type;			/* whether profiling is running */
15 EXTERN int sprof_mem_size;		/* available user memory for data */
16 EXTERN struct sprof_info_s sprof_info;	/* profiling info for user program */
17 EXTERN vir_bytes sprof_data_addr_vir;	/* user address to write data */
18 EXTERN endpoint_t sprof_ep;		/* user process */
19 
20 void nmi_sprofile_handler(struct nmi_frame * frame);
21 
22 #endif /* SPROFILE */
23 
24 #endif /* PROFILE_H */
25 
26