EXTERN int verbose_vm;
/* Timing */
-EXTERN util_timingdata_t timingdata;
+EXTERN util_timingdata_t timingdata[TIMING_CATEGORIES];
/* Variables that are initialized elsewhere are just extern here. */
extern struct boot_image image[]; /* system image processes */
reg_t ktsb; /* kernel task stack base */
struct exec e_hdr; /* for a copy of an a.out header */
- do_serial_debug=0;
-
/* Clear the process table. Anounce each slot as empty and set up mappings
* for proc_addr() and proc_nr() macros. Do the same for the table with
* privilege structures for the system processes.
#if SPROFILE
sprofiling = 0; /* we're not profiling until instructed to */
#endif /* SPROFILE */
-#if CPROFILE
cprof_procs_no = 0; /* init nr of hash table slots used */
-#endif /* CPROFILE */
vm_running = 0;
#include <minix/config.h>
-#if SPROFILE || CPROFILE
-
#include <minix/profile.h>
#include <minix/portio.h>
#include "kernel.h"
#include "profile.h"
#include "proc.h"
-#endif
-
#if SPROFILE
#include <string.h>
#endif /* SPROFILE */
-#if CPROFILE
-
/*
* The following variables and functions are used by the procentry/
* procentry syslib functions when linked with kernelspace processes.
cprof_procs_no++;
}
-#endif /* CPROFILE */
-
#ifndef PROFILE_H
#define PROFILE_H
-#if SPROFILE || CPROFILE
#include <minix/profile.h>
-#endif
#if SPROFILE /* statistical profiling */
#endif /* SPROFILE */
-#if CPROFILE /* call profiling */
-
EXTERN int cprof_mem_size; /* available user memory for data */
EXTERN struct cprof_info_s cprof_info; /* profiling info for user program */
EXTERN int cprof_procs_no; /* number of profiled processes */
} cprof_proc_info_inst;
EXTERN struct cprof_proc_info_s cprof_proc_info[NR_SYS_PROCS];
-#endif /* CPROFILE */
-
#endif /* PROFILE_H */
#endif
_PROTOTYPE( int do_cprofile, (message *m_ptr) );
-#if ! CPROFILE
-#define do_cprofile do_unused
-#endif
-
_PROTOTYPE( int do_profbuf, (message *m_ptr) );
-#if ! CPROFILE
-#define do_profbuf do_unused
-#endif
_PROTOTYPE( int do_mapdma, (message *m_ptr) );