Struct redbpf::TaskIter [−][src]
pub struct TaskIter { /* fields omitted */ }
Expand description
A structure supporting BPF iterators that handle task
Example
use redbpf::load::Loader;
let mut loaded = Loader::load(probe_code()).unwrap();
let tasks = loaded
.task_iter_mut("dump_tgid")
.expect("dump_tgid task iterator not found");
for tgid in tasks
.bpf_iter::<libc::pid_t>()
.expect("error on Taskiter::bpf_iter")
{
println!("{}", tgid);
}
Implementations
Create an iterator that iterates over data written by BPF iterators
See BPFIter<T>
for more information.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for TaskIter
impl UnwindSafe for TaskIter
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more