MCPcopy Create free account
hub / github.com/SeeFlowerX/stackplz / ParseMaps

Method ParseMaps

user/event/event_mmap2.go:249–256  ·  view source on GitHub ↗
(pid uint32, del_old bool)

Source from the content-addressed store, hash-verified

247}
248
249func (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
258func (this *MapsHelper) ParseMapsContent(pid uint32, content []byte, del_old bool) error {
259 var (

Callers 5

FindLibMethod · 0.95
CloneMapsMethod · 0.95
UpdateMapsMethod · 0.95
GetOffsetMethod · 0.95
CacheMapsFunction · 0.80

Calls 1

ParseMapsContentMethod · 0.95

Tested by

no test coverage detected