hstrace 0.0.5

Syscall tracing from command line and as a library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use serde::Serialize;
use std::fmt;

#[derive(Clone, PartialEq, Serialize)]
pub struct MemoryAddress(pub usize);

impl fmt::Debug for MemoryAddress {
    fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
        if self.0 == 0 {
            write!(f, "NULL")
        } else {
            write!(f, "0x{:x?}", self.0)
        }
    }
}