diff options
| author | Andrew Donnellan <andrew.donnellan@au1.ibm.com> | 2019-03-28 10:55:56 +1100 |
|---|---|---|
| committer | Andrey Konovalov <andreyknvl@gmail.com> | 2019-05-08 16:52:55 +0200 |
| commit | 2697cc88bb43adfe209fbdfaf12c59d0cdd2cade (patch) | |
| tree | 2f20e89300c35cae259a860009b9d4f6ab35cbd8 /pkg/host/host_linux.go | |
| parent | f8f0147ff731cd582e6222d953d076bb8cf4c52b (diff) | |
pkg/host: Add stat to kallsyms rename map
On powerpc, the "stat" syscall is implemented by "sys_newstat" entry point.
This causes a test failure as we can't find "sys_stat" in kallsyms.
Add "stat" -> "newstat" to the kallsyms rename map to work around this.
Closes: #1083 ("pkg/host: TestSupportedSyscalls fails on ppc64le")
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 | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pkg/host/host_linux.go b/pkg/host/host_linux.go index 88ecf2d5a..8bd2cc65a 100644 --- a/pkg/host/host_linux.go +++ b/pkg/host/host_linux.go @@ -154,6 +154,7 @@ var ( kallsymsRenameMap = map[string]string{ "umount": "oldumount", "umount2": "umount", + "stat": "newstat", } trialMu sync.Mutex trialSupported = make(map[uint64]bool) |
