summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/task-analyzer.py
diff options
context:
space:
mode:
authorRosen Penev <rosenp@gmail.com>2026-06-30 13:47:19 -0700
committerSudeep Holla <sudeep.holla@kernel.org>2026-07-13 12:06:38 +0100
commit9c62bb72a5d02795f767cf9f5e5dd781d8ccf70a (patch)
tree76de598aa8eef09d2fe53e912d42f198164874a5 /tools/perf/scripts/python/task-analyzer.py
parent980a8bfe7baec9b9ee0d5443b0b204552e41c407 (diff)
firmware: arm_scmi: Simplify notification allocations
Several SCMI notification data structures allocate a descriptor and then allocate a fixed-size array referenced by that descriptor. Use flexible array members for per-protocol registered events and per-event source refcounts so each descriptor and its array can be allocated together. Annotate the flexible arrays with __counted_by() and assign the count fields immediately after allocation, before any array access. The registered_protocols table has a fixed SCMI_MAX_PROTO size, so embed it directly in the notification instance instead of allocating it separately. Signed-off-by: Rosen Penev <rosenp@gmail.com> Link: https://patch.msgid.link/20260630204719.334211-1-rosenp@gmail.com (sudeep.holla: Updated title and improved change description) Signed-off-by: Sudeep Holla <sudeep.holla@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions