summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorFuad Tabba <tabba@google.com>2026-03-06 14:02:29 +0000
committerMarc Zyngier <maz@kernel.org>2026-03-28 11:29:40 +0000
commit975bad4bb21e4eea7ecc0f32f4cbbb91a9c8d48f (patch)
tree061661b653c750e2ac9603d57c1ecf8915df4989 /tools/perf/scripts/python/stackcollapse.py
parent3825373b91b0fbedc65205a59f95379aaf596aad (diff)
KVM: arm64: Initialize struct kvm_s2_fault completely at declaration
Simplify the initialization of struct kvm_s2_fault in user_mem_abort(). Instead of partially initializing the struct via designated initializers and then sequentially assigning the remaining fields (like write_fault and topup_memcache) further down the function, evaluate those dependencies upfront. This allows the entire struct to be fully initialized at declaration. It also eliminates the need for the intermediate fault_data variable and its associated fault pointer, reducing boilerplate. Signed-off-by: Fuad Tabba <tabba@google.com> Signed-off-by: Marc Zyngier <maz@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions