From: Maynard J. <may...@us...> - 2011-06-17 23:10:58
|
Nagaraja Rao, Shubha wrote: > Hello Maynard > > I had a question about the separation of userspace and kernel space profiles using Oprofile. > > Opcontrol seems the have the options for setting kernel , user or both profiling using > > name: event name, e.g. CPU_CLK_UNHALTED or RTC_INTERRUPTS > count: reset counter value e.g. 100000 > unitmask: hardware unit mask e.g. 0x0f > kernel: whether to profile kernel: 0 or 1 > user: whether to profile userspace: 0 or 1 > > > But when kernel or user is chosen to be 0, it appears that the samples are still taken always in both kernel and userspace....just the qualification with the corresponding symbols is not done. I was wondering if there is a way to collect/log samples only in kernel space or only in userspace ? Works for me on POWER7/SLES 11 SP1. Maybe there's a bug in your kernel driver. The response to these kernelspace/userspace control bits occurs in the arch-specific part of the kernel driver. What processor type, distro, kernel version are you on? And please give details -- i.e., all of your opcontrol and opreport commands and their output. I've cc'ed oprofile-list (you should *always* post there instead of sending messages to just one person) since Intel and the kernel driver are not my areas of expertise. -Maynard > > > Thanks in advance > Shubha > |