Skip to content
Browse files

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 <>
  • Loading branch information...
ajdlinux authored and xairy committed Mar 27, 2019
1 parent f8f0147 commit 2697cc88bb43adfe209fbdfaf12c59d0cdd2cade
Showing with 1 addition and 0 deletions.
  1. +1 −0 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)

0 comments on commit 2697cc8

Please sign in to comment.
You can’t perform that action at this time.