Initialize the data we need prior writing a new memory dump.
(&mut self)
| 179 | |
| 180 | // Initialize the data we need prior writing a new memory dump. |
| 181 | fn init(&mut self) -> Result<()> { |
| 182 | self.get_vmcoreinfo_syms()?; |
| 183 | self.parse_kcore()?; |
| 184 | |
| 185 | Ok(()) |
| 186 | } |
| 187 | |
| 188 | // Read data inside /proc/kcore at a given file offset. |
| 189 | fn read_offset(&self, offset: u64, size: usize) -> Result<Vec<u8>> { |
no test coverage detected