diff options
| author | Danilo Krummrich <dakr@kernel.org> | 2026-03-25 01:39:16 +0100 |
|---|---|---|
| committer | Danilo Krummrich <dakr@kernel.org> | 2026-03-27 21:48:18 +0100 |
| commit | d1619a433806c61d240a1eb9b4f03cb33ac40fce (patch) | |
| tree | fa926db7fd9deb02bcadb448e884fb7c790e5268 /tools/perf/scripts/python/stackcollapse.py | |
| parent | 25fe63db0024da172457055532c96bef924a8c78 (diff) | |
rust: dma: generalize BinaryWriter impl for Coherent<T>
Generalize the BinaryWriter implementation from Coherent<[u8]> to
Coherent<T> where T: KnownSize + AsBytes + ?Sized. The implementation
only uses size() and write_dma(), neither of which depends on the
inner type being a byte slice.
This allows any Coherent allocation with an AsBytes inner type to be
exposed as a debugfs binary file.
Acked-by: Gary Guo <gary@garyguo.net>
Reviewed-by: Alexandre Courbot <acourbot@nvidia.com>
Link: https://patch.msgid.link/20260325003921.3420-2-dakr@kernel.org
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
