4 #include <minix/profile.h>
6 #if SPROFILE /* statistical profiling */
8 #include "arch_watchdog.h"
10 #define SAMPLE_BUFFER_SIZE (64 << 20)
11 extern char sprof_sample_buffer
[SAMPLE_BUFFER_SIZE
];
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 */
20 void nmi_sprofile_handler(struct nmi_frame
* frame
);
24 #endif /* PROFILE_H */