aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/task-analyzer.py
diff options
context:
space:
mode:
authorBenno Lossin <[email protected]>2024-08-19 11:24:39 +0000
committerMiguel Ojeda <[email protected]>2024-08-22 00:16:16 +0200
commit6d1c22d0ace31d096b0dab5318c6a0d3219d6456 (patch)
treea26b0a491e2b3265b3a59960ba786c7043fc6320 /tools/perf/scripts/python/task-analyzer.py
parent01db99b272318da75a1aa5a81f75adb9d32f676e (diff)
rust: init: add `write_[pin_]init` functions
Sometimes it is necessary to split allocation and initialization into two steps. One such situation is when reusing existing allocations obtained via `Box::drop_contents`. See [1] for an example. In order to support this use case add `write_[pin_]init` functions to the pin-init API. These functions operate on already allocated smart pointers that wrap `MaybeUninit<T>`. Link: https://lore.kernel.org/rust-for-linux/[email protected]/ [1] Signed-off-by: Benno Lossin <[email protected]> Reviewed-by: Boqun Feng <[email protected]> Reviewed-by: Alice Ryhl <[email protected]> Reviewed-by: Gary Guo <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Miguel Ojeda <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions