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