From: "Alex Bennée" <alex.bennee@linaro.org>
To: Arkadiusz Marud <a.marud@post.pl>
Cc: qemu-devel@nongnu.org
Subject: Re: Question: ThreadSanitizer support in QEMU user-mode
Date: Wed, 10 Sep 2025 09:43:35 +0100 [thread overview]
Message-ID: <87348u7l54.fsf@draig.linaro.org> (raw)
In-Reply-To: <CB3C08B0-0B52-4C27-89CF-8621B2A9E0E3@post.pl> (Arkadiusz Marud's message of "Wed, 10 Sep 2025 08:45:04 +0200")
Arkadiusz Marud <a.marud@post.pl> writes:
> Hi all,
>
> I am experimenting with running a C++ project built with ThreadSanitizer (TSAN) under QEMU.
> The documentation describes TSAN usage in system-mode (qemu-system-x86_64) with --enable-tsan,
> but I couldn’t find any reference to support in user-mode (qemu-x86_64).
>
> Does QEMU user-mode support running TSAN-instrumented binaries, or is
> TSAN available only in system-mode builds?
I don't think the compiler cares and our TSAN helpers are mode agnostic.
However there may be some fork/thread things that it can't track.
>
> Thanks in advance for clarification,
> Arek
--
Alex Bennée
Virtualisation Tech Lead @ Linaro
prev parent reply other threads:[~2025-09-10 8:44 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-10 6:45 Question: ThreadSanitizer support in QEMU user-mode Arkadiusz Marud
2025-09-10 8:43 ` Alex Bennée [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=87348u7l54.fsf@draig.linaro.org \
--to=alex.bennee@linaro.org \
--cc=a.marud@post.pl \
--cc=qemu-devel@nongnu.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).