...

Package mapreader

import "github.com/chaos-mesh/chaos-mesh/pkg/mapreader"
Overview
Index

Overview ▾

type Entry

Entry is one line in /proc/pid/maps

type Entry struct {
    StartAddress uint64
    EndAddress   uint64
    Privilege    string
    PaddingSize  uint64
    Path         string
}

func Read

func Read(pid int) ([]Entry, error)

Read parse /proc/[pid]/maps and return a list of entry The format of /proc/[pid]/maps can be found in `man proc`.