summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorDanilo Krummrich <dakr@kernel.org>2025-03-22 00:47:54 +0300
committerDanilo Krummrich <dakr@kernel.org>2025-04-19 11:20:16 +0300
commita095d0d1e4849ee25c28d43d713a8f433d7f1f27 (patch)
tree8e38d36066ae4862f6e297614a485d3096728393 /tools/perf/scripts/python/export-to-sqlite.py
parentcfec9a16e6800b5489bd361f6b6ea9af65fb1050 (diff)
downloadlinux-a095d0d1e4849ee25c28d43d713a8f433d7f1f27.tar.xz
rust: pci: impl TryFrom<&Device> for &pci::Device
Implement TryFrom<&device::Device> for &Device. This allows us to get a &pci::Device from a generic &Device in a safe way; the conversion fails if the device' bus type does not match with the PCI bus type. Reviewed-by: Alice Ryhl <aliceryhl@google.com> Reviewed-by: Benno Lossin <benno.lossin@proton.me> Link: https://lore.kernel.org/r/20250321214826.140946-3-dakr@kernel.org [ Support device context types, use dev_is_pci() helper. - Danilo ] Signed-off-by: Danilo Krummrich <dakr@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions