Very well, it walks 3xs very much! Regards, Kirby Zhou
-----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Robin Price II Sent: Thursday, April 15, 2010 7:46 PM To: Red Hat Enterprise Linux 5 (Tikanga) discussion mailing-list Subject: Re: [rhelv5-list] [HELP!] Who Knows How to use OProfile under XEN-DOMU of RHEL5? Kirby, It's been a while since I have done oprofile with virtual guests... but I do remember getting it to work. I believe the virtualization doesn't allow access to the performance monitoring hardware. oprofile identifies the process based on the cpuid (similar to method used for /proc/cpuinfo). Based on the cpuid oprofile assumes that it can use the performance monitoring hardware. Try using "opcontrol --deinit; modprobe oprofile timer=1" to force oprofile to use the timer mechanism rather than the performance monitoring hardware. # opcontrol --deinit; modprobe oprofile timer=1 After doing the modprobe you will need do the "oprofile --setup ..." and "oprofile -start" to record data. Then you can do the experiment write the data and then oparchive it. Note that "opcontrol --shutdown" will automatically do the "opcontrol --dump" The start command I used for my virtual machine was: # opcontrol --start --vmlinux=/usr/lib/debug/lib/modules/`uname -r`/vmlinux --separate=library I hope this helps and forgive me if my data if off a bit. It has been sometime since I have done this. :) If this works for you, please let me know, and I'll write up a kbase for everyone. -- Robin On Thu, Apr 15, 2010 at 6:40 AM, Kirby Zhou <[email protected]> wrote: > > when I run "opcontrol --start", it always report "Failed to open profile > device: Operation not permitted": > > ]# opcontrol --start > /usr/bin/opcontrol: line 1160: echo: write error: Invalid argument > Using default event: CPU_CLK_UNHALTED:100000:0:1:1 > Using 2.6+ OProfile kernel interface. > Failed to open profile device: Operation not permitted > > How can I run oprofile inside a domU? > > > Regards, > Kirby Zhou > from SOHU-RD +86-10-6277-8261 > > > > _______________________________________________ > rhelv5-list mailing list > [email protected] > https://www.redhat.com/mailman/listinfo/rhelv5-list _______________________________________________ rhelv5-list mailing list [email protected] https://www.redhat.com/mailman/listinfo/rhelv5-list _______________________________________________ rhelv5-list mailing list [email protected] https://www.redhat.com/mailman/listinfo/rhelv5-list
