aboutsummaryrefslogtreecommitdiffstats
path: root/sys/linux
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2017-09-14 21:27:56 +0200
committerDmitry Vyukov <dvyukov@google.com>2017-09-15 16:02:37 +0200
commit19f9bc13d374058b83b2712f119bb42559b35c0c (patch)
tree2e2744f8f1e3036736e3535ae776ff1409bf5368 /sys/linux
parent52a33fd516102a98d3753bf69417235b655a68dc (diff)
pkg/csource: support archs other than x86_64
Diffstat (limited to 'sys/linux')
-rw-r--r--sys/linux/386.go1
-rw-r--r--sys/linux/arm.go1
-rw-r--r--sys/linux/sys.txt5
-rw-r--r--sys/linux/sys_386.const1
-rw-r--r--sys/linux/sys_arm.const1
5 files changed, 7 insertions, 2 deletions
diff --git a/sys/linux/386.go b/sys/linux/386.go
index 7532427e6..60842fd78 100644
--- a/sys/linux/386.go
+++ b/sys/linux/386.go
@@ -17031,6 +17031,7 @@ var consts_386 = []ConstValue{
{Name: "__NR_mlock2", Value: 376},
{Name: "__NR_mlockall", Value: 152},
{Name: "__NR_mmap", Value: 90},
+ {Name: "__NR_mmap2", Value: 192},
{Name: "__NR_modify_ldt", Value: 123},
{Name: "__NR_mount", Value: 21},
{Name: "__NR_move_pages", Value: 317},
diff --git a/sys/linux/arm.go b/sys/linux/arm.go
index be130d209..3eb900c60 100644
--- a/sys/linux/arm.go
+++ b/sys/linux/arm.go
@@ -16976,6 +16976,7 @@ var consts_arm = []ConstValue{
{Name: "__NR_mlock2", Value: 9437574},
{Name: "__NR_mlockall", Value: 9437336},
{Name: "__NR_mmap", Value: 9437274},
+ {Name: "__NR_mmap2", Value: 9437376},
{Name: "__NR_mount", Value: 9437205},
{Name: "__NR_move_pages", Value: 9437528},
{Name: "__NR_mprotect", Value: 9437309},
diff --git a/sys/linux/sys.txt b/sys/linux/sys.txt
index decd9c52f..f2241155c 100644
--- a/sys/linux/sys.txt
+++ b/sys/linux/sys.txt
@@ -54,6 +54,7 @@ include <linux/memfd.h>
include <uapi/linux/module.h>
include <asm/prctl.h>
include <linux/ioprio.h>
+include <uapi/linux/kcov.h>
resource fd[int32]: 0xffffffffffffffff, AT_FDCWD
resource fd_dir[fd]
@@ -1017,14 +1018,14 @@ getrandom_flags = GRND_NONBLOCK, GRND_RANDOM
uffdio_features = UFFD_FEATURE_PAGEFAULT_FLAG_WP, UFFD_FEATURE_EVENT_FORK, UFFD_FEATURE_EVENT_REMAP, UFFD_FEATURE_EVENT_REMOVE, UFFD_FEATURE_MISSING_HUGETLBFS, UFFD_FEATURE_MISSING_SHMEM, UFFD_FEATURE_EVENT_UNMAP
clone_flags = CLONE_VM, CLONE_FS, CLONE_FILES, CLONE_SIGHAND, CLONE_PTRACE, CLONE_VFORK, CLONE_PARENT, CLONE_THREAD, CLONE_NEWNS, CLONE_SYSVSEM, CLONE_SETTLS, CLONE_PARENT_SETTID, CLONE_CHILD_CLEARTID, CLONE_UNTRACED, CLONE_CHILD_SETTID, CLONE_NEWCGROUP, CLONE_NEWUTS, CLONE_NEWIPC, CLONE_NEWUSER, CLONE_NEWPID, CLONE_NEWNET, CLONE_IO
-include <uapi/linux/kcov.h>
-
kcov_ioctls = KCOV_INIT_TRACE, KCOV_ENABLE
kcov_modes = KCOV_TRACE_PC, KCOV_TRACE_CMP
# TODO: remove once the const is present in kernel headers.
define KCOV_TRACE_PC 0
define KCOV_TRACE_CMP 1
+legacy_mmap_number = __NR_mmap2
+
# Not yet implemented syscalls
#define __NR_umask 95
#define __NR_vhangup 153
diff --git a/sys/linux/sys_386.const b/sys/linux/sys_386.const
index 0d6a93ef5..a8d240c45 100644
--- a/sys/linux/sys_386.const
+++ b/sys/linux/sys_386.const
@@ -714,6 +714,7 @@ __NR_mlock = 150
__NR_mlock2 = 376
__NR_mlockall = 152
__NR_mmap = 90
+__NR_mmap2 = 192
__NR_modify_ldt = 123
__NR_mount = 21
__NR_move_pages = 317
diff --git a/sys/linux/sys_arm.const b/sys/linux/sys_arm.const
index 3b51f34ce..d3ccf9ec1 100644
--- a/sys/linux/sys_arm.const
+++ b/sys/linux/sys_arm.const
@@ -704,6 +704,7 @@ __NR_mlock = 9437334
__NR_mlock2 = 9437574
__NR_mlockall = 9437336
__NR_mmap = 9437274
+__NR_mmap2 = 9437376
__NR_mount = 9437205
__NR_move_pages = 9437528
__NR_mprotect = 9437309