aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/host/host_linux.go
diff options
context:
space:
mode:
authorCody Holliday <9455568+Codysseus@users.noreply.github.com>2019-04-05 11:15:48 +0200
committerDmitry Vyukov <dvyukov@google.com>2019-04-05 11:15:48 +0200
commit40f2363e80ac2585f5d4654caed588db21463c88 (patch)
treeb28c7bd9d7079c1da6c0d7d547171dc0c255ef1a /pkg/host/host_linux.go
parent5701183bd373a3c3c96a86010b67bfecfbddb485 (diff)
pkg/host: enable kallsyms parsing on arm
pkg/host/host_linux.go: Add "arm" to kallsyms support test. pkg/host/host_test.go: TestKallsymsParse(): Add entry to test arm kallsyms parsing support.
Diffstat (limited to 'pkg/host/host_linux.go')
-rw-r--r--pkg/host/host_linux.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/host/host_linux.go b/pkg/host/host_linux.go
index ae8d7af85..e8395511f 100644
--- a/pkg/host/host_linux.go
+++ b/pkg/host/host_linux.go
@@ -82,7 +82,7 @@ func parseKallsyms(kallsyms []byte, arch string) map[string]bool {
switch arch {
case "386", "amd64":
re = regexp.MustCompile(` T (__ia32_|__x64_)?sys_([^\n]+)\n`)
- case "arm64":
+ case "arm", "arm64":
re = regexp.MustCompile(` T (__arm64_)?sys_([^\n]+)\n`)
case "ppc64le":
re = regexp.MustCompile(` T ()?sys_([^\n]+)\n`)