Initial commit of OpenSPARC T2 architecture model.
[OpenSPARC-T2-SAM] / sam-t2 / sam / analyzers / trapcount / sc_strings.h
CommitLineData
920dae64
AT
1/*
2* ========== Copyright Header Begin ==========================================
3*
4* OpenSPARC T2 Processor File: sc_strings.h
5* Copyright (c) 2006 Sun Microsystems, Inc. All Rights Reserved.
6* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES.
7*
8* The above named program is free software; you can redistribute it and/or
9* modify it under the terms of the GNU General Public
10* License version 2 as published by the Free Software Foundation.
11*
12* The above named program is distributed in the hope that it will be
13* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
14* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15* General Public License for more details.
16*
17* You should have received a copy of the GNU General Public
18* License along with this work; if not, write to the Free Software
19* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
20*
21* ========== Copyright Header End ============================================
22*/
23#ifndef _SYSCALLSTRINGS_H
24#define _SYSCALLSTRINGS_H
25
26
27#ifdef __cplusplus
28extern "C" {
29#endif
30
31//
32// for syscall the SPARC ABI uses:
33// "Tcc always,0x08", which hardware translates to 0x108, for 32-bit ABI
34// and "Tcc always,0x40", which hardware translates to 0x140, for 64-bit ABI
35// and %g1 to hold the syscall number.
36//
37//
38//
39// the following is derived from "/usr/include/sys/syscall.h"
40//
41const char * sc_names [256] = {
42 "syscall", /* 0 */
43 "exit", /* 1 */
44 "fork", /* 2 */
45 "read", /* 3 */
46 "write", /* 4 */
47 "open", /* 5 */
48 "close", /* 6 */
49 "wait", /* 7 */
50 "creat", /* 8 */
51 "link", /* 9 */
52 "unlink", /* 10 */
53 "exec", /* 11 */
54 "chdir", /* 12 */
55 "time", /* 13 */
56 "mknod", /* 14 */
57 "chmod", /* 15 */
58 "chown", /* 16 */
59 "brk", /* 17 */
60 "stat", /* 18 */
61 "lseek", /* 19 */
62 "getpid", /* 20 */
63 "mount", /* 21 */
64 "umount", /* 22 */
65 "setuid", /* 23 */
66 "getuid", /* 24 */
67 "stime", /* 25 */
68 "pcsample", /* 26 */
69 "alarm", /* 27 */
70 "fstat", /* 28 */
71 "pause", /* 29 */
72 "utime", /* 30 */
73 "stty", /* 31 */
74 "gtty", /* 32 */
75 "access", /* 33 */
76 "nice", /* 34 */
77 "statfs", /* 35 */
78 "sync", /* 36 */
79 "kill", /* 37 */
80 "fstatfs", /* 38 */
81 "pgrpsys-", /* 39 */
82 "xenix-", /* 40 */
83 "dup", /* 41 */
84 "pipe", /* 42 */
85 "times", /* 43 */
86 "profil", /* 44 */
87 "plock", /* 45 */
88 "setgid", /* 46 */
89 "getgid", /* 47 */
90 "signal-", /* 48 */
91 "msgsys-", /* 49 */
92 "syssun", /* 50 */
93 "acct", /* 51 */
94 "shmsys-", /* 52 */
95 "semsys-", /* 53 */
96 "ioctl", /* 54 */
97 "uadmin", /* 55 */
98 "reserved_56", /* 56 */
99 "utssys-", /* 57 */
100 "fdsync", /* 58 */
101 "execve", /* 59 */
102 "umask", /* 60 */
103 "chroot", /* 61 */
104 "fcntl", /* 62 */
105 "ulimit", /* 63 */
106 "reserved_64", /* 64 */
107 "reserved_65", /* 65 */
108 "reserved_66", /* 66 */
109 "reserved_67", /* 67 */
110 "reserved_68", /* 68 */
111 "reserved_69", /* 69 */
112 "tasksys-", /* 70 */
113 "acctctl", /* 71 */
114 "exacctsys-", /* 72 */
115 "getpagesizes", /* 73 */
116 "rctlsys-", /* 74 */
117 "issetugid", /* 75 */
118 "fsat-", /* 76 */
119 "lwp_park-", /* 77 */
120 "sendfilev-", /* 78 */
121 "rmdir", /* 79 */
122 "mkdir", /* 80 */
123 "getdents", /* 81 */
124 "reserved_82", /* 82 */
125 "reserved_83", /* 83 */
126 "sysfs-", /* 84 */
127 "getmsg", /* 85 */
128 "putmsg", /* 86 */
129 "poll", /* 87 */
130 "lstat", /* 88 */
131 "symlink", /* 89 */
132 "readlink", /* 90 */
133 "setgroups", /* 91 */
134 "getgroups", /* 92 */
135 "fchmod", /* 93 */
136 "fchown", /* 94 */
137 "sigprocmask", /* 95 */
138 "sigsuspend", /* 96 */
139 "sigaltstack", /* 97 */
140 "sigaction", /* 98 */
141 "sigpending-", /* 99 */
142 "context-", /* 100 */
143 "evsys", /* 101 */
144 "evtrapret", /* 102 */
145 "statvfs", /* 103 */
146 "fstatvfs", /* 104 */
147 "getloadavg", /* 105 */
148 "nfssys", /* 106 */
149 "waitsys", /* 107 */
150 "sigsendsys", /* 108 */
151 "hrtsys", /* 109 */
152 "acancel", /* 110 */
153 "async", /* 111 */
154 "priocntlsys", /* 112 */
155 "pathconf", /* 113 */
156 "mincore", /* 114 */
157 "mmap", /* 115 */
158 "mprotect", /* 116 */
159 "munmap", /* 117 */
160 "fpathconf", /* 118 */
161 "vfork", /* 119 */
162 "fchdir", /* 120 */
163 "readv", /* 121 */
164 "writev", /* 122 */
165 "xstat", /* 123 */
166 "lxstat", /* 124 */
167 "fxstat", /* 125 */
168 "xmknod", /* 126 */
169 "clocal", /* 127 */
170 "setrlimit", /* 128 */
171 "getrlimit", /* 129 */
172 "lchown", /* 130 */
173 "memcntl", /* 131 */
174 "getpmsg", /* 132 */
175 "putpmsg", /* 133 */
176 "rename", /* 134 */
177 "uname", /* 135 */
178 "setegid", /* 136 */
179 "sysconfig", /* 137 */
180 "adjtime", /* 138 */
181 "systeminfo", /* 139 */
182 "reserved_140", /* 140 */
183 "seteuid", /* 141 */
184 "vtrace", /* 142 */
185 "fork1", /* 143 */
186 "sigtimedwait", /* 144 */
187 "lwp_info", /* 145 */
188 "yield", /* 146 */
189 "lwp_sema_wait", /* 147 */
190 "lwp_sema_post", /* 148 */
191 "lwp_sema_trywait", /* 149 */
192 "lwp_detach", /* 150 */
193 "corectl", /* 151 */
194 "modctl", /* 152 */
195 "fchroot", /* 153 */
196 "utimes", /* 154 */
197 "vhangup", /* 155 */
198 "gettimeofday", /* 156 */
199 "getitimer", /* 157 */
200 "setitimer", /* 158 */
201 "lwp_create", /* 159 */
202 "lwp_exit", /* 160 */
203 "lwp_suspend", /* 161 */
204 "lwp_continue", /* 162 */
205 "lwp_kill", /* 163 */
206 "lwp_self", /* 164 */
207 "lwp_setprivate", /* 165 */
208 "lwp_getprivate", /* 166 */
209 "lwp_wait", /* 167 */
210 "lwp_mutex_wakeup", /* 168 */
211 "lwp_mutex_lock", /* 169 */
212 "lwp_cond_wait", /* 170 */
213 "lwp_cond_signal", /* 171 */
214 "lwp_cond_broadcast", /* 172 */
215 "pread", /* 173 */
216 "pwrite", /* 174 */
217 "llseek", /* 175 */
218 "inst_sync", /* 176 */
219 "srmlimitsys", /* 177 */
220 "kaio-", /* 178 */
221 "cpc", /* 179 */
222 "meminfosys-", /* 180 */
223 "reserved_181", /* 181 */
224 "reserved_182", /* 182 */
225 "reserved_183", /* 183 */
226 "tsolsys", /* 184 */
227 "acl", /* 185 */
228 "auditsys", /* 186 */
229 "processor_bind", /* 187 */
230 "processor_info", /* 188 */
231 "p_online", /* 189 */
232 "sigqueue", /* 190 */
233 "clock_gettime", /* 191 */
234 "clock_settime", /* 192 */
235 "clock_getres", /* 193 */
236 "timer_create", /* 194 */
237 "timer_delete", /* 195 */
238 "timer_settime", /* 196 */
239 "timer_gettime", /* 197 */
240 "timer_getoverrun", /* 198 */
241 "nanosleep", /* 199 */
242 "facl", /* 200 */
243 "door-", /* 201 */
244 "setreuid", /* 202 */
245 "setregid", /* 203 */
246 "install_utrap", /* 204 */
247 "signotify", /* 205 */
248 "schedctl", /* 206 */
249 "pset", /* 207 */
250 "sparc_utrap_install", /* 208 */
251 "resolvepath", /* 209 */
252 "signotifywait", /* 210 */
253 "lwp_sigredirect", /* 211 */
254 "lwp_alarm", /* 212 */
255 "getdents64", /* 213 */
256 "mmap64", /* 214 */
257 "stat64", /* 215 */
258 "lstat64", /* 216 */
259 "fstat64", /* 217 */
260 "statvfs64", /* 218 */
261 "fstatvfs64", /* 219 */
262 "setrlimit64", /* 220 */
263 "getrlimit64", /* 221 */
264 "pread64", /* 222 */
265 "pwrite64", /* 223 */
266 "creat64", /* 224 */
267 "open64", /* 225 */
268 "rpcsys", /* 226 */
269 "reserved_227", /* 227 */
270 "reserved_228", /* 228 */
271 "reserved_229", /* 229 */
272 "so_socket", /* 230 */
273 "so_socketpair", /* 231 */
274 "bind", /* 232 */
275 "listen", /* 233 */
276 "accept", /* 234 */
277 "connect", /* 235 */
278 "shutdown", /* 236 */
279 "recv", /* 237 */
280 "recvfrom", /* 238 */
281 "recvmsg", /* 239 */
282 "send", /* 240 */
283 "sendmsg", /* 241 */
284 "sendto", /* 242 */
285 "getpeername", /* 243 */
286 "getsockname", /* 244 */
287 "getsockopt", /* 245 */
288 "setsockopt", /* 246 */
289 "sockconfig", /* 247 */
290 "ntp_gettime", /* 248 */
291 "ntp_adjtime", /* 249 */
292 "lwp_mutex_unlock", /* 250 */
293 "lwp_mutex_trylock", /* 251 */
294 "lwp_mutex_init", /* 252 */
295 "cladm", /* 253 */
296 "lwp_sigtimedwait", /* 254 */
297 "umount2", /* 255 */
298};
299
300
301
302#ifdef __cplusplus
303}
304#endif
305
306#endif /* _SYSCALLSTRINGS_H */