aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorRhys Lloyd <krakow20@gmail.com>2025-07-18 00:36:25 -0700
committerAlexandre Courbot <acourbot@nvidia.com>2025-08-12 09:58:23 +0900
commit2872c8982c80e22f9a7fc4db7d8f0e8188ab4cd7 (patch)
tree6ce6d16dbd6aaa2a0daa4ba431821db8729f5566 /tools/perf/scripts/python
parentgpu: nova-core: vbios: use size_of instead of magic number (diff)
downloadlinux-2872c8982c80e22f9a7fc4db7d8f0e8188ab4cd7.tar.gz
linux-2872c8982c80e22f9a7fc4db7d8f0e8188ab4cd7.zip
gpu: nova-core: vbios: change PmuLookupTableEntry to use size_of
Annotate the PmuLookupTableEntry with an `#[repr(C, packed)]` attribute. Removes another magic number by making the struct the same size as the data it needs to read, allowing the use of `size_of::<PmuLookupTableEntry>()` [acourbot@nvidia.com: remove `dead_code` expect to fix `unfulfilled_lint_expectations` lint] Reviewed-by: Alexandre Courbot <acourbot@nvidia.com> Signed-off-by: Rhys Lloyd <krakow20@gmail.com> Link: https://lore.kernel.org/r/20250718073633.194032-3-krakow20@gmail.com Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions