summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/strace/strace.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/sentry/strace/strace.go')
-rw-r--r--pkg/sentry/strace/strace.go15
1 files changed, 3 insertions, 12 deletions
diff --git a/pkg/sentry/strace/strace.go b/pkg/sentry/strace/strace.go
index 4286f0df7..e40e0b57c 100644
--- a/pkg/sentry/strace/strace.go
+++ b/pkg/sentry/strace/strace.go
@@ -50,18 +50,9 @@ var EventMaximumSize uint
// ItimerTypes are the possible itimer types.
var ItimerTypes = abi.ValueSet{
- {
- Value: linux.ITIMER_REAL,
- Name: "ITIMER_REAL",
- },
- {
- Value: linux.ITIMER_VIRTUAL,
- Name: "ITIMER_VIRTUAL",
- },
- {
- Value: linux.ITIMER_PROF,
- Name: "ITIMER_PROF",
- },
+ linux.ITIMER_REAL: "ITIMER_REAL",
+ linux.ITIMER_VIRTUAL: "ITIMER_VIRTUAL",
+ linux.ITIMER_PROF: "ITIMER_PROF",
}
func iovecs(t *kernel.Task, addr usermem.Addr, iovcnt int, printContent bool, maxBytes uint64) string {