Re: [PATCH v15 00/23] tools/perf: Adopt kernel compiler-context-analysis.h annotations

From: Namhyung Kim

Date: Sun Nov 22 2026 - 17:58:07 EST


On Fri, 20 Nov 2026 22:57:49 -0800, Ian Rogers wrote:
> The perf tool previously added Clang thread-safety annotations in
> tools/perf/util/mutex.h (GUARDED_BY, LOCKABLE, EXCLUSIVE_LOCK_FUNCTION,
> UNLOCK_FUNCTION, etc.). Since then, the Linux kernel has adopted a
> unified set of static context analysis macros and attributes in
> include/linux/compiler-context-analysis.h (context_lock_struct,
> __guarded_by, __acquires, __releases, __must_hold, etc.).
>
> [...]

Applied to perf-tools-next, thanks!

Best regards
Namhyung