From f4013aa9724fdaf3386d65247d2eca2332a85911 Mon Sep 17 00:00:00 2001 From: Andrew Donnellan Date: Fri, 11 Jan 2019 17:20:04 +1100 Subject: 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 --- pkg/host/host_linux.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'pkg/host/host_linux.go') 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") } -- cgit mrf-deployment