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
This commit is contained in:
@@ -1103,11 +1103,12 @@ PUBLIC int arch_enable_paging(struct proc * caller, const message * m_ptr)
|
||||
#ifdef CONFIG_WATCHDOG
|
||||
/*
|
||||
* We make sure that we don't enable the watchdog until paging is turned
|
||||
* on as we might get a NMI while switching and we might still use wrong
|
||||
* on as we might get an NMI while switching and we might still use wrong
|
||||
* lapic address. Bad things would happen. It is unfortunate but such is
|
||||
* life
|
||||
*/
|
||||
i386_watchdog_start();
|
||||
if (watchdog_enabled)
|
||||
i386_watchdog_start();
|
||||
#endif
|
||||
|
||||
return OK;
|
||||
|
||||
Reference in New Issue
Block a user