opnsense-src/tests/sys
John Baldwin 189ac973de Fix various edge cases related to system call tracing.
- Always set td_dbg_sc_* when P_TRACED is set on system call entry
  even if the debugger is not tracing system call entries.  This
  ensures the fields are valid when reporting other stops that
  occur at system call boundaries such as for PT_FOLLOW_FORKS or
  when only tracing system call exits.
- Set TDB_SCX when reporting the stop for a new child process in
  fork_return().  This causes the event to be reported as a system
  call exit.
- Report a system call exit event in fork_return() for new threads in
  a traced process.
- Copy td_dbg_sc_* to new threads instead of zeroing.  This ensures
  that td_dbg_sc_code in particular will report the system call that
  created the new thread or process when it reports a system call
  exit event in fork_return().
- Add new ptrace tests to verify that new child processes and threads
  report system call exit events with a valid pl_syscall_code via
  PT_LWPINFO.

Reviewed by:	kib
Differential Revision:	https://reviews.freebsd.org/D3822
2015-10-06 19:29:05 +00:00
..
aio Adjust CFLAGS to find freebsd_test_suite/macros.h 2015-04-28 10:59:06 +00:00
fifo Pass unsigned long argument to ioctl(). 2015-07-26 14:46:42 +00:00
file The bug caught by flock's test 16 was fixed by r268384. 2015-07-05 22:49:26 +00:00
kern Fix various edge cases related to system call tracing. 2015-10-06 19:29:05 +00:00
kqueue Integrate tools/regression/kqueue into the FreeBSD test suite as 2015-04-27 07:37:48 +00:00
mqueue Use PLAIN_REQUIRE_KERNEL_MODULE to require "mqueuefs" 2015-04-28 10:56:59 +00:00
netinet Make cleanup routines idempotent 2015-07-04 02:22:26 +00:00
opencrypto Add some new modes to OpenCrypto. These modes are AES-ICM (can be used 2014-12-12 19:56:36 +00:00
pjdfstest Misc fixes from projects/bmake 2015-06-11 21:13:05 +00:00
vm Add more mmap tests related to character devices. 2015-09-04 01:02:21 +00:00
Makefile Move tests/sys/kern/mmap_test to tests/sys/vm/mmap_test 2015-04-27 17:53:09 +00:00