Hi All
I would like to profile my application with oprofile but I can't since no samples are collected.
The kernel of my app is 2.6 on RED HAT Enterprise 5.3 (Tikanga) so OProfile is setup in timer interrupt mode
# opcontrol --list-events
Using timer interrupt.
I cannot understand why this is happening. Could it be something related to the NMI interrupts?
more /proc/interrupts |grep NMI
NMI: 0 0 0 ..all zeros... 0 0 Non-maskable interrupts
Also reading this value I get 0
cat /proc/sys/kernel/nmi_watchdog
0
This is telling me that interrupts are disabled so, quoting Oprofile manual "this is not able to profile code that has interrupts disabled".
If I want to make oprofile running it is enough to edit the file /boot/grub/menu.lst and add nmi_watchdog=1?
Before doing this change do you know what could happen to the OS by adding this entry? I don't want to mess up the machine.
Thanks
uname -a # details about my machine
Linux lndbxdev01 2.6.24.7-108.el5rt #1 SMP PREEMPT RT Mon Mar 23 10:58:10 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux