1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
|
ripped from fedora and hacked a bit
http://bugs.gentoo.org/229229
diff -up strace-4.5.16/linux/sparc/syscallent.h.BAD strace-4.5.16/linux/sparc/syscallent.h
--- strace-4.5.16/linux/sparc/syscallent.h.BAD 2008-03-26 10:09:47.000000000 -0500
+++ strace-4.5.16/linux/sparc/syscallent.h 2008-03-26 11:43:34.000000000 -0500
@@ -23,7 +23,7 @@
{ 2, 0, sys_capset, "capset" }, /* 22 */
{ 1, 0, sys_setuid, "setuid" }, /* 23 */
{ 0, 0, sys_getuid, "getuid" }, /* 24 */
- { 1, 0, sys_time, "time" }, /* 25 */
+ { 1, 0, printargs, "vmsplice" }, /* 25 */
{ 5, 0, sys_ptrace, "ptrace" }, /* 26 */
{ 1, 0, sys_alarm, "alarm" }, /* 27 */
{ 2, TS, sys_sigaltstack,"sigaltstack" }, /* 28 */
@@ -65,8 +65,8 @@
{ 0, 0, sys_getpagesize,"getpagesize" }, /* 64 */
{ 3, 0, sys_msync, "msync" }, /* 65 */
{ 0, TP, sys_vfork, "vfork" }, /* 66 */
- { 5, TD, sys_pread, "pread" }, /* 67 */
- { 5, TD, sys_pwrite, "pwrite" }, /* 68 */
+ { 5, TD, sys_pread, "pread64" }, /* 67 */
+ { 5, TD, sys_pwrite, "pwrite64" }, /* 68 */
{ 0, 0, sys_geteuid, "geteuid32" }, /* 69 */
{ 0, 0, sys_getegid, "getegid32" }, /* 70 */
{ 6, 0, sys_mmap, "mmap" }, /* 71 */
@@ -149,12 +149,12 @@
{ 5, 0, printargs, "pciconfig_read" }, /* 148 */
{ 5, 0, printargs, "pciconfig_write" }, /* 149 */
{ 3, TN, sys_getsockname,"getsockname" }, /* 150 */
- { 4, TN, sys_getmsg, "getmsg" }, /* 151 */
- { 4, TN, sys_putmsg, "putmsg" }, /* 152 */
+ { 0, TD, printargs, "inotify_init" }, /* 151 */
+ { 3, TD, sys_inotify_add_watch, "inotify_add_watch" },/* 152 */
{ 3, TD, sys_poll, "poll" }, /* 153 */
{ 4, TD, sys_getdents64, "getdents64" }, /* 154 */
{ 3, TD, sys_fcntl, "fcntl64" }, /* 155 */
- { 4, 0, printargs, "getdirentries" }, /* 156 */
+ { 2, TD, sys_inotify_rm_watch, "inotify_rm_watch" },/* 156 */
{ 2, TF, sys_statfs, "statfs" }, /* 157 */
{ 2, TD, sys_fstatfs, "fstatfs" }, /* 158 */
{ 1, TF, sys_umount, "oldumount" }, /* 159 */
@@ -194,13 +194,13 @@
{ 1, 0, sys_epoll_create,"epoll_create" }, /* 193 */
{ 4, TD, sys_epoll_ctl, "epoll_ctl" }, /* 194 */
{ 4, TD, sys_epoll_wait, "epoll_wait" }, /* 195 */
- { 2, 0, sys_ulimit, "ulimit" }, /* 196 */
+ { 3, 0, printargs, "ioprio_set"}, /* 196 */
{ 0, 0, sys_getppid, "getppid" }, /* 197 */
{ 3, TS, sys_sigaction, "sigaction" }, /* 198 */
{ 5, 0, printargs, "sgetmask" }, /* 199 */
{ 5, 0, printargs, "ssetmask" }, /* 200 */
{ 3, TS, sys_sigsuspend, "sigsuspend" }, /* 201 */
- { 2, TF, sys_lstat, "lstat" }, /* 202 */
+ { 2, TF, sys_oldlstat, "oldlstat" }, /* 202 */
{ 1, TF, sys_uselib, "uselib" }, /* 203 */
{ 3, TD, sys_readdir, "readdir" }, /* 204 */
{ 4, TD, sys_readahead, "readahead" }, /* 205 */
@@ -216,7 +216,7 @@
{ 5, 0, sys_ipc, "ipc" }, /* 215 */
{ 1, TS, sys_sigreturn, "sigreturn" }, /* 216 */
{ 5, TP, sys_clone, "clone" }, /* 217 */
- { 3, 0, sys_modify_ldt, "modify_ldt" }, /* 218 */
+ { 2, 0, printargs, "ioprio_get" }, /* 218 */
{ 1, 0, sys_adjtimex, "adjtimex" }, /* 219 */
{ 3, TS, sys_sigprocmask,"sigprocmask" }, /* 220 */
{ 2, 0, sys_create_module,"create_module" }, /* 221 */
@@ -228,9 +228,9 @@
{ 5, 0, sys_afs_syscall,"afs_syscall" }, /* 227 */
{ 1, 0, sys_setfsuid, "setfsuid" }, /* 228 */
{ 1, 0, sys_setfsgid, "setfsgid" }, /* 229 */
- { 5, TD, sys_select, "select" }, /* 230 */
+ { 5, TD, sys_select, "_newselect" }, /* 230 */
{ 1, 0, sys_time, "time" }, /* 231 */
- { 2, TF, sys_stat, "stat" }, /* 232 */
+ { 6, TD, printargs, "splice" }, /* 232 */
{ 1, 0, sys_stime, "stime" }, /* 233 */
{ 3, TF, sys_statfs64, "statfs64" }, /* 234 */
{ 3, TD, sys_fstatfs64, "fstatfs64" }, /* 235 */
@@ -253,7 +253,7 @@
{ 1, 0, sys_getsid, "getsid" }, /* 252 */
{ 1, TD, sys_fdatasync, "fdatasync" }, /* 253 */
{ 3, 0, printargs, "nfsservctl" }, /* 254 */
- { 5, 0, printargs, "aplib" }, /* 255 */
+ { 4, TD, printargs, "sync_file_range" }, /* 255 */
{ 2, 0, sys_clock_settime,"clock_settime" }, /* 256 */
{ 2, 0, sys_clock_gettime,"clock_gettime" }, /* 257 */
{ 2, 0, sys_clock_getres,"clock_getres" }, /* 258 */
@@ -300,18 +300,18 @@
{ 1, TP, sys_unshare, "unshare" }, /* 299 */
{ 2, 0, printargs, "set_robust_list" }, /* 300 */
{ 3, 0, printargs, "get_robust_list" }, /* 301 */
- { 5, 0, printargs, "SYS_302" }, /* 302 */
- { 5, 0, printargs, "SYS_303" }, /* 303 */
- { 5, 0, printargs, "SYS_304" }, /* 304 */
- { 5, 0, printargs, "SYS_305" }, /* 305 */
- { 5, 0, printargs, "SYS_306" }, /* 306 */
- { 6, 0, sys_move_pages, "move_pages" }, /* 307 */
- { 3, 0, sys_getcpu, "getcpu" }, /* 308 */
- { 5, TD, sys_epoll_pwait,"epoll_pwait" }, /* 309 */
- { 5, 0, printargs, "SYS_310" }, /* 310 */
- { 3, TD|TS, sys_signalfd, "signalfd"}, /* 311 */
- { 4, TD, sys_timerfd, "timerfd" }, /* 312 */
- { 1, TD, sys_eventfd, "eventfd" }, /* 313 */
+ { 4, 0, printargs, "migrate_pages" }, /* 302 */
+ { 6, 0, sys_mbind, "mbind" }, /* 303 */
+ { 5, 0, sys_get_mempolicy, "get_mempolicy" }, /* 304 */
+ { 3, 0, sys_set_mempolicy, "set_mempolicy" }, /* 305 */
+ { 5, 0, printargs, "kexec_load" }, /* 306 */
+ { 6, 0, sys_move_pages, "move_pages" }, /* 307 */
+ { 3, 0, sys_getcpu, "getcpu" }, /* 308 */
+ { 5, TD, sys_epoll_pwait, "epoll_pwait" },/* 309 */
+ { 4, TD|TF, sys_utimensat, "utimensat"}, /* 310 */
+ { 3, TD|TS, sys_signalfd, "signalfd"}, /* 311 */
+ { 4, TD, sys_timerfd, "timerfd" }, /* 312 */
+ { 1, TD, sys_eventfd, "eventfd" }, /* 313 */
{ 5, 0, printargs, "SYS_314" }, /* 314 */
{ 5, 0, printargs, "SYS_315" }, /* 315 */
{ 5, 0, printargs, "SYS_316" }, /* 316 */
diff -up strace-4.5.16/linux/sparc/syscall.h.BAD strace-4.5.16/linux/sparc/syscall.h
--- strace-4.5.16/linux/sparc/syscall.h.BAD 2008-03-26 12:00:19.000000000 -0500
+++ strace-4.5.16/linux/sparc/syscall.h 2008-03-26 12:00:07.000000000 -0500
@@ -203,6 +203,9 @@ int sys_fstatfs64(), sys_clock_settime()
int sys_clock_getres(), sys_clock_nanosleep();
int sys_timer_create(), sys_timer_settime(), sys_timer_gettime();
+int sys_inotify_add_watch(), sys_inotify_rm_watch(), sys_oldlstat();
+int sys_mbind(), sys_get_mempolicy(), sys_set_mempolicy();
+int sys_utimensat();
int sys_io_setup(), sys_io_destroy(), sys_io_submit(), sys_io_cancel(), sys_io_getevents();
int sys_mq_open(), sys_mq_unlink(), sys_mq_timedsend(), sys_mq_timedreceive(), sys_mq_notify(), sys_mq_getsetattr();
int sys_waitid();
diff -up strace-4.5.16/defs.h.BAD strace-4.5.16/defs.h
--- strace-4.5.16/defs.h.BAD 2008-03-26 11:49:08.000000000 -0500
+++ strace-4.5.16/defs.h 2008-03-26 11:49:30.000000000 -0500
@@ -192,8 +192,7 @@ extern int ptrace();
#define DEFAULT_PERSONALITY 0
#ifdef LINUXSPARC
-#include <linux/a.out.h>
-#include <asm/psr.h>
+#include <asm/a.out.h>
#define PERSONALITY0_WORDSIZE 4
#define PERSONALITY1_WORDSIZE 4
#undef SUPPORTED_PERSONALITIES
@@ -201,6 +200,7 @@ extern int ptrace();
#define SUPPORTED_PERSONALITIES 3
#define PERSONALITY2_WORDSIZE 8
#else
+#include <asm/psr.h>
#define SUPPORTED_PERSONALITIES 2
#endif /* SPARC64 */
#endif /* LINUXSPARC */
|