summaryrefslogtreecommitdiff
path: root/tools/perf/lib/Documentation/tutorial/git@git.tavy.me:linux.git
diff options
context:
space:
mode:
authorMarco Elver <elver@google.com>2025-12-19 16:39:56 +0100
committerPeter Zijlstra <peterz@infradead.org>2026-01-05 16:43:28 +0100
commit7c451541743c6c2ef1afc425191f18a23e311019 (patch)
tree8808e9d483b66c232a30a44d0962946190827595 /tools/perf/lib/Documentation/tutorial/git@git.tavy.me:linux.git
parent3931d4b980398012b66c8ff203bfa2ab3df71a71 (diff)
lockdep: Annotate lockdep assertions for context analysis
Clang's context analysis can be made aware of functions that assert that locks are held. Presence of these annotations causes the analysis to assume the context lock is held after calls to the annotated function, and avoid false positives with complex control-flow; for example, where not all control-flow paths in a function require a held lock, and therefore marking the function with __must_hold(..) is inappropriate. Signed-off-by: Marco Elver <elver@google.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Link: https://patch.msgid.link/20251219154418.3592607-8-elver@google.com
Diffstat (limited to 'tools/perf/lib/Documentation/tutorial/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions