diff options
| author | Nilay Shroff <nilay@linux.ibm.com> | 2026-07-13 17:24:02 +0530 |
|---|---|---|
| committer | Keith Busch <kbusch@kernel.org> | 2026-07-28 10:36:15 -0700 |
| commit | a7609033629624fcbc2032431cbe8c4a84a3ac34 (patch) | |
| tree | 9a0ed0a305de6b6179d6a6adb1fdd77720cbaf15 /tools/perf/scripts/python/bin/stackcollapse-record | |
| parent | 737a3b535247226f6e1a7988fd9d6e63e7d6fc71 (diff) | |
list: introduce LIST_HEAD_GUARDED
Introduce LIST_HEAD_GUARDED(name, lock) to define a struct list_head
annotated with __guarded_by(lock). This provides a convenient shorthand
for defining lock-protected list heads and allows compiler context
analysis to validate accesses to the list against the associated lock.
The new helper also reduces boilerplate and improves consistency across
callers that annotate struct list_head objects with __guarded_by().
This is a preparatory change for subsequent patches that annotate
LIST_HEAD() instances with their protecting lock.
Suggested-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Nilay Shroff <nilay@linux.ibm.com>
Signed-off-by: Keith Busch <kbusch@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions
