freebsd-dev/sys
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
..
amd64 ddb: print the actual syscall name 2022-10-28 18:21:08 -03:00
arm intrng: Remove from NOTES file 2022-10-25 10:57:29 -06:00
arm64 linux: populate sv_syscallnames in each sysentvec 2022-10-28 18:21:08 -03:00
bsm
cam cam: Use FreeBSD standard copyright 2022-10-07 23:37:46 -06:00
cddl kinst: Clarify a comment in the trampoline allocator 2022-10-14 11:32:47 -04:00
compat netlink: use (void) for function definitions with no arguments 2022-10-27 11:14:00 -04:00
conf Import the WireGuard driver from zx2c4.com. 2022-10-28 13:36:12 -07:00
contrib acpica: Fix the botched merge 2022-10-27 22:36:35 -04:00
crypto Fix the IV length in the armv8 AES GCM code 2022-09-06 13:11:04 +01:00
ddb ddb: print the actual syscall name 2022-10-28 18:21:08 -03:00
dev wg: Trim compat shims for versions older than current stable/13. 2022-10-28 13:36:13 -07:00
dts
fs Add VV_CROSSLOCK vnode flag to avoid cross-mount lookup LOR 2022-10-26 19:33:03 -05:00
gdb
geom geom_part: Check number of GPT entries and size of GPT entry 2022-10-18 11:03:02 -04:00
gnu
i386 ddb: print the actual syscall name 2022-10-28 18:21:08 -03:00
isa
kern Import the WireGuard driver from zx2c4.com. 2022-10-28 13:36:12 -07:00
kgssapi
libkern arm: Remove unused ffs.S 2022-10-20 10:48:31 -06:00
modules Import the WireGuard driver from zx2c4.com. 2022-10-28 13:36:12 -07:00
net Import the WireGuard driver from zx2c4.com. 2022-10-28 13:36:12 -07:00
net80211 net8021: Fix a typo in a kernel error message 2022-10-25 04:31:51 +02:00
netgraph Alter the prototype of qsort_r(3) to match POSIX, which adopted the 2022-09-30 15:26:30 -07:00
netinet netinet*: add back necessary headers 2022-10-26 08:16:44 -07:00
netinet6 Import the WireGuard driver from zx2c4.com. 2022-10-28 13:36:12 -07:00
netipsec tcp: remove INP_TIMEWAIT flag 2022-10-06 19:24:37 -07:00
netlink netlink: use (void) for function definitions with no arguments 2022-10-27 11:14:00 -04:00
netpfil netpfil: Fix two typos in source code comments 2022-10-25 04:32:59 +02:00
netsmb
nfs
nfsclient
nfsserver
nlm
ofed ibcore: The use of IN_LOOPBACK() now requires a valid VNET context. 2022-09-23 13:42:03 +02:00
opencrypto opencrypto: fix null esp crypt 2022-10-25 03:24:43 +03:00
powerpc powerpc: slb_alloc_user_cache: fix missing uma_zalloc wait flag 2022-10-03 20:56:41 -03:00
riscv ddb: print the actual syscall name 2022-10-28 18:21:08 -03:00
rpc clnt_vc.c: Replace msleep() with pause() to avoid assert panic 2022-10-14 15:46:55 -07:00
security Bump MAC_VERSION to 5 2022-10-07 15:24:32 +00:00
sys Import the WireGuard driver from zx2c4.com. 2022-10-28 13:36:12 -07:00
teken
tests
tools Make #if and #endif do what people expect in *_if.m 2022-10-06 14:35:31 +01:00
ufs ffs validate_sblock(): avoid 32bit mul overflow 2022-10-27 06:17:38 +03:00
vm uma: Never pass cache zones to memguard 2022-10-19 14:36:36 -04:00
x86 bhyve: Implement MSR_MISC_FEATURES_ENABLES 2022-10-27 11:34:41 -06:00
xdr
xen
Makefile