Struct thread_db::ffi::ThreadDb

source ·
pub struct ThreadDb { /* private fields */ }

Implementations§

source§

impl ThreadDb

source

pub unsafe fn td_init(&self) -> TdErr

source

pub unsafe fn td_ta_new( &self, ps: *mut ProcHandle, ta: *mut *mut TdThrAgent ) -> TdErr

source

pub unsafe fn td_ta_delete(&self, ta: *mut TdThrAgent) -> TdErr

source

pub unsafe fn td_ta_get_nthreads( &self, ta: *const TdThrAgent, np: *mut i32 ) -> TdErr

source

pub unsafe fn td_ta_enable_stats( &self, ta: *mut TdThrAgent, enable: i32 ) -> TdErr

source

pub unsafe fn td_ta_reset_stats(&self, ta: *mut TdThrAgent) -> TdErr

source

pub unsafe fn td_ta_get_stats( &self, ta: *const TdThrAgent, stats: *mut TdTaStats ) -> TdErr

source

pub unsafe fn td_ta_thr_iter( &self, ta: *mut TdThrAgent, callback: unsafe extern "C" fn(handle: *const TdThrHandle, cbdata: *mut c_void) -> i32, cbdata: *mut c_void, state: TdThrState, pri: i32, ti_sigmask: *mut sigset_t, ti_user_flags: u32 ) -> TdErr

source

pub unsafe fn td_thr_validate(&self, handle: *const TdThrHandle) -> TdErr

source

pub unsafe fn td_ta_map_lwp2thr( &self, ta: *const TdThrAgent, pid: pid_t, handle: *mut TdThrHandle ) -> TdErr

source

pub unsafe fn td_thr_get_info( &self, handle: *const TdThrHandle, info: *mut TdThrInfo ) -> TdErr

source

pub unsafe fn td_thr_tlsbase( &self, handle: *const TdThrHandle, modid: u32, base: *mut *mut c_void ) -> TdErr

source

pub unsafe fn td_thr_tls_get_addr( &self, handle: *const TdThrHandle, map_address: *const c_void, offset: size_t, addr: *mut *mut c_void ) -> TdErr

Trait Implementations§

source§

impl WrapperApi for ThreadDb

source§

unsafe fn load(lib: &Library) -> Result<Self, Error>

Load symbols from provided library.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.