From: Arnaldo Carvalho de Melo <acme@kernel.org>
To: Andi Kleen <ak@linux.intel.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>,
Jiri Olsa <jolsa@redhat.com>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] perf intel-pt: Add a config for max loops without consuming a packet
Date: Wed, 7 Jul 2021 11:41:31 -0300 [thread overview]
Message-ID: <YOW9G/CYhFegrZ2r@kernel.org> (raw)
In-Reply-To: <aaf79640-4882-310a-e1e1-67f7818e82a0@linux.intel.com>
Em Thu, Jul 01, 2021 at 10:54:53AM -0700, Andi Kleen escreveu:
>
> On 7/1/2021 10:51 AM, Adrian Hunter wrote:
> > The Intel PT decoder limits the number of unconditional branches (e.g.
> > jmps) decoded without consuming any trace packets. Generally, a loop
> > needs a conditional branch which generates a TNT packet, whereas a
> > "ret" instruction will generate a TIP or TNT packet. So exceeding
> > the limit is assumed to be a never-ending loop, which can happen if
> > there has been a decoding error putting the decoder at the wrong place in
> > the code.
> >
> > Up until now, the limit of 10000 has been enough but some analytic
> > purposes have been reported to exceed that.
> >
> > Increase the limit to 100000, and make it configurable via perf config
> > intel-pt.max-loops. Also amend the "Never-ending loop" message to
> > mention the configuration entry.
> >
> > Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
>
>
> Thanks. That is useful.
>
>
> Reviewed-by: Andi Kleen <ak@linux.intel.com>
Thanks, applied.
- Arnaldo
prev parent reply other threads:[~2021-07-07 14:41 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-07-01 17:51 [PATCH] perf intel-pt: Add a config for max loops without consuming a packet Adrian Hunter
2021-07-01 17:54 ` Andi Kleen
2021-07-07 14:41 ` Arnaldo Carvalho de Melo [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=YOW9G/CYhFegrZ2r@kernel.org \
--to=acme@kernel.org \
--cc=adrian.hunter@intel.com \
--cc=ak@linux.intel.com \
--cc=jolsa@redhat.com \
--cc=linux-kernel@vger.kernel.org \
/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).