mirror of
https://github.com/SagerNet/sing-box.git
synced 2026-04-11 17:47:20 +10:00
14 lines
247 B
Go
14 lines
247 B
Go
//go:build linux
|
|
|
|
package oomprofile
|
|
|
|
import "os"
|
|
|
|
func (b *profileBuilder) readMapping() {
|
|
data, _ := os.ReadFile("/proc/self/maps")
|
|
stdParseProcSelfMaps(data, b.addMapping)
|
|
if len(b.mem) == 0 {
|
|
b.addMappingEntry(0, 0, 0, "", "", true)
|
|
}
|
|
}
|