Enum linux_perf_data::DsoKey
source · [−]pub enum DsoKey {
Kernel,
GuestKernel,
Vdso32,
VdsoX32,
Vdso64,
Vsyscall,
KernelModule {
name: String,
},
User {
file_name: String,
full_path: Vec<u8>,
},
}Expand description
A canonicalized key which can be used to cross-reference an Mmap record with an entry in the perf file’s build ID list.
This is needed because the entries sometimes don’t have matching path strings.
Examples:
- Mmap path “[kernel.kallsyms]_text” + build ID map entry path “[kernel.kallsyms]”
- Mmap path “[kernel.kallsyms]_text” + build ID map entry path “/full/path/to/vmlinux”
Variants
Kernel
GuestKernel
Vdso32
VdsoX32
Vdso64
Vsyscall
KernelModule
Fields
name: StringThe name of the kernel module, without file extension, e.g. “snd-seq-device”.
We don’t store the full path in the key because the name is enough to uniquely identify the kernel module.
User
Fields
file_name: StringThe file name of the user-space DSO.
Implementations
Trait Implementations
impl Eq for DsoKey
impl StructuralEq for DsoKey
impl StructuralPartialEq for DsoKey
Auto Trait Implementations
impl RefUnwindSafe for DsoKey
impl Send for DsoKey
impl Sync for DsoKey
impl Unpin for DsoKey
impl UnwindSafe for DsoKey
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more