summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/strace/syscalls.go
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2020-02-20 11:29:59 -0800
committerCopybara-Service <copybara-worker@google.com>2020-02-20 11:31:00 -0800
commit9bad87339a10545d267903e7739f8cd978fbd82a (patch)
treec0e5687b1ddd95943f7c6763a28181c30d1f93f0 /pkg/sentry/strace/syscalls.go
parent9a4e3e63ef3c771e9fab3d19ee8ad0a173c7c4eb (diff)
Better strace logging for epoll syscalls.
Example: epoll_ctl(0x3 anon_inode:[eventpoll], EPOLL_CTL_ADD, 0x6 anon_inode:[eventfd], 0x7efe2fd92a80 {events=EPOLLIN|EPOLLOUT data=0x10203040506070a}) = 0x0 (4.411µs) epoll_wait(0x3 anon_inode:[eventpoll], 0x7efe2fd92b50 {{events=EPOLLOUT data=0x102030405060708}{events=EPOLLOUT data=0x102030405060708}{events=EPOLLOUT data=0x102030405060708}}, 0x3, 0xffffffff) = 0x3 (29.891µs) PiperOrigin-RevId: 296258146
Diffstat (limited to 'pkg/sentry/strace/syscalls.go')
-rw-r--r--pkg/sentry/strace/syscalls.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/pkg/sentry/strace/syscalls.go b/pkg/sentry/strace/syscalls.go
index 446d1e0f6..7e69b9279 100644
--- a/pkg/sentry/strace/syscalls.go
+++ b/pkg/sentry/strace/syscalls.go
@@ -228,6 +228,16 @@ const (
// SockOptLevel is the optname argument in getsockopt(2) and
// setsockopt(2).
SockOptName
+
+ // EpollCtlOp is the op argument to epoll_ctl(2).
+ EpollCtlOp
+
+ // EpollEvent is the event argument in epoll_ctl(2).
+ EpollEvent
+
+ // EpollEvents is an array of struct epoll_event. It is the events
+ // argument in epoll_wait(2)/epoll_pwait(2).
+ EpollEvents
)
// defaultFormat is the syscall argument format to use if the actual format is