diff options
author | gVisor bot <gvisor-bot@google.com> | 2020-02-20 11:29:59 -0800 |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2020-02-20 11:31:00 -0800 |
commit | 9bad87339a10545d267903e7739f8cd978fbd82a (patch) | |
tree | c0e5687b1ddd95943f7c6763a28181c30d1f93f0 /pkg/abi/linux | |
parent | 9a4e3e63ef3c771e9fab3d19ee8ad0a173c7c4eb (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/abi/linux')
-rw-r--r-- | pkg/abi/linux/epoll.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/pkg/abi/linux/epoll.go b/pkg/abi/linux/epoll.go index 6e4de69da..1121a1a92 100644 --- a/pkg/abi/linux/epoll.go +++ b/pkg/abi/linux/epoll.go @@ -14,6 +14,10 @@ package linux +import ( + "gvisor.dev/gvisor/pkg/binary" +) + // Event masks. const ( EPOLLIN = 0x1 @@ -53,3 +57,6 @@ const ( EPOLL_CTL_DEL = 0x2 EPOLL_CTL_MOD = 0x3 ) + +// SizeOfEpollEvent is the size of EpollEvent struct. +var SizeOfEpollEvent = int(binary.Size(EpollEvent{})) |