From 2697cc88bb43adfe209fbdfaf12c59d0cdd2cade Mon Sep 17 00:00:00 2001 From: Andrew Donnellan Date: Thu, 28 Mar 2019 10:55:56 +1100 Subject: 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 --- pkg/host/host_linux.go | 1 + 1 file changed, 1 insertion(+) (limited to 'pkg') 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) -- cgit mrf-deployment