minix/kernel
Tomas Hruby 1b56fdb33c Time accounting based on TSC
- as thre are still KERNEL and IDLE entries, time accounting for
  kernel and idle time works the same as for any other process

- everytime we stop accounting for the currently running process,
  kernel or idle, we read the TSC counter and increment the p_cycles
  entry.

- the process cycles inherently include some of the kernel cycles as
  we can stop accounting for the process only after we save its
  context and we start accounting just before we restore its context

- this assumes that the system does not scale the CPU frequency which
  will be true for ... long time ;-)
2010-02-10 15:36:54 +00:00
..
arch/i386 Time accounting based on TSC 2010-02-10 15:36:54 +00:00
system Time accounting based on TSC 2010-02-10 15:36:54 +00:00
clock.c Time accounting based on TSC 2010-02-10 15:36:54 +00:00
clock.h Clock task split 2009-11-06 09:04:15 +00:00
config.h Removed unused symbols. 2010-01-25 18:13:48 +00:00
const.h Time accounting based on TSC 2010-02-10 15:36:54 +00:00
debug.c intr_disabled() tests removed 2010-02-09 15:29:58 +00:00
debug.h intr_disabled() tests removed 2010-02-09 15:29:58 +00:00
glo.h Time accounting based on TSC 2010-02-10 15:36:54 +00:00
interrupt.c Time accounting based on TSC 2010-02-10 15:36:54 +00:00
ipc.h All macros defining rts flags are prefixed with RTS_ 2009-11-10 09:11:13 +00:00
kernel.h Time accounting based on TSC 2010-02-10 15:36:54 +00:00
main.c Time accounting based on TSC 2010-02-10 15:36:54 +00:00
Makefile NMI watchdog is an awesome feature for debugging locked up kernels. 2010-01-16 20:53:55 +00:00
priv.h Initialization protocol for system services. 2010-01-08 01:20:42 +00:00
proc.c Time accounting based on TSC 2010-02-10 15:36:54 +00:00
proc.h Time accounting based on TSC 2010-02-10 15:36:54 +00:00
profile.c Removal of the system task 2010-02-09 15:20:09 +00:00
profile.h cprofile not conditional 2009-01-09 21:44:52 +00:00
proto.h Time accounting based on TSC 2010-02-10 15:36:54 +00:00
start.c Removed a number of useless #includes 2010-01-26 10:59:01 +00:00
system.c No locking in kernel code 2010-02-09 15:26:58 +00:00
system.h This patch removes the global variables who_p and who_e from the 2010-02-03 09:04:48 +00:00
table.c No CLOCK task 2010-02-09 15:22:43 +00:00
type.h Rewrite of boot process 2009-12-11 00:08:19 +00:00
utility.c Fixed some type inconsistencies in the kernel. 2010-01-26 12:26:06 +00:00
vm.h intr_disabled() tests removed 2010-02-09 15:29:58 +00:00
watchdog.c NMI watchdog is an awesome feature for debugging locked up kernels. 2010-01-16 20:53:55 +00:00
watchdog.h NMI watchdog is an awesome feature for debugging locked up kernels. 2010-01-16 20:53:55 +00:00