Przeglądaj źródła

Merge pull request #79 from aalexand/aalexand-dev-dri

Do not attempt to symbolize /dev/dri/* and [heap] files.
Raul Silvera 8 lat temu
rodzic
commit
ef147ff386
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1
    1
      profile/profile.go

+ 1
- 1
profile/profile.go Wyświetl plik

599
 // locations can't be symbolized in principle, at least now.
599
 // locations can't be symbolized in principle, at least now.
600
 func (m *Mapping) Unsymbolizable() bool {
600
 func (m *Mapping) Unsymbolizable() bool {
601
 	name := filepath.Base(m.File)
601
 	name := filepath.Base(m.File)
602
-	return name == "[vdso]" || strings.HasPrefix(name, "linux-vdso")
602
+	return name == "[vdso]" || strings.HasPrefix(name, "linux-vdso") || name == "[heap]" || strings.HasPrefix(m.File, "/dev/dri/")
603
 }
603
 }
604
 
604
 
605
 // Copy makes a fully independent copy of a profile.
605
 // Copy makes a fully independent copy of a profile.