[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 01/19] configure: add --enable-tsan flag + fiber annotations
From: |
Alex Bennée |
Subject: |
Re: [PATCH 01/19] configure: add --enable-tsan flag + fiber annotations for coroutine-ucontext |
Date: |
Wed, 17 Jun 2020 16:56:41 +0100 |
User-agent: |
mu4e 1.5.3; emacs 28.0.50 |
Stefan Hajnoczi <stefanha@gmail.com> writes:
> On Fri, May 22, 2020 at 12:07:37PM -0400, Robert Foley wrote:
>> +#define UC_DEBUG 0
>> +#if UC_DEBUG && defined(CONFIG_TSAN)
>> +#define UC_TRACE(fmt, ...) fprintf(stderr, "%s:%d:%p " fmt "\n", \
>> + __func__, __LINE__, __tsan_get_current_fiber(), ##__VA_ARGS__);
>> +#else
>> +#define UC_TRACE(fmt, ...)
>> +#endif
>
> QEMU has tracing support, see docs/devel/tracing.txt. These fprintfs
> should be trace events defined in the util/trace-events file.
These got dropped on the final version. You might want to check against
the version I pulled:
Subject: [PATCH v3 00/13] Add Thread Sanitizer support to QEMU
Date: Tue, 9 Jun 2020 16:07:25 -0400
Message-Id: <20200609200738.445-1-robert.foley@linaro.org>
--
Alex Bennée