]> Zhao Yanbai Git Server - minix.git/commit
NMI sampling
authorTomas Hruby <tom@minix3.org>
Thu, 23 Sep 2010 10:49:45 +0000 (10:49 +0000)
committerTomas Hruby <tom@minix3.org>
Thu, 23 Sep 2010 10:49:45 +0000 (10:49 +0000)
commite63b85a50bf2e87162dae5a868c461b87e1d7993
tree25a48c683cce7e31556b66c59e8cd4d93ca7d881
parent74c5cd7668d5b42a25b876fd078f2daef0519a7c
NMI sampling

- if profile --nmi kernel uses NMI watchdog based sampling based on
  Intel architecture performance counters

- using NMI makes kernel profiling possible

- watchdog kernel lockup detection is disabled while sampling as we
  may get unpredictable interrupts in kernel and thus possibly many
  false positives

- if watchdog is not enabled at boot time, profiling enables it and
  turns it of again when done
kernel/arch/i386/arch_watchdog.c
kernel/arch/i386/include/arch_watchdog.h
kernel/arch/i386/memory.c
kernel/profile.c
kernel/profile.h
kernel/system/do_sprofile.c
kernel/watchdog.c
kernel/watchdog.h