Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Antoine Tremblay <antoine.tremblay@ericsson.com>
To: Aleksey Midenkov <midenok@gmail.com>
Cc: "gdb@sourceware.org" <gdb@sourceware.org>
Subject: Re: Tracepoint questions
Date: Fri, 15 Jul 2016 12:27:00 -0000	[thread overview]
Message-ID: <wwokbn1z6q9h.fsf@ericsson.com> (raw)
In-Reply-To: <CAF8BazAhRodv=P26FS8zcANbFs99WDKQpHs-=YK1LB3yYdcvkg@mail.gmail.com>


Aleksey Midenkov writes:

> Tracepoint hit count 30278, but only 7655 frames collected. Why?

You may have hit the maximum trace buffer size. See:
https://sourceware.org/gdb/current/onlinedocs/gdb/Starting-and-Stopping-Trace-Experiments.html#Starting-and-Stopping-Trace-Experiments

Check the size with: show trace-buffer-size

However this is target dependant, it may be hardcoded, what is your
target ?

You may want to try setting: set circular-trace-buffer on

This will continue tracing after the buffer is full by making it a ring
buffer, this way you will be able to know if you've stopped tracing
previously because the max buffer was reached.

> Am I right guessing that trace frames are in chronological order?
>
Yes.

> If it's so, may I propose a suggestion: command 'tfind last' to select
> last frame, because last is the most interesting one!

That sounds like a good idea, since there is tfind start already...

Regards,
Antoine


      reply	other threads:[~2016-07-15 12:27 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-14 16:33 Aleksey Midenkov
2016-07-15 12:27 ` Antoine Tremblay [this message]

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=wwokbn1z6q9h.fsf@ericsson.com \
    --to=antoine.tremblay@ericsson.com \
    --cc=gdb@sourceware.org \
    --cc=midenok@gmail.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