From: "Stephen Röttger" <sroettger@google.com>
To: "Metzger, Markus T" <markus.t.metzger@intel.com>
Cc: "gdb-patches@sourceware.org" <gdb-patches@sourceware.org>,
Simon Marchi <simon.marchi@polymtl.ca>
Subject: Re: [PATCH] Update btrace data in maintenance btrace commands
Date: Tue, 3 Aug 2021 10:49:32 +0200 [thread overview]
Message-ID: <CAEAAPHb2T1wTJMDwAk2TDNhqZCy9dDrZiM8eCrq7Q5sm=zpwVg@mail.gmail.com> (raw)
In-Reply-To: <CAEAAPHa12yjexbEedvDUtYf=WoNBzDPj8ysy5pW2+KM=7bZYaQ@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 2620 bytes --]
> Let me know what you think, if you think it's valuable I'll send a v2
with the
proposed change.
Hey, just checking if you would like this patch, should I make the proposed
change?
On Wed, Jun 9, 2021 at 11:41 AM Stephen Röttger <sroettger@google.com>
wrote:
> Ah that makes sense. Thanks Markus and Simon.
>
> You're right, in the end I didn't rely on these commands. Though when I
> started
> playing with btrace, it did make me think btrace was broken on my machine
> and
> it took me a bit to figure out what's going on. So I think this change can
> still be valuable to save others the headache :).
> Let me know what you think, if you think it's valuable I'll send a v2 with
> the
> proposed change.
>
> Cheers,
> Stephen
>
> On Tue, Jun 8, 2021 at 4:05 PM Metzger, Markus T
> <markus.t.metzger@intel.com> wrote:
> >
> > Hello Stephen,
> >
> > >On 2021-04-12 10:01 a.m., Stephen Röttger via Gdb-patches wrote:
> > >> diff --git a/gdb/record-btrace.c b/gdb/record-btrace.c
> > >> index b7b3c91f85d..79a6e47a4a6 100644
> > >> --- a/gdb/record-btrace.c
> > >> +++ b/gdb/record-btrace.c
> > >> @@ -269,7 +269,7 @@ require_btrace_thread (void)
> > >> Throws an error if there is no thread or no trace. This function
> never
> > >> returns NULL. */
> > >>
> > >> -static struct btrace_thread_info *
> > >> +struct btrace_thread_info *
> > >> require_btrace (void)
> > >
> > >Since the doc is now in the header, write:
> > >
> > >/* See record-btrace.h. */
> > >
> > >here.
> > >
> > >I'd LGTM this patch, but I'd like Markus (the btrace specialist) to
> > >give it a look (I think he's away, it will be in a few weeks).
> >
> > Those maintenance commands are not intended for users. You'd really only
> > need them to debug issues with PT decode or recording. My main use-case
> is
> > to clear the history, then turn on debugging and logging, and re-decode
> the
> > trace. Re-fetching shouldn't hurt but isn't necessary.
> >
> > Your patch LGTM (with the comment fixed) but I wonder whether there's
> > anything to fix, at all. If you end up needing to use those maint
> commands,
> > something else may be wrong.
> >
> > Regards,
> > Markus.
> >
> > Intel Deutschland GmbH
> > Registered Address: Am Campeon 10, 85579 Neubiberg, Germany
> > Tel: +49 89 99 8853-0, www.intel.de <http://www.intel.de>
> > Managing Directors: Christin Eisenschmid, Sharon Heck, Tiffany Doon Silva
> > Chairperson of the Supervisory Board: Nicole Lau
> > Registered Office: Munich
> > Commercial Register: Amtsgericht Muenchen HRB 186928
>
[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 4002 bytes --]
next prev parent reply other threads:[~2021-08-03 8:49 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-12 14:01 Stephen Röttger
2021-05-25 13:06 ` [PING] " Stephen Röttger
2021-05-29 2:13 ` Simon Marchi
2021-06-08 14:05 ` Metzger, Markus T
2021-06-09 9:41 ` Stephen Röttger
2021-08-03 8:49 ` Stephen Röttger [this message]
2021-08-03 10:05 ` Metzger, Markus T
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='CAEAAPHb2T1wTJMDwAk2TDNhqZCy9dDrZiM8eCrq7Q5sm=zpwVg@mail.gmail.com' \
--to=sroettger@google.com \
--cc=gdb-patches@sourceware.org \
--cc=markus.t.metzger@intel.com \
--cc=simon.marchi@polymtl.ca \
/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 read-only IMAP folder(s) and NNTP newsgroup(s).