All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
To: David Ahern <dsahern@gmail.com>
Cc: mingo@kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] perf kvm record: Change the default value of perf_guest to 0.
Date: Fri, 15 Nov 2013 15:03:27 -0500	[thread overview]
Message-ID: <52867E0F.6020601@cn.fujitsu.com> (raw)
In-Reply-To: <528534E0.3030209@gmail.com>

Hi David:

On 11/14/2013 03:38 PM, David Ahern wrote:
> On 11/14/13, 2:51 PM, Dongsheng Yang wrote:
>> Currently, we can not record the event counters of host to 
>> perf.data.host.
>> Example:
>>     perf kvm --host record -a sleep 1
>> [ perf record: Woken up 1 times to write data ]
>> [ perf record: Captured and wrote 0.625 MB perf.data.guest (~27290 
>> samples) ]
>
> perf kvm by definition wants --guest enabled. Host profiling is done 
> with just 'perf record'; no need for the kvm layer at all. If you 
> really want to go through perf-kvm to record host events disable guest 
> actions:
>
> $ perf kvm --host --no-guest record -a sleep 1
> [ perf record: Woken up 1 times to write data ]
> [ perf record: Captured and wrote 0.029 MB perf.data.host (~1255 
> samples) ]
>
>
> David

Thanx for your reply ! It makes sense.



  reply	other threads:[~2013-11-15  7:05 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-14 21:51 [PATCH] perf kvm record: Change the default value of perf_guest to 0 Dongsheng Yang
2013-11-14 20:38 ` David Ahern
2013-11-15 20:03   ` Dongsheng Yang [this message]
  -- strict thread matches above, loose matches on Subject: below --
2013-11-14 21:29 Dongsheng Yang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=52867E0F.6020601@cn.fujitsu.com \
    --to=yangds.fnst@cn.fujitsu.com \
    --cc=dsahern@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.