Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Markus Metzger <markus.t.metzger@intel.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCH 5/5] gdb, gdbserver, btrace: resync on error
Date: Fri, 30 Oct 2026 16:31:57 +0200	[thread overview]
Message-ID: <86qzh7tg2q.fsf@gnu.org> (raw)
In-Reply-To: <20261030135744.921562-6-markus.t.metzger@intel.com> (message from Markus Metzger on Fri, 30 Oct 2026 14:57:44 +0100)

> From: Markus Metzger <markus.t.metzger@intel.com>
> Date: Fri, 30 Oct 2026 14:57:44 +0100
> 
> Starting with libipt version 2.2, we can try to re-synchronize on the next
> IP-providing packet instead of skipping everything until the next trace
> stream synchronization packet on CPUs that do not support deferred TIPs.
> 
> Add a new setting
> 
>     set record btrace pt enhanced-resync on|off
> 
> to enable that on supported CPUs and extend the
> 
>     qXfer:btrace:read
> 
> response with a new attribute
> 
>     allow_resync
> 
> in the pt-config part of the response.
> 
> This should normally not be needed and the setting defaults to off.  When
> running into decode errors, however, it may help as an advanced option to
> make the most out of the recorded trace.
> ---
>  gdb/NEWS                   | 12 +++++++
>  gdb/btrace.c               | 68 +++++++++++++++++++++++++++++++++-----
>  gdb/doc/gdb.texinfo        | 26 +++++++++++++++
>  gdb/features/btrace.dtd    |  1 +
>  gdb/nat/linux-btrace.c     |  1 +
>  gdb/record-btrace.c        | 57 +++++++++++++++++++++++++++++++-
>  gdb/record-btrace.h        |  5 +++
>  gdb/remote.c               | 27 +++++++++++++--
>  gdbserver/linux-low.cc     |  3 +-
>  gdbsupport/btrace-common.h |  6 ++++
>  10 files changed, 194 insertions(+), 12 deletions(-)

The documentation parts are okay, thanks.

Reviewed-By: Eli Zaretskii <eliz@gnu.org>

      reply	other threads:[~2026-10-30 14:32 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-30 13:57 [PATCH 0/5] gdb, gdbserver, btrace: enhanced resync on decode error Markus Metzger
2026-10-30 13:57 ` [PATCH 1/5] gdb, btrace: refactor handle_pt_insn_events() Markus Metzger
2026-10-30 13:57 ` [PATCH 2/5] gdb, btrace: refactor ftrace_add_pt() Markus Metzger
2026-10-30 13:57 ` [PATCH 3/5] gdb, btrace: fix btrace remote configuration Markus Metzger
2026-10-30 13:57 ` [PATCH 4/5] gdb, gdbserver, btrace: allow disabling return compression Markus Metzger
2026-10-30 14:30   ` Eli Zaretskii
2026-10-30 13:57 ` [PATCH 5/5] gdb, gdbserver, btrace: resync on error Markus Metzger
2026-10-30 14:31   ` Eli Zaretskii [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=86qzh7tg2q.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=gdb-patches@sourceware.org \
    --cc=markus.t.metzger@intel.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