(pid uint32, del_old bool)
| 247 | } |
| 248 | |
| 249 | func (this *MapsHelper) ParseMaps(pid uint32, del_old bool) error { |
| 250 | filename := fmt.Sprintf("/proc/%d/maps", pid) |
| 251 | content, err := ioutil.ReadFile(filename) |
| 252 | if err != nil { |
| 253 | return fmt.Errorf("Error when opening file:%v", err) |
| 254 | } |
| 255 | return this.ParseMapsContent(pid, content, del_old) |
| 256 | } |
| 257 | |
| 258 | func (this *MapsHelper) ParseMapsContent(pid uint32, content []byte, del_old bool) error { |
| 259 | var ( |
no test coverage detected