class KernelMappedVmo
Defined at line 19 of file ../../zircon/kernel/lib/instrumentation/include/lib/instrumentation/kernel-mapped-vmo.h
This maintains a kernel mapping from a VMO; mapped pages must stay pinned to
prevent kernel-mode page faults. Destroying this object unmaps and unpins.
Public Methods
void ~KernelMappedVmo ()
Defined at line 37 of file ../../zircon/kernel/lib/instrumentation/kernel-mapped-vmo.cc
zx_status_t Init (fbl::RefPtr<VmObject> vmo, size_t offset, size_t size, const char * name)
Initialize with a kernel mapping from the VMO.
Defined at line 17 of file ../../zircon/kernel/lib/instrumentation/kernel-mapped-vmo.cc
template <size_t N>
Handle * Publish (const ktl::array<char, N> & name, size_t stream_size)
Defined at line 31 of file ../../zircon/kernel/lib/instrumentation/include/lib/instrumentation/kernel-mapped-vmo.h
vaddr_t base_locking ()
Return the bounds of the mapping in the kernel address space.
Defined at line 36 of file ../../zircon/kernel/lib/instrumentation/include/lib/instrumentation/kernel-mapped-vmo.h
size_t size_locking ()
Defined at line 37 of file ../../zircon/kernel/lib/instrumentation/include/lib/instrumentation/kernel-mapped-vmo.h
Handle * Publish (ktl::string_view vmo_name, size_t stream_size)
Publish this VMO to userland as a read-only handle using the given name
and stream size.
Defined at line 44 of file ../../zircon/kernel/lib/instrumentation/kernel-mapped-vmo.cc