|
|
39d69a |
diff --git a/README b/README
|
|
|
39d69a |
index 414bdfb..a04b767 100644
|
|
|
39d69a |
--- a/README
|
|
|
39d69a |
+++ b/README
|
|
|
39d69a |
@@ -24,6 +24,7 @@ The following targets are currently (at least somewhat) supported.
|
|
|
39d69a |
Some of them may be more or less broken in reality, it is not feasible
|
|
|
39d69a |
to test each release comprehensively on each target.
|
|
|
39d69a |
|
|
|
39d69a |
+ aarch64-*-linux-gnu
|
|
|
39d69a |
armv6l-*-linux-gnueabi
|
|
|
39d69a |
armv7l-*-linux-gnueabihf
|
|
|
39d69a |
i[4567]86-*-linux-gnu
|
|
|
39d69a |
@@ -81,7 +82,7 @@ quick one-liner), it is advisable to send an e-mail beforehand.
|
|
|
39d69a |
|
|
|
39d69a |
|
|
|
39d69a |
-------------------------------------------------------------------------------
|
|
|
39d69a |
-Copyright (C) 2012,2013 Petr Machata <pmachata@redhat.com>
|
|
|
39d69a |
+Copyright (C) 2012-2014 Petr Machata <pmachata@redhat.com>
|
|
|
39d69a |
Copyright (C) 1997-2009 Juan Cespedes <cespedes@debian.org>
|
|
|
39d69a |
This file is part of ltrace.
|
|
|
39d69a |
|
|
|
39d69a |
diff --git a/configure.ac b/configure.ac
|
|
|
39d69a |
index c6e6bf0..0e9a124 100644
|
|
|
39d69a |
--- a/configure.ac
|
|
|
39d69a |
+++ b/configure.ac
|
|
|
39d69a |
@@ -1,6 +1,6 @@
|
|
|
39d69a |
# -*- Autoconf -*-
|
|
|
39d69a |
# This file is part of ltrace.
|
|
|
39d69a |
-# Copyright (C) 2010,2012,2013 Petr Machata, Red Hat Inc.
|
|
|
39d69a |
+# Copyright (C) 2010,2012,2013,2014 Petr Machata, Red Hat Inc.
|
|
|
39d69a |
# Copyright (C) 2010,2011 Joe Damato
|
|
|
39d69a |
# Copyright (C) 2010 Marc Kleine-Budde
|
|
|
39d69a |
# Copyright (C) 2010 Zachary T Welch
|
|
|
39d69a |
@@ -399,6 +399,7 @@ AC_CONFIG_FILES([
|
|
|
39d69a |
Makefile
|
|
|
39d69a |
sysdeps/Makefile
|
|
|
39d69a |
sysdeps/linux-gnu/Makefile
|
|
|
39d69a |
+ sysdeps/linux-gnu/aarch64/Makefile
|
|
|
39d69a |
sysdeps/linux-gnu/alpha/Makefile
|
|
|
39d69a |
sysdeps/linux-gnu/arm/Makefile
|
|
|
39d69a |
sysdeps/linux-gnu/cris/Makefile
|
|
|
39d69a |
diff --git a/etc/libc.so.conf b/etc/libc.so.conf
|
|
|
39d69a |
index 669c50a..48b3b01 100644
|
|
|
39d69a |
--- a/etc/libc.so.conf
|
|
|
39d69a |
+++ b/etc/libc.so.conf
|
|
|
39d69a |
@@ -1,5 +1,12 @@
|
|
|
39d69a |
# See ltrace.conf(5) for description of syntax of this file.
|
|
|
39d69a |
|
|
|
39d69a |
+# XXX ltrace misses long double and long long support
|
|
|
39d69a |
+typedef ldouble = double;
|
|
|
39d69a |
+typedef llong = long;
|
|
|
39d69a |
+typedef ullong = ulong;
|
|
|
39d69a |
+
|
|
|
39d69a |
+void __libc_start_main(hide(void*), hide(int), array(string, arg2));
|
|
|
39d69a |
+
|
|
|
39d69a |
# arpa/inet.h
|
|
|
39d69a |
typedef in_addr = struct(hex(uint));
|
|
|
39d69a |
int inet_aton(string, +in_addr*);
|
|
|
39d69a |
@@ -233,9 +240,22 @@ void setbuffer(file,addr,ulong);
|
|
|
39d69a |
void setlinebuf(file);
|
|
|
39d69a |
int rename(string,string);
|
|
|
39d69a |
|
|
|
39d69a |
+# xlocale.h
|
|
|
39d69a |
+typedef locale_t = void*;
|
|
|
39d69a |
+locale_t newlocale(hex(int), string, locale_t);
|
|
|
39d69a |
+
|
|
|
39d69a |
# stdlib.h
|
|
|
39d69a |
-long __strtol_internal(string,addr,int);
|
|
|
39d69a |
-ulong __strtoul_internal(string,addr,int);
|
|
|
39d69a |
+long __strtol_internal(string, +string*, int);
|
|
|
39d69a |
+ulong __strtoul_internal(string, +string*, int);
|
|
|
39d69a |
+
|
|
|
39d69a |
+double strtod(string, +string*);
|
|
|
39d69a |
+float strtof(string, +string*);
|
|
|
39d69a |
+ldouble strtold(string, +string*);
|
|
|
39d69a |
+
|
|
|
39d69a |
+double strtod_l(string, +string*, locale_t);
|
|
|
39d69a |
+float strtof_l(string, +string*, locale_t);
|
|
|
39d69a |
+ldouble strtold_l(string, +string*, locale_t);
|
|
|
39d69a |
+
|
|
|
39d69a |
int atexit(addr);
|
|
|
39d69a |
addr bsearch(string, addr, ulong, ulong, addr);
|
|
|
39d69a |
addr calloc(ulong, ulong);
|
|
|
39d69a |
@@ -343,6 +363,10 @@ addr gmtime(addr);
|
|
|
39d69a |
addr localtime(addr);
|
|
|
39d69a |
ulong strftime(+string2,ulong,string,addr);
|
|
|
39d69a |
long time(addr);
|
|
|
39d69a |
+# XXX in fact (time_t, long), which may be (llong, long) on 32-bit
|
|
|
39d69a |
+# arches. We don't have llong as of this writing.
|
|
|
39d69a |
+typedef timespec = struct(long, long);
|
|
|
39d69a |
+int nanosleep(timespec*, timespec*);
|
|
|
39d69a |
|
|
|
39d69a |
# unistd.h
|
|
|
39d69a |
void _exit(int);
|
|
|
39d69a |
diff --git a/etc/syscalls.conf b/etc/syscalls.conf
|
|
|
39d69a |
index 562f4e7..09d347d 100644
|
|
|
39d69a |
--- a/etc/syscalls.conf
|
|
|
39d69a |
+++ b/etc/syscalls.conf
|
|
|
39d69a |
@@ -1,6 +1,10 @@
|
|
|
39d69a |
# syscall.conf -- system call prototypes
|
|
|
39d69a |
# See ltrace.conf(5) for description of syntax of this file.
|
|
|
39d69a |
|
|
|
39d69a |
+# Special value used to indicate the *at functions should use the
|
|
|
39d69a |
+# current working directory.
|
|
|
39d69a |
+typedef at_dirfd_t = enum[int](AT_FDCWD=-100);
|
|
|
39d69a |
+
|
|
|
39d69a |
addr brk(addr);
|
|
|
39d69a |
int close(int);
|
|
|
39d69a |
int execve(string,addr,addr);
|
|
|
39d69a |
@@ -14,7 +18,7 @@ int getpid();
|
|
|
39d69a |
addr mmap(addr,ulong,int,int,int,long);
|
|
|
39d69a |
|
|
|
39d69a |
int munmap(addr,ulong);
|
|
|
39d69a |
-int open(string,int,octal);
|
|
|
39d69a |
+int open(string, hex(uint), oct(uint));
|
|
|
39d69a |
int personality(uint);
|
|
|
39d69a |
long read(int,+string0,ulong);
|
|
|
39d69a |
int stat(string,addr);
|
|
|
39d69a |
@@ -113,3 +117,30 @@ ulong writev(int,addr,int);
|
|
|
39d69a |
int mprotect(addr,int,int);
|
|
|
39d69a |
int access(string,octal);
|
|
|
39d69a |
int getdents(uint, void *, uint);
|
|
|
39d69a |
+
|
|
|
39d69a |
+int openat(at_dirfd_t, string, hex(uint), oct(uint));
|
|
|
39d69a |
+int mknodat(at_dirfd_t, string, oct(uint), ushort)
|
|
|
39d69a |
+int mkdirat(at_dirfd_t, string, oct(uint));
|
|
|
39d69a |
+int unlinkat(at_dirfd_t, string, hex(uint));
|
|
|
39d69a |
+int symlinkat(string, at_dirfd_t, string);
|
|
|
39d69a |
+int linkat(at_dirfd_t, string, at_dirfd_t, string, hex(uint));
|
|
|
39d69a |
+int renameat(at_dirfd_t, string, at_dirfd_t, string);
|
|
|
39d69a |
+int faccessat(at_dirfd_t, string, oct(uint), hex(uint));
|
|
|
39d69a |
+int fchmodat(at_dirfd_t, string, oct(uint), hex(uint));
|
|
|
39d69a |
+int fchownat(at_dirfd_t, string, int, int, hex(uint));
|
|
|
39d69a |
+int readlinkat(at_dirfd_t, string, +string[arg4], ulong);
|
|
|
39d69a |
+int fstatat(at_dirfd_t, string, addr, hex(uint));
|
|
|
39d69a |
+int utimensat(at_dirfd_t, string, addr, hex(uint));
|
|
|
39d69a |
+int futimens(int, addr);
|
|
|
39d69a |
+int futimesat(at_dirfd_t, string, addr);
|
|
|
39d69a |
+addr shmat(int, addr, hex(uint));
|
|
|
39d69a |
+int shmdt(addr);
|
|
|
39d69a |
+
|
|
|
39d69a |
+typedef fid_type = enum(FILEID_ROOT=0, FILEID_INO32_GEN=1, FILEID_INO32_GEN_PARENT=2, FILEID_BTRFS_WITHOUT_PARENT=0x4d, FILEID_BTRFS_WITH_PARENT=0x4e, FILEID_BTRFS_WITH_PARENT_ROOT=0x4f, FILEID_UDF_WITHOUT_PARENT=0x51, FILEID_UDF_WITH_PARENT=0x52, FILEID_NILFS_WITHOUT_PARENT=0x61, FILEID_NILFS_WITH_PARENT=0x62);
|
|
|
39d69a |
+typedef file_handle = struct(uint, fid_type, array(hex(char), elt1)*);
|
|
|
39d69a |
+int name_to_handle_at(at_dirfd_t, string, file_handle, int*, hex(uint));
|
|
|
39d69a |
+int open_by_handle_at(at_dirfd_t, file_handle, hex(uint));
|
|
|
39d69a |
+
|
|
|
39d69a |
+int newfstatat(at_dirfd_t, string, addr, hex(uint));
|
|
|
39d69a |
+int creat(string, oct(int));
|
|
|
39d69a |
+int ustat(ushort, addr);
|
|
|
39d69a |
diff --git a/sysdeps/linux-gnu/Makefile.am b/sysdeps/linux-gnu/Makefile.am
|
|
|
39d69a |
index ecee577..ec26162 100644
|
|
|
39d69a |
--- a/sysdeps/linux-gnu/Makefile.am
|
|
|
39d69a |
+++ b/sysdeps/linux-gnu/Makefile.am
|
|
|
39d69a |
@@ -1,4 +1,5 @@
|
|
|
39d69a |
# This file is part of ltrace.
|
|
|
39d69a |
+# Copyright (C) 2014 Petr Machata, Red Hat, Inc.
|
|
|
39d69a |
# Copyright (C) 2010,2012 Marc Kleine-Budde, Pengutronix
|
|
|
39d69a |
#
|
|
|
39d69a |
# This program is free software; you can redistribute it and/or
|
|
|
39d69a |
@@ -16,7 +17,8 @@
|
|
|
39d69a |
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
|
|
|
39d69a |
# 02110-1301 USA
|
|
|
39d69a |
|
|
|
39d69a |
-DIST_SUBDIRS = alpha arm cris ia64 m68k metag mips ppc s390 sparc x86
|
|
|
39d69a |
+DIST_SUBDIRS = aarch64 alpha arm cris ia64 m68k metag mips ppc s390 \
|
|
|
39d69a |
+ sparc x86
|
|
|
39d69a |
|
|
|
39d69a |
SUBDIRS = \
|
|
|
39d69a |
$(HOST_CPU)
|
|
|
39d69a |
diff --git a/sysdeps/linux-gnu/aarch64/Makefile.am b/sysdeps/linux-gnu/aarch64/Makefile.am
|
|
|
39d69a |
new file mode 100644
|
|
|
39d69a |
index 0000000..0af4e6e
|
|
|
39d69a |
--- /dev/null
|
|
|
39d69a |
+++ b/sysdeps/linux-gnu/aarch64/Makefile.am
|
|
|
39d69a |
@@ -0,0 +1,25 @@
|
|
|
39d69a |
+# This file is part of ltrace.
|
|
|
39d69a |
+# Copyright (C) 2014 Petr Machata, Red Hat, Inc.
|
|
|
39d69a |
+#
|
|
|
39d69a |
+# This program is free software; you can redistribute it and/or
|
|
|
39d69a |
+# modify it under the terms of the GNU General Public License as
|
|
|
39d69a |
+# published by the Free Software Foundation; either version 2 of the
|
|
|
39d69a |
+# License, or (at your option) any later version.
|
|
|
39d69a |
+#
|
|
|
39d69a |
+# This program is distributed in the hope that it will be useful, but
|
|
|
39d69a |
+# WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
39d69a |
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
39d69a |
+# General Public License for more details.
|
|
|
39d69a |
+#
|
|
|
39d69a |
+# You should have received a copy of the GNU General Public License
|
|
|
39d69a |
+# along with this program; if not, write to the Free Software
|
|
|
39d69a |
+# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
|
|
|
39d69a |
+# 02110-1301 USA
|
|
|
39d69a |
+
|
|
|
39d69a |
+noinst_LTLIBRARIES = ../libcpu.la
|
|
|
39d69a |
+
|
|
|
39d69a |
+___libcpu_la_SOURCES = fetch.c plt.c regs.c trace.c
|
|
|
39d69a |
+
|
|
|
39d69a |
+noinst_HEADERS = arch.h ptrace.h signalent.h syscallent.h
|
|
|
39d69a |
+
|
|
|
39d69a |
+MAINTAINERCLEANFILES = Makefile.in
|
|
|
39d69a |
diff --git a/sysdeps/linux-gnu/aarch64/arch.h b/sysdeps/linux-gnu/aarch64/arch.h
|
|
|
39d69a |
new file mode 100644
|
|
|
39d69a |
index 0000000..4137613
|
|
|
39d69a |
--- /dev/null
|
|
|
39d69a |
+++ b/sysdeps/linux-gnu/aarch64/arch.h
|
|
|
39d69a |
@@ -0,0 +1,37 @@
|
|
|
39d69a |
+/*
|
|
|
39d69a |
+ * This file is part of ltrace.
|
|
|
39d69a |
+ * Copyright (C) 2014 Petr Machata, Red Hat, Inc.
|
|
|
39d69a |
+ *
|
|
|
39d69a |
+ * This program is free software; you can redistribute it and/or
|
|
|
39d69a |
+ * modify it under the terms of the GNU General Public License as
|
|
|
39d69a |
+ * published by the Free Software Foundation; either version 2 of the
|
|
|
39d69a |
+ * License, or (at your option) any later version.
|
|
|
39d69a |
+ *
|
|
|
39d69a |
+ * This program is distributed in the hope that it will be useful, but
|
|
|
39d69a |
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
39d69a |
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
39d69a |
+ * General Public License for more details.
|
|
|
39d69a |
+ *
|
|
|
39d69a |
+ * You should have received a copy of the GNU General Public License
|
|
|
39d69a |
+ * along with this program; if not, write to the Free Software
|
|
|
39d69a |
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
|
|
|
39d69a |
+ * 02110-1301 USA
|
|
|
39d69a |
+ */
|
|
|
39d69a |
+#ifndef LTRACE_AARCH64_ARCH_H
|
|
|
39d69a |
+#define LTRACE_AARCH64_ARCH_H
|
|
|
39d69a |
+
|
|
|
39d69a |
+/* | 31 21 | 20 5 | 4 0 | *
|
|
|
39d69a |
+ * | 1 1 0 1 0 1 0 0 0 0 1 | imm16 | 0 0 0 0 0 | */
|
|
|
39d69a |
+#define BREAKPOINT_VALUE { 0xd4, 0x20, 0, 0 }
|
|
|
39d69a |
+#define BREAKPOINT_LENGTH 4
|
|
|
39d69a |
+#define DECR_PC_AFTER_BREAK 0
|
|
|
39d69a |
+
|
|
|
39d69a |
+#define LT_ELFCLASS ELFCLASS64
|
|
|
39d69a |
+#define LT_ELF_MACHINE EM_AARCH64
|
|
|
39d69a |
+
|
|
|
39d69a |
+#define ARCH_HAVE_FETCH_ARG
|
|
|
39d69a |
+#define ARCH_ENDIAN_BIG
|
|
|
39d69a |
+#define ARCH_HAVE_SIZEOF
|
|
|
39d69a |
+#define ARCH_HAVE_ALIGNOF
|
|
|
39d69a |
+
|
|
|
39d69a |
+#endif /* LTRACE_AARCH64_ARCH_H */
|
|
|
39d69a |
diff --git a/sysdeps/linux-gnu/aarch64/fetch.c b/sysdeps/linux-gnu/aarch64/fetch.c
|
|
|
39d69a |
new file mode 100644
|
|
|
39d69a |
index 0000000..8779f03
|
|
|
39d69a |
--- /dev/null
|
|
|
39d69a |
+++ b/sysdeps/linux-gnu/aarch64/fetch.c
|
|
|
39d69a |
@@ -0,0 +1,365 @@
|
|
|
39d69a |
+/*
|
|
|
39d69a |
+ * This file is part of ltrace.
|
|
|
39d69a |
+ * Copyright (C) 2014 Petr Machata, Red Hat, Inc.
|
|
|
39d69a |
+ *
|
|
|
39d69a |
+ * This program is free software; you can redistribute it and/or
|
|
|
39d69a |
+ * modify it under the terms of the GNU General Public License as
|
|
|
39d69a |
+ * published by the Free Software Foundation; either version 2 of the
|
|
|
39d69a |
+ * License, or (at your option) any later version.
|
|
|
39d69a |
+ *
|
|
|
39d69a |
+ * This program is distributed in the hope that it will be useful, but
|
|
|
39d69a |
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
39d69a |
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
39d69a |
+ * General Public License for more details.
|
|
|
39d69a |
+ *
|
|
|
39d69a |
+ * You should have received a copy of the GNU General Public License
|
|
|
39d69a |
+ * along with this program; if not, write to the Free Software
|
|
|
39d69a |
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
|
|
|
39d69a |
+ * 02110-1301 USA
|
|
|
39d69a |
+ */
|
|
|
39d69a |
+
|
|
|
39d69a |
+#include <sys/ptrace.h>
|
|
|
39d69a |
+#include <asm/ptrace.h>
|
|
|
39d69a |
+#include <stdlib.h>
|
|
|
39d69a |
+#include <string.h>
|
|
|
39d69a |
+
|
|
|
39d69a |
+#include "fetch.h"
|
|
|
39d69a |
+#include "proc.h"
|
|
|
39d69a |
+#include "type.h"
|
|
|
39d69a |
+#include "value.h"
|
|
|
39d69a |
+
|
|
|
39d69a |
+int aarch64_read_gregs(struct process *proc, struct user_pt_regs *regs);
|
|
|
39d69a |
+int aarch64_read_fregs(struct process *proc, struct user_fpsimd_state *regs);
|
|
|
39d69a |
+
|
|
|
39d69a |
+
|
|
|
39d69a |
+struct fetch_context
|
|
|
39d69a |
+{
|
|
|
39d69a |
+ struct user_pt_regs gregs;
|
|
|
39d69a |
+ struct user_fpsimd_state fpregs;
|
|
|
39d69a |
+ arch_addr_t nsaa;
|
|
|
39d69a |
+ unsigned ngrn;
|
|
|
39d69a |
+ unsigned nsrn;
|
|
|
39d69a |
+ arch_addr_t x8;
|
|
|
39d69a |
+};
|
|
|
39d69a |
+
|
|
|
39d69a |
+static int
|
|
|
39d69a |
+context_init(struct fetch_context *context, struct process *proc)
|
|
|
39d69a |
+{
|
|
|
39d69a |
+ if (aarch64_read_gregs(proc, &context->gregs) < 0
|
|
|
39d69a |
+ || aarch64_read_fregs(proc, &context->fpregs) < 0)
|
|
|
39d69a |
+ return -1;
|
|
|
39d69a |
+
|
|
|
39d69a |
+ context->ngrn = 0;
|
|
|
39d69a |
+ context->nsrn = 0;
|
|
|
39d69a |
+ /* XXX double cast */
|
|
|
39d69a |
+ context->nsaa = (arch_addr_t) (uintptr_t) context->gregs.sp;
|
|
|
39d69a |
+ context->x8 = 0;
|
|
|
39d69a |
+
|
|
|
39d69a |
+ return 0;
|
|
|
39d69a |
+}
|
|
|
39d69a |
+
|
|
|
39d69a |
+struct fetch_context *
|
|
|
39d69a |
+arch_fetch_arg_clone(struct process *proc, struct fetch_context *context)
|
|
|
39d69a |
+{
|
|
|
39d69a |
+ struct fetch_context *ret = malloc(sizeof(*ret));
|
|
|
39d69a |
+ if (ret == NULL)
|
|
|
39d69a |
+ return NULL;
|
|
|
39d69a |
+ return memcpy(ret, context, sizeof(*ret));
|
|
|
39d69a |
+}
|
|
|
39d69a |
+
|
|
|
39d69a |
+static void
|
|
|
39d69a |
+fetch_next_gpr(struct fetch_context *context, unsigned char *buf)
|
|
|
39d69a |
+{
|
|
|
39d69a |
+ uint64_t u = context->gregs.regs[context->ngrn++];
|
|
|
39d69a |
+ memcpy(buf, &u, 8);
|
|
|
39d69a |
+}
|
|
|
39d69a |
+
|
|
|
39d69a |
+static int
|
|
|
39d69a |
+fetch_gpr(struct fetch_context *context, struct value *value, size_t sz)
|
|
|
39d69a |
+{
|
|
|
39d69a |
+ if (sz < 8)
|
|
|
39d69a |
+ sz = 8;
|
|
|
39d69a |
+
|
|
|
39d69a |
+ unsigned char *buf = value_reserve(value, sz);
|
|
|
39d69a |
+ if (buf == NULL)
|
|
|
39d69a |
+ return -1;
|
|
|
39d69a |
+
|
|
|
39d69a |
+ size_t i;
|
|
|
39d69a |
+ for (i = 0; i < sz; i += 8)
|
|
|
39d69a |
+ fetch_next_gpr(context, buf + i);
|
|
|
39d69a |
+
|
|
|
39d69a |
+ return 0;
|
|
|
39d69a |
+}
|
|
|
39d69a |
+
|
|
|
39d69a |
+static void
|
|
|
39d69a |
+fetch_next_sse(struct fetch_context *context, unsigned char *buf, size_t sz)
|
|
|
39d69a |
+{
|
|
|
39d69a |
+ __int128 u = context->fpregs.vregs[context->nsrn++];
|
|
|
39d69a |
+ memcpy(buf, &u, sz);
|
|
|
39d69a |
+}
|
|
|
39d69a |
+
|
|
|
39d69a |
+static int
|
|
|
39d69a |
+fetch_sse(struct fetch_context *context, struct value *value, size_t sz)
|
|
|
39d69a |
+{
|
|
|
39d69a |
+ unsigned char *buf = value_reserve(value, sz);
|
|
|
39d69a |
+ if (buf == NULL)
|
|
|
39d69a |
+ return -1;
|
|
|
39d69a |
+
|
|
|
39d69a |
+ fetch_next_sse(context, buf, sz);
|
|
|
39d69a |
+ return 0;
|
|
|
39d69a |
+}
|
|
|
39d69a |
+
|
|
|
39d69a |
+static int
|
|
|
39d69a |
+fetch_hfa(struct fetch_context *context,
|
|
|
39d69a |
+ struct value *value, struct arg_type_info *hfa_t, size_t count)
|
|
|
39d69a |
+{
|
|
|
39d69a |
+ size_t sz = type_sizeof(value->inferior, hfa_t);
|
|
|
39d69a |
+ unsigned char *buf = value_reserve(value, sz * count);
|
|
|
39d69a |
+ if (buf == NULL)
|
|
|
39d69a |
+ return -1;
|
|
|
39d69a |
+
|
|
|
39d69a |
+ size_t i;
|
|
|
39d69a |
+ for (i = 0; i < count; ++i) {
|
|
|
39d69a |
+ fetch_next_sse(context, buf, sz);
|
|
|
39d69a |
+ buf += sz;
|
|
|
39d69a |
+ }
|
|
|
39d69a |
+ return 0;
|
|
|
39d69a |
+}
|
|
|
39d69a |
+
|
|
|
39d69a |
+static int
|
|
|
39d69a |
+fetch_stack(struct fetch_context *context, struct value *value,
|
|
|
39d69a |
+ size_t align, size_t sz)
|
|
|
39d69a |
+{
|
|
|
39d69a |
+ if (align < 8)
|
|
|
39d69a |
+ align = 8;
|
|
|
39d69a |
+ size_t amount = ((sz + align - 1) / align) * align;
|
|
|
39d69a |
+
|
|
|
39d69a |
+ /* XXX double casts */
|
|
|
39d69a |
+ uintptr_t sp = (uintptr_t) context->nsaa;
|
|
|
39d69a |
+ sp = ((sp + align - 1) / align) * align;
|
|
|
39d69a |
+
|
|
|
39d69a |
+ value_in_inferior(value, (arch_addr_t) sp);
|
|
|
39d69a |
+
|
|
|
39d69a |
+ sp += amount;
|
|
|
39d69a |
+ context->nsaa = (arch_addr_t) sp;
|
|
|
39d69a |
+
|
|
|
39d69a |
+ return 0;
|
|
|
39d69a |
+}
|
|
|
39d69a |
+
|
|
|
39d69a |
+enum convert_method {
|
|
|
39d69a |
+ CVT_ERR = -1,
|
|
|
39d69a |
+ CVT_NOP = 0,
|
|
|
39d69a |
+ CVT_BYREF,
|
|
|
39d69a |
+};
|
|
|
39d69a |
+
|
|
|
39d69a |
+enum fetch_method {
|
|
|
39d69a |
+ FETCH_NOP,
|
|
|
39d69a |
+ FETCH_STACK,
|
|
|
39d69a |
+ FETCH_GPR,
|
|
|
39d69a |
+ FETCH_SSE,
|
|
|
39d69a |
+ FETCH_HFA,
|
|
|
39d69a |
+};
|
|
|
39d69a |
+
|
|
|
39d69a |
+struct fetch_script {
|
|
|
39d69a |
+ enum convert_method c;
|
|
|
39d69a |
+ enum fetch_method f;
|
|
|
39d69a |
+ size_t sz;
|
|
|
39d69a |
+ struct arg_type_info *hfa_t;
|
|
|
39d69a |
+ size_t count;
|
|
|
39d69a |
+};
|
|
|
39d69a |
+
|
|
|
39d69a |
+static struct fetch_script
|
|
|
39d69a |
+pass_arg(struct fetch_context const *context,
|
|
|
39d69a |
+ struct process *proc, struct arg_type_info *info)
|
|
|
39d69a |
+{
|
|
|
39d69a |
+ enum fetch_method cvt = CVT_NOP;
|
|
|
39d69a |
+
|
|
|
39d69a |
+ size_t sz = type_sizeof(proc, info);
|
|
|
39d69a |
+ if (sz == (size_t) -1)
|
|
|
39d69a |
+ return (struct fetch_script) { CVT_ERR, FETCH_NOP, sz };
|
|
|
39d69a |
+
|
|
|
39d69a |
+ switch (info->type) {
|
|
|
39d69a |
+ case ARGTYPE_VOID:
|
|
|
39d69a |
+ return (struct fetch_script) { cvt, FETCH_NOP, sz };
|
|
|
39d69a |
+
|
|
|
39d69a |
+ case ARGTYPE_STRUCT:
|
|
|
39d69a |
+ case ARGTYPE_ARRAY:;
|
|
|
39d69a |
+ size_t count;
|
|
|
39d69a |
+ struct arg_type_info *hfa_t = type_get_hfa_type(info, &count);
|
|
|
39d69a |
+ if (hfa_t != NULL && count <= 4) {
|
|
|
39d69a |
+ if (context->nsrn + count <= 8)
|
|
|
39d69a |
+ return (struct fetch_script)
|
|
|
39d69a |
+ { cvt, FETCH_HFA, sz, hfa_t, count };
|
|
|
39d69a |
+ return (struct fetch_script)
|
|
|
39d69a |
+ { cvt, FETCH_STACK, sz, hfa_t, count };
|
|
|
39d69a |
+ }
|
|
|
39d69a |
+
|
|
|
39d69a |
+ if (sz <= 16) {
|
|
|
39d69a |
+ size_t count = sz / 8;
|
|
|
39d69a |
+ if (context->ngrn + count <= 8)
|
|
|
39d69a |
+ return (struct fetch_script)
|
|
|
39d69a |
+ { cvt, FETCH_GPR, sz };
|
|
|
39d69a |
+ }
|
|
|
39d69a |
+
|
|
|
39d69a |
+ cvt = CVT_BYREF;
|
|
|
39d69a |
+ sz = 8;
|
|
|
39d69a |
+ /* Fall through. */
|
|
|
39d69a |
+
|
|
|
39d69a |
+ case ARGTYPE_POINTER:
|
|
|
39d69a |
+ case ARGTYPE_INT:
|
|
|
39d69a |
+ case ARGTYPE_UINT:
|
|
|
39d69a |
+ case ARGTYPE_LONG:
|
|
|
39d69a |
+ case ARGTYPE_ULONG:
|
|
|
39d69a |
+ case ARGTYPE_CHAR:
|
|
|
39d69a |
+ case ARGTYPE_SHORT:
|
|
|
39d69a |
+ case ARGTYPE_USHORT:
|
|
|
39d69a |
+ if (context->ngrn < 8 && sz <= 8)
|
|
|
39d69a |
+ return (struct fetch_script) { cvt, FETCH_GPR, sz };
|
|
|
39d69a |
+ /* We don't support types wider than 8 bytes as of
|
|
|
39d69a |
+ * now. */
|
|
|
39d69a |
+ assert(sz <= 8);
|
|
|
39d69a |
+
|
|
|
39d69a |
+ return (struct fetch_script) { cvt, FETCH_STACK, sz };
|
|
|
39d69a |
+
|
|
|
39d69a |
+ case ARGTYPE_FLOAT:
|
|
|
39d69a |
+ case ARGTYPE_DOUBLE:
|
|
|
39d69a |
+ if (context->nsrn < 8) {
|
|
|
39d69a |
+ /* ltrace doesn't support float128. */
|
|
|
39d69a |
+ assert(sz <= 8);
|
|
|
39d69a |
+ return (struct fetch_script) { cvt, FETCH_SSE, sz };
|
|
|
39d69a |
+ }
|
|
|
39d69a |
+
|
|
|
39d69a |
+ return (struct fetch_script) { cvt, FETCH_STACK, sz };
|
|
|
39d69a |
+ }
|
|
|
39d69a |
+
|
|
|
39d69a |
+ assert(! "Failed to allocate argument.");
|
|
|
39d69a |
+ abort();
|
|
|
39d69a |
+}
|
|
|
39d69a |
+
|
|
|
39d69a |
+static int
|
|
|
39d69a |
+convert_arg(struct value *value, struct fetch_script how)
|
|
|
39d69a |
+{
|
|
|
39d69a |
+ switch (how.c) {
|
|
|
39d69a |
+ case CVT_NOP:
|
|
|
39d69a |
+ return 0;
|
|
|
39d69a |
+ case CVT_BYREF:
|
|
|
39d69a |
+ return value_pass_by_reference(value);
|
|
|
39d69a |
+ case CVT_ERR:
|
|
|
39d69a |
+ return -1;
|
|
|
39d69a |
+ }
|
|
|
39d69a |
+
|
|
|
39d69a |
+ assert(! "Don't know how to convert argument.");
|
|
|
39d69a |
+ abort();
|
|
|
39d69a |
+}
|
|
|
39d69a |
+
|
|
|
39d69a |
+static int
|
|
|
39d69a |
+fetch_arg(struct fetch_context *context,
|
|
|
39d69a |
+ struct process *proc, struct arg_type_info *info,
|
|
|
39d69a |
+ struct value *value, struct fetch_script how)
|
|
|
39d69a |
+{
|
|
|
39d69a |
+ if (convert_arg(value, how) < 0)
|
|
|
39d69a |
+ return -1;
|
|
|
39d69a |
+
|
|
|
39d69a |
+ switch (how.f) {
|
|
|
39d69a |
+ case FETCH_NOP:
|
|
|
39d69a |
+ return 0;
|
|
|
39d69a |
+
|
|
|
39d69a |
+ case FETCH_STACK:
|
|
|
39d69a |
+ if (how.hfa_t != NULL && how.count != 0 && how.count <= 8)
|
|
|
39d69a |
+ context->nsrn = 8;
|
|
|
39d69a |
+ return fetch_stack(context, value,
|
|
|
39d69a |
+ type_alignof(proc, info), how.sz);
|
|
|
39d69a |
+
|
|
|
39d69a |
+ case FETCH_GPR:
|
|
|
39d69a |
+ return fetch_gpr(context, value, how.sz);
|
|
|
39d69a |
+
|
|
|
39d69a |
+ case FETCH_SSE:
|
|
|
39d69a |
+ return fetch_sse(context, value, how.sz);
|
|
|
39d69a |
+
|
|
|
39d69a |
+ case FETCH_HFA:
|
|
|
39d69a |
+ return fetch_hfa(context, value, how.hfa_t, how.count);
|
|
|
39d69a |
+ }
|
|
|
39d69a |
+
|
|
|
39d69a |
+ assert(! "Don't know how to fetch argument.");
|
|
|
39d69a |
+ abort();
|
|
|
39d69a |
+}
|
|
|
39d69a |
+
|
|
|
39d69a |
+struct fetch_context *
|
|
|
39d69a |
+arch_fetch_arg_init(enum tof type, struct process *proc,
|
|
|
39d69a |
+ struct arg_type_info *ret_info)
|
|
|
39d69a |
+{
|
|
|
39d69a |
+ struct fetch_context *context = malloc(sizeof *context);
|
|
|
39d69a |
+ if (context == NULL || context_init(context, proc) < 0) {
|
|
|
39d69a |
+ fail:
|
|
|
39d69a |
+ free(context);
|
|
|
39d69a |
+ return NULL;
|
|
|
39d69a |
+ }
|
|
|
39d69a |
+
|
|
|
39d69a |
+ /* There's a provision in ARMv8 parameter passing convention
|
|
|
39d69a |
+ * for returning types that, if passed as first argument to a
|
|
|
39d69a |
+ * function, would be passed on stack. For those types, x8
|
|
|
39d69a |
+ * contains an address where the return argument should be
|
|
|
39d69a |
+ * placed. The callee doesn't need to preserve the value of
|
|
|
39d69a |
+ * x8, so we need to fetch it now.
|
|
|
39d69a |
+ *
|
|
|
39d69a |
+ * To my knowledge, there are currently no types where this
|
|
|
39d69a |
+ * holds, but the code is here, utterly untested. */
|
|
|
39d69a |
+
|
|
|
39d69a |
+ struct fetch_script how = pass_arg(context, proc, ret_info);
|
|
|
39d69a |
+ if (how.c == CVT_ERR)
|
|
|
39d69a |
+ goto fail;
|
|
|
39d69a |
+ if (how.c == CVT_NOP && how.f == FETCH_STACK) {
|
|
|
39d69a |
+ /* XXX double cast. */
|
|
|
39d69a |
+ context->x8 = (arch_addr_t) (uintptr_t) context->gregs.regs[8];
|
|
|
39d69a |
+ /* See the comment above about the assert. */
|
|
|
39d69a |
+ assert(! "Unexpected: first argument passed on stack.");
|
|
|
39d69a |
+ abort();
|
|
|
39d69a |
+ }
|
|
|
39d69a |
+
|
|
|
39d69a |
+ return context;
|
|
|
39d69a |
+}
|
|
|
39d69a |
+
|
|
|
39d69a |
+int
|
|
|
39d69a |
+arch_fetch_arg_next(struct fetch_context *context, enum tof type,
|
|
|
39d69a |
+ struct process *proc, struct arg_type_info *info,
|
|
|
39d69a |
+ struct value *value)
|
|
|
39d69a |
+{
|
|
|
39d69a |
+ return fetch_arg(context, proc, info, value,
|
|
|
39d69a |
+ pass_arg(context, proc, info));
|
|
|
39d69a |
+}
|
|
|
39d69a |
+
|
|
|
39d69a |
+int
|
|
|
39d69a |
+arch_fetch_retval(struct fetch_context *context, enum tof type,
|
|
|
39d69a |
+ struct process *proc, struct arg_type_info *info,
|
|
|
39d69a |
+ struct value *value)
|
|
|
39d69a |
+{
|
|
|
39d69a |
+ if (context->x8 != 0) {
|
|
|
39d69a |
+ value_in_inferior(value, context->x8);
|
|
|
39d69a |
+ return 0;
|
|
|
39d69a |
+ }
|
|
|
39d69a |
+
|
|
|
39d69a |
+ if (context_init(context, proc) < 0)
|
|
|
39d69a |
+ return -1;
|
|
|
39d69a |
+
|
|
|
39d69a |
+ return fetch_arg(context, proc, info, value,
|
|
|
39d69a |
+ pass_arg(context, proc, info));
|
|
|
39d69a |
+}
|
|
|
39d69a |
+
|
|
|
39d69a |
+void
|
|
|
39d69a |
+arch_fetch_arg_done(struct fetch_context *context)
|
|
|
39d69a |
+{
|
|
|
39d69a |
+ if (context != NULL)
|
|
|
39d69a |
+ free(context);
|
|
|
39d69a |
+}
|
|
|
39d69a |
+
|
|
|
39d69a |
+size_t
|
|
|
39d69a |
+arch_type_sizeof(struct process *proc, struct arg_type_info *arg)
|
|
|
39d69a |
+{
|
|
|
39d69a |
+ return (size_t) -2;
|
|
|
39d69a |
+}
|
|
|
39d69a |
+
|
|
|
39d69a |
+size_t
|
|
|
39d69a |
+arch_type_alignof(struct process *proc, struct arg_type_info *arg)
|
|
|
39d69a |
+{
|
|
|
39d69a |
+ return (size_t) -2;
|
|
|
39d69a |
+}
|
|
|
39d69a |
diff --git a/sysdeps/linux-gnu/aarch64/plt.c b/sysdeps/linux-gnu/aarch64/plt.c
|
|
|
39d69a |
new file mode 100644
|
|
|
39d69a |
index 0000000..29dc4c9
|
|
|
39d69a |
--- /dev/null
|
|
|
39d69a |
+++ b/sysdeps/linux-gnu/aarch64/plt.c
|
|
|
39d69a |
@@ -0,0 +1,38 @@
|
|
|
39d69a |
+/*
|
|
|
39d69a |
+ * This file is part of ltrace.
|
|
|
39d69a |
+ * Copyright (C) 2014 Petr Machata, Red Hat, Inc.
|
|
|
39d69a |
+ *
|
|
|
39d69a |
+ * This program is free software; you can redistribute it and/or
|
|
|
39d69a |
+ * modify it under the terms of the GNU General Public License as
|
|
|
39d69a |
+ * published by the Free Software Foundation; either version 2 of the
|
|
|
39d69a |
+ * License, or (at your option) any later version.
|
|
|
39d69a |
+ *
|
|
|
39d69a |
+ * This program is distributed in the hope that it will be useful, but
|
|
|
39d69a |
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
39d69a |
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
39d69a |
+ * General Public License for more details.
|
|
|
39d69a |
+ *
|
|
|
39d69a |
+ * You should have received a copy of the GNU General Public License
|
|
|
39d69a |
+ * along with this program; if not, write to the Free Software
|
|
|
39d69a |
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
|
|
|
39d69a |
+ * 02110-1301 USA
|
|
|
39d69a |
+ */
|
|
|
39d69a |
+
|
|
|
39d69a |
+#include <gelf.h>
|
|
|
39d69a |
+
|
|
|
39d69a |
+#include "backend.h"
|
|
|
39d69a |
+#include "proc.h"
|
|
|
39d69a |
+#include "library.h"
|
|
|
39d69a |
+#include "ltrace-elf.h"
|
|
|
39d69a |
+
|
|
|
39d69a |
+arch_addr_t
|
|
|
39d69a |
+sym2addr(struct process *proc, struct library_symbol *sym)
|
|
|
39d69a |
+{
|
|
|
39d69a |
+ return sym->enter_addr;
|
|
|
39d69a |
+}
|
|
|
39d69a |
+
|
|
|
39d69a |
+GElf_Addr
|
|
|
39d69a |
+arch_plt_sym_val(struct ltelf *lte, size_t ndx, GElf_Rela *rela)
|
|
|
39d69a |
+{
|
|
|
39d69a |
+ return lte->plt_addr + 32 + ndx * 16;
|
|
|
39d69a |
+}
|
|
|
39d69a |
diff --git a/sysdeps/linux-gnu/aarch64/ptrace.h b/sysdeps/linux-gnu/aarch64/ptrace.h
|
|
|
39d69a |
new file mode 100644
|
|
|
39d69a |
index 0000000..283c314
|
|
|
39d69a |
--- /dev/null
|
|
|
39d69a |
+++ b/sysdeps/linux-gnu/aarch64/ptrace.h
|
|
|
39d69a |
@@ -0,0 +1,22 @@
|
|
|
39d69a |
+/*
|
|
|
39d69a |
+ * This file is part of ltrace.
|
|
|
39d69a |
+ * Copyright (C) 2014 Petr Machata, Red Hat, Inc.
|
|
|
39d69a |
+ *
|
|
|
39d69a |
+ * This program is free software; you can redistribute it and/or
|
|
|
39d69a |
+ * modify it under the terms of the GNU General Public License as
|
|
|
39d69a |
+ * published by the Free Software Foundation; either version 2 of the
|
|
|
39d69a |
+ * License, or (at your option) any later version.
|
|
|
39d69a |
+ *
|
|
|
39d69a |
+ * This program is distributed in the hope that it will be useful, but
|
|
|
39d69a |
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
39d69a |
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
39d69a |
+ * General Public License for more details.
|
|
|
39d69a |
+ *
|
|
|
39d69a |
+ * You should have received a copy of the GNU General Public License
|
|
|
39d69a |
+ * along with this program; if not, write to the Free Software
|
|
|
39d69a |
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
|
|
|
39d69a |
+ * 02110-1301 USA
|
|
|
39d69a |
+ */
|
|
|
39d69a |
+
|
|
|
39d69a |
+#include <sys/ptrace.h>
|
|
|
39d69a |
+#include <asm/ptrace.h>
|
|
|
39d69a |
diff --git a/sysdeps/linux-gnu/aarch64/regs.c b/sysdeps/linux-gnu/aarch64/regs.c
|
|
|
39d69a |
new file mode 100644
|
|
|
39d69a |
index 0000000..06eb72b
|
|
|
39d69a |
--- /dev/null
|
|
|
39d69a |
+++ b/sysdeps/linux-gnu/aarch64/regs.c
|
|
|
39d69a |
@@ -0,0 +1,130 @@
|
|
|
39d69a |
+/*
|
|
|
39d69a |
+ * This file is part of ltrace.
|
|
|
39d69a |
+ * Copyright (C) 2014 Petr Machata, Red Hat, Inc.
|
|
|
39d69a |
+ *
|
|
|
39d69a |
+ * This program is free software; you can redistribute it and/or
|
|
|
39d69a |
+ * modify it under the terms of the GNU General Public License as
|
|
|
39d69a |
+ * published by the Free Software Foundation; either version 2 of the
|
|
|
39d69a |
+ * License, or (at your option) any later version.
|
|
|
39d69a |
+ *
|
|
|
39d69a |
+ * This program is distributed in the hope that it will be useful, but
|
|
|
39d69a |
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
39d69a |
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
39d69a |
+ * General Public License for more details.
|
|
|
39d69a |
+ *
|
|
|
39d69a |
+ * You should have received a copy of the GNU General Public License
|
|
|
39d69a |
+ * along with this program; if not, write to the Free Software
|
|
|
39d69a |
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
|
|
|
39d69a |
+ * 02110-1301 USA
|
|
|
39d69a |
+ */
|
|
|
39d69a |
+
|
|
|
39d69a |
+#include <sys/ptrace.h>
|
|
|
39d69a |
+#include <asm/ptrace.h>
|
|
|
39d69a |
+#include <linux/uio.h>
|
|
|
39d69a |
+#include <assert.h>
|
|
|
39d69a |
+#include <stdlib.h>
|
|
|
39d69a |
+
|
|
|
39d69a |
+#include "backend.h"
|
|
|
39d69a |
+#include "proc.h"
|
|
|
39d69a |
+
|
|
|
39d69a |
+#define PC_OFF (32 * 4)
|
|
|
39d69a |
+
|
|
|
39d69a |
+int
|
|
|
39d69a |
+aarch64_read_gregs(struct process *proc, struct user_pt_regs *regs)
|
|
|
39d69a |
+{
|
|
|
39d69a |
+ *regs = (struct user_pt_regs) {};
|
|
|
39d69a |
+ struct iovec iovec;
|
|
|
39d69a |
+ iovec.iov_base = regs;
|
|
|
39d69a |
+ iovec.iov_len = sizeof *regs;
|
|
|
39d69a |
+ return ptrace(PTRACE_GETREGSET, proc->pid, NT_PRSTATUS, &iovec) < 0
|
|
|
39d69a |
+ ? -1 : 0;
|
|
|
39d69a |
+}
|
|
|
39d69a |
+
|
|
|
39d69a |
+int
|
|
|
39d69a |
+aarch64_write_gregs(struct process *proc, struct user_pt_regs *regs)
|
|
|
39d69a |
+{
|
|
|
39d69a |
+ struct iovec iovec;
|
|
|
39d69a |
+ iovec.iov_base = regs;
|
|
|
39d69a |
+ iovec.iov_len = sizeof *regs;
|
|
|
39d69a |
+ return ptrace(PTRACE_SETREGSET, proc->pid, NT_PRSTATUS, &iovec) < 0
|
|
|
39d69a |
+ ? -1 : 0;
|
|
|
39d69a |
+}
|
|
|
39d69a |
+
|
|
|
39d69a |
+int
|
|
|
39d69a |
+aarch64_read_fregs(struct process *proc, struct user_fpsimd_state *regs)
|
|
|
39d69a |
+{
|
|
|
39d69a |
+ *regs = (struct user_fpsimd_state) {};
|
|
|
39d69a |
+ struct iovec iovec;
|
|
|
39d69a |
+ iovec.iov_base = regs;
|
|
|
39d69a |
+ iovec.iov_len = sizeof *regs;
|
|
|
39d69a |
+ return ptrace(PTRACE_GETREGSET, proc->pid, NT_FPREGSET, &iovec) < 0
|
|
|
39d69a |
+ ? -1 : 0;
|
|
|
39d69a |
+}
|
|
|
39d69a |
+
|
|
|
39d69a |
+arch_addr_t
|
|
|
39d69a |
+get_instruction_pointer(struct process *proc)
|
|
|
39d69a |
+{
|
|
|
39d69a |
+ struct user_pt_regs regs;
|
|
|
39d69a |
+ if (aarch64_read_gregs(proc, ®s) < 0) {
|
|
|
39d69a |
+ fprintf(stderr, "get_instruction_pointer: "
|
|
|
39d69a |
+ "Couldn't read registers of %d.\n", proc->pid);
|
|
|
39d69a |
+ return 0;
|
|
|
39d69a |
+ }
|
|
|
39d69a |
+
|
|
|
39d69a |
+ /*
|
|
|
39d69a |
+ char buf[128];
|
|
|
39d69a |
+ sprintf(buf, "cat /proc/%d/maps", proc->pid);
|
|
|
39d69a |
+ system(buf);
|
|
|
39d69a |
+ */
|
|
|
39d69a |
+
|
|
|
39d69a |
+ /* XXX double cast */
|
|
|
39d69a |
+ return (arch_addr_t) (uintptr_t) regs.pc;
|
|
|
39d69a |
+}
|
|
|
39d69a |
+
|
|
|
39d69a |
+void
|
|
|
39d69a |
+set_instruction_pointer(struct process *proc, arch_addr_t addr)
|
|
|
39d69a |
+{
|
|
|
39d69a |
+ struct user_pt_regs regs;
|
|
|
39d69a |
+ if (aarch64_read_gregs(proc, ®s) < 0) {
|
|
|
39d69a |
+ fprintf(stderr, "get_instruction_pointer: "
|
|
|
39d69a |
+ "Couldn't read registers of %d.\n", proc->pid);
|
|
|
39d69a |
+ return;
|
|
|
39d69a |
+ }
|
|
|
39d69a |
+
|
|
|
39d69a |
+ /* XXX double cast */
|
|
|
39d69a |
+ regs.pc = (uint64_t) (uintptr_t) addr;
|
|
|
39d69a |
+
|
|
|
39d69a |
+ if (aarch64_write_gregs(proc, ®s) < 0) {
|
|
|
39d69a |
+ fprintf(stderr, "get_instruction_pointer: "
|
|
|
39d69a |
+ "Couldn't write registers of %d.\n", proc->pid);
|
|
|
39d69a |
+ return;
|
|
|
39d69a |
+ }
|
|
|
39d69a |
+}
|
|
|
39d69a |
+
|
|
|
39d69a |
+arch_addr_t
|
|
|
39d69a |
+get_stack_pointer(struct process *proc)
|
|
|
39d69a |
+{
|
|
|
39d69a |
+ struct user_pt_regs regs;
|
|
|
39d69a |
+ if (aarch64_read_gregs(proc, ®s) < 0) {
|
|
|
39d69a |
+ fprintf(stderr, "get_stack_pointer: "
|
|
|
39d69a |
+ "Couldn't read registers of %d.\n", proc->pid);
|
|
|
39d69a |
+ return 0;
|
|
|
39d69a |
+ }
|
|
|
39d69a |
+
|
|
|
39d69a |
+ /* XXX double cast */
|
|
|
39d69a |
+ return (arch_addr_t) (uintptr_t) regs.sp;
|
|
|
39d69a |
+}
|
|
|
39d69a |
+
|
|
|
39d69a |
+arch_addr_t
|
|
|
39d69a |
+get_return_addr(struct process *proc, arch_addr_t stack_pointer)
|
|
|
39d69a |
+{
|
|
|
39d69a |
+ struct user_pt_regs regs;
|
|
|
39d69a |
+ if (aarch64_read_gregs(proc, ®s) < 0) {
|
|
|
39d69a |
+ fprintf(stderr, "get_return_addr: "
|
|
|
39d69a |
+ "Couldn't read registers of %d.\n", proc->pid);
|
|
|
39d69a |
+ return 0;
|
|
|
39d69a |
+ }
|
|
|
39d69a |
+
|
|
|
39d69a |
+ /* XXX double cast */
|
|
|
39d69a |
+ return (arch_addr_t) (uintptr_t) regs.regs[30];
|
|
|
39d69a |
+}
|
|
|
39d69a |
diff --git a/sysdeps/linux-gnu/aarch64/signalent.h b/sysdeps/linux-gnu/aarch64/signalent.h
|
|
|
39d69a |
new file mode 100644
|
|
|
39d69a |
index 0000000..bf56ebc
|
|
|
39d69a |
--- /dev/null
|
|
|
39d69a |
+++ b/sysdeps/linux-gnu/aarch64/signalent.h
|
|
|
39d69a |
@@ -0,0 +1,52 @@
|
|
|
39d69a |
+/*
|
|
|
39d69a |
+ * This file is part of ltrace.
|
|
|
39d69a |
+ * Copyright (C) 2006 Ian Wienand
|
|
|
39d69a |
+ *
|
|
|
39d69a |
+ * This program is free software; you can redistribute it and/or
|
|
|
39d69a |
+ * modify it under the terms of the GNU General Public License as
|
|
|
39d69a |
+ * published by the Free Software Foundation; either version 2 of the
|
|
|
39d69a |
+ * License, or (at your option) any later version.
|
|
|
39d69a |
+ *
|
|
|
39d69a |
+ * This program is distributed in the hope that it will be useful, but
|
|
|
39d69a |
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
39d69a |
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
39d69a |
+ * General Public License for more details.
|
|
|
39d69a |
+ *
|
|
|
39d69a |
+ * You should have received a copy of the GNU General Public License
|
|
|
39d69a |
+ * along with this program; if not, write to the Free Software
|
|
|
39d69a |
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
|
|
|
39d69a |
+ * 02110-1301 USA
|
|
|
39d69a |
+ */
|
|
|
39d69a |
+
|
|
|
39d69a |
+ "SIG_0", /* 0 */
|
|
|
39d69a |
+ "SIGHUP", /* 1 */
|
|
|
39d69a |
+ "SIGINT", /* 2 */
|
|
|
39d69a |
+ "SIGQUIT", /* 3 */
|
|
|
39d69a |
+ "SIGILL", /* 4 */
|
|
|
39d69a |
+ "SIGTRAP", /* 5 */
|
|
|
39d69a |
+ "SIGABRT", /* 6 */
|
|
|
39d69a |
+ "SIGBUS", /* 7 */
|
|
|
39d69a |
+ "SIGFPE", /* 8 */
|
|
|
39d69a |
+ "SIGKILL", /* 9 */
|
|
|
39d69a |
+ "SIGUSR1", /* 10 */
|
|
|
39d69a |
+ "SIGSEGV", /* 11 */
|
|
|
39d69a |
+ "SIGUSR2", /* 12 */
|
|
|
39d69a |
+ "SIGPIPE", /* 13 */
|
|
|
39d69a |
+ "SIGALRM", /* 14 */
|
|
|
39d69a |
+ "SIGTERM", /* 15 */
|
|
|
39d69a |
+ "SIGSTKFLT", /* 16 */
|
|
|
39d69a |
+ "SIGCHLD", /* 17 */
|
|
|
39d69a |
+ "SIGCONT", /* 18 */
|
|
|
39d69a |
+ "SIGSTOP", /* 19 */
|
|
|
39d69a |
+ "SIGTSTP", /* 20 */
|
|
|
39d69a |
+ "SIGTTIN", /* 21 */
|
|
|
39d69a |
+ "SIGTTOU", /* 22 */
|
|
|
39d69a |
+ "SIGURG", /* 23 */
|
|
|
39d69a |
+ "SIGXCPU", /* 24 */
|
|
|
39d69a |
+ "SIGXFSZ", /* 25 */
|
|
|
39d69a |
+ "SIGVTALRM", /* 26 */
|
|
|
39d69a |
+ "SIGPROF", /* 27 */
|
|
|
39d69a |
+ "SIGWINCH", /* 28 */
|
|
|
39d69a |
+ "SIGIO", /* 29 */
|
|
|
39d69a |
+ "SIGPWR", /* 30 */
|
|
|
39d69a |
+ "SIGSYS", /* 31 */
|
|
|
39d69a |
diff --git a/sysdeps/linux-gnu/aarch64/syscallent.h b/sysdeps/linux-gnu/aarch64/syscallent.h
|
|
|
39d69a |
new file mode 100644
|
|
|
39d69a |
index 0000000..aca8191
|
|
|
39d69a |
--- /dev/null
|
|
|
39d69a |
+++ b/sysdeps/linux-gnu/aarch64/syscallent.h
|
|
|
39d69a |
@@ -0,0 +1,1100 @@
|
|
|
39d69a |
+/*
|
|
|
39d69a |
+ * This file is part of ltrace.
|
|
|
39d69a |
+ * Copyright (C) 2014 Petr Machata, Red Hat, Inc.
|
|
|
39d69a |
+ *
|
|
|
39d69a |
+ * This program is free software; you can redistribute it and/or
|
|
|
39d69a |
+ * modify it under the terms of the GNU General Public License as
|
|
|
39d69a |
+ * published by the Free Software Foundation; either version 2 of the
|
|
|
39d69a |
+ * License, or (at your option) any later version.
|
|
|
39d69a |
+ *
|
|
|
39d69a |
+ * This program is distributed in the hope that it will be useful, but
|
|
|
39d69a |
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
39d69a |
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
39d69a |
+ * General Public License for more details.
|
|
|
39d69a |
+ *
|
|
|
39d69a |
+ * You should have received a copy of the GNU General Public License
|
|
|
39d69a |
+ * along with this program; if not, write to the Free Software
|
|
|
39d69a |
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
|
|
|
39d69a |
+ * 02110-1301 USA
|
|
|
39d69a |
+ */
|
|
|
39d69a |
+
|
|
|
39d69a |
+ "io_setup", /* 0 */
|
|
|
39d69a |
+ "io_destroy", /* 1 */
|
|
|
39d69a |
+ "io_submit", /* 2 */
|
|
|
39d69a |
+ "io_cancel", /* 3 */
|
|
|
39d69a |
+ "io_getevents", /* 4 */
|
|
|
39d69a |
+ "setxattr", /* 5 */
|
|
|
39d69a |
+ "lsetxattr", /* 6 */
|
|
|
39d69a |
+ "fsetxattr", /* 7 */
|
|
|
39d69a |
+ "getxattr", /* 8 */
|
|
|
39d69a |
+ "lgetxattr", /* 9 */
|
|
|
39d69a |
+ "fgetxattr", /* 10 */
|
|
|
39d69a |
+ "listxattr", /* 11 */
|
|
|
39d69a |
+ "llistxattr", /* 12 */
|
|
|
39d69a |
+ "flistxattr", /* 13 */
|
|
|
39d69a |
+ "removexattr", /* 14 */
|
|
|
39d69a |
+ "lremovexattr", /* 15 */
|
|
|
39d69a |
+ "fremovexattr", /* 16 */
|
|
|
39d69a |
+ "getcwd", /* 17 */
|
|
|
39d69a |
+ "lookup_dcookie", /* 18 */
|
|
|
39d69a |
+ "eventfd2", /* 19 */
|
|
|
39d69a |
+ "epoll_create1", /* 20 */
|
|
|
39d69a |
+ "epoll_ctl", /* 21 */
|
|
|
39d69a |
+ "epoll_pwait", /* 22 */
|
|
|
39d69a |
+ "dup", /* 23 */
|
|
|
39d69a |
+ "dup3", /* 24 */
|
|
|
39d69a |
+ "fcntl", /* 25 */
|
|
|
39d69a |
+ "inotify_init1", /* 26 */
|
|
|
39d69a |
+ "inotify_add_watch", /* 27 */
|
|
|
39d69a |
+ "inotify_rm_watch", /* 28 */
|
|
|
39d69a |
+ "ioctl", /* 29 */
|
|
|
39d69a |
+ "ioprio_set", /* 30 */
|
|
|
39d69a |
+ "ioprio_get", /* 31 */
|
|
|
39d69a |
+ "flock", /* 32 */
|
|
|
39d69a |
+ "mknodat", /* 33 */
|
|
|
39d69a |
+ "mkdirat", /* 34 */
|
|
|
39d69a |
+ "unlinkat", /* 35 */
|
|
|
39d69a |
+ "symlinkat", /* 36 */
|
|
|
39d69a |
+ "linkat", /* 37 */
|
|
|
39d69a |
+ "renameat", /* 38 */
|
|
|
39d69a |
+ "umount2", /* 39 */
|
|
|
39d69a |
+ "mount", /* 40 */
|
|
|
39d69a |
+ "pivot_root", /* 41 */
|
|
|
39d69a |
+ "nfsservctl", /* 42 */
|
|
|
39d69a |
+ "statfs", /* 43 */
|
|
|
39d69a |
+ "fstatfs", /* 44 */
|
|
|
39d69a |
+ "truncate", /* 45 */
|
|
|
39d69a |
+ "ftruncate", /* 46 */
|
|
|
39d69a |
+ "fallocate", /* 47 */
|
|
|
39d69a |
+ "faccessat", /* 48 */
|
|
|
39d69a |
+ "chdir", /* 49 */
|
|
|
39d69a |
+ "fchdir", /* 50 */
|
|
|
39d69a |
+ "chroot", /* 51 */
|
|
|
39d69a |
+ "fchmod", /* 52 */
|
|
|
39d69a |
+ "fchmodat", /* 53 */
|
|
|
39d69a |
+ "fchownat", /* 54 */
|
|
|
39d69a |
+ "fchown", /* 55 */
|
|
|
39d69a |
+ "openat", /* 56 */
|
|
|
39d69a |
+ "close", /* 57 */
|
|
|
39d69a |
+ "vhangup", /* 58 */
|
|
|
39d69a |
+ "pipe2", /* 59 */
|
|
|
39d69a |
+ "quotactl", /* 60 */
|
|
|
39d69a |
+ "getdents64", /* 61 */
|
|
|
39d69a |
+ "lseek", /* 62 */
|
|
|
39d69a |
+ "read", /* 63 */
|
|
|
39d69a |
+ "write", /* 64 */
|
|
|
39d69a |
+ "readv", /* 65 */
|
|
|
39d69a |
+ "writev", /* 66 */
|
|
|
39d69a |
+ "pread64", /* 67 */
|
|
|
39d69a |
+ "pwrite64", /* 68 */
|
|
|
39d69a |
+ "preadv", /* 69 */
|
|
|
39d69a |
+ "pwritev", /* 70 */
|
|
|
39d69a |
+ "sendfile", /* 71 */
|
|
|
39d69a |
+ "pselect6", /* 72 */
|
|
|
39d69a |
+ "ppoll", /* 73 */
|
|
|
39d69a |
+ "signalfd4", /* 74 */
|
|
|
39d69a |
+ "vmsplice", /* 75 */
|
|
|
39d69a |
+ "splice", /* 76 */
|
|
|
39d69a |
+ "tee", /* 77 */
|
|
|
39d69a |
+ "readlinkat", /* 78 */
|
|
|
39d69a |
+ "fstatat", /* 79 */
|
|
|
39d69a |
+ "fstat", /* 80 */
|
|
|
39d69a |
+ "sync", /* 81 */
|
|
|
39d69a |
+ "fsync", /* 82 */
|
|
|
39d69a |
+ "fdatasync", /* 83 */
|
|
|
39d69a |
+ "sync_file_range", /* 84 */
|
|
|
39d69a |
+ "timerfd_create", /* 85 */
|
|
|
39d69a |
+ "timerfd_settime", /* 86 */
|
|
|
39d69a |
+ "timerfd_gettime", /* 87 */
|
|
|
39d69a |
+ "utimensat", /* 88 */
|
|
|
39d69a |
+ "acct", /* 89 */
|
|
|
39d69a |
+ "capget", /* 90 */
|
|
|
39d69a |
+ "capset", /* 91 */
|
|
|
39d69a |
+ "personality", /* 92 */
|
|
|
39d69a |
+ "exit", /* 93 */
|
|
|
39d69a |
+ "exit_group", /* 94 */
|
|
|
39d69a |
+ "waitid", /* 95 */
|
|
|
39d69a |
+ "set_tid_address", /* 96 */
|
|
|
39d69a |
+ "unshare", /* 97 */
|
|
|
39d69a |
+ "futex", /* 98 */
|
|
|
39d69a |
+ "set_robust_list", /* 99 */
|
|
|
39d69a |
+ "get_robust_list", /* 100 */
|
|
|
39d69a |
+ "nanosleep", /* 101 */
|
|
|
39d69a |
+ "getitimer", /* 102 */
|
|
|
39d69a |
+ "setitimer", /* 103 */
|
|
|
39d69a |
+ "kexec_load", /* 104 */
|
|
|
39d69a |
+ "init_module", /* 105 */
|
|
|
39d69a |
+ "delete_module", /* 106 */
|
|
|
39d69a |
+ "timer_create", /* 107 */
|
|
|
39d69a |
+ "timer_gettime", /* 108 */
|
|
|
39d69a |
+ "timer_getoverrun", /* 109 */
|
|
|
39d69a |
+ "timer_settime", /* 110 */
|
|
|
39d69a |
+ "timer_delete", /* 111 */
|
|
|
39d69a |
+ "clock_settime", /* 112 */
|
|
|
39d69a |
+ "clock_gettime", /* 113 */
|
|
|
39d69a |
+ "clock_getres", /* 114 */
|
|
|
39d69a |
+ "clock_nanosleep", /* 115 */
|
|
|
39d69a |
+ "syslog", /* 116 */
|
|
|
39d69a |
+ "ptrace", /* 117 */
|
|
|
39d69a |
+ "sched_setparam", /* 118 */
|
|
|
39d69a |
+ "sched_setscheduler", /* 119 */
|
|
|
39d69a |
+ "sched_getscheduler", /* 120 */
|
|
|
39d69a |
+ "sched_getparam", /* 121 */
|
|
|
39d69a |
+ "sched_setaffinity", /* 122 */
|
|
|
39d69a |
+ "sched_getaffinity", /* 123 */
|
|
|
39d69a |
+ "sched_yield", /* 124 */
|
|
|
39d69a |
+ "sched_get_priority_max", /* 125 */
|
|
|
39d69a |
+ "sched_get_priority_min", /* 126 */
|
|
|
39d69a |
+ "sched_rr_get_interval", /* 127 */
|
|
|
39d69a |
+ "restart_syscall", /* 128 */
|
|
|
39d69a |
+ "kill", /* 129 */
|
|
|
39d69a |
+ "tkill", /* 130 */
|
|
|
39d69a |
+ "tgkill", /* 131 */
|
|
|
39d69a |
+ "sigaltstack", /* 132 */
|
|
|
39d69a |
+ "rt_sigsuspend", /* 133 */
|
|
|
39d69a |
+ "rt_sigaction", /* 134 */
|
|
|
39d69a |
+ "rt_sigprocmask", /* 135 */
|
|
|
39d69a |
+ "rt_sigpending", /* 136 */
|
|
|
39d69a |
+ "rt_sigtimedwait", /* 137 */
|
|
|
39d69a |
+ "rt_sigqueueinfo", /* 138 */
|
|
|
39d69a |
+ "rt_sigreturn", /* 139 */
|
|
|
39d69a |
+ "setpriority", /* 140 */
|
|
|
39d69a |
+ "getpriority", /* 141 */
|
|
|
39d69a |
+ "reboot", /* 142 */
|
|
|
39d69a |
+ "setregid", /* 143 */
|
|
|
39d69a |
+ "setgid", /* 144 */
|
|
|
39d69a |
+ "setreuid", /* 145 */
|
|
|
39d69a |
+ "setuid", /* 146 */
|
|
|
39d69a |
+ "setresuid", /* 147 */
|
|
|
39d69a |
+ "getresuid", /* 148 */
|
|
|
39d69a |
+ "setresgid", /* 149 */
|
|
|
39d69a |
+ "getresgid", /* 150 */
|
|
|
39d69a |
+ "setfsuid", /* 151 */
|
|
|
39d69a |
+ "setfsgid", /* 152 */
|
|
|
39d69a |
+ "times", /* 153 */
|
|
|
39d69a |
+ "setpgid", /* 154 */
|
|
|
39d69a |
+ "getpgid", /* 155 */
|
|
|
39d69a |
+ "getsid", /* 156 */
|
|
|
39d69a |
+ "setsid", /* 157 */
|
|
|
39d69a |
+ "getgroups", /* 158 */
|
|
|
39d69a |
+ "setgroups", /* 159 */
|
|
|
39d69a |
+ "uname", /* 160 */
|
|
|
39d69a |
+ "sethostname", /* 161 */
|
|
|
39d69a |
+ "setdomainname", /* 162 */
|
|
|
39d69a |
+ "getrlimit", /* 163 */
|
|
|
39d69a |
+ "setrlimit", /* 164 */
|
|
|
39d69a |
+ "getrusage", /* 165 */
|
|
|
39d69a |
+ "umask", /* 166 */
|
|
|
39d69a |
+ "prctl", /* 167 */
|
|
|
39d69a |
+ "getcpu", /* 168 */
|
|
|
39d69a |
+ "gettimeofday", /* 169 */
|
|
|
39d69a |
+ "settimeofday", /* 170 */
|
|
|
39d69a |
+ "adjtimex", /* 171 */
|
|
|
39d69a |
+ "getpid", /* 172 */
|
|
|
39d69a |
+ "getppid", /* 173 */
|
|
|
39d69a |
+ "getuid", /* 174 */
|
|
|
39d69a |
+ "geteuid", /* 175 */
|
|
|
39d69a |
+ "getgid", /* 176 */
|
|
|
39d69a |
+ "getegid", /* 177 */
|
|
|
39d69a |
+ "gettid", /* 178 */
|
|
|
39d69a |
+ "sysinfo", /* 179 */
|
|
|
39d69a |
+ "mq_open", /* 180 */
|
|
|
39d69a |
+ "mq_unlink", /* 181 */
|
|
|
39d69a |
+ "mq_timedsend", /* 182 */
|
|
|
39d69a |
+ "mq_timedreceive", /* 183 */
|
|
|
39d69a |
+ "mq_notify", /* 184 */
|
|
|
39d69a |
+ "mq_getsetattr", /* 185 */
|
|
|
39d69a |
+ "msgget", /* 186 */
|
|
|
39d69a |
+ "msgctl", /* 187 */
|
|
|
39d69a |
+ "msgrcv", /* 188 */
|
|
|
39d69a |
+ "msgsnd", /* 189 */
|
|
|
39d69a |
+ "semget", /* 190 */
|
|
|
39d69a |
+ "semctl", /* 191 */
|
|
|
39d69a |
+ "semtimedop", /* 192 */
|
|
|
39d69a |
+ "semop", /* 193 */
|
|
|
39d69a |
+ "shmget", /* 194 */
|
|
|
39d69a |
+ "shmctl", /* 195 */
|
|
|
39d69a |
+ "shmat", /* 196 */
|
|
|
39d69a |
+ "shmdt", /* 197 */
|
|
|
39d69a |
+ "socket", /* 198 */
|
|
|
39d69a |
+ "socketpair", /* 199 */
|
|
|
39d69a |
+ "bind", /* 200 */
|
|
|
39d69a |
+ "listen", /* 201 */
|
|
|
39d69a |
+ "accept", /* 202 */
|
|
|
39d69a |
+ "connect", /* 203 */
|
|
|
39d69a |
+ "getsockname", /* 204 */
|
|
|
39d69a |
+ "getpeername", /* 205 */
|
|
|
39d69a |
+ "sendto", /* 206 */
|
|
|
39d69a |
+ "recvfrom", /* 207 */
|
|
|
39d69a |
+ "setsockopt", /* 208 */
|
|
|
39d69a |
+ "getsockopt", /* 209 */
|
|
|
39d69a |
+ "shutdown", /* 210 */
|
|
|
39d69a |
+ "sendmsg", /* 211 */
|
|
|
39d69a |
+ "recvmsg", /* 212 */
|
|
|
39d69a |
+ "readahead", /* 213 */
|
|
|
39d69a |
+ "brk", /* 214 */
|
|
|
39d69a |
+ "munmap", /* 215 */
|
|
|
39d69a |
+ "mremap", /* 216 */
|
|
|
39d69a |
+ "add_key", /* 217 */
|
|
|
39d69a |
+ "request_key", /* 218 */
|
|
|
39d69a |
+ "keyctl", /* 219 */
|
|
|
39d69a |
+ "clone", /* 220 */
|
|
|
39d69a |
+ "execve", /* 221 */
|
|
|
39d69a |
+ "mmap", /* 222 */
|
|
|
39d69a |
+ "fadvise64", /* 223 */
|
|
|
39d69a |
+ "swapon", /* 224 */
|
|
|
39d69a |
+ "swapoff", /* 225 */
|
|
|
39d69a |
+ "mprotect", /* 226 */
|
|
|
39d69a |
+ "msync", /* 227 */
|
|
|
39d69a |
+ "mlock", /* 228 */
|
|
|
39d69a |
+ "munlock", /* 229 */
|
|
|
39d69a |
+ "mlockall", /* 230 */
|
|
|
39d69a |
+ "munlockall", /* 231 */
|
|
|
39d69a |
+ "mincore", /* 232 */
|
|
|
39d69a |
+ "madvise", /* 233 */
|
|
|
39d69a |
+ "remap_file_pages", /* 234 */
|
|
|
39d69a |
+ "mbind", /* 235 */
|
|
|
39d69a |
+ "get_mempolicy", /* 236 */
|
|
|
39d69a |
+ "set_mempolicy", /* 237 */
|
|
|
39d69a |
+ "migrate_pages", /* 238 */
|
|
|
39d69a |
+ "move_pages", /* 239 */
|
|
|
39d69a |
+ "rt_tgsigqueueinfo", /* 240 */
|
|
|
39d69a |
+ "perf_event_open", /* 241 */
|
|
|
39d69a |
+ "accept4", /* 242 */
|
|
|
39d69a |
+ "recvmmsg", /* 243 */
|
|
|
39d69a |
+ "arch_specific_syscall", /* 244 */
|
|
|
39d69a |
+ "245", /* 245 */
|
|
|
39d69a |
+ "246", /* 246 */
|
|
|
39d69a |
+ "247", /* 247 */
|
|
|
39d69a |
+ "248", /* 248 */
|
|
|
39d69a |
+ "249", /* 249 */
|
|
|
39d69a |
+ "250", /* 250 */
|
|
|
39d69a |
+ "251", /* 251 */
|
|
|
39d69a |
+ "252", /* 252 */
|
|
|
39d69a |
+ "253", /* 253 */
|
|
|
39d69a |
+ "254", /* 254 */
|
|
|
39d69a |
+ "255", /* 255 */
|
|
|
39d69a |
+ "256", /* 256 */
|
|
|
39d69a |
+ "257", /* 257 */
|
|
|
39d69a |
+ "258", /* 258 */
|
|
|
39d69a |
+ "259", /* 259 */
|
|
|
39d69a |
+ "wait4", /* 260 */
|
|
|
39d69a |
+ "prlimit64", /* 261 */
|
|
|
39d69a |
+ "fanotify_init", /* 262 */
|
|
|
39d69a |
+ "fanotify_mark", /* 263 */
|
|
|
39d69a |
+ "name_to_handle_at", /* 264 */
|
|
|
39d69a |
+ "open_by_handle_at", /* 265 */
|
|
|
39d69a |
+ "clock_adjtime", /* 266 */
|
|
|
39d69a |
+ "syncfs", /* 267 */
|
|
|
39d69a |
+ "setns", /* 268 */
|
|
|
39d69a |
+ "sendmmsg", /* 269 */
|
|
|
39d69a |
+ "process_vm_readv", /* 270 */
|
|
|
39d69a |
+ "process_vm_writev", /* 271 */
|
|
|
39d69a |
+ "kcmp", /* 272 */
|
|
|
39d69a |
+ "finit_module", /* 273 */
|
|
|
39d69a |
+ "syscalls", /* 274 */
|
|
|
39d69a |
+ "275", /* 275 */
|
|
|
39d69a |
+ "276", /* 276 */
|
|
|
39d69a |
+ "277", /* 277 */
|
|
|
39d69a |
+ "278", /* 278 */
|
|
|
39d69a |
+ "279", /* 279 */
|
|
|
39d69a |
+ "280", /* 280 */
|
|
|
39d69a |
+ "281", /* 281 */
|
|
|
39d69a |
+ "282", /* 282 */
|
|
|
39d69a |
+ "283", /* 283 */
|
|
|
39d69a |
+ "284", /* 284 */
|
|
|
39d69a |
+ "285", /* 285 */
|
|
|
39d69a |
+ "286", /* 286 */
|
|
|
39d69a |
+ "287", /* 287 */
|
|
|
39d69a |
+ "288", /* 288 */
|
|
|
39d69a |
+ "289", /* 289 */
|
|
|
39d69a |
+ "290", /* 290 */
|
|
|
39d69a |
+ "291", /* 291 */
|
|
|
39d69a |
+ "292", /* 292 */
|
|
|
39d69a |
+ "293", /* 293 */
|
|
|
39d69a |
+ "294", /* 294 */
|
|
|
39d69a |
+ "295", /* 295 */
|
|
|
39d69a |
+ "296", /* 296 */
|
|
|
39d69a |
+ "297", /* 297 */
|
|
|
39d69a |
+ "298", /* 298 */
|
|
|
39d69a |
+ "299", /* 299 */
|
|
|
39d69a |
+ "300", /* 300 */
|
|
|
39d69a |
+ "301", /* 301 */
|
|
|
39d69a |
+ "302", /* 302 */
|
|
|
39d69a |
+ "303", /* 303 */
|
|
|
39d69a |
+ "304", /* 304 */
|
|
|
39d69a |
+ "305", /* 305 */
|
|
|
39d69a |
+ "306", /* 306 */
|
|
|
39d69a |
+ "307", /* 307 */
|
|
|
39d69a |
+ "308", /* 308 */
|
|
|
39d69a |
+ "309", /* 309 */
|
|
|
39d69a |
+ "310", /* 310 */
|
|
|
39d69a |
+ "311", /* 311 */
|
|
|
39d69a |
+ "312", /* 312 */
|
|
|
39d69a |
+ "313", /* 313 */
|
|
|
39d69a |
+ "314", /* 314 */
|
|
|
39d69a |
+ "315", /* 315 */
|
|
|
39d69a |
+ "316", /* 316 */
|
|
|
39d69a |
+ "317", /* 317 */
|
|
|
39d69a |
+ "318", /* 318 */
|
|
|
39d69a |
+ "319", /* 319 */
|
|
|
39d69a |
+ "320", /* 320 */
|
|
|
39d69a |
+ "321", /* 321 */
|
|
|
39d69a |
+ "322", /* 322 */
|
|
|
39d69a |
+ "323", /* 323 */
|
|
|
39d69a |
+ "324", /* 324 */
|
|
|
39d69a |
+ "325", /* 325 */
|
|
|
39d69a |
+ "326", /* 326 */
|
|
|
39d69a |
+ "327", /* 327 */
|
|
|
39d69a |
+ "328", /* 328 */
|
|
|
39d69a |
+ "329", /* 329 */
|
|
|
39d69a |
+ "330", /* 330 */
|
|
|
39d69a |
+ "331", /* 331 */
|
|
|
39d69a |
+ "332", /* 332 */
|
|
|
39d69a |
+ "333", /* 333 */
|
|
|
39d69a |
+ "334", /* 334 */
|
|
|
39d69a |
+ "335", /* 335 */
|
|
|
39d69a |
+ "336", /* 336 */
|
|
|
39d69a |
+ "337", /* 337 */
|
|
|
39d69a |
+ "338", /* 338 */
|
|
|
39d69a |
+ "339", /* 339 */
|
|
|
39d69a |
+ "340", /* 340 */
|
|
|
39d69a |
+ "341", /* 341 */
|
|
|
39d69a |
+ "342", /* 342 */
|
|
|
39d69a |
+ "343", /* 343 */
|
|
|
39d69a |
+ "344", /* 344 */
|
|
|
39d69a |
+ "345", /* 345 */
|
|
|
39d69a |
+ "346", /* 346 */
|
|
|
39d69a |
+ "347", /* 347 */
|
|
|
39d69a |
+ "348", /* 348 */
|
|
|
39d69a |
+ "349", /* 349 */
|
|
|
39d69a |
+ "350", /* 350 */
|
|
|
39d69a |
+ "351", /* 351 */
|
|
|
39d69a |
+ "352", /* 352 */
|
|
|
39d69a |
+ "353", /* 353 */
|
|
|
39d69a |
+ "354", /* 354 */
|
|
|
39d69a |
+ "355", /* 355 */
|
|
|
39d69a |
+ "356", /* 356 */
|
|
|
39d69a |
+ "357", /* 357 */
|
|
|
39d69a |
+ "358", /* 358 */
|
|
|
39d69a |
+ "359", /* 359 */
|
|
|
39d69a |
+ "360", /* 360 */
|
|
|
39d69a |
+ "361", /* 361 */
|
|
|
39d69a |
+ "362", /* 362 */
|
|
|
39d69a |
+ "363", /* 363 */
|
|
|
39d69a |
+ "364", /* 364 */
|
|
|
39d69a |
+ "365", /* 365 */
|
|
|
39d69a |
+ "366", /* 366 */
|
|
|
39d69a |
+ "367", /* 367 */
|
|
|
39d69a |
+ "368", /* 368 */
|
|
|
39d69a |
+ "369", /* 369 */
|
|
|
39d69a |
+ "370", /* 370 */
|
|
|
39d69a |
+ "371", /* 371 */
|
|
|
39d69a |
+ "372", /* 372 */
|
|
|
39d69a |
+ "373", /* 373 */
|
|
|
39d69a |
+ "374", /* 374 */
|
|
|
39d69a |
+ "375", /* 375 */
|
|
|
39d69a |
+ "376", /* 376 */
|
|
|
39d69a |
+ "377", /* 377 */
|
|
|
39d69a |
+ "378", /* 378 */
|
|
|
39d69a |
+ "379", /* 379 */
|
|
|
39d69a |
+ "380", /* 380 */
|
|
|
39d69a |
+ "381", /* 381 */
|
|
|
39d69a |
+ "382", /* 382 */
|
|
|
39d69a |
+ "383", /* 383 */
|
|
|
39d69a |
+ "384", /* 384 */
|
|
|
39d69a |
+ "385", /* 385 */
|
|
|
39d69a |
+ "386", /* 386 */
|
|
|
39d69a |
+ "387", /* 387 */
|
|
|
39d69a |
+ "388", /* 388 */
|
|
|
39d69a |
+ "389", /* 389 */
|
|
|
39d69a |
+ "390", /* 390 */
|
|
|
39d69a |
+ "391", /* 391 */
|
|
|
39d69a |
+ "392", /* 392 */
|
|
|
39d69a |
+ "393", /* 393 */
|
|
|
39d69a |
+ "394", /* 394 */
|
|
|
39d69a |
+ "395", /* 395 */
|
|
|
39d69a |
+ "396", /* 396 */
|
|
|
39d69a |
+ "397", /* 397 */
|
|
|
39d69a |
+ "398", /* 398 */
|
|
|
39d69a |
+ "399", /* 399 */
|
|
|
39d69a |
+ "400", /* 400 */
|
|
|
39d69a |
+ "401", /* 401 */
|
|
|
39d69a |
+ "402", /* 402 */
|
|
|
39d69a |
+ "403", /* 403 */
|
|
|
39d69a |
+ "404", /* 404 */
|
|
|
39d69a |
+ "405", /* 405 */
|
|
|
39d69a |
+ "406", /* 406 */
|
|
|
39d69a |
+ "407", /* 407 */
|
|
|
39d69a |
+ "408", /* 408 */
|
|
|
39d69a |
+ "409", /* 409 */
|
|
|
39d69a |
+ "410", /* 410 */
|
|
|
39d69a |
+ "411", /* 411 */
|
|
|
39d69a |
+ "412", /* 412 */
|
|
|
39d69a |
+ "413", /* 413 */
|
|
|
39d69a |
+ "414", /* 414 */
|
|
|
39d69a |
+ "415", /* 415 */
|
|
|
39d69a |
+ "416", /* 416 */
|
|
|
39d69a |
+ "417", /* 417 */
|
|
|
39d69a |
+ "418", /* 418 */
|
|
|
39d69a |
+ "419", /* 419 */
|
|
|
39d69a |
+ "420", /* 420 */
|
|
|
39d69a |
+ "421", /* 421 */
|
|
|
39d69a |
+ "422", /* 422 */
|
|
|
39d69a |
+ "423", /* 423 */
|
|
|
39d69a |
+ "424", /* 424 */
|
|
|
39d69a |
+ "425", /* 425 */
|
|
|
39d69a |
+ "426", /* 426 */
|
|
|
39d69a |
+ "427", /* 427 */
|
|
|
39d69a |
+ "428", /* 428 */
|
|
|
39d69a |
+ "429", /* 429 */
|
|
|
39d69a |
+ "430", /* 430 */
|
|
|
39d69a |
+ "431", /* 431 */
|
|
|
39d69a |
+ "432", /* 432 */
|
|
|
39d69a |
+ "433", /* 433 */
|
|
|
39d69a |
+ "434", /* 434 */
|
|
|
39d69a |
+ "435", /* 435 */
|
|
|
39d69a |
+ "436", /* 436 */
|
|
|
39d69a |
+ "437", /* 437 */
|
|
|
39d69a |
+ "438", /* 438 */
|
|
|
39d69a |
+ "439", /* 439 */
|
|
|
39d69a |
+ "440", /* 440 */
|
|
|
39d69a |
+ "441", /* 441 */
|
|
|
39d69a |
+ "442", /* 442 */
|
|
|
39d69a |
+ "443", /* 443 */
|
|
|
39d69a |
+ "444", /* 444 */
|
|
|
39d69a |
+ "445", /* 445 */
|
|
|
39d69a |
+ "446", /* 446 */
|
|
|
39d69a |
+ "447", /* 447 */
|
|
|
39d69a |
+ "448", /* 448 */
|
|
|
39d69a |
+ "449", /* 449 */
|
|
|
39d69a |
+ "450", /* 450 */
|
|
|
39d69a |
+ "451", /* 451 */
|
|
|
39d69a |
+ "452", /* 452 */
|
|
|
39d69a |
+ "453", /* 453 */
|
|
|
39d69a |
+ "454", /* 454 */
|
|
|
39d69a |
+ "455", /* 455 */
|
|
|
39d69a |
+ "456", /* 456 */
|
|
|
39d69a |
+ "457", /* 457 */
|
|
|
39d69a |
+ "458", /* 458 */
|
|
|
39d69a |
+ "459", /* 459 */
|
|
|
39d69a |
+ "460", /* 460 */
|
|
|
39d69a |
+ "461", /* 461 */
|
|
|
39d69a |
+ "462", /* 462 */
|
|
|
39d69a |
+ "463", /* 463 */
|
|
|
39d69a |
+ "464", /* 464 */
|
|
|
39d69a |
+ "465", /* 465 */
|
|
|
39d69a |
+ "466", /* 466 */
|
|
|
39d69a |
+ "467", /* 467 */
|
|
|
39d69a |
+ "468", /* 468 */
|
|
|
39d69a |
+ "469", /* 469 */
|
|
|
39d69a |
+ "470", /* 470 */
|
|
|
39d69a |
+ "471", /* 471 */
|
|
|
39d69a |
+ "472", /* 472 */
|
|
|
39d69a |
+ "473", /* 473 */
|
|
|
39d69a |
+ "474", /* 474 */
|
|
|
39d69a |
+ "475", /* 475 */
|
|
|
39d69a |
+ "476", /* 476 */
|
|
|
39d69a |
+ "477", /* 477 */
|
|
|
39d69a |
+ "478", /* 478 */
|
|
|
39d69a |
+ "479", /* 479 */
|
|
|
39d69a |
+ "480", /* 480 */
|
|
|
39d69a |
+ "481", /* 481 */
|
|
|
39d69a |
+ "482", /* 482 */
|
|
|
39d69a |
+ "483", /* 483 */
|
|
|
39d69a |
+ "484", /* 484 */
|
|
|
39d69a |
+ "485", /* 485 */
|
|
|
39d69a |
+ "486", /* 486 */
|
|
|
39d69a |
+ "487", /* 487 */
|
|
|
39d69a |
+ "488", /* 488 */
|
|
|
39d69a |
+ "489", /* 489 */
|
|
|
39d69a |
+ "490", /* 490 */
|
|
|
39d69a |
+ "491", /* 491 */
|
|
|
39d69a |
+ "492", /* 492 */
|
|
|
39d69a |
+ "493", /* 493 */
|
|
|
39d69a |
+ "494", /* 494 */
|
|
|
39d69a |
+ "495", /* 495 */
|
|
|
39d69a |
+ "496", /* 496 */
|
|
|
39d69a |
+ "497", /* 497 */
|
|
|
39d69a |
+ "498", /* 498 */
|
|
|
39d69a |
+ "499", /* 499 */
|
|
|
39d69a |
+ "500", /* 500 */
|
|
|
39d69a |
+ "501", /* 501 */
|
|
|
39d69a |
+ "502", /* 502 */
|
|
|
39d69a |
+ "503", /* 503 */
|
|
|
39d69a |
+ "504", /* 504 */
|
|
|
39d69a |
+ "505", /* 505 */
|
|
|
39d69a |
+ "506", /* 506 */
|
|
|
39d69a |
+ "507", /* 507 */
|
|
|
39d69a |
+ "508", /* 508 */
|
|
|
39d69a |
+ "509", /* 509 */
|
|
|
39d69a |
+ "510", /* 510 */
|
|
|
39d69a |
+ "511", /* 511 */
|
|
|
39d69a |
+ "512", /* 512 */
|
|
|
39d69a |
+ "513", /* 513 */
|
|
|
39d69a |
+ "514", /* 514 */
|
|
|
39d69a |
+ "515", /* 515 */
|
|
|
39d69a |
+ "516", /* 516 */
|
|
|
39d69a |
+ "517", /* 517 */
|
|
|
39d69a |
+ "518", /* 518 */
|
|
|
39d69a |
+ "519", /* 519 */
|
|
|
39d69a |
+ "520", /* 520 */
|
|
|
39d69a |
+ "521", /* 521 */
|
|
|
39d69a |
+ "522", /* 522 */
|
|
|
39d69a |
+ "523", /* 523 */
|
|
|
39d69a |
+ "524", /* 524 */
|
|
|
39d69a |
+ "525", /* 525 */
|
|
|
39d69a |
+ "526", /* 526 */
|
|
|
39d69a |
+ "527", /* 527 */
|
|
|
39d69a |
+ "528", /* 528 */
|
|
|
39d69a |
+ "529", /* 529 */
|
|
|
39d69a |
+ "530", /* 530 */
|
|
|
39d69a |
+ "531", /* 531 */
|
|
|
39d69a |
+ "532", /* 532 */
|
|
|
39d69a |
+ "533", /* 533 */
|
|
|
39d69a |
+ "534", /* 534 */
|
|
|
39d69a |
+ "535", /* 535 */
|
|
|
39d69a |
+ "536", /* 536 */
|
|
|
39d69a |
+ "537", /* 537 */
|
|
|
39d69a |
+ "538", /* 538 */
|
|
|
39d69a |
+ "539", /* 539 */
|
|
|
39d69a |
+ "540", /* 540 */
|
|
|
39d69a |
+ "541", /* 541 */
|
|
|
39d69a |
+ "542", /* 542 */
|
|
|
39d69a |
+ "543", /* 543 */
|
|
|
39d69a |
+ "544", /* 544 */
|
|
|
39d69a |
+ "545", /* 545 */
|
|
|
39d69a |
+ "546", /* 546 */
|
|
|
39d69a |
+ "547", /* 547 */
|
|
|
39d69a |
+ "548", /* 548 */
|
|
|
39d69a |
+ "549", /* 549 */
|
|
|
39d69a |
+ "550", /* 550 */
|
|
|
39d69a |
+ "551", /* 551 */
|
|
|
39d69a |
+ "552", /* 552 */
|
|
|
39d69a |
+ "553", /* 553 */
|
|
|
39d69a |
+ "554", /* 554 */
|
|
|
39d69a |
+ "555", /* 555 */
|
|
|
39d69a |
+ "556", /* 556 */
|
|
|
39d69a |
+ "557", /* 557 */
|
|
|
39d69a |
+ "558", /* 558 */
|
|
|
39d69a |
+ "559", /* 559 */
|
|
|
39d69a |
+ "560", /* 560 */
|
|
|
39d69a |
+ "561", /* 561 */
|
|
|
39d69a |
+ "562", /* 562 */
|
|
|
39d69a |
+ "563", /* 563 */
|
|
|
39d69a |
+ "564", /* 564 */
|
|
|
39d69a |
+ "565", /* 565 */
|
|
|
39d69a |
+ "566", /* 566 */
|
|
|
39d69a |
+ "567", /* 567 */
|
|
|
39d69a |
+ "568", /* 568 */
|
|
|
39d69a |
+ "569", /* 569 */
|
|
|
39d69a |
+ "570", /* 570 */
|
|
|
39d69a |
+ "571", /* 571 */
|
|
|
39d69a |
+ "572", /* 572 */
|
|
|
39d69a |
+ "573", /* 573 */
|
|
|
39d69a |
+ "574", /* 574 */
|
|
|
39d69a |
+ "575", /* 575 */
|
|
|
39d69a |
+ "576", /* 576 */
|
|
|
39d69a |
+ "577", /* 577 */
|
|
|
39d69a |
+ "578", /* 578 */
|
|
|
39d69a |
+ "579", /* 579 */
|
|
|
39d69a |
+ "580", /* 580 */
|
|
|
39d69a |
+ "581", /* 581 */
|
|
|
39d69a |
+ "582", /* 582 */
|
|
|
39d69a |
+ "583", /* 583 */
|
|
|
39d69a |
+ "584", /* 584 */
|
|
|
39d69a |
+ "585", /* 585 */
|
|
|
39d69a |
+ "586", /* 586 */
|
|
|
39d69a |
+ "587", /* 587 */
|
|
|
39d69a |
+ "588", /* 588 */
|
|
|
39d69a |
+ "589", /* 589 */
|
|
|
39d69a |
+ "590", /* 590 */
|
|
|
39d69a |
+ "591", /* 591 */
|
|
|
39d69a |
+ "592", /* 592 */
|
|
|
39d69a |
+ "593", /* 593 */
|
|
|
39d69a |
+ "594", /* 594 */
|
|
|
39d69a |
+ "595", /* 595 */
|
|
|
39d69a |
+ "596", /* 596 */
|
|
|
39d69a |
+ "597", /* 597 */
|
|
|
39d69a |
+ "598", /* 598 */
|
|
|
39d69a |
+ "599", /* 599 */
|
|
|
39d69a |
+ "600", /* 600 */
|
|
|
39d69a |
+ "601", /* 601 */
|
|
|
39d69a |
+ "602", /* 602 */
|
|
|
39d69a |
+ "603", /* 603 */
|
|
|
39d69a |
+ "604", /* 604 */
|
|
|
39d69a |
+ "605", /* 605 */
|
|
|
39d69a |
+ "606", /* 606 */
|
|
|
39d69a |
+ "607", /* 607 */
|
|
|
39d69a |
+ "608", /* 608 */
|
|
|
39d69a |
+ "609", /* 609 */
|
|
|
39d69a |
+ "610", /* 610 */
|
|
|
39d69a |
+ "611", /* 611 */
|
|
|
39d69a |
+ "612", /* 612 */
|
|
|
39d69a |
+ "613", /* 613 */
|
|
|
39d69a |
+ "614", /* 614 */
|
|
|
39d69a |
+ "615", /* 615 */
|
|
|
39d69a |
+ "616", /* 616 */
|
|
|
39d69a |
+ "617", /* 617 */
|
|
|
39d69a |
+ "618", /* 618 */
|
|
|
39d69a |
+ "619", /* 619 */
|
|
|
39d69a |
+ "620", /* 620 */
|
|
|
39d69a |
+ "621", /* 621 */
|
|
|
39d69a |
+ "622", /* 622 */
|
|
|
39d69a |
+ "623", /* 623 */
|
|
|
39d69a |
+ "624", /* 624 */
|
|
|
39d69a |
+ "625", /* 625 */
|
|
|
39d69a |
+ "626", /* 626 */
|
|
|
39d69a |
+ "627", /* 627 */
|
|
|
39d69a |
+ "628", /* 628 */
|
|
|
39d69a |
+ "629", /* 629 */
|
|
|
39d69a |
+ "630", /* 630 */
|
|
|
39d69a |
+ "631", /* 631 */
|
|
|
39d69a |
+ "632", /* 632 */
|
|
|
39d69a |
+ "633", /* 633 */
|
|
|
39d69a |
+ "634", /* 634 */
|
|
|
39d69a |
+ "635", /* 635 */
|
|
|
39d69a |
+ "636", /* 636 */
|
|
|
39d69a |
+ "637", /* 637 */
|
|
|
39d69a |
+ "638", /* 638 */
|
|
|
39d69a |
+ "639", /* 639 */
|
|
|
39d69a |
+ "640", /* 640 */
|
|
|
39d69a |
+ "641", /* 641 */
|
|
|
39d69a |
+ "642", /* 642 */
|
|
|
39d69a |
+ "643", /* 643 */
|
|
|
39d69a |
+ "644", /* 644 */
|
|
|
39d69a |
+ "645", /* 645 */
|
|
|
39d69a |
+ "646", /* 646 */
|
|
|
39d69a |
+ "647", /* 647 */
|
|
|
39d69a |
+ "648", /* 648 */
|
|
|
39d69a |
+ "649", /* 649 */
|
|
|
39d69a |
+ "650", /* 650 */
|
|
|
39d69a |
+ "651", /* 651 */
|
|
|
39d69a |
+ "652", /* 652 */
|
|
|
39d69a |
+ "653", /* 653 */
|
|
|
39d69a |
+ "654", /* 654 */
|
|
|
39d69a |
+ "655", /* 655 */
|
|
|
39d69a |
+ "656", /* 656 */
|
|
|
39d69a |
+ "657", /* 657 */
|
|
|
39d69a |
+ "658", /* 658 */
|
|
|
39d69a |
+ "659", /* 659 */
|
|
|
39d69a |
+ "660", /* 660 */
|
|
|
39d69a |
+ "661", /* 661 */
|
|
|
39d69a |
+ "662", /* 662 */
|
|
|
39d69a |
+ "663", /* 663 */
|
|
|
39d69a |
+ "664", /* 664 */
|
|
|
39d69a |
+ "665", /* 665 */
|
|
|
39d69a |
+ "666", /* 666 */
|
|
|
39d69a |
+ "667", /* 667 */
|
|
|
39d69a |
+ "668", /* 668 */
|
|
|
39d69a |
+ "669", /* 669 */
|
|
|
39d69a |
+ "670", /* 670 */
|
|
|
39d69a |
+ "671", /* 671 */
|
|
|
39d69a |
+ "672", /* 672 */
|
|
|
39d69a |
+ "673", /* 673 */
|
|
|
39d69a |
+ "674", /* 674 */
|
|
|
39d69a |
+ "675", /* 675 */
|
|
|
39d69a |
+ "676", /* 676 */
|
|
|
39d69a |
+ "677", /* 677 */
|
|
|
39d69a |
+ "678", /* 678 */
|
|
|
39d69a |
+ "679", /* 679 */
|
|
|
39d69a |
+ "680", /* 680 */
|
|
|
39d69a |
+ "681", /* 681 */
|
|
|
39d69a |
+ "682", /* 682 */
|
|
|
39d69a |
+ "683", /* 683 */
|
|
|
39d69a |
+ "684", /* 684 */
|
|
|
39d69a |
+ "685", /* 685 */
|
|
|
39d69a |
+ "686", /* 686 */
|
|
|
39d69a |
+ "687", /* 687 */
|
|
|
39d69a |
+ "688", /* 688 */
|
|
|
39d69a |
+ "689", /* 689 */
|
|
|
39d69a |
+ "690", /* 690 */
|
|
|
39d69a |
+ "691", /* 691 */
|
|
|
39d69a |
+ "692", /* 692 */
|
|
|
39d69a |
+ "693", /* 693 */
|
|
|
39d69a |
+ "694", /* 694 */
|
|
|
39d69a |
+ "695", /* 695 */
|
|
|
39d69a |
+ "696", /* 696 */
|
|
|
39d69a |
+ "697", /* 697 */
|
|
|
39d69a |
+ "698", /* 698 */
|
|
|
39d69a |
+ "699", /* 699 */
|
|
|
39d69a |
+ "700", /* 700 */
|
|
|
39d69a |
+ "701", /* 701 */
|
|
|
39d69a |
+ "702", /* 702 */
|
|
|
39d69a |
+ "703", /* 703 */
|
|
|
39d69a |
+ "704", /* 704 */
|
|
|
39d69a |
+ "705", /* 705 */
|
|
|
39d69a |
+ "706", /* 706 */
|
|
|
39d69a |
+ "707", /* 707 */
|
|
|
39d69a |
+ "708", /* 708 */
|
|
|
39d69a |
+ "709", /* 709 */
|
|
|
39d69a |
+ "710", /* 710 */
|
|
|
39d69a |
+ "711", /* 711 */
|
|
|
39d69a |
+ "712", /* 712 */
|
|
|
39d69a |
+ "713", /* 713 */
|
|
|
39d69a |
+ "714", /* 714 */
|
|
|
39d69a |
+ "715", /* 715 */
|
|
|
39d69a |
+ "716", /* 716 */
|
|
|
39d69a |
+ "717", /* 717 */
|
|
|
39d69a |
+ "718", /* 718 */
|
|
|
39d69a |
+ "719", /* 719 */
|
|
|
39d69a |
+ "720", /* 720 */
|
|
|
39d69a |
+ "721", /* 721 */
|
|
|
39d69a |
+ "722", /* 722 */
|
|
|
39d69a |
+ "723", /* 723 */
|
|
|
39d69a |
+ "724", /* 724 */
|
|
|
39d69a |
+ "725", /* 725 */
|
|
|
39d69a |
+ "726", /* 726 */
|
|
|
39d69a |
+ "727", /* 727 */
|
|
|
39d69a |
+ "728", /* 728 */
|
|
|
39d69a |
+ "729", /* 729 */
|
|
|
39d69a |
+ "730", /* 730 */
|
|
|
39d69a |
+ "731", /* 731 */
|
|
|
39d69a |
+ "732", /* 732 */
|
|
|
39d69a |
+ "733", /* 733 */
|
|
|
39d69a |
+ "734", /* 734 */
|
|
|
39d69a |
+ "735", /* 735 */
|
|
|
39d69a |
+ "736", /* 736 */
|
|
|
39d69a |
+ "737", /* 737 */
|
|
|
39d69a |
+ "738", /* 738 */
|
|
|
39d69a |
+ "739", /* 739 */
|
|
|
39d69a |
+ "740", /* 740 */
|
|
|
39d69a |
+ "741", /* 741 */
|
|
|
39d69a |
+ "742", /* 742 */
|
|
|
39d69a |
+ "743", /* 743 */
|
|
|
39d69a |
+ "744", /* 744 */
|
|
|
39d69a |
+ "745", /* 745 */
|
|
|
39d69a |
+ "746", /* 746 */
|
|
|
39d69a |
+ "747", /* 747 */
|
|
|
39d69a |
+ "748", /* 748 */
|
|
|
39d69a |
+ "749", /* 749 */
|
|
|
39d69a |
+ "750", /* 750 */
|
|
|
39d69a |
+ "751", /* 751 */
|
|
|
39d69a |
+ "752", /* 752 */
|
|
|
39d69a |
+ "753", /* 753 */
|
|
|
39d69a |
+ "754", /* 754 */
|
|
|
39d69a |
+ "755", /* 755 */
|
|
|
39d69a |
+ "756", /* 756 */
|
|
|
39d69a |
+ "757", /* 757 */
|
|
|
39d69a |
+ "758", /* 758 */
|
|
|
39d69a |
+ "759", /* 759 */
|
|
|
39d69a |
+ "760", /* 760 */
|
|
|
39d69a |
+ "761", /* 761 */
|
|
|
39d69a |
+ "762", /* 762 */
|
|
|
39d69a |
+ "763", /* 763 */
|
|
|
39d69a |
+ "764", /* 764 */
|
|
|
39d69a |
+ "765", /* 765 */
|
|
|
39d69a |
+ "766", /* 766 */
|
|
|
39d69a |
+ "767", /* 767 */
|
|
|
39d69a |
+ "768", /* 768 */
|
|
|
39d69a |
+ "769", /* 769 */
|
|
|
39d69a |
+ "770", /* 770 */
|
|
|
39d69a |
+ "771", /* 771 */
|
|
|
39d69a |
+ "772", /* 772 */
|
|
|
39d69a |
+ "773", /* 773 */
|
|
|
39d69a |
+ "774", /* 774 */
|
|
|
39d69a |
+ "775", /* 775 */
|
|
|
39d69a |
+ "776", /* 776 */
|
|
|
39d69a |
+ "777", /* 777 */
|
|
|
39d69a |
+ "778", /* 778 */
|
|
|
39d69a |
+ "779", /* 779 */
|
|
|
39d69a |
+ "780", /* 780 */
|
|
|
39d69a |
+ "781", /* 781 */
|
|
|
39d69a |
+ "782", /* 782 */
|
|
|
39d69a |
+ "783", /* 783 */
|
|
|
39d69a |
+ "784", /* 784 */
|
|
|
39d69a |
+ "785", /* 785 */
|
|
|
39d69a |
+ "786", /* 786 */
|
|
|
39d69a |
+ "787", /* 787 */
|
|
|
39d69a |
+ "788", /* 788 */
|
|
|
39d69a |
+ "789", /* 789 */
|
|
|
39d69a |
+ "790", /* 790 */
|
|
|
39d69a |
+ "791", /* 791 */
|
|
|
39d69a |
+ "792", /* 792 */
|
|
|
39d69a |
+ "793", /* 793 */
|
|
|
39d69a |
+ "794", /* 794 */
|
|
|
39d69a |
+ "795", /* 795 */
|
|
|
39d69a |
+ "796", /* 796 */
|
|
|
39d69a |
+ "797", /* 797 */
|
|
|
39d69a |
+ "798", /* 798 */
|
|
|
39d69a |
+ "799", /* 799 */
|
|
|
39d69a |
+ "800", /* 800 */
|
|
|
39d69a |
+ "801", /* 801 */
|
|
|
39d69a |
+ "802", /* 802 */
|
|
|
39d69a |
+ "803", /* 803 */
|
|
|
39d69a |
+ "804", /* 804 */
|
|
|
39d69a |
+ "805", /* 805 */
|
|
|
39d69a |
+ "806", /* 806 */
|
|
|
39d69a |
+ "807", /* 807 */
|
|
|
39d69a |
+ "808", /* 808 */
|
|
|
39d69a |
+ "809", /* 809 */
|
|
|
39d69a |
+ "810", /* 810 */
|
|
|
39d69a |
+ "811", /* 811 */
|
|
|
39d69a |
+ "812", /* 812 */
|
|
|
39d69a |
+ "813", /* 813 */
|
|
|
39d69a |
+ "814", /* 814 */
|
|
|
39d69a |
+ "815", /* 815 */
|
|
|
39d69a |
+ "816", /* 816 */
|
|
|
39d69a |
+ "817", /* 817 */
|
|
|
39d69a |
+ "818", /* 818 */
|
|
|
39d69a |
+ "819", /* 819 */
|
|
|
39d69a |
+ "820", /* 820 */
|
|
|
39d69a |
+ "821", /* 821 */
|
|
|
39d69a |
+ "822", /* 822 */
|
|
|
39d69a |
+ "823", /* 823 */
|
|
|
39d69a |
+ "824", /* 824 */
|
|
|
39d69a |
+ "825", /* 825 */
|
|
|
39d69a |
+ "826", /* 826 */
|
|
|
39d69a |
+ "827", /* 827 */
|
|
|
39d69a |
+ "828", /* 828 */
|
|
|
39d69a |
+ "829", /* 829 */
|
|
|
39d69a |
+ "830", /* 830 */
|
|
|
39d69a |
+ "831", /* 831 */
|
|
|
39d69a |
+ "832", /* 832 */
|
|
|
39d69a |
+ "833", /* 833 */
|
|
|
39d69a |
+ "834", /* 834 */
|
|
|
39d69a |
+ "835", /* 835 */
|
|
|
39d69a |
+ "836", /* 836 */
|
|
|
39d69a |
+ "837", /* 837 */
|
|
|
39d69a |
+ "838", /* 838 */
|
|
|
39d69a |
+ "839", /* 839 */
|
|
|
39d69a |
+ "840", /* 840 */
|
|
|
39d69a |
+ "841", /* 841 */
|
|
|
39d69a |
+ "842", /* 842 */
|
|
|
39d69a |
+ "843", /* 843 */
|
|
|
39d69a |
+ "844", /* 844 */
|
|
|
39d69a |
+ "845", /* 845 */
|
|
|
39d69a |
+ "846", /* 846 */
|
|
|
39d69a |
+ "847", /* 847 */
|
|
|
39d69a |
+ "848", /* 848 */
|
|
|
39d69a |
+ "849", /* 849 */
|
|
|
39d69a |
+ "850", /* 850 */
|
|
|
39d69a |
+ "851", /* 851 */
|
|
|
39d69a |
+ "852", /* 852 */
|
|
|
39d69a |
+ "853", /* 853 */
|
|
|
39d69a |
+ "854", /* 854 */
|
|
|
39d69a |
+ "855", /* 855 */
|
|
|
39d69a |
+ "856", /* 856 */
|
|
|
39d69a |
+ "857", /* 857 */
|
|
|
39d69a |
+ "858", /* 858 */
|
|
|
39d69a |
+ "859", /* 859 */
|
|
|
39d69a |
+ "860", /* 860 */
|
|
|
39d69a |
+ "861", /* 861 */
|
|
|
39d69a |
+ "862", /* 862 */
|
|
|
39d69a |
+ "863", /* 863 */
|
|
|
39d69a |
+ "864", /* 864 */
|
|
|
39d69a |
+ "865", /* 865 */
|
|
|
39d69a |
+ "866", /* 866 */
|
|
|
39d69a |
+ "867", /* 867 */
|
|
|
39d69a |
+ "868", /* 868 */
|
|
|
39d69a |
+ "869", /* 869 */
|
|
|
39d69a |
+ "870", /* 870 */
|
|
|
39d69a |
+ "871", /* 871 */
|
|
|
39d69a |
+ "872", /* 872 */
|
|
|
39d69a |
+ "873", /* 873 */
|
|
|
39d69a |
+ "874", /* 874 */
|
|
|
39d69a |
+ "875", /* 875 */
|
|
|
39d69a |
+ "876", /* 876 */
|
|
|
39d69a |
+ "877", /* 877 */
|
|
|
39d69a |
+ "878", /* 878 */
|
|
|
39d69a |
+ "879", /* 879 */
|
|
|
39d69a |
+ "880", /* 880 */
|
|
|
39d69a |
+ "881", /* 881 */
|
|
|
39d69a |
+ "882", /* 882 */
|
|
|
39d69a |
+ "883", /* 883 */
|
|
|
39d69a |
+ "884", /* 884 */
|
|
|
39d69a |
+ "885", /* 885 */
|
|
|
39d69a |
+ "886", /* 886 */
|
|
|
39d69a |
+ "887", /* 887 */
|
|
|
39d69a |
+ "888", /* 888 */
|
|
|
39d69a |
+ "889", /* 889 */
|
|
|
39d69a |
+ "890", /* 890 */
|
|
|
39d69a |
+ "891", /* 891 */
|
|
|
39d69a |
+ "892", /* 892 */
|
|
|
39d69a |
+ "893", /* 893 */
|
|
|
39d69a |
+ "894", /* 894 */
|
|
|
39d69a |
+ "895", /* 895 */
|
|
|
39d69a |
+ "896", /* 896 */
|
|
|
39d69a |
+ "897", /* 897 */
|
|
|
39d69a |
+ "898", /* 898 */
|
|
|
39d69a |
+ "899", /* 899 */
|
|
|
39d69a |
+ "900", /* 900 */
|
|
|
39d69a |
+ "901", /* 901 */
|
|
|
39d69a |
+ "902", /* 902 */
|
|
|
39d69a |
+ "903", /* 903 */
|
|
|
39d69a |
+ "904", /* 904 */
|
|
|
39d69a |
+ "905", /* 905 */
|
|
|
39d69a |
+ "906", /* 906 */
|
|
|
39d69a |
+ "907", /* 907 */
|
|
|
39d69a |
+ "908", /* 908 */
|
|
|
39d69a |
+ "909", /* 909 */
|
|
|
39d69a |
+ "910", /* 910 */
|
|
|
39d69a |
+ "911", /* 911 */
|
|
|
39d69a |
+ "912", /* 912 */
|
|
|
39d69a |
+ "913", /* 913 */
|
|
|
39d69a |
+ "914", /* 914 */
|
|
|
39d69a |
+ "915", /* 915 */
|
|
|
39d69a |
+ "916", /* 916 */
|
|
|
39d69a |
+ "917", /* 917 */
|
|
|
39d69a |
+ "918", /* 918 */
|
|
|
39d69a |
+ "919", /* 919 */
|
|
|
39d69a |
+ "920", /* 920 */
|
|
|
39d69a |
+ "921", /* 921 */
|
|
|
39d69a |
+ "922", /* 922 */
|
|
|
39d69a |
+ "923", /* 923 */
|
|
|
39d69a |
+ "924", /* 924 */
|
|
|
39d69a |
+ "925", /* 925 */
|
|
|
39d69a |
+ "926", /* 926 */
|
|
|
39d69a |
+ "927", /* 927 */
|
|
|
39d69a |
+ "928", /* 928 */
|
|
|
39d69a |
+ "929", /* 929 */
|
|
|
39d69a |
+ "930", /* 930 */
|
|
|
39d69a |
+ "931", /* 931 */
|
|
|
39d69a |
+ "932", /* 932 */
|
|
|
39d69a |
+ "933", /* 933 */
|
|
|
39d69a |
+ "934", /* 934 */
|
|
|
39d69a |
+ "935", /* 935 */
|
|
|
39d69a |
+ "936", /* 936 */
|
|
|
39d69a |
+ "937", /* 937 */
|
|
|
39d69a |
+ "938", /* 938 */
|
|
|
39d69a |
+ "939", /* 939 */
|
|
|
39d69a |
+ "940", /* 940 */
|
|
|
39d69a |
+ "941", /* 941 */
|
|
|
39d69a |
+ "942", /* 942 */
|
|
|
39d69a |
+ "943", /* 943 */
|
|
|
39d69a |
+ "944", /* 944 */
|
|
|
39d69a |
+ "945", /* 945 */
|
|
|
39d69a |
+ "946", /* 946 */
|
|
|
39d69a |
+ "947", /* 947 */
|
|
|
39d69a |
+ "948", /* 948 */
|
|
|
39d69a |
+ "949", /* 949 */
|
|
|
39d69a |
+ "950", /* 950 */
|
|
|
39d69a |
+ "951", /* 951 */
|
|
|
39d69a |
+ "952", /* 952 */
|
|
|
39d69a |
+ "953", /* 953 */
|
|
|
39d69a |
+ "954", /* 954 */
|
|
|
39d69a |
+ "955", /* 955 */
|
|
|
39d69a |
+ "956", /* 956 */
|
|
|
39d69a |
+ "957", /* 957 */
|
|
|
39d69a |
+ "958", /* 958 */
|
|
|
39d69a |
+ "959", /* 959 */
|
|
|
39d69a |
+ "960", /* 960 */
|
|
|
39d69a |
+ "961", /* 961 */
|
|
|
39d69a |
+ "962", /* 962 */
|
|
|
39d69a |
+ "963", /* 963 */
|
|
|
39d69a |
+ "964", /* 964 */
|
|
|
39d69a |
+ "965", /* 965 */
|
|
|
39d69a |
+ "966", /* 966 */
|
|
|
39d69a |
+ "967", /* 967 */
|
|
|
39d69a |
+ "968", /* 968 */
|
|
|
39d69a |
+ "969", /* 969 */
|
|
|
39d69a |
+ "970", /* 970 */
|
|
|
39d69a |
+ "971", /* 971 */
|
|
|
39d69a |
+ "972", /* 972 */
|
|
|
39d69a |
+ "973", /* 973 */
|
|
|
39d69a |
+ "974", /* 974 */
|
|
|
39d69a |
+ "975", /* 975 */
|
|
|
39d69a |
+ "976", /* 976 */
|
|
|
39d69a |
+ "977", /* 977 */
|
|
|
39d69a |
+ "978", /* 978 */
|
|
|
39d69a |
+ "979", /* 979 */
|
|
|
39d69a |
+ "980", /* 980 */
|
|
|
39d69a |
+ "981", /* 981 */
|
|
|
39d69a |
+ "982", /* 982 */
|
|
|
39d69a |
+ "983", /* 983 */
|
|
|
39d69a |
+ "984", /* 984 */
|
|
|
39d69a |
+ "985", /* 985 */
|
|
|
39d69a |
+ "986", /* 986 */
|
|
|
39d69a |
+ "987", /* 987 */
|
|
|
39d69a |
+ "988", /* 988 */
|
|
|
39d69a |
+ "989", /* 989 */
|
|
|
39d69a |
+ "990", /* 990 */
|
|
|
39d69a |
+ "991", /* 991 */
|
|
|
39d69a |
+ "992", /* 992 */
|
|
|
39d69a |
+ "993", /* 993 */
|
|
|
39d69a |
+ "994", /* 994 */
|
|
|
39d69a |
+ "995", /* 995 */
|
|
|
39d69a |
+ "996", /* 996 */
|
|
|
39d69a |
+ "997", /* 997 */
|
|
|
39d69a |
+ "998", /* 998 */
|
|
|
39d69a |
+ "999", /* 999 */
|
|
|
39d69a |
+ "1000", /* 1000 */
|
|
|
39d69a |
+ "1001", /* 1001 */
|
|
|
39d69a |
+ "1002", /* 1002 */
|
|
|
39d69a |
+ "1003", /* 1003 */
|
|
|
39d69a |
+ "1004", /* 1004 */
|
|
|
39d69a |
+ "1005", /* 1005 */
|
|
|
39d69a |
+ "1006", /* 1006 */
|
|
|
39d69a |
+ "1007", /* 1007 */
|
|
|
39d69a |
+ "1008", /* 1008 */
|
|
|
39d69a |
+ "1009", /* 1009 */
|
|
|
39d69a |
+ "1010", /* 1010 */
|
|
|
39d69a |
+ "1011", /* 1011 */
|
|
|
39d69a |
+ "1012", /* 1012 */
|
|
|
39d69a |
+ "1013", /* 1013 */
|
|
|
39d69a |
+ "1014", /* 1014 */
|
|
|
39d69a |
+ "1015", /* 1015 */
|
|
|
39d69a |
+ "1016", /* 1016 */
|
|
|
39d69a |
+ "1017", /* 1017 */
|
|
|
39d69a |
+ "1018", /* 1018 */
|
|
|
39d69a |
+ "1019", /* 1019 */
|
|
|
39d69a |
+ "1020", /* 1020 */
|
|
|
39d69a |
+ "1021", /* 1021 */
|
|
|
39d69a |
+ "1022", /* 1022 */
|
|
|
39d69a |
+ "1023", /* 1023 */
|
|
|
39d69a |
+ "open", /* 1024 */
|
|
|
39d69a |
+ "link", /* 1025 */
|
|
|
39d69a |
+ "unlink", /* 1026 */
|
|
|
39d69a |
+ "mknod", /* 1027 */
|
|
|
39d69a |
+ "chmod", /* 1028 */
|
|
|
39d69a |
+ "chown", /* 1029 */
|
|
|
39d69a |
+ "mkdir", /* 1030 */
|
|
|
39d69a |
+ "rmdir", /* 1031 */
|
|
|
39d69a |
+ "lchown", /* 1032 */
|
|
|
39d69a |
+ "access", /* 1033 */
|
|
|
39d69a |
+ "rename", /* 1034 */
|
|
|
39d69a |
+ "readlink", /* 1035 */
|
|
|
39d69a |
+ "symlink", /* 1036 */
|
|
|
39d69a |
+ "utimes", /* 1037 */
|
|
|
39d69a |
+ "stat", /* 1038 */
|
|
|
39d69a |
+ "lstat", /* 1039 */
|
|
|
39d69a |
+ "pipe", /* 1040 */
|
|
|
39d69a |
+ "dup2", /* 1041 */
|
|
|
39d69a |
+ "epoll_create", /* 1042 */
|
|
|
39d69a |
+ "inotify_init", /* 1043 */
|
|
|
39d69a |
+ "eventfd", /* 1044 */
|
|
|
39d69a |
+ "signalfd", /* 1045 */
|
|
|
39d69a |
+ "sendfile", /* 1046 */
|
|
|
39d69a |
+ "ftruncate", /* 1047 */
|
|
|
39d69a |
+ "truncate", /* 1048 */
|
|
|
39d69a |
+ "stat", /* 1049 */
|
|
|
39d69a |
+ "lstat", /* 1050 */
|
|
|
39d69a |
+ "fstat", /* 1051 */
|
|
|
39d69a |
+ "fcntl", /* 1052 */
|
|
|
39d69a |
+ "fadvise64", /* 1053 */
|
|
|
39d69a |
+ "newfstatat", /* 1054 */
|
|
|
39d69a |
+ "fstatfs", /* 1055 */
|
|
|
39d69a |
+ "statfs", /* 1056 */
|
|
|
39d69a |
+ "lseek", /* 1057 */
|
|
|
39d69a |
+ "mmap", /* 1058 */
|
|
|
39d69a |
+ "alarm", /* 1059 */
|
|
|
39d69a |
+ "getpgrp", /* 1060 */
|
|
|
39d69a |
+ "pause", /* 1061 */
|
|
|
39d69a |
+ "time", /* 1062 */
|
|
|
39d69a |
+ "utime", /* 1063 */
|
|
|
39d69a |
+ "creat", /* 1064 */
|
|
|
39d69a |
+ "getdents", /* 1065 */
|
|
|
39d69a |
+ "futimesat", /* 1066 */
|
|
|
39d69a |
+ "select", /* 1067 */
|
|
|
39d69a |
+ "poll", /* 1068 */
|
|
|
39d69a |
+ "epoll_wait", /* 1069 */
|
|
|
39d69a |
+ "ustat", /* 1070 */
|
|
|
39d69a |
+ "vfork", /* 1071 */
|
|
|
39d69a |
+ "oldwait4", /* 1072 */
|
|
|
39d69a |
+ "recv", /* 1073 */
|
|
|
39d69a |
+ "send", /* 1074 */
|
|
|
39d69a |
+ "bdflush", /* 1075 */
|
|
|
39d69a |
+ "umount", /* 1076 */
|
|
|
39d69a |
+ "uselib", /* 1077 */
|
|
|
39d69a |
+ "_sysctl", /* 1078 */
|
|
|
39d69a |
+ "fork", /* 1079 */
|
|
|
39d69a |
diff --git a/sysdeps/linux-gnu/aarch64/trace.c b/sysdeps/linux-gnu/aarch64/trace.c
|
|
|
39d69a |
new file mode 100644
|
|
|
39d69a |
index 0000000..5544b51
|
|
|
39d69a |
--- /dev/null
|
|
|
39d69a |
+++ b/sysdeps/linux-gnu/aarch64/trace.c
|
|
|
39d69a |
@@ -0,0 +1,83 @@
|
|
|
39d69a |
+/*
|
|
|
39d69a |
+ * This file is part of ltrace.
|
|
|
39d69a |
+ * Copyright (C) 2014 Petr Machata, Red Hat, Inc.
|
|
|
39d69a |
+ *
|
|
|
39d69a |
+ * This program is free software; you can redistribute it and/or
|
|
|
39d69a |
+ * modify it under the terms of the GNU General Public License as
|
|
|
39d69a |
+ * published by the Free Software Foundation; either version 2 of the
|
|
|
39d69a |
+ * License, or (at your option) any later version.
|
|
|
39d69a |
+ *
|
|
|
39d69a |
+ * This program is distributed in the hope that it will be useful, but
|
|
|
39d69a |
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
39d69a |
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
39d69a |
+ * General Public License for more details.
|
|
|
39d69a |
+ *
|
|
|
39d69a |
+ * You should have received a copy of the GNU General Public License
|
|
|
39d69a |
+ * along with this program; if not, write to the Free Software
|
|
|
39d69a |
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
|
|
|
39d69a |
+ * 02110-1301 USA
|
|
|
39d69a |
+ */
|
|
|
39d69a |
+
|
|
|
39d69a |
+#include <sys/ptrace.h>
|
|
|
39d69a |
+#include <sys/types.h>
|
|
|
39d69a |
+#include <sys/wait.h>
|
|
|
39d69a |
+#include <asm/ptrace.h>
|
|
|
39d69a |
+#include <string.h>
|
|
|
39d69a |
+#include <errno.h>
|
|
|
39d69a |
+
|
|
|
39d69a |
+#include "backend.h"
|
|
|
39d69a |
+#include "proc.h"
|
|
|
39d69a |
+
|
|
|
39d69a |
+void
|
|
|
39d69a |
+get_arch_dep(struct process *proc)
|
|
|
39d69a |
+{
|
|
|
39d69a |
+}
|
|
|
39d69a |
+
|
|
|
39d69a |
+int aarch64_read_gregs(struct process *proc, struct user_pt_regs *regs);
|
|
|
39d69a |
+
|
|
|
39d69a |
+/* The syscall instruction is:
|
|
|
39d69a |
+ * | 31 21 | 20 5 | 4 0 |
|
|
|
39d69a |
+ * | 1 1 0 1 0 1 0 0 | 0 0 0 | imm16 | 0 0 0 0 1 | */
|
|
|
39d69a |
+#define SVC_MASK 0xffe0001f
|
|
|
39d69a |
+#define SVC_VALUE 0xd4000001
|
|
|
39d69a |
+
|
|
|
39d69a |
+int
|
|
|
39d69a |
+syscall_p(struct process *proc, int status, int *sysnum)
|
|
|
39d69a |
+{
|
|
|
39d69a |
+ if (WIFSTOPPED(status)
|
|
|
39d69a |
+ && WSTOPSIG(status) == (SIGTRAP | proc->tracesysgood)) {
|
|
|
39d69a |
+
|
|
|
39d69a |
+ struct user_pt_regs regs;
|
|
|
39d69a |
+ if (aarch64_read_gregs(proc, ®s) < 0) {
|
|
|
39d69a |
+ fprintf(stderr, "syscall_p: "
|
|
|
39d69a |
+ "Couldn't read registers of %d.\n", proc->pid);
|
|
|
39d69a |
+ return -1;
|
|
|
39d69a |
+ }
|
|
|
39d69a |
+
|
|
|
39d69a |
+ errno = 0;
|
|
|
39d69a |
+ unsigned long insn = (unsigned long) ptrace(PTRACE_PEEKTEXT,
|
|
|
39d69a |
+ proc->pid,
|
|
|
39d69a |
+ regs.pc - 4, 0);
|
|
|
39d69a |
+ if (insn == -1UL && errno != 0) {
|
|
|
39d69a |
+ fprintf(stderr, "syscall_p: "
|
|
|
39d69a |
+ "Couldn't peek into %d: %s\n", proc->pid,
|
|
|
39d69a |
+ strerror(errno));
|
|
|
39d69a |
+ return -1;
|
|
|
39d69a |
+ }
|
|
|
39d69a |
+
|
|
|
39d69a |
+ insn &= 0xffffffffUL;
|
|
|
39d69a |
+ if ((insn & SVC_MASK) == SVC_VALUE) {
|
|
|
39d69a |
+ *sysnum = regs.regs[8];
|
|
|
39d69a |
+
|
|
|
39d69a |
+ size_t d1 = proc->callstack_depth - 1;
|
|
|
39d69a |
+ if (proc->callstack_depth > 0
|
|
|
39d69a |
+ && proc->callstack[d1].is_syscall
|
|
|
39d69a |
+ && proc->callstack[d1].c_un.syscall == *sysnum)
|
|
|
39d69a |
+ return 2;
|
|
|
39d69a |
+
|
|
|
39d69a |
+ return 1;
|
|
|
39d69a |
+ }
|
|
|
39d69a |
+ }
|
|
|
39d69a |
+
|
|
|
39d69a |
+ return 0;
|
|
|
39d69a |
+}
|
|
|
39d69a |
diff --git a/testsuite/ltrace.main/system_call_params.exp b/testsuite/ltrace.main/system_call_params.exp
|
|
|
39d69a |
index 787e342..2ccf840 100644
|
|
|
39d69a |
--- a/testsuite/ltrace.main/system_call_params.exp
|
|
|
39d69a |
+++ b/testsuite/ltrace.main/system_call_params.exp
|
|
|
39d69a |
@@ -1,5 +1,5 @@
|
|
|
39d69a |
# This file is part of ltrace.
|
|
|
39d69a |
-# Copyright (C) 2013 Petr Machata, Red Hat Inc.
|
|
|
39d69a |
+# Copyright (C) 2013, 2014 Petr Machata, Red Hat Inc.
|
|
|
39d69a |
#
|
|
|
39d69a |
# This program is free software; you can redistribute it and/or
|
|
|
39d69a |
# modify it under the terms of the GNU General Public License as
|
|
|
39d69a |
@@ -17,11 +17,25 @@
|
|
|
39d69a |
# 02110-1301 USA
|
|
|
39d69a |
|
|
|
39d69a |
set bin [ltraceCompile {} [ltraceSource c {
|
|
|
39d69a |
+ #define _GNU_SOURCE
|
|
|
39d69a |
#include <sys/types.h>
|
|
|
39d69a |
#include <sys/stat.h>
|
|
|
39d69a |
#include <fcntl.h>
|
|
|
39d69a |
+ #include <unistd.h>
|
|
|
39d69a |
+ #include <sys/syscall.h> /* For SYS_xxx definitions */
|
|
|
39d69a |
+
|
|
|
39d69a |
+ #ifndef SYS_open
|
|
|
39d69a |
+ # if defined(__aarch64__)
|
|
|
39d69a |
+ # /* Linux doesn't actually implement SYS_open on AArch64, but for merely
|
|
|
39d69a |
+ # * recording the syscall, it's fine. */
|
|
|
39d69a |
+ # define SYS_open 1024
|
|
|
39d69a |
+ # else
|
|
|
39d69a |
+ # error SYS_open not available.
|
|
|
39d69a |
+ # endif
|
|
|
39d69a |
+ #endif
|
|
|
39d69a |
+
|
|
|
39d69a |
int main(void) {
|
|
|
39d69a |
- open("/some/path", O_RDONLY);
|
|
|
39d69a |
+ syscall(SYS_open, "/some/path", O_RDONLY);
|
|
|
39d69a |
write(1, "something", 10);
|
|
|
39d69a |
mount("source", "target", "filesystemtype", 0, 0);
|
|
|
39d69a |
}
|
|
|
39d69a |
diff --git a/testsuite/ltrace.main/system_calls.c b/testsuite/ltrace.main/system_calls.c
|
|
|
39d69a |
deleted file mode 100644
|
|
|
39d69a |
index 7be3d04..0000000
|
|
|
39d69a |
--- a/testsuite/ltrace.main/system_calls.c
|
|
|
39d69a |
+++ /dev/null
|
|
|
39d69a |
@@ -1,68 +0,0 @@
|
|
|
39d69a |
-/* Ltrace Test : system_calls.c.
|
|
|
39d69a |
- Objectives : Verify that Ltrace can trace all the system calls in
|
|
|
39d69a |
- execution.
|
|
|
39d69a |
-
|
|
|
39d69a |
- You can add new system calls in it and add its verification in
|
|
|
39d69a |
- system_calls correspondingly.
|
|
|
39d69a |
-
|
|
|
39d69a |
- This file was written by Yao Qi <qiyao@cn.ibm.com>. */
|
|
|
39d69a |
-
|
|
|
39d69a |
-#include <stdio.h>
|
|
|
39d69a |
-#include <unistd.h>
|
|
|
39d69a |
-#include <sys/syscall.h>
|
|
|
39d69a |
-#include <sys/stat.h>
|
|
|
39d69a |
-#include <errno.h>
|
|
|
39d69a |
-
|
|
|
39d69a |
-void exit (int);
|
|
|
39d69a |
-
|
|
|
39d69a |
-#define BUF_SIZE 100
|
|
|
39d69a |
-
|
|
|
39d69a |
-int
|
|
|
39d69a |
-main ()
|
|
|
39d69a |
-{
|
|
|
39d69a |
- FILE* fp;
|
|
|
39d69a |
- char s[]="system_calls";
|
|
|
39d69a |
- char buffer[BUF_SIZE];
|
|
|
39d69a |
- struct stat state;
|
|
|
39d69a |
-
|
|
|
39d69a |
- /* SYS_open. */
|
|
|
39d69a |
- fp = fopen ("system_calls.tmp", "w");
|
|
|
39d69a |
- if (fp == NULL)
|
|
|
39d69a |
- {
|
|
|
39d69a |
- printf("Can not create system_calls.tmp\n");
|
|
|
39d69a |
- exit (0);
|
|
|
39d69a |
- }
|
|
|
39d69a |
- /* SYS_write. */
|
|
|
39d69a |
- fwrite(s, sizeof(s), 1, fp);
|
|
|
39d69a |
- /* SYS_lseek. */
|
|
|
39d69a |
- fseek (fp, 0, SEEK_CUR);
|
|
|
39d69a |
- /* SYS_read. */
|
|
|
39d69a |
- fread(buffer, sizeof(s), 1, fp);
|
|
|
39d69a |
- /* SYS_close. */
|
|
|
39d69a |
- fclose(fp);
|
|
|
39d69a |
-
|
|
|
39d69a |
- /* SYS_getcwd. */
|
|
|
39d69a |
- getcwd (buffer, BUF_SIZE);
|
|
|
39d69a |
- /* SYS_chdir. */
|
|
|
39d69a |
- chdir (".");
|
|
|
39d69a |
- /* SYS_symlink. */
|
|
|
39d69a |
- symlink ("system_calls.tmp", "system_calls.link");
|
|
|
39d69a |
- /* SYS_unlink. */
|
|
|
39d69a |
- remove("system_calls.link");
|
|
|
39d69a |
- /* SYS_rename. */
|
|
|
39d69a |
- rename ("system_calls.tmp", "system_calls.tmp1");
|
|
|
39d69a |
- /* SYS_stat. */
|
|
|
39d69a |
- stat ("system_calls.tmp", &state);
|
|
|
39d69a |
- /* SYS_access. */
|
|
|
39d69a |
- access ("system_calls.tmp", R_OK);
|
|
|
39d69a |
- remove("system_calls.tmp1");
|
|
|
39d69a |
-
|
|
|
39d69a |
- /* SYS_mkdir. */
|
|
|
39d69a |
- mkdir ("system_call_mkdir", 0777);
|
|
|
39d69a |
- /* SYS_rmdir. */
|
|
|
39d69a |
- rmdir ("system_call_mkdir");
|
|
|
39d69a |
-
|
|
|
39d69a |
- return 0;
|
|
|
39d69a |
-}
|
|
|
39d69a |
-
|
|
|
39d69a |
-
|
|
|
39d69a |
diff --git a/testsuite/ltrace.main/system_calls.exp b/testsuite/ltrace.main/system_calls.exp
|
|
|
39d69a |
index a74fa04..f60e319 100644
|
|
|
39d69a |
--- a/testsuite/ltrace.main/system_calls.exp
|
|
|
39d69a |
+++ b/testsuite/ltrace.main/system_calls.exp
|
|
|
39d69a |
@@ -1,67 +1,146 @@
|
|
|
39d69a |
-# This file was written by Yao Qi <qiyao@cn.ibm.com>.
|
|
|
39d69a |
+# This file is part of ltrace.
|
|
|
39d69a |
+# Copyright (C) 2014 Petr Machata, Red Hat Inc.
|
|
|
39d69a |
+# Copyright (C) 2006 Yao Qi <qiyao@cn.ibm.com>, IBM Corporation
|
|
|
39d69a |
+#
|
|
|
39d69a |
+# This program is free software; you can redistribute it and/or
|
|
|
39d69a |
+# modify it under the terms of the GNU General Public License as
|
|
|
39d69a |
+# published by the Free Software Foundation; either version 2 of the
|
|
|
39d69a |
+# License, or (at your option) any later version.
|
|
|
39d69a |
+#
|
|
|
39d69a |
+# This program is distributed in the hope that it will be useful, but
|
|
|
39d69a |
+# WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
39d69a |
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
39d69a |
+# General Public License for more details.
|
|
|
39d69a |
+#
|
|
|
39d69a |
+# You should have received a copy of the GNU General Public License
|
|
|
39d69a |
+# along with this program; if not, write to the Free Software
|
|
|
39d69a |
+# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
|
|
|
39d69a |
+# 02110-1301 USA
|
|
|
39d69a |
|
|
|
39d69a |
-set testfile "system_calls"
|
|
|
39d69a |
-set srcfile ${testfile}.c
|
|
|
39d69a |
-set binfile ${testfile}
|
|
|
39d69a |
+# Objectives: Verify that Ltrace can trace all the system calls in
|
|
|
39d69a |
+# execution. Note that this test is necessarily noisy. Dynamic
|
|
|
39d69a |
+# linker adds a bunch of system calls of its own.
|
|
|
39d69a |
|
|
|
39d69a |
+set empty [ltraceCompile {} [ltraceSource c {
|
|
|
39d69a |
+ int main (void) { return 0; }
|
|
|
39d69a |
+}]]
|
|
|
39d69a |
|
|
|
39d69a |
-verbose "compiling source file now....."
|
|
|
39d69a |
-# Build the shared libraries this test case needs.
|
|
|
39d69a |
-if { [ ltrace_compile "${srcdir}/${subdir}/${testfile}.c" "${objdir}/${subdir}/${binfile}" executable {debug} ] != "" } {
|
|
|
39d69a |
- send_user "Testcase compile failed, so all tests in this file will automatically fail.\n"
|
|
|
39d69a |
+set bin [ltraceCompile {} [ltraceSource c {
|
|
|
39d69a |
+ #include <stdio.h>
|
|
|
39d69a |
+ #include <unistd.h>
|
|
|
39d69a |
+ #include <sys/syscall.h>
|
|
|
39d69a |
+ #include <sys/stat.h>
|
|
|
39d69a |
+ #include <errno.h>
|
|
|
39d69a |
+ #include <stdlib.h>
|
|
|
39d69a |
+
|
|
|
39d69a |
+ int
|
|
|
39d69a |
+ main ()
|
|
|
39d69a |
+ {
|
|
|
39d69a |
+ FILE* fp;
|
|
|
39d69a |
+ char s[]="system_calls";
|
|
|
39d69a |
+ char buffer[1024];
|
|
|
39d69a |
+ struct stat state;
|
|
|
39d69a |
+
|
|
|
39d69a |
+ fp = fopen ("system_calls.tmp", "w");
|
|
|
39d69a |
+ if (fp == NULL)
|
|
|
39d69a |
+ {
|
|
|
39d69a |
+ printf("Can not create system_calls.tmp\n");
|
|
|
39d69a |
+ exit (0);
|
|
|
39d69a |
+ }
|
|
|
39d69a |
+ fwrite(s, sizeof(s), 1, fp);
|
|
|
39d69a |
+ fseek (fp, 0, SEEK_CUR);
|
|
|
39d69a |
+ fread(buffer, sizeof(s), 1, fp);
|
|
|
39d69a |
+ fclose(fp);
|
|
|
39d69a |
+
|
|
|
39d69a |
+ getcwd (buffer, sizeof buffer);
|
|
|
39d69a |
+ chdir (".");
|
|
|
39d69a |
+ symlink ("system_calls.tmp", "system_calls.link");
|
|
|
39d69a |
+ remove("system_calls.link");
|
|
|
39d69a |
+ rename ("system_calls.tmp", "system_calls.tmp1");
|
|
|
39d69a |
+ stat ("system_calls.tmp", &state);
|
|
|
39d69a |
+ access ("system_calls.tmp", R_OK);
|
|
|
39d69a |
+ remove("system_calls.tmp1");
|
|
|
39d69a |
+
|
|
|
39d69a |
+ mkdir ("system_call_mkdir", 0777);
|
|
|
39d69a |
+ rmdir ("system_call_mkdir");
|
|
|
39d69a |
+
|
|
|
39d69a |
+ return 0;
|
|
|
39d69a |
+ }
|
|
|
39d69a |
+}]]
|
|
|
39d69a |
+
|
|
|
39d69a |
+proc Calls {logfile} {
|
|
|
39d69a |
+ set fp [open $logfile]
|
|
|
39d69a |
+ set ret {}
|
|
|
39d69a |
+
|
|
|
39d69a |
+ while {[gets $fp line] >= 0} {
|
|
|
39d69a |
+ if [regexp -- {^[a-zA-Z0-9]*@SYS} $line] {
|
|
|
39d69a |
+ set call [lindex [split $line @] 0]
|
|
|
39d69a |
+ dict incr ret $call
|
|
|
39d69a |
+ }
|
|
|
39d69a |
+ }
|
|
|
39d69a |
+
|
|
|
39d69a |
+ close $fp
|
|
|
39d69a |
+ return $ret
|
|
|
39d69a |
+}
|
|
|
39d69a |
+
|
|
|
39d69a |
+proc GetDefault {d key def} {
|
|
|
39d69a |
+ if {[dict exists $d $key]} {
|
|
|
39d69a |
+ return [dict get $d $key]
|
|
|
39d69a |
+ } else {
|
|
|
39d69a |
+ return $def
|
|
|
39d69a |
+ }
|
|
|
39d69a |
}
|
|
|
39d69a |
|
|
|
39d69a |
-# set options for ltrace.
|
|
|
39d69a |
-ltrace_options "-S"
|
|
|
39d69a |
+proc Diff {d1 d2} {
|
|
|
39d69a |
+ set keys [lsort -unique [concat [dict keys $d1] [dict keys $d2]]]
|
|
|
39d69a |
+ set ret {}
|
|
|
39d69a |
+ foreach key $keys {
|
|
|
39d69a |
+ set n1 [GetDefault $d1 $key 0]
|
|
|
39d69a |
+ set n2 [GetDefault $d2 $key 0]
|
|
|
39d69a |
+ set sum [expr $n1 - $n2]
|
|
|
39d69a |
+ if {[expr $sum != 0]} {
|
|
|
39d69a |
+ dict set ret $key $sum
|
|
|
39d69a |
+ }
|
|
|
39d69a |
+ }
|
|
|
39d69a |
+ return $ret
|
|
|
39d69a |
+}
|
|
|
39d69a |
+
|
|
|
39d69a |
+proc Match {d patterns} {
|
|
|
39d69a |
+ foreach line $patterns {
|
|
|
39d69a |
+ set pattern [lindex $line 0]
|
|
|
39d69a |
+ set op [lindex $line 1]
|
|
|
39d69a |
+ set expect [lindex $line 2]
|
|
|
39d69a |
|
|
|
39d69a |
-#Run PUT for ltarce.
|
|
|
39d69a |
-set exec_output [ltrace_runtest $objdir/$subdir $objdir/$subdir/$binfile]
|
|
|
39d69a |
+ set count 0
|
|
|
39d69a |
+ foreach key [dict keys $d] {
|
|
|
39d69a |
+ if [regexp -- $pattern $key] {
|
|
|
39d69a |
+ incr count [dict get $d $key]
|
|
|
39d69a |
+ }
|
|
|
39d69a |
+ }
|
|
|
39d69a |
|
|
|
39d69a |
-#check the output of this program.
|
|
|
39d69a |
-verbose "ltrace runtest output: $exec_output\n"
|
|
|
39d69a |
+ set msgMain "$pattern was recorded $count times"
|
|
|
39d69a |
|
|
|
39d69a |
-if [regexp {ELF from incompatible architecture} $exec_output] {
|
|
|
39d69a |
- fail "32-bit ltrace can not perform on 64-bit PUTs and rebuild ltrace in 64 bit mode!"
|
|
|
39d69a |
- return
|
|
|
39d69a |
-} elseif [ regexp {Couldn't get .hash data} $exec_output ] {
|
|
|
39d69a |
- fail "Couldn't get .hash data!"
|
|
|
39d69a |
- return
|
|
|
39d69a |
+ if {[eval expr $count $op $expect]} {
|
|
|
39d69a |
+ pass $msgMain
|
|
|
39d69a |
+ } else {
|
|
|
39d69a |
+ fail "$msgMain, expected $op $expect"
|
|
|
39d69a |
+ }
|
|
|
39d69a |
+ }
|
|
|
39d69a |
}
|
|
|
39d69a |
|
|
|
39d69a |
+Match [Diff [Calls [ltraceRun -L -S -- $bin]] \
|
|
|
39d69a |
+ [Calls [ltraceRun -L -S -- $empty]]] {
|
|
|
39d69a |
+ { {^write$} == 1 }
|
|
|
39d69a |
+ { {^unlink(at)?$} >= 2 }
|
|
|
39d69a |
+ { {^open(at)?$} == 1 }
|
|
|
39d69a |
+ { {^(new|f)?stat(64)?$} == 1 }
|
|
|
39d69a |
+ { {^close$} == 1 }
|
|
|
39d69a |
+ { {^getcwd$} == 1 }
|
|
|
39d69a |
+ { {^chdir$} == 1 }
|
|
|
39d69a |
+ { {^symlink(at)?$} == 1 }
|
|
|
39d69a |
+ { {^f?access(at)?$} == 1 }
|
|
|
39d69a |
+ { {^rename(at)?$} == 1 }
|
|
|
39d69a |
+ { {^mkdir(at)?$} == 1 }
|
|
|
39d69a |
+}
|
|
|
39d69a |
|
|
|
39d69a |
-set pattern "^munmap@SYS"
|
|
|
39d69a |
-ltrace_verify_output ${objdir}/${subdir}/${testfile}.ltrace $pattern 2
|
|
|
39d69a |
-set pattern "^write@SYS"
|
|
|
39d69a |
-ltrace_verify_output ${objdir}/${subdir}/${testfile}.ltrace $pattern 1
|
|
|
39d69a |
-set pattern "^unlink@SYS"
|
|
|
39d69a |
-ltrace_verify_output ${objdir}/${subdir}/${testfile}.ltrace $pattern 1
|
|
|
39d69a |
-
|
|
|
39d69a |
-set pattern "^brk@SYS"
|
|
|
39d69a |
-ltrace_verify_output ${objdir}/${subdir}/${testfile}.ltrace $pattern 1
|
|
|
39d69a |
-set pattern "^open@SYS"
|
|
|
39d69a |
-ltrace_verify_output ${objdir}/${subdir}/${testfile}.ltrace $pattern 1
|
|
|
39d69a |
-set pattern "^(new)?fstat(64)?@SYS"
|
|
|
39d69a |
-ltrace_verify_output ${objdir}/${subdir}/${testfile}.ltrace $pattern 1 egrep
|
|
|
39d69a |
-set pattern "^(old_)?mmap2?@SYS"
|
|
|
39d69a |
-ltrace_verify_output ${objdir}/${subdir}/${testfile}.ltrace $pattern 1 egrep
|
|
|
39d69a |
-set pattern "^close@SYS"
|
|
|
39d69a |
-ltrace_verify_output ${objdir}/${subdir}/${testfile}.ltrace $pattern 1
|
|
|
39d69a |
-
|
|
|
39d69a |
-set pattern "^getcwd@SYS"
|
|
|
39d69a |
-ltrace_verify_output ${objdir}/${subdir}/${testfile}.ltrace $pattern 1
|
|
|
39d69a |
-set pattern "^chdir@SYS"
|
|
|
39d69a |
-ltrace_verify_output ${objdir}/${subdir}/${testfile}.ltrace $pattern 1
|
|
|
39d69a |
-set pattern "^symlink@SYS"
|
|
|
39d69a |
-ltrace_verify_output ${objdir}/${subdir}/${testfile}.ltrace $pattern 1
|
|
|
39d69a |
-set pattern "^unlink@SYS"
|
|
|
39d69a |
-ltrace_verify_output ${objdir}/${subdir}/${testfile}.ltrace $pattern 1
|
|
|
39d69a |
-set pattern "^(new)?stat(64)?@SYS"
|
|
|
39d69a |
-ltrace_verify_output ${objdir}/${subdir}/${testfile}.ltrace $pattern 1 egrep
|
|
|
39d69a |
-set pattern "^access@SYS"
|
|
|
39d69a |
-ltrace_verify_output ${objdir}/${subdir}/${testfile}.ltrace $pattern 1
|
|
|
39d69a |
-set pattern "^rename@SYS"
|
|
|
39d69a |
-ltrace_verify_output ${objdir}/${subdir}/${testfile}.ltrace $pattern 1
|
|
|
39d69a |
-set pattern "^mkdir@SYS"
|
|
|
39d69a |
-ltrace_verify_output ${objdir}/${subdir}/${testfile}.ltrace $pattern 1
|
|
|
39d69a |
-set pattern "^rmdir@SYS"
|
|
|
39d69a |
-ltrace_verify_output ${objdir}/${subdir}/${testfile}.ltrace $pattern 1
|
|
|
39d69a |
+ltraceDone
|
|
|
39d69a |
diff --git a/testsuite/ltrace.minor/trace-clone.c b/testsuite/ltrace.minor/trace-clone.c
|
|
|
39d69a |
index db1936d..ded930c 100644
|
|
|
39d69a |
--- a/testsuite/ltrace.minor/trace-clone.c
|
|
|
39d69a |
+++ b/testsuite/ltrace.minor/trace-clone.c
|
|
|
39d69a |
@@ -8,6 +8,7 @@
|
|
|
39d69a |
#include <sys/types.h>
|
|
|
39d69a |
#include <stdlib.h>
|
|
|
39d69a |
#include <sched.h>
|
|
|
39d69a |
+#include <unistd.h>
|
|
|
39d69a |
|
|
|
39d69a |
int child ()
|
|
|
39d69a |
{
|
|
|
39d69a |
@@ -22,7 +23,8 @@ typedef int (* myfunc)();
|
|
|
39d69a |
int main ()
|
|
|
39d69a |
{
|
|
|
39d69a |
pid_t pid;
|
|
|
39d69a |
- static char stack[STACK_SIZE];
|
|
|
39d69a |
+ static __attribute__ ((aligned (16))) char stack[STACK_SIZE];
|
|
|
39d69a |
+
|
|
|
39d69a |
#ifdef __ia64__
|
|
|
39d69a |
pid = __clone2((myfunc)&child, stack, STACK_SIZE, CLONE_FS, NULL);
|
|
|
39d69a |
#else
|