Fix lint errors

This commit is contained in:
世界
2026-08-30 17:41:40 +08:00
parent f720383adc
commit 704853b3be
38 changed files with 284 additions and 333 deletions
@@ -6,7 +6,9 @@ import "os"
func (b *profileBuilder) readMapping() {
data, _ := os.ReadFile("/proc/self/maps")
stdParseProcSelfMaps(data, b.addMapping)
stdParseProcSelfMaps(data, func(lo, hi, offset uint64, file, buildID string) {
b.addMappingEntry(lo, hi, offset, file, buildID, false)
})
if len(b.mem) == 0 {
b.addMappingEntry(0, 0, 0, "", "", true)
}