From: Ilya Leoshkevich <iii@linux.ibm.com>
To: "Richard Henderson" <richard.henderson@linaro.org>,
"Alex Bennée" <alex.bennee@linaro.org>
Cc: Christian Borntraeger <borntraeger@linux.ibm.com>,
qemu-devel@nongnu.org, Ilya Leoshkevich <iii@linux.ibm.com>
Subject: [PATCH v3 0/3] tcg: add perfmap and jitdump
Date: Wed, 11 Jan 2023 02:47:02 +0100 [thread overview]
Message-ID: <20230111014705.2275040-1-iii@linux.ibm.com> (raw)
v2:
https://lists.gnu.org/archive/html/qemu-devel/2022-11/msg02385.html
https://lists.gnu.org/archive/html/qemu-devel/2023-01/msg01026.html
v2 -> v3:
* Enable only for CONFIG_LINUX (Alex).
* Use qemu_get_thread_id() instead of gettid() (Alex).
* Fix CI (Alex).
https://gitlab.com/iii-i/qemu/-/pipelines/743684604
* Drop unnecessary #includes (Alex).
* Drop the constification change (Alex/Richard).
* Split debuginfo support into a separate patch.
* Fix partial perfmap/jitdump files when terminating due to a signal.
* Fix debuginfo strings being accessed outside of debuginfo lock.
* Fix address resolution with TARGET_TB_PCREL.
* Add DEBUGINFOD_URLS= to the doc; without it perf inject is
unacceptably slow.
* Note: it's better to test this with the latest perf
(6.2.rc3.g7dd4b804e080 worked fine for me). There has been at least
one breakage in the JIT area recently (fixed by 6d518ac7be62).
v1:
https://lists.nongnu.org/archive/html/qemu-devel/2022-10/msg01824.html
https://lists.nongnu.org/archive/html/qemu-devel/2022-11/msg01073.html
v1 -> v2:
* Use QEMU_LOCK_GUARD (Alex).
* Handle TARGET_TB_PCREL (Alex).
* Support ELF -kernels, add a note about this (Alex). Tested with
qemu-system-x86_64 and Linux kernel - it's not fast, but it works.
* Minor const correctness and style improvements.
Ilya Leoshkevich (3):
linux-user: Clean up when exiting due to a signal
accel/tcg: Add debuginfo support
tcg: add perfmap and jitdump
accel/tcg/debuginfo.c | 96 ++++++++++
accel/tcg/debuginfo.h | 77 ++++++++
accel/tcg/meson.build | 2 +
accel/tcg/perf.c | 366 ++++++++++++++++++++++++++++++++++++++
accel/tcg/perf.h | 49 +++++
accel/tcg/translate-all.c | 8 +
docs/devel/tcg.rst | 23 +++
hw/core/loader.c | 5 +
linux-user/elfload.c | 3 +
linux-user/exit.c | 2 +
linux-user/main.c | 15 ++
linux-user/meson.build | 1 +
linux-user/signal.c | 8 +-
meson.build | 8 +
qemu-options.hx | 20 +++
softmmu/vl.c | 11 ++
tcg/tcg.c | 2 +
17 files changed, 693 insertions(+), 3 deletions(-)
create mode 100644 accel/tcg/debuginfo.c
create mode 100644 accel/tcg/debuginfo.h
create mode 100644 accel/tcg/perf.c
create mode 100644 accel/tcg/perf.h
--
2.39.0
next reply other threads:[~2023-01-11 1:49 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-11 1:47 Ilya Leoshkevich [this message]
2023-01-11 1:47 ` [PATCH v3 1/3] linux-user: Clean up when exiting due to a signal Ilya Leoshkevich
2023-01-11 16:22 ` Alex Bennée
2023-01-11 20:07 ` Richard Henderson
2023-01-11 1:47 ` [PATCH v3 2/3] accel/tcg: Add debuginfo support Ilya Leoshkevich
2023-01-11 20:14 ` Richard Henderson
2023-01-11 1:47 ` [PATCH v3 3/3] tcg: add perfmap and jitdump Ilya Leoshkevich
2023-01-11 15:06 ` Ilya Leoshkevich
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=20230111014705.2275040-1-iii@linux.ibm.com \
--to=iii@linux.ibm.com \
--cc=alex.bennee@linaro.org \
--cc=borntraeger@linux.ibm.com \
--cc=qemu-devel@nongnu.org \
--cc=richard.henderson@linaro.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).