From: Gleb Natapov <gleb@redhat.com>
To: Avi Kivity <avi@redhat.com>
Cc: Marcelo Tosatti <mtosatti@redhat.com>, kvm@vger.kernel.org
Subject: Re: [PATCH] trace "exit to userspace" event
Date: Thu, 14 Oct 2010 13:47:28 +0200 [thread overview]
Message-ID: <20101014114728.GM19207@redhat.com> (raw)
In-Reply-To: <4CB6ECF8.3080709@redhat.com>
On Thu, Oct 14, 2010 at 01:43:52PM +0200, Avi Kivity wrote:
> On 10/14/2010 01:41 PM, Gleb Natapov wrote:
> >> >> >So what do you propose? I see no issue with my original patch.
> >> >>
> >> >> Record both errno and exit_reason. While they're never both valid
> >> >> at the same time, they're both necessary.
> >> >>
> >> >If they can't be valid at the same time, why not record one of them?
> >>
> >> If you record just one, you don't know if the other one happened.
> >>
> >I mean to record type/value. So it can be (type error/value -EINVAL) or
> >(type exit/value HALT). The goal is to not print non-relevant info in
> >ftrace, but we can do the same with recording errno and exit_reason and
> >show only exit_reason is errno>=0 or errno otherwise.
>
> That's fine. As long as you don't drop information.
>
> >> >The
> >> >one that happened? Also any error other then -EINTR will cause qemu to
> >> >stop, so it is not very interesting. And ioctl return value can be
> >> >traced by strace anyway.
> >>
> >> You can't correlate it with ftrace.
> >>
> >True. But given that the only interesting error code in -EINTR I do not
> >know if this is useful, but potentially may generate a lot of events in
> >ftrace. Sometimes too much info is almost as bad as not enough and if we
> >will use the same event for both exit_reason and errno it will be
> >impossible to enable one without the other.
>
> You can always filter excess information away. If you're looking
> for exits to userspace (a major performance issue) then you want to
> see both normal exits and signal exits.
>
How do I do it via /debug file system? Now I just echo name of the event
I am interested in set_event, how do I add filter to that?
--
Gleb.
next prev parent reply other threads:[~2010-10-14 11:47 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-05 13:14 [PATCH] trace "exit to userspace" event Gleb Natapov
2010-10-07 16:18 ` Marcelo Tosatti
2010-10-07 17:56 ` Gleb Natapov
2010-10-08 0:49 ` Marcelo Tosatti
2010-10-08 16:44 ` Gleb Natapov
2010-10-10 8:45 ` Avi Kivity
2010-10-10 15:46 ` Gleb Natapov
2010-10-14 10:27 ` Avi Kivity
2010-10-14 10:29 ` Gleb Natapov
2010-10-14 11:11 ` Avi Kivity
2010-10-14 11:28 ` Gleb Natapov
2010-10-14 11:32 ` Avi Kivity
2010-10-14 11:41 ` Gleb Natapov
2010-10-14 11:43 ` Avi Kivity
2010-10-14 11:47 ` Gleb Natapov [this message]
2010-10-14 12:09 ` Avi Kivity
2010-10-14 12:10 ` Avi Kivity
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=20101014114728.GM19207@redhat.com \
--to=gleb@redhat.com \
--cc=avi@redhat.com \
--cc=kvm@vger.kernel.org \
--cc=mtosatti@redhat.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox