aboutsummaryrefslogtreecommitdiffstats
path: root/prog/encoding_test.go
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2020-03-16 08:14:39 +0100
committerDmitry Vyukov <dvyukov@google.com>2020-03-17 21:19:13 +0100
commit1ea952c9ffd767584c60a91d6f6d8ca603817c50 (patch)
tree3a495458a9fed4e4bfc0488a34f65dde34b9eac0 /prog/encoding_test.go
parent8bec3911ad478b6fef8df96e4dc89f8080229133 (diff)
pkg/compiler: calculate more precise sizes for arguments
If we have: ioctl(fd fd, cmd int32) ioctl$FOO(fd fd, cmd const[FOO]) Currently we assume that cmd size in ioctl$FOO is sizeof(void*). However, we know that in ioctl it's specified as int32, so we can infer that the actual syscall size is 4. This massively reduces sizes of socket/setsockopt/getsockopt/ioctl and some other syscalls, which is good because we now use physical size in mutation/hints and some other places. This will also enable not morphing ioctl's into other ioctl's. Update #477 Update #502
Diffstat (limited to 'prog/encoding_test.go')
0 files changed, 0 insertions, 0 deletions