linux-perf-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Roman Lozko <lozko.roma@gmail.com>
To: linux-perf-users@vger.kernel.org
Subject: Using Intel PT with JIT
Date: Tue, 11 Jul 2023 16:54:19 +0300	[thread overview]
Message-ID: <CAEhC_Bkc9gV72k1iLqGjpjmRGx8aMjS6n_6gmmdr=XTzNeFc=g@mail.gmail.com> (raw)

Hi, I tried to use `perf record` with Intel PT but afterwards I can't
inject JIT dump to trace, `perf inject` says:

error, jitted code must be sampled with perf record -k 1
0x59d8 [0xb0]: failed to process type: 10 [Operation not permitted]

On the other hand, `-k 1` cannot be passed to `perf record`:

Cannot use clockid (-k option) with intel_pt

Is there a way to use Intel PT with jitted code? I am using perf
5.13.8, maybe it is already implemented in later versions?

             reply	other threads:[~2023-07-11 13:54 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-11 13:54 Roman Lozko [this message]
2023-07-11 19:05 ` Using Intel PT with JIT Adrian Hunter

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='CAEhC_Bkc9gV72k1iLqGjpjmRGx8aMjS6n_6gmmdr=XTzNeFc=g@mail.gmail.com' \
    --to=lozko.roma@gmail.com \
    --cc=linux-perf-users@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).