git: kernel - Fix ktrace's handling of system call return values
Matthew Dillon
dillon at crater.dragonflybsd.org
Sun Jan 23 22:06:48 PST 2022
commit 0807c4ed098cbfdfd20e0721600b4530c869828a
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date: Sun Jan 23 22:02:56 2022 -0800
kernel - Fix ktrace's handling of system call return values
* Distinguish between int and long returns, properly recording
long returns (e.g. lseek(), mmap(), read(), write(), etc).
kdump will then display the correct return value instead of a truncated
return value for the affected system calls.
* Involves including a return value type width in the sysent and adjusting
the generator to calculate it.
Summary of changes:
sys/kern/init_sysent.c | 1110 +++++++++++++++++++--------------------
sys/kern/makesyscalls.sh | 19 +-
sys/kern/syscalls.c | 4 +-
sys/platform/pc64/x86_64/trap.c | 11 +-
sys/sys/sysent.h | 3 +-
5 files changed, 582 insertions(+), 565 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/0807c4ed098cbfdfd20e0721600b4530c869828a
--
DragonFly BSD source repository
More information about the Commits
mailing list