aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/host/host_linux.go
diff options
context:
space:
mode:
authorAndrew Donnellan <andrew.donnellan@au1.ibm.com>2019-01-11 17:20:04 +1100
committerDmitry Vyukov <dvyukov@google.com>2019-01-15 16:45:20 +0100
commitf4013aa9724fdaf3386d65247d2eca2332a85911 (patch)
tree1f4fe90b40b1dcffc5825b85391fe57a46f7727e /pkg/host/host_linux.go
parent0fbab0d71a5046eb851d92ab21ebad33bb2438eb (diff)
pkg/host: Support extracting kallsyms on ppc64le
Add a regex for syscall symbol extraction on ppc64le. ppc64le doesn't have any special arch prefix. Signed-off-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com>
Diffstat (limited to 'pkg/host/host_linux.go')
-rw-r--r--pkg/host/host_linux.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkg/host/host_linux.go b/pkg/host/host_linux.go
index a01e1bd42..0c65f9b0c 100644
--- a/pkg/host/host_linux.go
+++ b/pkg/host/host_linux.go
@@ -65,6 +65,8 @@ func isSupported(c *prog.Syscall, target *prog.Target, sandbox string) (bool, st
re = regexp.MustCompile(` T (__ia32_|__x64_)?sys_([^\n]+)\n`)
case "arm64":
re = regexp.MustCompile(` T (__arm64_)?sys_([^\n]+)\n`)
+ case "ppc64le":
+ re = regexp.MustCompile(` T ()?sys_([^\n]+)\n`)
default:
panic("unsupported arch for kallsyms parsing")
}