(pid: pid_t, timestamp: u64, addr: u64, path: &str)
| 822 | } |
| 823 | |
| 824 | fn mapping_event(pid: pid_t, timestamp: u64, addr: u64, path: &str) -> MemtrackEvent { |
| 825 | MemtrackEvent { |
| 826 | pid, |
| 827 | tid: pid, |
| 828 | timestamp, |
| 829 | addr, |
| 830 | kind: MemtrackEventKind::Mapping { |
| 831 | path: path.to_string(), |
| 832 | dev: 1, |
| 833 | ino: 1, |
| 834 | file_offset: 0, |
| 835 | len: 0x1000, |
| 836 | }, |
| 837 | } |
| 838 | } |
| 839 | |
| 840 | fn fork_event(child_pid: pid_t, parent_pid: pid_t, timestamp: u64) -> MemtrackEvent { |
| 841 | MemtrackEvent { |
nothing calls this directly
no outgoing calls
no test coverage detected