git: DragonFly_RELEASE_6_2 kernel - Fix ktrace's handling of system call return values

Matthew Dillon dillon at crater.dragonflybsd.org
Mon Jan 24 12:55:04 PST 2022


commit 74740cc029ec5550224385fe2a95e53339baaf9a
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/74740cc029ec5550224385fe2a95e53339baaf9a


-- 
DragonFly BSD source repository



More information about the Commits mailing list