Merge tag 'platform-drivers-x86-v5.14-2' of git://git.kernel.org/pub/scm/linux/kernel...
[linux-2.6-microblaze.git] / tools / perf / arch / x86 / entry / syscalls / syscall_64.tbl
1 #
2 # 64-bit system call numbers and entry vectors
3 #
4 # The format is:
5 # <number> <abi> <name> <entry point>
6 #
7 # The __x64_sys_*() stubs are created on-the-fly for sys_*() system calls
8 #
9 # The abi is "common", "64" or "x32" for this file.
10 #
11 0       common  read                    sys_read
12 1       common  write                   sys_write
13 2       common  open                    sys_open
14 3       common  close                   sys_close
15 4       common  stat                    sys_newstat
16 5       common  fstat                   sys_newfstat
17 6       common  lstat                   sys_newlstat
18 7       common  poll                    sys_poll
19 8       common  lseek                   sys_lseek
20 9       common  mmap                    sys_mmap
21 10      common  mprotect                sys_mprotect
22 11      common  munmap                  sys_munmap
23 12      common  brk                     sys_brk
24 13      64      rt_sigaction            sys_rt_sigaction
25 14      common  rt_sigprocmask          sys_rt_sigprocmask
26 15      64      rt_sigreturn            sys_rt_sigreturn
27 16      64      ioctl                   sys_ioctl
28 17      common  pread64                 sys_pread64
29 18      common  pwrite64                sys_pwrite64
30 19      64      readv                   sys_readv
31 20      64      writev                  sys_writev
32 21      common  access                  sys_access
33 22      common  pipe                    sys_pipe
34 23      common  select                  sys_select
35 24      common  sched_yield             sys_sched_yield
36 25      common  mremap                  sys_mremap
37 26      common  msync                   sys_msync
38 27      common  mincore                 sys_mincore
39 28      common  madvise                 sys_madvise
40 29      common  shmget                  sys_shmget
41 30      common  shmat                   sys_shmat
42 31      common  shmctl                  sys_shmctl
43 32      common  dup                     sys_dup
44 33      common  dup2                    sys_dup2
45 34      common  pause                   sys_pause
46 35      common  nanosleep               sys_nanosleep
47 36      common  getitimer               sys_getitimer
48 37      common  alarm                   sys_alarm
49 38      common  setitimer               sys_setitimer
50 39      common  getpid                  sys_getpid
51 40      common  sendfile                sys_sendfile64
52 41      common  socket                  sys_socket
53 42      common  connect                 sys_connect
54 43      common  accept                  sys_accept
55 44      common  sendto                  sys_sendto
56 45      64      recvfrom                sys_recvfrom
57 46      64      sendmsg                 sys_sendmsg
58 47      64      recvmsg                 sys_recvmsg
59 48      common  shutdown                sys_shutdown
60 49      common  bind                    sys_bind
61 50      common  listen                  sys_listen
62 51      common  getsockname             sys_getsockname
63 52      common  getpeername             sys_getpeername
64 53      common  socketpair              sys_socketpair
65 54      64      setsockopt              sys_setsockopt
66 55      64      getsockopt              sys_getsockopt
67 56      common  clone                   sys_clone
68 57      common  fork                    sys_fork
69 58      common  vfork                   sys_vfork
70 59      64      execve                  sys_execve
71 60      common  exit                    sys_exit
72 61      common  wait4                   sys_wait4
73 62      common  kill                    sys_kill
74 63      common  uname                   sys_newuname
75 64      common  semget                  sys_semget
76 65      common  semop                   sys_semop
77 66      common  semctl                  sys_semctl
78 67      common  shmdt                   sys_shmdt
79 68      common  msgget                  sys_msgget
80 69      common  msgsnd                  sys_msgsnd
81 70      common  msgrcv                  sys_msgrcv
82 71      common  msgctl                  sys_msgctl
83 72      common  fcntl                   sys_fcntl
84 73      common  flock                   sys_flock
85 74      common  fsync                   sys_fsync
86 75      common  fdatasync               sys_fdatasync
87 76      common  truncate                sys_truncate
88 77      common  ftruncate               sys_ftruncate
89 78      common  getdents                sys_getdents
90 79      common  getcwd                  sys_getcwd
91 80      common  chdir                   sys_chdir
92 81      common  fchdir                  sys_fchdir
93 82      common  rename                  sys_rename
94 83      common  mkdir                   sys_mkdir
95 84      common  rmdir                   sys_rmdir
96 85      common  creat                   sys_creat
97 86      common  link                    sys_link
98 87      common  unlink                  sys_unlink
99 88      common  symlink                 sys_symlink
100 89      common  readlink                sys_readlink
101 90      common  chmod                   sys_chmod
102 91      common  fchmod                  sys_fchmod
103 92      common  chown                   sys_chown
104 93      common  fchown                  sys_fchown
105 94      common  lchown                  sys_lchown
106 95      common  umask                   sys_umask
107 96      common  gettimeofday            sys_gettimeofday
108 97      common  getrlimit               sys_getrlimit
109 98      common  getrusage               sys_getrusage
110 99      common  sysinfo                 sys_sysinfo
111 100     common  times                   sys_times
112 101     64      ptrace                  sys_ptrace
113 102     common  getuid                  sys_getuid
114 103     common  syslog                  sys_syslog
115 104     common  getgid                  sys_getgid
116 105     common  setuid                  sys_setuid
117 106     common  setgid                  sys_setgid
118 107     common  geteuid                 sys_geteuid
119 108     common  getegid                 sys_getegid
120 109     common  setpgid                 sys_setpgid
121 110     common  getppid                 sys_getppid
122 111     common  getpgrp                 sys_getpgrp
123 112     common  setsid                  sys_setsid
124 113     common  setreuid                sys_setreuid
125 114     common  setregid                sys_setregid
126 115     common  getgroups               sys_getgroups
127 116     common  setgroups               sys_setgroups
128 117     common  setresuid               sys_setresuid
129 118     common  getresuid               sys_getresuid
130 119     common  setresgid               sys_setresgid
131 120     common  getresgid               sys_getresgid
132 121     common  getpgid                 sys_getpgid
133 122     common  setfsuid                sys_setfsuid
134 123     common  setfsgid                sys_setfsgid
135 124     common  getsid                  sys_getsid
136 125     common  capget                  sys_capget
137 126     common  capset                  sys_capset
138 127     64      rt_sigpending           sys_rt_sigpending
139 128     64      rt_sigtimedwait         sys_rt_sigtimedwait
140 129     64      rt_sigqueueinfo         sys_rt_sigqueueinfo
141 130     common  rt_sigsuspend           sys_rt_sigsuspend
142 131     64      sigaltstack             sys_sigaltstack
143 132     common  utime                   sys_utime
144 133     common  mknod                   sys_mknod
145 134     64      uselib
146 135     common  personality             sys_personality
147 136     common  ustat                   sys_ustat
148 137     common  statfs                  sys_statfs
149 138     common  fstatfs                 sys_fstatfs
150 139     common  sysfs                   sys_sysfs
151 140     common  getpriority             sys_getpriority
152 141     common  setpriority             sys_setpriority
153 142     common  sched_setparam          sys_sched_setparam
154 143     common  sched_getparam          sys_sched_getparam
155 144     common  sched_setscheduler      sys_sched_setscheduler
156 145     common  sched_getscheduler      sys_sched_getscheduler
157 146     common  sched_get_priority_max  sys_sched_get_priority_max
158 147     common  sched_get_priority_min  sys_sched_get_priority_min
159 148     common  sched_rr_get_interval   sys_sched_rr_get_interval
160 149     common  mlock                   sys_mlock
161 150     common  munlock                 sys_munlock
162 151     common  mlockall                sys_mlockall
163 152     common  munlockall              sys_munlockall
164 153     common  vhangup                 sys_vhangup
165 154     common  modify_ldt              sys_modify_ldt
166 155     common  pivot_root              sys_pivot_root
167 156     64      _sysctl                 sys_ni_syscall
168 157     common  prctl                   sys_prctl
169 158     common  arch_prctl              sys_arch_prctl
170 159     common  adjtimex                sys_adjtimex
171 160     common  setrlimit               sys_setrlimit
172 161     common  chroot                  sys_chroot
173 162     common  sync                    sys_sync
174 163     common  acct                    sys_acct
175 164     common  settimeofday            sys_settimeofday
176 165     common  mount                   sys_mount
177 166     common  umount2                 sys_umount
178 167     common  swapon                  sys_swapon
179 168     common  swapoff                 sys_swapoff
180 169     common  reboot                  sys_reboot
181 170     common  sethostname             sys_sethostname
182 171     common  setdomainname           sys_setdomainname
183 172     common  iopl                    sys_iopl
184 173     common  ioperm                  sys_ioperm
185 174     64      create_module
186 175     common  init_module             sys_init_module
187 176     common  delete_module           sys_delete_module
188 177     64      get_kernel_syms
189 178     64      query_module
190 179     common  quotactl                sys_quotactl
191 180     64      nfsservctl
192 181     common  getpmsg
193 182     common  putpmsg
194 183     common  afs_syscall
195 184     common  tuxcall
196 185     common  security
197 186     common  gettid                  sys_gettid
198 187     common  readahead               sys_readahead
199 188     common  setxattr                sys_setxattr
200 189     common  lsetxattr               sys_lsetxattr
201 190     common  fsetxattr               sys_fsetxattr
202 191     common  getxattr                sys_getxattr
203 192     common  lgetxattr               sys_lgetxattr
204 193     common  fgetxattr               sys_fgetxattr
205 194     common  listxattr               sys_listxattr
206 195     common  llistxattr              sys_llistxattr
207 196     common  flistxattr              sys_flistxattr
208 197     common  removexattr             sys_removexattr
209 198     common  lremovexattr            sys_lremovexattr
210 199     common  fremovexattr            sys_fremovexattr
211 200     common  tkill                   sys_tkill
212 201     common  time                    sys_time
213 202     common  futex                   sys_futex
214 203     common  sched_setaffinity       sys_sched_setaffinity
215 204     common  sched_getaffinity       sys_sched_getaffinity
216 205     64      set_thread_area
217 206     64      io_setup                sys_io_setup
218 207     common  io_destroy              sys_io_destroy
219 208     common  io_getevents            sys_io_getevents
220 209     64      io_submit               sys_io_submit
221 210     common  io_cancel               sys_io_cancel
222 211     64      get_thread_area
223 212     common  lookup_dcookie          sys_lookup_dcookie
224 213     common  epoll_create            sys_epoll_create
225 214     64      epoll_ctl_old
226 215     64      epoll_wait_old
227 216     common  remap_file_pages        sys_remap_file_pages
228 217     common  getdents64              sys_getdents64
229 218     common  set_tid_address         sys_set_tid_address
230 219     common  restart_syscall         sys_restart_syscall
231 220     common  semtimedop              sys_semtimedop
232 221     common  fadvise64               sys_fadvise64
233 222     64      timer_create            sys_timer_create
234 223     common  timer_settime           sys_timer_settime
235 224     common  timer_gettime           sys_timer_gettime
236 225     common  timer_getoverrun        sys_timer_getoverrun
237 226     common  timer_delete            sys_timer_delete
238 227     common  clock_settime           sys_clock_settime
239 228     common  clock_gettime           sys_clock_gettime
240 229     common  clock_getres            sys_clock_getres
241 230     common  clock_nanosleep         sys_clock_nanosleep
242 231     common  exit_group              sys_exit_group
243 232     common  epoll_wait              sys_epoll_wait
244 233     common  epoll_ctl               sys_epoll_ctl
245 234     common  tgkill                  sys_tgkill
246 235     common  utimes                  sys_utimes
247 236     64      vserver
248 237     common  mbind                   sys_mbind
249 238     common  set_mempolicy           sys_set_mempolicy
250 239     common  get_mempolicy           sys_get_mempolicy
251 240     common  mq_open                 sys_mq_open
252 241     common  mq_unlink               sys_mq_unlink
253 242     common  mq_timedsend            sys_mq_timedsend
254 243     common  mq_timedreceive         sys_mq_timedreceive
255 244     64      mq_notify               sys_mq_notify
256 245     common  mq_getsetattr           sys_mq_getsetattr
257 246     64      kexec_load              sys_kexec_load
258 247     64      waitid                  sys_waitid
259 248     common  add_key                 sys_add_key
260 249     common  request_key             sys_request_key
261 250     common  keyctl                  sys_keyctl
262 251     common  ioprio_set              sys_ioprio_set
263 252     common  ioprio_get              sys_ioprio_get
264 253     common  inotify_init            sys_inotify_init
265 254     common  inotify_add_watch       sys_inotify_add_watch
266 255     common  inotify_rm_watch        sys_inotify_rm_watch
267 256     common  migrate_pages           sys_migrate_pages
268 257     common  openat                  sys_openat
269 258     common  mkdirat                 sys_mkdirat
270 259     common  mknodat                 sys_mknodat
271 260     common  fchownat                sys_fchownat
272 261     common  futimesat               sys_futimesat
273 262     common  newfstatat              sys_newfstatat
274 263     common  unlinkat                sys_unlinkat
275 264     common  renameat                sys_renameat
276 265     common  linkat                  sys_linkat
277 266     common  symlinkat               sys_symlinkat
278 267     common  readlinkat              sys_readlinkat
279 268     common  fchmodat                sys_fchmodat
280 269     common  faccessat               sys_faccessat
281 270     common  pselect6                sys_pselect6
282 271     common  ppoll                   sys_ppoll
283 272     common  unshare                 sys_unshare
284 273     64      set_robust_list         sys_set_robust_list
285 274     64      get_robust_list         sys_get_robust_list
286 275     common  splice                  sys_splice
287 276     common  tee                     sys_tee
288 277     common  sync_file_range         sys_sync_file_range
289 278     64      vmsplice                sys_vmsplice
290 279     64      move_pages              sys_move_pages
291 280     common  utimensat               sys_utimensat
292 281     common  epoll_pwait             sys_epoll_pwait
293 282     common  signalfd                sys_signalfd
294 283     common  timerfd_create          sys_timerfd_create
295 284     common  eventfd                 sys_eventfd
296 285     common  fallocate               sys_fallocate
297 286     common  timerfd_settime         sys_timerfd_settime
298 287     common  timerfd_gettime         sys_timerfd_gettime
299 288     common  accept4                 sys_accept4
300 289     common  signalfd4               sys_signalfd4
301 290     common  eventfd2                sys_eventfd2
302 291     common  epoll_create1           sys_epoll_create1
303 292     common  dup3                    sys_dup3
304 293     common  pipe2                   sys_pipe2
305 294     common  inotify_init1           sys_inotify_init1
306 295     64      preadv                  sys_preadv
307 296     64      pwritev                 sys_pwritev
308 297     64      rt_tgsigqueueinfo       sys_rt_tgsigqueueinfo
309 298     common  perf_event_open         sys_perf_event_open
310 299     64      recvmmsg                sys_recvmmsg
311 300     common  fanotify_init           sys_fanotify_init
312 301     common  fanotify_mark           sys_fanotify_mark
313 302     common  prlimit64               sys_prlimit64
314 303     common  name_to_handle_at       sys_name_to_handle_at
315 304     common  open_by_handle_at       sys_open_by_handle_at
316 305     common  clock_adjtime           sys_clock_adjtime
317 306     common  syncfs                  sys_syncfs
318 307     64      sendmmsg                sys_sendmmsg
319 308     common  setns                   sys_setns
320 309     common  getcpu                  sys_getcpu
321 310     64      process_vm_readv        sys_process_vm_readv
322 311     64      process_vm_writev       sys_process_vm_writev
323 312     common  kcmp                    sys_kcmp
324 313     common  finit_module            sys_finit_module
325 314     common  sched_setattr           sys_sched_setattr
326 315     common  sched_getattr           sys_sched_getattr
327 316     common  renameat2               sys_renameat2
328 317     common  seccomp                 sys_seccomp
329 318     common  getrandom               sys_getrandom
330 319     common  memfd_create            sys_memfd_create
331 320     common  kexec_file_load         sys_kexec_file_load
332 321     common  bpf                     sys_bpf
333 322     64      execveat                sys_execveat
334 323     common  userfaultfd             sys_userfaultfd
335 324     common  membarrier              sys_membarrier
336 325     common  mlock2                  sys_mlock2
337 326     common  copy_file_range         sys_copy_file_range
338 327     64      preadv2                 sys_preadv2
339 328     64      pwritev2                sys_pwritev2
340 329     common  pkey_mprotect           sys_pkey_mprotect
341 330     common  pkey_alloc              sys_pkey_alloc
342 331     common  pkey_free               sys_pkey_free
343 332     common  statx                   sys_statx
344 333     common  io_pgetevents           sys_io_pgetevents
345 334     common  rseq                    sys_rseq
346 # don't use numbers 387 through 423, add new calls after the last
347 # 'common' entry
348 424     common  pidfd_send_signal       sys_pidfd_send_signal
349 425     common  io_uring_setup          sys_io_uring_setup
350 426     common  io_uring_enter          sys_io_uring_enter
351 427     common  io_uring_register       sys_io_uring_register
352 428     common  open_tree               sys_open_tree
353 429     common  move_mount              sys_move_mount
354 430     common  fsopen                  sys_fsopen
355 431     common  fsconfig                sys_fsconfig
356 432     common  fsmount                 sys_fsmount
357 433     common  fspick                  sys_fspick
358 434     common  pidfd_open              sys_pidfd_open
359 435     common  clone3                  sys_clone3
360 436     common  close_range             sys_close_range
361 437     common  openat2                 sys_openat2
362 438     common  pidfd_getfd             sys_pidfd_getfd
363 439     common  faccessat2              sys_faccessat2
364 440     common  process_madvise         sys_process_madvise
365 441     common  epoll_pwait2            sys_epoll_pwait2
366 442     common  mount_setattr           sys_mount_setattr
367 443     common  quotactl_fd             sys_quotactl_fd
368 444     common  landlock_create_ruleset sys_landlock_create_ruleset
369 445     common  landlock_add_rule       sys_landlock_add_rule
370 446     common  landlock_restrict_self  sys_landlock_restrict_self
371 447     common  memfd_secret            sys_memfd_secret
372
373 #
374 # Due to a historical design error, certain syscalls are numbered differently
375 # in x32 as compared to native x86_64.  These syscalls have numbers 512-547.
376 # Do not add new syscalls to this range.  Numbers 548 and above are available
377 # for non-x32 use.
378 #
379 512     x32     rt_sigaction            compat_sys_rt_sigaction
380 513     x32     rt_sigreturn            compat_sys_x32_rt_sigreturn
381 514     x32     ioctl                   compat_sys_ioctl
382 515     x32     readv                   sys_readv
383 516     x32     writev                  sys_writev
384 517     x32     recvfrom                compat_sys_recvfrom
385 518     x32     sendmsg                 compat_sys_sendmsg
386 519     x32     recvmsg                 compat_sys_recvmsg
387 520     x32     execve                  compat_sys_execve
388 521     x32     ptrace                  compat_sys_ptrace
389 522     x32     rt_sigpending           compat_sys_rt_sigpending
390 523     x32     rt_sigtimedwait         compat_sys_rt_sigtimedwait_time64
391 524     x32     rt_sigqueueinfo         compat_sys_rt_sigqueueinfo
392 525     x32     sigaltstack             compat_sys_sigaltstack
393 526     x32     timer_create            compat_sys_timer_create
394 527     x32     mq_notify               compat_sys_mq_notify
395 528     x32     kexec_load              compat_sys_kexec_load
396 529     x32     waitid                  compat_sys_waitid
397 530     x32     set_robust_list         compat_sys_set_robust_list
398 531     x32     get_robust_list         compat_sys_get_robust_list
399 532     x32     vmsplice                sys_vmsplice
400 533     x32     move_pages              compat_sys_move_pages
401 534     x32     preadv                  compat_sys_preadv64
402 535     x32     pwritev                 compat_sys_pwritev64
403 536     x32     rt_tgsigqueueinfo       compat_sys_rt_tgsigqueueinfo
404 537     x32     recvmmsg                compat_sys_recvmmsg_time64
405 538     x32     sendmmsg                compat_sys_sendmmsg
406 539     x32     process_vm_readv        sys_process_vm_readv
407 540     x32     process_vm_writev       sys_process_vm_writev
408 541     x32     setsockopt              sys_setsockopt
409 542     x32     getsockopt              sys_getsockopt
410 543     x32     io_setup                compat_sys_io_setup
411 544     x32     io_submit               compat_sys_io_submit
412 545     x32     execveat                compat_sys_execveat
413 546     x32     preadv2                 compat_sys_preadv64v2
414 547     x32     pwritev2                compat_sys_pwritev64v2
415 # This is the end of the legacy x32 range.  Numbers 548 and above are
416 # not special and are not to be used for x32-specific syscalls.