aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/host/host_linux.go
diff options
context:
space:
mode:
authorAndrew Donnellan <andrew.donnellan@au1.ibm.com>2019-03-28 10:55:56 +1100
committerAndrey Konovalov <andreyknvl@gmail.com>2019-05-08 16:52:55 +0200
commit2697cc88bb43adfe209fbdfaf12c59d0cdd2cade (patch)
tree2f20e89300c35cae259a860009b9d4f6ab35cbd8 /pkg/host/host_linux.go
parentf8f0147ff731cd582e6222d953d076bb8cf4c52b (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.go1
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)