From: Steven Rostedt <rostedt@goodmis.org>
To: Vineeth Pillai <vineethrp@google.com>
Cc: linux-trace-devel@vger.kernel.org,
Joel Fernandes <joel@joelfernandes.org>
Subject: Re: [PATCH] trace-cmd: rework of the pid detection of vcpus
Date: Mon, 23 May 2022 09:47:00 -0400 [thread overview]
Message-ID: <20220523094700.26eb2a05@gandalf.local.home> (raw)
In-Reply-To: <CA+HDTgQ_pvxA6jwXCE2tnj_YWQCcqOLR9FBKRmX68THXcZGkfQ@mail.gmail.com>
On Mon, 23 May 2022 09:39:45 -0400
Vineeth Pillai <vineethrp@google.com> wrote:
> On Fri, May 20, 2022 at 4:08 PM Steven Rostedt <rostedt@goodmis.org> wrote:
> >
> >> + be32 max_apicid;
> >> be32 page_size;
> >> u64 trace_id;
> >> char tsync_proto_name[TRACECMD_TSYNC_PNAME_LENGTH];
> >
> >Unfortunately, the above will break the protocol for released instances of
> >trace-cmd that is already out there. One requirement I have is that if two
> >instances of trace-cmd use to work (on host and guest) that if you upgrade
> >one of them, what use to work still does.
> >
> >We need to figure out another way to handle this :-/
> >
> Ahh ok, understood..
> I think we should also think about versioning the guest/host protocols
We actually have that. We are currently at version 3. If this becomes too
much of an issue, we can always move to v4. But to do that would require a
lot more thinking, as I like to support all versions, and I don't want to
have a lot of them. Thus, if we need to update to v4. It would likely be a
entirely new protocol to fix and extend the issues of v3.
> >We'll have to investigate a solution for this further.
> Sure, I will have a look at this again and see if/how we can fix this without
> touching existing protocol. I was thinking about adding the pid details to
> debugfs and then reading it from there. Its not optimal as we would need a
> supporting kernel, but it would be accurate if we have kernel support and we
> need not rely on trace messages to get the pids.
That would be useful too, in more than just trace-cmd I believe.
-- Steve
next prev parent reply other threads:[~2022-05-23 13:47 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-04 1:02 [PATCH] trace-cmd: rework of the pid detection of vcpus Vineeth Pillai
2022-05-20 20:08 ` Steven Rostedt
2022-05-23 13:39 ` Vineeth Pillai
2022-05-23 13:47 ` Steven Rostedt [this message]
2022-05-24 15:35 ` Vineeth Pillai
2022-05-24 15:53 ` Steven Rostedt
2022-07-11 19:16 ` Steven Rostedt
2022-07-12 14:17 ` Vineeth Pillai
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=20220523094700.26eb2a05@gandalf.local.home \
--to=rostedt@goodmis.org \
--cc=joel@joelfernandes.org \
--cc=linux-trace-devel@vger.kernel.org \
--cc=vineethrp@google.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;
as well as URLs for NNTP newsgroup(s).