summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/stackcollapse-record
diff options
context:
space:
mode:
authorDanilo Krummrich <dakr@kernel.org>2026-08-13 09:00:49 +0000
committerMiguel Ojeda <ojeda@kernel.org>2026-08-13 11:58:59 +0200
commita2595ed13816812cc4307a5834a584e0d06975a3 (patch)
tree4030b439f93dabfbc4e483e50239d539b129e8aa /tools/perf/scripts/python/bin/stackcollapse-record
parent643a7c306b8ce32743d4f94dd700c8588be37e66 (diff)
rust: kernel: add `LocalModule` fallback for `#[vtable]` `impl`s
Like commit 98f256e27262 ("rust: doctest: add LocalModule fallback for #[vtable] ThisModule"), add another `LocalModule` struct with a null-pointer `ModuleMetadata` `impl` for the `kernel` crate, so that `crate::LocalModule` (auto-inserted by `#[vtable]`) resolves correctly when there is no `module!` macro. This will be needed by DRM to use `#[vtable]` `impl` blocks in KUnit tests within the `kernel` crate [1]. Signed-off-by: Danilo Krummrich <dakr@kernel.org> Link: https://lore.kernel.org/rust-for-linux/DKNAS52KYWLD.M15VEC6U0F6R@kernel.org/ [1] [ Created commit out of the diff in the link above. Fixed the `clippy::undocumented_unsafe_blocks` lint by wrapping with a block like in the other commit too. Added `#[allow(dead_code)]` until we actually (and unconditionally, i.e. KUnit tests may be not enabled) use it. - Miguel ] Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions