Struct solana_rbpf::call_frames::CallFrames [−][src]
When BPF calls a function other then a syscall
it expect the new
function to be called in its own frame. CallFrames manages
call frames
Implementations
impl CallFrames
[src][−]
pub fn new(depth: usize, frame_size: usize) -> Self
[src][−]
New call frame, depth indicates maximum call depth
pub fn get_region(&self) -> &MemoryRegion
[src][−]
Get stack memory region
pub fn get_frame_pointers(&self) -> Vec<u64>
[src][−]
Get the vm address of the beginning of each stack frame
pub fn get_stack_top(&self) -> u64
[src][−]
Get the address of a frame’s top of stack
pub fn get_frame_index(&self) -> usize
[src][−]
Get current call frame index, 0 is the root frame
pub fn get_max_frame_index(&self) -> usize
[src][−]
Get max frame index
pub fn push<E: UserDefinedError>(
&mut self,
saved_reg: &[u64],
return_ptr: usize
) -> Result<u64, EbpfError<E>>
[src][−]
&mut self,
saved_reg: &[u64],
return_ptr: usize
) -> Result<u64, EbpfError<E>>
Push a frame
pub fn pop<E: UserDefinedError>(
&mut self
) -> Result<([u64; 4], u64, usize), EbpfError<E>>
[src][−]
&mut self
) -> Result<([u64; 4], u64, usize), EbpfError<E>>
Pop a frame
Trait Implementations
impl Clone for CallFrames
[src][+]
impl Debug for CallFrames
[src][+]
Auto Trait Implementations
impl RefUnwindSafe for CallFrames
impl Send for CallFrames
impl Sync for CallFrames
impl Unpin for CallFrames
impl UnwindSafe for CallFrames
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> From<T> for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src][+]
T: Clone,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src][+]
V: MultiLane<T>,