[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 0/3] TSA: make sure QEMU compiles when using clang TSA
From: |
Stefan Hajnoczi |
Subject: |
Re: [PATCH 0/3] TSA: make sure QEMU compiles when using clang TSA |
Date: |
Tue, 17 Jan 2023 11:22:35 -0500 |
On Tue, Jan 17, 2023 at 08:52:00AM -0500, Emanuele Giuseppe Esposito wrote:
> This serie aims to enable clang Thread Safety Analysis (TSA) in QEMU.
It's worth covering what TSA is and why it's useful:
Thread Safety Analysis "warns about potential race conditions in code.
The analysis is completely static (i.e. compile-time); there is no
run-time overhead"
"Thread safety analysis works very much like a type system for
multi-threaded programs. In addition to declaring the type of data (e.g.
int, float, etc.), the programmer can (optionally) declare how access to
that data is controlled in a multi-threaded environment. For example, if
foo is guarded by the mutex mu, then the analysis will issue a warning
whenever a piece of code reads or writes to foo without first locking
mu."
https://clang.llvm.org/docs/ThreadSafetyAnalysis.html
signature.asc
Description: PGP signature
- Re: [PATCH 2/3] bsd-user/mmap: use TSA_NO_TSA to suppress clang TSA warnings, (continued)
- Re: [PATCH 2/3] bsd-user/mmap: use TSA_NO_TSA to suppress clang TSA warnings, Kevin Wolf, 2023/01/17
- Re: [PATCH 2/3] bsd-user/mmap: use TSA_NO_TSA to suppress clang TSA warnings, Warner Losh, 2023/01/17
- Re: [PATCH 2/3] bsd-user/mmap: use TSA_NO_TSA to suppress clang TSA warnings, Kevin Wolf, 2023/01/17
- Re: [PATCH 2/3] bsd-user/mmap: use TSA_NO_TSA to suppress clang TSA warnings, Stefan Hajnoczi, 2023/01/17
- Re: [PATCH 2/3] bsd-user/mmap: use TSA_NO_TSA to suppress clang TSA warnings, Kevin Wolf, 2023/01/18
- Re: [PATCH 2/3] bsd-user/mmap: use TSA_NO_TSA to suppress clang TSA warnings, Stefan Hajnoczi, 2023/01/18
- Re: [PATCH 2/3] bsd-user/mmap: use TSA_NO_TSA to suppress clang TSA warnings, Emanuele Giuseppe Esposito, 2023/01/18
- Re: [PATCH 2/3] bsd-user/mmap: use TSA_NO_TSA to suppress clang TSA warnings, Stefan Hajnoczi, 2023/01/18
- Re: [PATCH 2/3] bsd-user/mmap: use TSA_NO_TSA to suppress clang TSA warnings, Warner Losh, 2023/01/18
Re: [PATCH 2/3] bsd-user/mmap: use TSA_NO_TSA to suppress clang TSA warnings, Stefan Hajnoczi, 2023/01/17
Re: [PATCH 0/3] TSA: make sure QEMU compiles when using clang TSA,
Stefan Hajnoczi <=