summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/stackcollapse-record
diff options
context:
space:
mode:
authorTimur Tabi <ttabi@nvidia.com>2026-03-19 16:26:57 -0500
committerDanilo Krummrich <dakr@kernel.org>2026-03-25 01:24:26 +0100
commit09691f5d807065a1d3d3042e2d8c2e0c170d7711 (patch)
tree894bc68b2a07880e0d857446108f2a02162647e0 /tools/perf/scripts/python/bin/stackcollapse-record
parentea0c83806f790de0b3441ddebbbcfd82196d6cce (diff)
gpu: nova-core: create debugfs root in module init
Create the 'nova_core' root debugfs entry when the driver loads. Normally, non-const global variables need to be protected by a mutex. Instead, we use unsafe code, as we know the entry is never modified after the driver is loaded. This solves the lifetime issue of the mutex guard, which would otherwise have required the use of `pin_init_scope`. Signed-off-by: Timur Tabi <ttabi@nvidia.com> Reviewed-by: Gary Guo <gary@garyguo.net> Reviewed-by: Alexandre Courbot <acourbot@nvidia.com> Tested-by: John Hubbard <jhubbard@nvidia.com> Tested-by: Eliot Courtney <ecourtney@nvidia.com> Link: https://patch.msgid.link/20260319212658.2541610-6-ttabi@nvidia.com Signed-off-by: Danilo Krummrich <dakr@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions