History log of /netbsd/sys/kern/kern_syscall.c (Results 1 – 21 of 21)
Revision Date Author Comments
# 00e1384f 31-Aug-2020 christos <christos@NetBSD.org>

PR/55629: Andreas Gustafsson: Don't crash when an emulation does not provide
e_dtrace_syscall (like compat_netbsd32)


# 14b4bbb2 23-May-2020 ad <ad@NetBSD.org>

Move proc_lock into the data segment. It was dynamically allocated because
at the time we had mutex_obj_alloc() but not __cacheline_aligned.


# a856dec4 06-Oct-2019 uwe <uwe@NetBSD.org>

xc_barrier - convenience function to xc_broadcast() a nop.

Make the intent more clear and also avoid a bunch of (xcfunc_t)nullop
casts that gcc 8 -Wcast-function-type is not happy about.


# ad7e9a5b 06-May-2019 kamil <kamil@NetBSD.org>

Ship with syscall information with SIGTRAP TRAP_SCE/TRAP_SCX for tracers

Expand siginfo_t (struct size not changed) to new values for
SIGTRAP TRAP_SCE/TRAP_SCX events.

- si_sysnum -- syscall numb

Ship with syscall information with SIGTRAP TRAP_SCE/TRAP_SCX for tracers

Expand siginfo_t (struct size not changed) to new values for
SIGTRAP TRAP_SCE/TRAP_SCX events.

- si_sysnum -- syscall number (int)
- si_retval -- return value (2 x int)
- si_error -- error code (int)
- si_args -- syscall arguments (8 x uint64_t)

TRAP_SCE delivers si_sysnum and si_args.

TRAP_SCX delivers si_sysnum, si_retval, si_error and si_args.

Users: debuggers (like GDB) and syscall tracers (like strace, truss).

This MI interface is similar to the Linux kernel proposal of
PTRACE_GET_SYSCALL_INFO by the strace developer team.

show more ...


# ffe0b410 10-Aug-2018 pgoyette <pgoyette@NetBSD.org>

Allow syscall_establish() to install new syscalls when the existing
entry-point is either sys_nomodule or sys_nosys. Update the
makesyscalls.sh script to create a const array of bits to allow
syscal

Allow syscall_establish() to install new syscalls when the existing
entry-point is either sys_nomodule or sys_nosys. Update the
makesyscalls.sh script to create a const array of bits to allow
syscall_disestablish() to properly restore the original entry-point.
Update all the initializers of struct emul to initialize the pointer
to the bit array struct emul.

XXX Regen of all files created by makesyscalls.sh will come soon,
XXX followed by a kernel version bump (since struct emul is being
XXX modified).

This commit should address PR kern/45781 and also removes the need
for the work-around for that PR in file

sys/arch/usermode/modules/syscallemu/syscallemu.c

show more ...


# 309b6cbe 24-Mar-2017 christos <christos@NetBSD.org>

Instead of copying parts of sigswitch to process_stoptrace, use it directly.
Rename process_stoptrace -> proc_stoptrace and put it in kern_sig.c so we
don't need to expose any more functions from it.


# 5389972b 23-Mar-2017 christos <christos@NetBSD.org>

kern/5201{2,8,9}: Fix PT_SYSCALL stopping.
1. Supply the siginfo we expect TRAP_SC{E,X} to process_stoptrace() and set it.
2. Change the second argument of proc_stop from notify, to now meaning that

kern/5201{2,8,9}: Fix PT_SYSCALL stopping.
1. Supply the siginfo we expect TRAP_SC{E,X} to process_stoptrace() and set it.
2. Change the second argument of proc_stop from notify, to now meaning that
we want to stop right now. Wait in process_stoptrace until that has happened.
3. While here, fix the locking order in process_stoptrace().

show more ...


# 5f9cd129 30-Nov-2015 pgoyette <pgoyette@NetBSD.org>

KNF - Thanks, christos


# 7ac976b2 30-Nov-2015 pgoyette <pgoyette@NetBSD.org>

Rename sc_auto to sc_autoload at suggestion of christos@


# fa160f14 30-Nov-2015 pgoyette <pgoyette@NetBSD.org>

Make the list of syscalls which can trigger a module autoload an
attribute of each emulation, rather than having a single global
list which applies only to the default emulation.

This changes 'struc

Make the list of syscalls which can trigger a module autoload an
attribute of each emulation, rather than having a single global
list which applies only to the default emulation.

This changes 'struct emul' so

Welcome to 7.99.23 !

show more ...


# b065a157 09-May-2015 pgoyette <pgoyette@NetBSD.org>

Use the generated list of auto-loadable syscalls rather than our own
hard-coded list.


# c14e6dd2 07-Mar-2015 christos <christos@NetBSD.org>

Adjust for systrace based on the FreeBSD code:
- create new file systrace_args.c that use used to convert the syscall
arguments to an array, and functions that print the types of the
entry and re

Adjust for systrace based on the FreeBSD code:
- create new file systrace_args.c that use used to convert the syscall
arguments to an array, and functions that print the types of the
entry and return arguments.
- call the systrace probe from the trace_enter and trace_exit functions

show more ...


# 954ab3a0 14-Dec-2013 pgoyette <pgoyette@NetBSD.org>

Add SYS_compat_60__lwp_park to the list of syscalls that can be resolved by loading kernel modules.

This seems to address my PR kern/48027


# 7ee3f5fe 09-Dec-2013 pooka <pooka@NetBSD.org>

Group more syscall related routines together (kern_subr -> kern_syscall)


# 0a29effe 05-May-2012 christos <christos@NetBSD.org>

Add a new type of syscall "EXTERN" which is meant for modules that live
outside the tree (in pkgsrc). Use it to define afssys (210) which has
been reserved for years, and make it autoload the "openaf

Add a new type of syscall "EXTERN" which is meant for modules that live
outside the tree (in pkgsrc). Use it to define afssys (210) which has
been reserved for years, and make it autoload the "openafs" module.

show more ...


# 042933b7 08-Mar-2012 joerg <joerg@NetBSD.org>

Implement sem_timedwait.


# 23d5409e 21-Aug-2010 pgoyette <pgoyette@NetBSD.org>

Update the rest of the kernel to conform to the module subsystem's new
locking protocol.


# cc69e456 15-Apr-2010 pooka <pooka@NetBSD.org>

will it include, that is the question

(to everyone's disappointment on some archs it didn't)


# 0d8b367e 14-Apr-2010 pooka <pooka@NetBSD.org>

Need a few funny #defines in kern_syscall.c too.


# 64d6a27d 14-Apr-2010 pooka <pooka@NetBSD.org>

need opt_modular.h in kern_syscall


# 7ea24651 14-Apr-2010 pooka <pooka@NetBSD.org>

Move routines related to syscall establishment from kern_subr.c and
kern_stub.c to kern_syscall.c.