[prev in list] [next in list] [prev in thread] [next in thread] 

List:       oprofile-list
Subject:    Re: profile kernel in KVM virtual PC?
From:       Radim Roska <radim.roska () gmail ! com>
Date:       2009-12-21 12:19:15
Message-ID: aa3710a80912210419p3c6aba2n9f711a9903d4cdff () mail ! gmail ! com
[Download RAW message or body]

hello,

thanks for answer..I've tried it but without success...i tried just
for fun also virtualbox but same result - no result :).

radim

On Mon, Dec 14, 2009 at 11:30 PM, William Cohen <wcohen@nc.rr.com> wrote:
> On 12/07/2009 11:34 AM, Radim Roska wrote:
>> Hi,
>>
>> im running kernel I'm playing with in a debian which runs as Virtual PC
>> under KVM.
>>
>> I need to profile kernel in detail. I though OProfile could be simplest
>> solution. But im not getting any data.
>>
>> Is it possible to profile kernel in KVM? If not what option would you
>> recommend? :) I need something i can quickly use and get data because im
>> already behind schedule:). Other choices are probably gcov or systemtap
>> right?
>>
>> Thanks,
>>
>> --
>> Radim Roška
>
> You might be able to force oprofile to use the timer mechanism in the
> virtualized environment. Running a short script like this as root:
>
> #!/bin/sh
> #
> # Short script force timer mode
> opcontrol --deinit
> /sbin/modprobe oprofile timer=1
> opcontrol --init
>
> This script will force oprofile to use the timer fallback mechanism rather than
> attempting to use the hardware performance counters. Then you should be able
> collect time based samples using it.
>
> -Will
>
> ------------------------------------------------------------------------------
> Return on Information:
> Google Enterprise Search pays you back
> Get the facts.
> http://p.sf.net/sfu/google-dev2dev
> _______________________________________________
> oprofile-list mailing list
> oprofile-list@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/oprofile-list
>



-- 
Radim Roška

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
oprofile-list mailing list
oprofile-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oprofile-list

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic