opnsense-src/sys/i386
Mitchell Horne 3e00f4ab10 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

(cherry picked from commit aba921bd9e)
2022-11-06 10:54:46 -04:00
..
acpica x86: duplicate acpi_wakeup.c per i386 and amd64 2021-09-20 03:47:21 +03:00
bios smapi: Store softc pointer in si_drv1 of cdev. 2022-05-19 15:01:50 -07:00
cloudabi32 fork: Allow ABI to specify fork return values for child. 2022-06-17 22:33:28 +03:00
conf Fix e013e369 mismerge which is causes i386 LINT fails to build. 2022-06-18 10:06:58 +03:00
i386 ddb: print the actual syscall name 2022-11-06 10:54:46 -04:00
include x86: Remove silly checks for <sys/cdefs.h>. 2022-05-13 13:12:26 -07:00
linux linux: populate sv_syscallnames in each sysentvec 2022-11-06 10:54:46 -04:00
pci i386: clean up empty lines in .c and .h files 2020-09-01 21:19:39 +00:00
Makefile