xref: /linux/tools/perf/arch/x86/entry/syscalls/syscall_64.tbl (revision da1d9caf95def6f0320819cf941c9fd1069ba9e1)
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#
110	common	read			sys_read
121	common	write			sys_write
132	common	open			sys_open
143	common	close			sys_close
154	common	stat			sys_newstat
165	common	fstat			sys_newfstat
176	common	lstat			sys_newlstat
187	common	poll			sys_poll
198	common	lseek			sys_lseek
209	common	mmap			sys_mmap
2110	common	mprotect		sys_mprotect
2211	common	munmap			sys_munmap
2312	common	brk			sys_brk
2413	64	rt_sigaction		sys_rt_sigaction
2514	common	rt_sigprocmask		sys_rt_sigprocmask
2615	64	rt_sigreturn		sys_rt_sigreturn
2716	64	ioctl			sys_ioctl
2817	common	pread64			sys_pread64
2918	common	pwrite64		sys_pwrite64
3019	64	readv			sys_readv
3120	64	writev			sys_writev
3221	common	access			sys_access
3322	common	pipe			sys_pipe
3423	common	select			sys_select
3524	common	sched_yield		sys_sched_yield
3625	common	mremap			sys_mremap
3726	common	msync			sys_msync
3827	common	mincore			sys_mincore
3928	common	madvise			sys_madvise
4029	common	shmget			sys_shmget
4130	common	shmat			sys_shmat
4231	common	shmctl			sys_shmctl
4332	common	dup			sys_dup
4433	common	dup2			sys_dup2
4534	common	pause			sys_pause
4635	common	nanosleep		sys_nanosleep
4736	common	getitimer		sys_getitimer
4837	common	alarm			sys_alarm
4938	common	setitimer		sys_setitimer
5039	common	getpid			sys_getpid
5140	common	sendfile		sys_sendfile64
5241	common	socket			sys_socket
5342	common	connect			sys_connect
5443	common	accept			sys_accept
5544	common	sendto			sys_sendto
5645	64	recvfrom		sys_recvfrom
5746	64	sendmsg			sys_sendmsg
5847	64	recvmsg			sys_recvmsg
5948	common	shutdown		sys_shutdown
6049	common	bind			sys_bind
6150	common	listen			sys_listen
6251	common	getsockname		sys_getsockname
6352	common	getpeername		sys_getpeername
6453	common	socketpair		sys_socketpair
6554	64	setsockopt		sys_setsockopt
6655	64	getsockopt		sys_getsockopt
6756	common	clone			sys_clone
6857	common	fork			sys_fork
6958	common	vfork			sys_vfork
7059	64	execve			sys_execve
7160	common	exit			sys_exit
7261	common	wait4			sys_wait4
7362	common	kill			sys_kill
7463	common	uname			sys_newuname
7564	common	semget			sys_semget
7665	common	semop			sys_semop
7766	common	semctl			sys_semctl
7867	common	shmdt			sys_shmdt
7968	common	msgget			sys_msgget
8069	common	msgsnd			sys_msgsnd
8170	common	msgrcv			sys_msgrcv
8271	common	msgctl			sys_msgctl
8372	common	fcntl			sys_fcntl
8473	common	flock			sys_flock
8574	common	fsync			sys_fsync
8675	common	fdatasync		sys_fdatasync
8776	common	truncate		sys_truncate
8877	common	ftruncate		sys_ftruncate
8978	common	getdents		sys_getdents
9079	common	getcwd			sys_getcwd
9180	common	chdir			sys_chdir
9281	common	fchdir			sys_fchdir
9382	common	rename			sys_rename
9483	common	mkdir			sys_mkdir
9584	common	rmdir			sys_rmdir
9685	common	creat			sys_creat
9786	common	link			sys_link
9887	common	unlink			sys_unlink
9988	common	symlink			sys_symlink
10089	common	readlink		sys_readlink
10190	common	chmod			sys_chmod
10291	common	fchmod			sys_fchmod
10392	common	chown			sys_chown
10493	common	fchown			sys_fchown
10594	common	lchown			sys_lchown
10695	common	umask			sys_umask
10796	common	gettimeofday		sys_gettimeofday
10897	common	getrlimit		sys_getrlimit
10998	common	getrusage		sys_getrusage
11099	common	sysinfo			sys_sysinfo
111100	common	times			sys_times
112101	64	ptrace			sys_ptrace
113102	common	getuid			sys_getuid
114103	common	syslog			sys_syslog
115104	common	getgid			sys_getgid
116105	common	setuid			sys_setuid
117106	common	setgid			sys_setgid
118107	common	geteuid			sys_geteuid
119108	common	getegid			sys_getegid
120109	common	setpgid			sys_setpgid
121110	common	getppid			sys_getppid
122111	common	getpgrp			sys_getpgrp
123112	common	setsid			sys_setsid
124113	common	setreuid		sys_setreuid
125114	common	setregid		sys_setregid
126115	common	getgroups		sys_getgroups
127116	common	setgroups		sys_setgroups
128117	common	setresuid		sys_setresuid
129118	common	getresuid		sys_getresuid
130119	common	setresgid		sys_setresgid
131120	common	getresgid		sys_getresgid
132121	common	getpgid			sys_getpgid
133122	common	setfsuid		sys_setfsuid
134123	common	setfsgid		sys_setfsgid
135124	common	getsid			sys_getsid
136125	common	capget			sys_capget
137126	common	capset			sys_capset
138127	64	rt_sigpending		sys_rt_sigpending
139128	64	rt_sigtimedwait		sys_rt_sigtimedwait
140129	64	rt_sigqueueinfo		sys_rt_sigqueueinfo
141130	common	rt_sigsuspend		sys_rt_sigsuspend
142131	64	sigaltstack		sys_sigaltstack
143132	common	utime			sys_utime
144133	common	mknod			sys_mknod
145134	64	uselib
146135	common	personality		sys_personality
147136	common	ustat			sys_ustat
148137	common	statfs			sys_statfs
149138	common	fstatfs			sys_fstatfs
150139	common	sysfs			sys_sysfs
151140	common	getpriority		sys_getpriority
152141	common	setpriority		sys_setpriority
153142	common	sched_setparam		sys_sched_setparam
154143	common	sched_getparam		sys_sched_getparam
155144	common	sched_setscheduler	sys_sched_setscheduler
156145	common	sched_getscheduler	sys_sched_getscheduler
157146	common	sched_get_priority_max	sys_sched_get_priority_max
158147	common	sched_get_priority_min	sys_sched_get_priority_min
159148	common	sched_rr_get_interval	sys_sched_rr_get_interval
160149	common	mlock			sys_mlock
161150	common	munlock			sys_munlock
162151	common	mlockall		sys_mlockall
163152	common	munlockall		sys_munlockall
164153	common	vhangup			sys_vhangup
165154	common	modify_ldt		sys_modify_ldt
166155	common	pivot_root		sys_pivot_root
167156	64	_sysctl			sys_ni_syscall
168157	common	prctl			sys_prctl
169158	common	arch_prctl		sys_arch_prctl
170159	common	adjtimex		sys_adjtimex
171160	common	setrlimit		sys_setrlimit
172161	common	chroot			sys_chroot
173162	common	sync			sys_sync
174163	common	acct			sys_acct
175164	common	settimeofday		sys_settimeofday
176165	common	mount			sys_mount
177166	common	umount2			sys_umount
178167	common	swapon			sys_swapon
179168	common	swapoff			sys_swapoff
180169	common	reboot			sys_reboot
181170	common	sethostname		sys_sethostname
182171	common	setdomainname		sys_setdomainname
183172	common	iopl			sys_iopl
184173	common	ioperm			sys_ioperm
185174	64	create_module
186175	common	init_module		sys_init_module
187176	common	delete_module		sys_delete_module
188177	64	get_kernel_syms
189178	64	query_module
190179	common	quotactl		sys_quotactl
191180	64	nfsservctl
192181	common	getpmsg
193182	common	putpmsg
194183	common	afs_syscall
195184	common	tuxcall
196185	common	security
197186	common	gettid			sys_gettid
198187	common	readahead		sys_readahead
199188	common	setxattr		sys_setxattr
200189	common	lsetxattr		sys_lsetxattr
201190	common	fsetxattr		sys_fsetxattr
202191	common	getxattr		sys_getxattr
203192	common	lgetxattr		sys_lgetxattr
204193	common	fgetxattr		sys_fgetxattr
205194	common	listxattr		sys_listxattr
206195	common	llistxattr		sys_llistxattr
207196	common	flistxattr		sys_flistxattr
208197	common	removexattr		sys_removexattr
209198	common	lremovexattr		sys_lremovexattr
210199	common	fremovexattr		sys_fremovexattr
211200	common	tkill			sys_tkill
212201	common	time			sys_time
213202	common	futex			sys_futex
214203	common	sched_setaffinity	sys_sched_setaffinity
215204	common	sched_getaffinity	sys_sched_getaffinity
216205	64	set_thread_area
217206	64	io_setup		sys_io_setup
218207	common	io_destroy		sys_io_destroy
219208	common	io_getevents		sys_io_getevents
220209	64	io_submit		sys_io_submit
221210	common	io_cancel		sys_io_cancel
222211	64	get_thread_area
223212	common	lookup_dcookie		sys_lookup_dcookie
224213	common	epoll_create		sys_epoll_create
225214	64	epoll_ctl_old
226215	64	epoll_wait_old
227216	common	remap_file_pages	sys_remap_file_pages
228217	common	getdents64		sys_getdents64
229218	common	set_tid_address		sys_set_tid_address
230219	common	restart_syscall		sys_restart_syscall
231220	common	semtimedop		sys_semtimedop
232221	common	fadvise64		sys_fadvise64
233222	64	timer_create		sys_timer_create
234223	common	timer_settime		sys_timer_settime
235224	common	timer_gettime		sys_timer_gettime
236225	common	timer_getoverrun	sys_timer_getoverrun
237226	common	timer_delete		sys_timer_delete
238227	common	clock_settime		sys_clock_settime
239228	common	clock_gettime		sys_clock_gettime
240229	common	clock_getres		sys_clock_getres
241230	common	clock_nanosleep		sys_clock_nanosleep
242231	common	exit_group		sys_exit_group
243232	common	epoll_wait		sys_epoll_wait
244233	common	epoll_ctl		sys_epoll_ctl
245234	common	tgkill			sys_tgkill
246235	common	utimes			sys_utimes
247236	64	vserver
248237	common	mbind			sys_mbind
249238	common	set_mempolicy		sys_set_mempolicy
250239	common	get_mempolicy		sys_get_mempolicy
251240	common	mq_open			sys_mq_open
252241	common	mq_unlink		sys_mq_unlink
253242	common	mq_timedsend		sys_mq_timedsend
254243	common	mq_timedreceive		sys_mq_timedreceive
255244	64	mq_notify		sys_mq_notify
256245	common	mq_getsetattr		sys_mq_getsetattr
257246	64	kexec_load		sys_kexec_load
258247	64	waitid			sys_waitid
259248	common	add_key			sys_add_key
260249	common	request_key		sys_request_key
261250	common	keyctl			sys_keyctl
262251	common	ioprio_set		sys_ioprio_set
263252	common	ioprio_get		sys_ioprio_get
264253	common	inotify_init		sys_inotify_init
265254	common	inotify_add_watch	sys_inotify_add_watch
266255	common	inotify_rm_watch	sys_inotify_rm_watch
267256	common	migrate_pages		sys_migrate_pages
268257	common	openat			sys_openat
269258	common	mkdirat			sys_mkdirat
270259	common	mknodat			sys_mknodat
271260	common	fchownat		sys_fchownat
272261	common	futimesat		sys_futimesat
273262	common	newfstatat		sys_newfstatat
274263	common	unlinkat		sys_unlinkat
275264	common	renameat		sys_renameat
276265	common	linkat			sys_linkat
277266	common	symlinkat		sys_symlinkat
278267	common	readlinkat		sys_readlinkat
279268	common	fchmodat		sys_fchmodat
280269	common	faccessat		sys_faccessat
281270	common	pselect6		sys_pselect6
282271	common	ppoll			sys_ppoll
283272	common	unshare			sys_unshare
284273	64	set_robust_list		sys_set_robust_list
285274	64	get_robust_list		sys_get_robust_list
286275	common	splice			sys_splice
287276	common	tee			sys_tee
288277	common	sync_file_range		sys_sync_file_range
289278	64	vmsplice		sys_vmsplice
290279	64	move_pages		sys_move_pages
291280	common	utimensat		sys_utimensat
292281	common	epoll_pwait		sys_epoll_pwait
293282	common	signalfd		sys_signalfd
294283	common	timerfd_create		sys_timerfd_create
295284	common	eventfd			sys_eventfd
296285	common	fallocate		sys_fallocate
297286	common	timerfd_settime		sys_timerfd_settime
298287	common	timerfd_gettime		sys_timerfd_gettime
299288	common	accept4			sys_accept4
300289	common	signalfd4		sys_signalfd4
301290	common	eventfd2		sys_eventfd2
302291	common	epoll_create1		sys_epoll_create1
303292	common	dup3			sys_dup3
304293	common	pipe2			sys_pipe2
305294	common	inotify_init1		sys_inotify_init1
306295	64	preadv			sys_preadv
307296	64	pwritev			sys_pwritev
308297	64	rt_tgsigqueueinfo	sys_rt_tgsigqueueinfo
309298	common	perf_event_open		sys_perf_event_open
310299	64	recvmmsg		sys_recvmmsg
311300	common	fanotify_init		sys_fanotify_init
312301	common	fanotify_mark		sys_fanotify_mark
313302	common	prlimit64		sys_prlimit64
314303	common	name_to_handle_at	sys_name_to_handle_at
315304	common	open_by_handle_at	sys_open_by_handle_at
316305	common	clock_adjtime		sys_clock_adjtime
317306	common	syncfs			sys_syncfs
318307	64	sendmmsg		sys_sendmmsg
319308	common	setns			sys_setns
320309	common	getcpu			sys_getcpu
321310	64	process_vm_readv	sys_process_vm_readv
322311	64	process_vm_writev	sys_process_vm_writev
323312	common	kcmp			sys_kcmp
324313	common	finit_module		sys_finit_module
325314	common	sched_setattr		sys_sched_setattr
326315	common	sched_getattr		sys_sched_getattr
327316	common	renameat2		sys_renameat2
328317	common	seccomp			sys_seccomp
329318	common	getrandom		sys_getrandom
330319	common	memfd_create		sys_memfd_create
331320	common	kexec_file_load		sys_kexec_file_load
332321	common	bpf			sys_bpf
333322	64	execveat		sys_execveat
334323	common	userfaultfd		sys_userfaultfd
335324	common	membarrier		sys_membarrier
336325	common	mlock2			sys_mlock2
337326	common	copy_file_range		sys_copy_file_range
338327	64	preadv2			sys_preadv2
339328	64	pwritev2		sys_pwritev2
340329	common	pkey_mprotect		sys_pkey_mprotect
341330	common	pkey_alloc		sys_pkey_alloc
342331	common	pkey_free		sys_pkey_free
343332	common	statx			sys_statx
344333	common	io_pgetevents		sys_io_pgetevents
345334	common	rseq			sys_rseq
346# don't use numbers 387 through 423, add new calls after the last
347# 'common' entry
348424	common	pidfd_send_signal	sys_pidfd_send_signal
349425	common	io_uring_setup		sys_io_uring_setup
350426	common	io_uring_enter		sys_io_uring_enter
351427	common	io_uring_register	sys_io_uring_register
352428	common	open_tree		sys_open_tree
353429	common	move_mount		sys_move_mount
354430	common	fsopen			sys_fsopen
355431	common	fsconfig		sys_fsconfig
356432	common	fsmount			sys_fsmount
357433	common	fspick			sys_fspick
358434	common	pidfd_open		sys_pidfd_open
359435	common	clone3			sys_clone3
360436	common	close_range		sys_close_range
361437	common	openat2			sys_openat2
362438	common	pidfd_getfd		sys_pidfd_getfd
363439	common	faccessat2		sys_faccessat2
364440	common	process_madvise		sys_process_madvise
365441	common	epoll_pwait2		sys_epoll_pwait2
366442	common	mount_setattr		sys_mount_setattr
367443	common	quotactl_fd		sys_quotactl_fd
368444	common	landlock_create_ruleset	sys_landlock_create_ruleset
369445	common	landlock_add_rule	sys_landlock_add_rule
370446	common	landlock_restrict_self	sys_landlock_restrict_self
371447	common	memfd_secret		sys_memfd_secret
372448	common	process_mrelease	sys_process_mrelease
373449	common	futex_waitv		sys_futex_waitv
374450	common	set_mempolicy_home_node	sys_set_mempolicy_home_node
375
376#
377# Due to a historical design error, certain syscalls are numbered differently
378# in x32 as compared to native x86_64.  These syscalls have numbers 512-547.
379# Do not add new syscalls to this range.  Numbers 548 and above are available
380# for non-x32 use.
381#
382512	x32	rt_sigaction		compat_sys_rt_sigaction
383513	x32	rt_sigreturn		compat_sys_x32_rt_sigreturn
384514	x32	ioctl			compat_sys_ioctl
385515	x32	readv			sys_readv
386516	x32	writev			sys_writev
387517	x32	recvfrom		compat_sys_recvfrom
388518	x32	sendmsg			compat_sys_sendmsg
389519	x32	recvmsg			compat_sys_recvmsg
390520	x32	execve			compat_sys_execve
391521	x32	ptrace			compat_sys_ptrace
392522	x32	rt_sigpending		compat_sys_rt_sigpending
393523	x32	rt_sigtimedwait		compat_sys_rt_sigtimedwait_time64
394524	x32	rt_sigqueueinfo		compat_sys_rt_sigqueueinfo
395525	x32	sigaltstack		compat_sys_sigaltstack
396526	x32	timer_create		compat_sys_timer_create
397527	x32	mq_notify		compat_sys_mq_notify
398528	x32	kexec_load		compat_sys_kexec_load
399529	x32	waitid			compat_sys_waitid
400530	x32	set_robust_list		compat_sys_set_robust_list
401531	x32	get_robust_list		compat_sys_get_robust_list
402532	x32	vmsplice		sys_vmsplice
403533	x32	move_pages		sys_move_pages
404534	x32	preadv			compat_sys_preadv64
405535	x32	pwritev			compat_sys_pwritev64
406536	x32	rt_tgsigqueueinfo	compat_sys_rt_tgsigqueueinfo
407537	x32	recvmmsg		compat_sys_recvmmsg_time64
408538	x32	sendmmsg		compat_sys_sendmmsg
409539	x32	process_vm_readv	sys_process_vm_readv
410540	x32	process_vm_writev	sys_process_vm_writev
411541	x32	setsockopt		sys_setsockopt
412542	x32	getsockopt		sys_getsockopt
413543	x32	io_setup		compat_sys_io_setup
414544	x32	io_submit		compat_sys_io_submit
415545	x32	execveat		compat_sys_execveat
416546	x32	preadv2			compat_sys_preadv64v2
417547	x32	pwritev2		compat_sys_pwritev64v2
418# This is the end of the legacy x32 range.  Numbers 548 and above are
419# not special and are not to be used for x32-specific syscalls.
420