summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorNicolás Antinori <nico.antinori.7@gmail.com>2026-06-29 11:20:05 -0300
committerAlexandre Courbot <acourbot@nvidia.com>2026-06-30 22:40:42 +0900
commit431f10ba13a964c146ae05728e42e4074bf735ab (patch)
treef1a3733853a04cd4ba56e4379ebfdd182c0f0c9c /tools/perf/scripts/python/stackcollapse.py
parent23d66dbab84e8518943563df2ced14aaab28b77a (diff)
gpu: nova-core: vbios: parse structs via zerocopy
Replace the unsafe `kernel::transmute::FromBytes` trait implementation for the `FalconUCodeDescV3`, `PcirStruct`, `BitHeader`, `BitToken`, `NpdeStruct`, `PciRomHeader`, `PmuLookupTableEntry` and `PmuLookupTableHeader` structs with the derivable `zerocopy::FromBytes` trait. This change eliminates the manual unsafe implementations in favor of a derivable trait. When this trait is derived, validity checks are performed at compile time to ensure that the type can safely implement `FromBytes`. Suggested-by: Miguel Ojeda <ojeda@kernel.org> Link: https://github.com/Rust-for-Linux/linux/issues/1241 Signed-off-by: Nicolás Antinori <nico.antinori.7@gmail.com> Link: https://patch.msgid.link/20260629142007.269873-1-nico.antinori.7@gmail.com [acourbot: add `vbios:` prefix to commit title.] Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions