Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Pedro Alves <pedro@codesourcery.com>
Cc: gdb-patches@sourceware.org
Subject: Re: Static tracepoints support
Date: Wed, 30 Jun 2010 18:14:00 -0000	[thread overview]
Message-ID: <8339w4bd3q.fsf@gnu.org> (raw)
In-Reply-To: <201006292159.49527.pedro@codesourcery.com>

> From: Pedro Alves <pedro@codesourcery.com>
> Date: Tue, 29 Jun 2010 21:59:48 +0100
> 
> Hmm, how about I add a column with a counter, for ease of reading.  This
> can't be expected to be stable, but should help readabily --- for example,
> dynamically loaded or unloaded shared libraries can change the number of
> markers in the program.  Let me give it a try ... [done].

I think it's a good idea.  I just hope users will not think that the
number has the same semantics as with breakpoints.  I see you did
mention that in the manual.

> I've spent a while trying to get something that look better,
> and here's the current status:
> 
> (gdb) info static-tracepoint-markers 
> Cnt     ID                                       Enb Address            What
> 1       metadata/core_marker_format              n   0x00007fc3d7466692 
>          Data: "channel %s name %s format %s"
> 2       metadata/core_marker_format              n   0x00007fc3d7467897 
>          Data: "channel %s name %s format %s"
> 3       metadata/core_marker_id                  n   0x00007fc3d746857d 
>          Data: "channel %s name %s event_id %hu int #1u%zu long #1u%zu pointer #1u%zu size_t #1u%zu alignment #1u%u"
> 4       metadata/core_marker_id                  n   0x00007fc3d7468a04 
>          Data: "channel %s name %s event_id %hu int #1u%zu long #1u%zu pointer #1u%zu size_t #1u%zu alignment #1u%u"
> 5       metadata/core_marker_id                  n   0x00007fc3d746a006 
>          Data: "channel %s name %s event_id %hu int #1u%zu long #1u%zu pointer #1u%zu size_t #1u%zu alignment #1u%u"
> 6       metadata/core_marker_format              n   0x00007fc3d746a235 
>          Data: "channel %s name %s format %s"
> 7       ust/potential_exec                       n   0x00007fc3d7487240 
>          Data: " "
> 8       ust/bar2                                 y   0x0000000000400c98 in main at stexample.c:40
>          Data: "number1 %d number2 %d"
>          Probed by static tracepoints: #2
> 9       ust/bar2                                 n   0x0000000000400df9 in main at stexample.c:41
>          Data: "number1 %d number2 %d"
> 10      ust/bar33                                n   0x0000000000400fe0 in main at stexample.c:39
>          Data: "str %s"
> 11      ust/dummymark                            n   0x00000000004011a8 
>          Data: " "

Thanks, I think this is better.

> > But only if the conditionals are different.
> > 
> > Anyway, it confused me, so perhaps it's a good idea to clarify.
> 
> Okay, I agree, though I'd prefer to do that as a follow up, where I
> change both the break- and tracepoint command's help output at once.
> Is that okay with you?

Yes.

> Here's a new version of the patch integrating all of the
> above.  Any further comments?

Just three:

> +  $_sdata internal variable.  When analying the trace buffer, you can
                                      ^^^^^^^^
A typo (sorry I didn't catch that before).

> +Whether the breakpoint is marked to be disabled or deleted when hit.

Wasn't there supposed to be an @item before this sentence?

> +UST backend, this is the the format string passed as argument to the
                            ^^^
Redundant "the".

Okay with those changes.

Thanks.


  reply	other threads:[~2010-06-30 18:14 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-25 18:33 Pedro Alves
2010-06-26 10:34 ` Eli Zaretskii
2010-06-28 12:28   ` Pedro Alves
2010-06-28 20:03     ` Eli Zaretskii
2010-06-29 21:00       ` Pedro Alves
2010-06-30 18:14         ` Eli Zaretskii [this message]
2010-07-01 10:41           ` Pedro Alves
2010-07-01 14:22           ` clarify "help break" output a bit (Re: Static tracepoints support) Pedro Alves
2010-07-01 17:10             ` Eli Zaretskii
2010-06-28 20:04     ` Static tracepoints support Eli Zaretskii
2010-07-01 13:50     ` el vs ell (Re: Static tracepoints support) Pedro Alves
2010-07-01 16:26       ` Michael Snyder
2010-07-01 17:07       ` Eli Zaretskii
2010-07-01 17:28         ` Pedro Alves
2010-07-01 14:00     ` Static tracepoints support Pedro Alves
2010-07-01 17:08       ` Eli Zaretskii
2010-07-01 17:13         ` Pedro Alves
2010-07-01 14:15     ` add a few index entries (Re: Static tracepoints support) Pedro Alves
2010-07-01 17:09       ` Eli Zaretskii
2010-07-01 15:38     ` remove redundant blank from strings " Pedro Alves
2010-07-01 17:11       ` Eli Zaretskii
2010-07-01 16:36     ` dynamic type column width in "info breakpoints" output " Pedro Alves
2010-07-01 17:17       ` Eli Zaretskii
2010-07-02 21:35       ` Tom Tromey
2010-07-21 11:30         ` Pedro Alves
2010-06-27 22:47 ` Static tracepoints support Michael Snyder

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=8339w4bd3q.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=gdb-patches@sourceware.org \
    --cc=pedro@codesourcery.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