linux-trace-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Tzvetomir Stoyanov <tz.stoyanov@gmail.com>
To: Steven Rostedt <rostedt@goodmis.org>
Cc: Dario Faggioli <dfaggioli@suse.com>,
	Linux Trace Devel <linux-trace-devel@vger.kernel.org>
Subject: Re: [PATCH v2] trace-cmd: Find PID of host-guest task from tracing vsock connection
Date: Fri, 7 May 2021 07:20:15 +0300	[thread overview]
Message-ID: <CAPpZLN48irG2cuPZi4+RAORbkxpnHudNf1wdXBdjYDmr4e8bhw@mail.gmail.com> (raw)
In-Reply-To: <20210506214012.741cbbd7@oasis.local.home>

On Fri, May 7, 2021 at 5:12 AM Steven Rostedt <rostedt@goodmis.org> wrote:
>
> On Fri, 07 May 2021 02:32:05 +0200
> Dario Faggioli <dfaggioli@suse.com> wrote:
>
> > What am I missing?
>
> When you have 10 guests running, and you are only tracing one. How do
> you know which guest that kvm exit was for?
>

As Dario said, we can get the guest from the /proc/{kvm_exit task
ID}/status - the Tgid written there is the guest, the host task which
runs that guest.

> -- Steve



-- 
Tzvetomir (Ceco) Stoyanov
VMware Open Source Technology Center

  reply	other threads:[~2021-05-07  4:20 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-06 21:14 [PATCH v2] trace-cmd: Find PID of host-guest task from tracing vsock connection Steven Rostedt
2021-05-07  0:32 ` Dario Faggioli
2021-05-07  1:40   ` Steven Rostedt
2021-05-07  4:20     ` Tzvetomir Stoyanov [this message]
2021-05-07 11:58       ` Steven Rostedt
2021-05-07 12:48         ` Dario Faggioli
2021-05-07 13:13           ` Steven Rostedt

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=CAPpZLN48irG2cuPZi4+RAORbkxpnHudNf1wdXBdjYDmr4e8bhw@mail.gmail.com \
    --to=tz.stoyanov@gmail.com \
    --cc=dfaggioli@suse.com \
    --cc=linux-trace-devel@vger.kernel.org \
    --cc=rostedt@goodmis.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).