extern struct Tos [src]
Fields
prof: extern struct {
/// known to be 0(ptr)
pp: *Plink,
/// known to be 4(ptr)
next: *Plink,
last: *Plink,
first: *Plink,
pid: u32,
what: u32,
}Per process profiling
cyclefreq: u64cycle clock frequency if there is one, 0 otherwise
kcycles: i64cycles spent in kernel
pcycles: i64cycles spent in process (kernel + user)
pid: u32might as well put the pid here
clock: u32
Source
pub const Tos = extern struct {
/// Per process profiling
prof: extern struct {
/// known to be 0(ptr)
pp: *Plink,
/// known to be 4(ptr)
next: *Plink,
last: *Plink,
first: *Plink,
pid: u32,
what: u32,
},
/// cycle clock frequency if there is one, 0 otherwise
cyclefreq: u64,
/// cycles spent in kernel
kcycles: i64,
/// cycles spent in process (kernel + user)
pcycles: i64,
/// might as well put the pid here
pid: u32,
clock: u32,
// top of stack is here
}