Stefan Hajnoczi <stefa...@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.fo...@linaro.org> -- Alex Bennée