freebsd-dev/sys/amd64
Mitchell Horne aba921bd9e ddb: print the actual syscall name
Some architectures will pretty-print a system call trap in the
backtrace. Rather than printing the symbol, use the syscallname()
function to pull the string from the sv_syscallnames array corresponding
to the process. This simplifies the function somewhat.

Mostly, this will result in dropping the "sys" prefix, e.g. "sys_exit"
will now be printed simply as "exit".

Make two minor tweaks to the function signature: use a u_int for the
syscall number since this is a more correct type (see the 'code' member
of struct syscall_args), and make the thread pointer the first argument.
The latter is more natural and conventional.

Suggested by:   jrtc27
Reviewed by:	jrtc27, markj, jhb
MFC after:	1 week
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D37200
2022-10-28 18:21:08 -03:00
..
acpica acpica: Merge ACPICA 20221020 2022-10-27 22:04:32 -04:00
amd64 ddb: print the actual syscall name 2022-10-28 18:21:08 -03:00
conf amd64: Add FIRECRACKER kernel configuration 2022-10-17 23:02:22 -07:00
ia32 Introduce the PROC_SIGCODE() macro 2022-07-18 16:27:26 +02:00
include vmm: permit some IPIs to be handled by userspace 2022-10-14 12:03:05 +02:00
linux linux: populate sv_syscallnames in each sysentvec 2022-10-28 18:21:08 -03:00
linux32 linux: populate sv_syscallnames in each sysentvec 2022-10-28 18:21:08 -03:00
pci pci_cfgreg.c: Use io port config access for early boot time. 2019-04-09 18:07:17 +00:00
sgx sgx: Remove unused variable. 2022-04-07 17:01:28 -07:00
vmm vmm: Fix AP startup with old userspace binaries. 2022-10-26 14:22:56 -07:00
Makefile Bring the tags and links entries for amd64 up to date. 2021-09-27 20:04:51 -07:00