diff options
| author | Andrew Donnellan <andrew.donnellan@au1.ibm.com> | 2019-01-11 17:20:04 +1100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2019-01-15 16:45:20 +0100 |
| commit | f4013aa9724fdaf3386d65247d2eca2332a85911 (patch) | |
| tree | 1f4fe90b40b1dcffc5825b85391fe57a46f7727e /pkg/host/host_linux.go | |
| parent | 0fbab0d71a5046eb851d92ab21ebad33bb2438eb (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.go | 2 |
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") } |
